[03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]accept exits with 9 [03:22:34]New connection [03:22:34]New thread 3067112804 created [03:22:34]Thread 3066969444 joined [03:22:34]Waiting for new connection... [03:22:34] Sock 9.Parse request [03:22:34]Sock 9.Check first char [03:22:34]Sock 9.First char is OK [03:22:34]request: POST /json_proto HTTP/1.0 [03:22:34]Method: POST [03:22:34]URL: /json_proto [03:22:34]Method is POST - this is cgi request [03:22:34]url: /json_proto [03:22:34]query_string will be loaded in cgi processing [03:22:34]execute_cgi json_proto POST (null) [03:22:34]execute_cgi path=json_proto method=POST [03:22:34]POST find Content-Length [03:22:34]Host: 172.17.33.3:8080 [03:22:34]Content-Length: 682 [03:22:34]Content-Type: application/json [03:22:34] [03:22:34]POST finish read [03:22:34]Found Content-Length = 682 [03:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 26.240, "sum" : 1700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:34]execute_script... [03:22: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)347818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 26.240, "sum" : 1700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:34]POST & json_proto [03:22:34]process_json_proto [03:22:34]json parsed OK: [03:22:34]protocol is kg_v1.0 [03:22:34]action value=close_receipt [03:22:34]process_action close_receipt [03:22:34]cmd_close_receipt [03:22:34]MH_GetDate [03:22:34]Write to MH i2c: F0 00 00 FC 1B 06 [03:22:34]Write i2c OK [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: F0 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: F0 09 00 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: F0 09 00 FC 1B 00 7C 9D 1C 66 23 5B 8F 65 1C [03:22:34]GetLastDocTimeStamp 1713147951 [03:22:34]current date 1713151356 [03:22:34]FM_GetShiftState [03:22:34]SAM_PROTO_GetShiftState [03:22:34]wFMCommunicate request_size=4 [03:22:34]MH_SAM_APDU [03:22:34]CAPDU: 80 13 01 00 [03:22:34]Write to MH i2c: E2 08 00 FD 1B 80 13 01 00 00 00 00 00 95 [03:22:34]Write i2c OK [03:22:34]MH_I2C_Read... [03:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:34]Read from MH i2c: E2 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: E2 0E 00 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: E2 0E 00 FD 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 89 [03:22:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [03:22:34]wFMCommunicate OK [03:22:34]SAM_PROTO_GetShiftState done [03:22:34]FM_GetShiftState done [03:22:34]opened in 1713140468 [03:22:34]opened+sec_in_day 1713226868 [03:22:34]quantity*price = 170035 [03:22:34]sum+1 = 170036 [03:22:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.57 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 15.04.2024 03:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29424 ФПД: 136406610275445 1/tax-web-control/client/api/v1/ticket?date=20240415T032236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29424&fm=136406610275445&tin=02508201610067®Number=0000138879044617&sum=170000 [03:22:35]StoreToDocumentArchive [03:22:35]shift 117 fd 29424 [03:22:35]save to /storage/0117/doc_00029424 [03:22:35]save last doc name /storage/0117/doc_00029424 to /storage/kkm_last_doc_name [03:22:35]save OK [03:22:35]Clear old archive folders... [03:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:22:35]tlvbuf is 0022DC60 [03:22:35]SAM_PROTO_ClearQueue [03:22:35]wFMCommunicate request_size=4 [03:22:35]MH_SAM_APDU [03:22:35]CAPDU: 80 09 00 00 [03:22:35]Write to MH i2c: E2 08 00 0A 1C 80 09 00 00 00 00 00 00 98 [03:22:35]Write i2c OK [03:22:35]MH_I2C_Read... [03:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:35]Read from MH i2c: E2 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [03:22:35]RAPDU: 90 00 [03:22:35]wFMCommunicate OK [03:22:35]SAM_PROTO_ClearQueue done [03:22:35]KKMCreateOFDPacket [03:22:35]OFDProtocolAddRootSTLVToBuf [03:22:35]FM_MakeSignedData [03:22:35]FM_MakeSignedData [03:22:35]SAM_PROTO_SignData [03:22:35]wFMCommunicate request_size=4 [03:22:35]MH_SAM_APDU [03:22:35]CAPDU: 80 0D 01 02 [03:22:35]Write to MH i2c: E2 08 00 0B 1C 80 0D 01 02 00 00 00 00 A0 [03:22:35]Write i2c OK [03:22:35]MH_I2C_Read... [03:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:35]Read from MH i2c: E2 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [03:22:35]RAPDU: 90 00 [03:22:35]wFMCommunicate OK [03:22:35]wFMCommunicate request_size=255 [03:22:35]MH_SAM_APDU [03:22: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 80 66 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 33 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 7C 9D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 72 00 00 35 04 06 00 7C [03:22:35]Write to MH i2c: E2 02 01 0C 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 80 66 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 33 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 7C 9D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 72 00 00 35 04 06 00 7C 00 00 EC [03:22:35]Write i2c OK [03:22:35]MH_I2C_Read... [03:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:35]Read from MH i2c: E2 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [03:22:35]RAPDU: 90 00 [03:22:35]wFMCommunicate OK [03:22:35]wFMCommunicate request_size=10 [03:22:35]MH_SAM_APDU [03:22:35]CAPDU: 80 0D 02 02 05 0F A3 8C EC 75 [03:22:35]Write to MH i2c: E2 0D 00 0D 1C 80 0D 02 02 05 00 0F A3 8C EC 75 00 00 4C [03:22:35]Write i2c OK [03:22:35]MH_I2C_Read... [03:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:35]Read from MH i2c: E2 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 [03:22:35]MH_I2C_Read... [03:22:35]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [03:22:35]RAPDU: 90 00 [03:22:35]wFMCommunicate OK [03:22:35]wFMCommunicate request_size=4 [03:22:35]MH_SAM_APDU [03:22:35]CAPDU: 80 0D 03 02 [03:22:35]Write to MH i2c: E2 08 00 0E 1C 80 0D 03 02 00 00 00 00 A5 [03:22:35]Write i2c OK [03:22:35]MH_I2C_Read... [03:22:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:36]Read from MH i2c: E2 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: E2 0B 00 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: E2 0B 00 0E 1C 00 EC 98 DA C9 B6 9E C4 F0 90 00 D5 [03:22:36]RAPDU: EC 98 DA C9 B6 9E C4 F0 90 00 [03:22:36]wFMCommunicate OK [03:22:36]SAM_PROTO_SignData done [03:22:36]FM_MakeSignedData done [03:22:36]CreateOFDProtocolMessage [03:22:36]wFMCommunicate request_size=4 [03:22:36]MH_SAM_APDU [03:22:36]CAPDU: 80 11 00 00 [03:22:36]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [03:22:36]Write i2c OK [03:22:36]MH_I2C_Read... [03:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:36]Read from MH i2c: E2 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: E2 17 00 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: E2 17 00 0F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [03:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:22:36]wFMCommunicate OK [03:22:36]CreateOFDProtocolMessage done [03:22:36]OFDSenderStorePacket 29424 [03:22:36]StoreOFDPacket docnum=29424 [03:22:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 A4 07 01 28 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 33 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 7C 9D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 72 00 00 35 04 06 00 7C 0F A3 8C EC 75 EC 98 DA C9 B6 9E C4 F0 [03:22:36]CheckFolder [03:22:36]dirname=/storage/ofd_packets [03:22:36]CheckFolder done [03:22:36]ProducePacketName [03:22:36]name=ofd_packets/00029424 [03:22:36]NVStorageSaveData ofd_packets/00029424 [03:22:36]File name is /storage/ofd_packets/00029424 [03:22:36]Write 301 bytes [03:22:36]NVStorageSaveData done [03:22:36]OFDSenderStorePacket done [03:22:36]KKMCreateOFDPacket done [03:22:36]NVStorageSaveData kkm_last_timestamp [03:22:36]File name is /storage/kkm_last_timestamp [03:22:36]Write 4 bytes [03:22:36]NVStorageSaveData done [03:22:36]ExternCall_PrintAddStr [03:22:36]wPrintStart [03:22:36]Write to MH i2c: 01 00 00 10 1C 2C [03:22:36]Write i2c OK [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 07 00 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 07 00 10 1C 00 00 00 00 00 FF 0F 41 [03:22:36]RasterBufferAndPrint [03:22:36]line Счет N : (1)347818 [03:22:36]line ИНН: 02508201610067 [03:22:36]line Контрольно-Кассовый Чек [03:22:36]line ПРОДАЖА [03:22:36]line ТРК (МРК, ГНК) : 23 [03:22:36]line Товар: 2710124130 [03:22:36]line Аи-92-К-5 [03:22:36]line 26.240 * 64.80 [03:22:36]line = 1700.35 [03:22:36]line НДС 12% НСП 1% [03:22:36]line > о реализуемом товаре [03:22:36]line ОКРУГЛЕНИЕ: -0.35 [03:22:36]line ИТОГО: 1700.00 [03:22:36]line Внесено: 1700.00 [03:22:36]line СДАЧА: 0.00 [03:22:36]line НСП 1% : 15.05 [03:22:36]line НДС 12% : 180.57 [03:22:36]line Наличными: 1700.00 [03:22:36]line Безнал.: 0.00 [03:22:36]line Место: АЗС № 108 "Партнер Нефть" [03:22:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:22:36]line СНО: Общий режим [03:22:36]line Чек 18 15.04.2024 03:22 [03:22:36]line Смена: 117 ФФД: 1.0 [03:22:36]line ЗНМ: 0300000027 [03:22:36]line РНМ: 0000138879044617 [03:22:36]line Версия ККМ: 001 [03:22:36]line ФМ: 0000000000963154 [03:22:36]line ФД: 29424 [03:22:36]line ФПД: 136406610275445 [03:22:36]line 1/tax-web-control/client/api/v1/ticket?date=20240415T032236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29424&fm=136406610275445&tin=02508201610067®Number=0000138879044617&sum=170000 [03:22:36]OFD Sender: Processing packet 29424 [packets to send 8, broken 7] [03:22:36]ProducePacketName [03:22:36]name=ofd_packets/00029424 [03:22:36]OFD Sender: To server: pG, [03:22:36]CommunicateWithHost lk.salyk.kg:30040 [03:22:36]ConnectInit lk.salyk.kg [03:22:36]written 0, free lines is 4095 [03:22:36]Connected sock=10 [03:22:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 A4 07 01 28 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 33 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 7C 9D 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 72 00 00 35 04 06 00 7C 0F A3 8C EC 75 EC 98 DA C9 B6 9E C4 F0 [03:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 55 47 00 49 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 39 36 33 31 35 34 10 04 04 00 F0 72 00 00 F4 03 04 00 1F 48 1C 66 B6 04 01 00 00 67 48 A0 90 DE D6 4F 2C [03:22:36]CommunicateWithHost err = 0 [03:22:36]CheckOFDResponse [03:22:36]1017 (14) - 77093643461234 [03:22:36]1041 (16) - 0000000000963154 [03:22:36]1040 (4) - 29424 [03:22:36]1012 (4) - 14.04.2024 21:18 [03:22:36]1206 (1) - 0 [03:22:36]OFD Sender: Remove packet 29424 [03:22:36]ProducePacketName [03:22:36]name=ofd_packets/00029424 [03:22:36]NVStorageDeleteData [03:22:36]Write to MH i2c: 01 00 00 3A 1C 56 [03:22:36]Write i2c OK [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 07 00 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 CA 0C 33 [03:22:36]RasterBufferAndPrint [03:22:36]line [03:22:36]line [03:22:36]line [03:22:36]line [03:22:36]line [03:22:36]written 0, free lines is 3279 [03:22:36]MH_Cut [03:22:36]Write to MH i2c: D1 01 00 41 1C 01 2F [03:22:36]Write i2c OK [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: D1 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: D1 01 00 [03:22:36]MH_I2C_Read... [03:22:36]Read from MH i2c: D1 01 00 41 1C 00 2E [03:22:36]Write to MH i2c: 01 00 00 42 1C 5E [03:22:36]Write i2c OK [03:22:36]MH_I2C_Read... [03:22:37]OFD Sender: No OFD packet to send [03:22:37]*** Cut start [03:22:37]*** Partial cut [03:22:37]*** CUTSNS_PIN = 1 [03:22:37]*** CUTSNS_PIN = 0 [03:22:37]*** Brake cut motor [03:22:38]Read from MH i2c: 01 [03:22:38]MH_I2C_Read... [03:22:38]*** Stop cut motor [03:22:38]*** Cut end [03:22:38]Read from MH i2c: 01 07 00 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [03:22:38]process_action close_receipt done [03:22:38]requested_data is exist [03:22:38]produce_requested_data [03:22:38]requested_item fm.sn is exist - process it [03:22:38]wFMCommunicate request_size=4 [03:22:38]MH_SAM_APDU [03:22:38]CAPDU: 80 11 00 00 [03:22:38]Write to MH i2c: E2 08 00 43 1C 80 11 00 00 00 00 00 00 D9 [03:22:38]Write i2c OK [03:22:38]MH_I2C_Read... [03:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:38]Read from MH i2c: E2 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 17 00 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 17 00 43 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [03:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:22:38]wFMCommunicate OK [03:22:38]requested_item fd.num is exist - process it [03:22:38]SAM_PROTO_GetFieldsCounters [03:22:38]wFMCommunicate request_size=4 [03:22:38]MH_SAM_APDU [03:22:38]CAPDU: 80 13 00 00 [03:22:38]Write to MH i2c: E2 08 00 44 1C 80 13 00 00 00 00 00 00 DC [03:22:38]Write i2c OK [03:22:38]MH_I2C_Read... [03:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:38]Read from MH i2c: E2 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 62 00 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 62 00 44 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 72 00 00 0E 04 04 00 75 00 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 27 [03:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 72 00 00 0E 04 04 00 75 00 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 [03:22:38]wFMCommunicate OK [03:22:38]SAM_PROTO_GetFieldsCounters done [03:22:38]requested_item shift.num is exist - process it [03:22:38]requested_item shift.opened is exist - process it [03:22:38]req_shift_opened [03:22:38]FM_GetShiftState [03:22:38]SAM_PROTO_GetShiftState [03:22:38]wFMCommunicate request_size=4 [03:22:38]MH_SAM_APDU [03:22:38]CAPDU: 80 13 01 00 [03:22:38]Write to MH i2c: E2 08 00 45 1C 80 13 01 00 00 00 00 00 DE [03:22:38]Write i2c OK [03:22:38]MH_I2C_Read... [03:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:38]Read from MH i2c: E2 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 0E 00 [03:22:38]MH_I2C_Read... [03:22:38]Read from MH i2c: E2 0E 00 45 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D2 [03:22:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [03:22:38]wFMCommunicate OK [03:22:38]SAM_PROTO_GetShiftState done [03:22:38]FM_GetShiftState done [03:22:38]req_shift_opened done [03:22:38]requested_item shift.open_date is exist - process it [03:22:38]req_shift_open_date [03:22:38]req_shift_open_date done [03:22:38]produce_requested_data done [03:22:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29424,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [03:22:38]process_action_free close_receipt [03:22:38]json_value_free [03:22:38]json_value_free done [03:22:38]process_json_proto returns [03:22:38]Send response to host [03:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29424,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [03:22:38]free response buf [03:22:38]execute_script done [03:22:38]execute_script returns [03:22:38]free content buf [03:22:38]Sock 9.Close socket [03:22:38]Sock 9.Thread stoped [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]accept exits with 8 [03:51:58]New connection [03:51:58]New thread 3066969444 created [03:51:58]Thread 3067112804 joined [03:51:58]Waiting for new connection... [03:51:58] Sock 8.Parse request [03:51:58]Sock 8.Check first char [03:51:58]Sock 8.First char is OK [03:51:58]request: POST /json_proto HTTP/1.0 [03:51:58]Method: POST [03:51:58]URL: /json_proto [03:51:58]Method is POST - this is cgi request [03:51:58]url: /json_proto [03:51:58]query_string will be loaded in cgi processing [03:51:58]execute_cgi json_proto POST (null) [03:51:58]execute_cgi path=json_proto method=POST [03:51:58]POST find Content-Length [03:51:58]Host: 172.17.33.3:8080 [03:51:58]Content-Length: 677 [03:51:58]Content-Type: application/json [03:51:58] [03:51:58]POST finish read [03:51:58]Found Content-Length = 677 [03:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:58]execute_script... [03:51: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)347819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:51:58]POST & json_proto [03:51:58]process_json_proto [03:51:58]json parsed OK: [03:51:58]protocol is kg_v1.0 [03:51:58]action value=close_receipt [03:51:58]process_action close_receipt [03:51:58]cmd_close_receipt [03:51:58]MH_GetDate [03:51:58]Write to MH i2c: F0 00 00 46 1C 51 [03:51:58]Write i2c OK [03:51:58]MH_I2C_Read... [03:51:58]Read from MH i2c: F0 [03:51:58]MH_I2C_Read... [03:51:58]Read from MH i2c: F0 09 00 [03:51:58]MH_I2C_Read... [03:51:58]Read from MH i2c: F0 09 00 46 1C 00 60 A4 1C 66 23 5B 8F 65 52 [03:51:58]GetLastDocTimeStamp 1713151356 [03:51:58]current date 1713153120 [03:51:58]FM_GetShiftState [03:51:58]SAM_PROTO_GetShiftState [03:51:58]wFMCommunicate request_size=4 [03:51:58]MH_SAM_APDU [03:51:58]CAPDU: 80 13 01 00 [03:51:58]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [03:51:58]Write i2c OK [03:51:58]MH_I2C_Read... [03:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:51:58]Read from MH i2c: E2 [03:51:58]MH_I2C_Read... [03:51:58]Read from MH i2c: E2 0E 00 [03:51:58]MH_I2C_Read... [03:51:58]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D4 [03:51:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [03:51:58]wFMCommunicate OK [03:51:58]SAM_PROTO_GetShiftState done [03:51:58]FM_GetShiftState done [03:51:58]opened in 1713140468 [03:51:58]opened+sec_in_day 1713226868 [03:51:58]quantity*price = 10044 [03:51:58]sum+1 = 10045 [03:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.67 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 15.04.2024 03:52 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29425 ФПД: 245704941801170 1/tax-web-control/client/api/v1/ticket?date=20240415T035200&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29425&fm=245704941801170&tin=02508201610067®Number=0000138879044617&sum=10000 [03:51:59]StoreToDocumentArchive [03:51:59]shift 117 fd 29425 [03:51:59]save to /storage/0117/doc_00029425 [03:51:59]save last doc name /storage/0117/doc_00029425 to /storage/kkm_last_doc_name [03:51:59]save OK [03:51:59]Clear old archive folders... [03:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:51:59]tlvbuf is B6ECFB00 [03:51:59]SAM_PROTO_ClearQueue [03:51:59]wFMCommunicate request_size=4 [03:51:59]MH_SAM_APDU [03:51:59]CAPDU: 80 09 00 00 [03:51:59]Write to MH i2c: E2 08 00 54 1C 80 09 00 00 00 00 00 00 E2 [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [03:51:59]RAPDU: 90 00 [03:51:59]wFMCommunicate OK [03:51:59]SAM_PROTO_ClearQueue done [03:51:59]KKMCreateOFDPacket [03:51:59]OFDProtocolAddRootSTLVToBuf [03:51:59]FM_MakeSignedData [03:51:59]FM_MakeSignedData [03:51:59]SAM_PROTO_SignData [03:51:59]wFMCommunicate request_size=4 [03:51:59]MH_SAM_APDU [03:51:59]CAPDU: 80 0D 01 02 [03:51:59]Write to MH i2c: E2 08 00 55 1C 80 0D 01 02 00 00 00 00 EA [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [03:51:59]RAPDU: 90 00 [03:51:59]wFMCommunicate OK [03:51:59]wFMCommunicate request_size=255 [03:51:59]MH_SAM_APDU [03:51: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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 A4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 72 00 00 35 04 06 00 DF [03:51:59]Write to MH i2c: E2 02 01 56 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 A4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 72 00 00 35 04 06 00 DF 00 00 37 [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [03:51:59]RAPDU: 90 00 [03:51:59]wFMCommunicate OK [03:51:59]wFMCommunicate request_size=10 [03:51:59]MH_SAM_APDU [03:51:59]CAPDU: 80 0D 02 02 05 77 A3 C6 8E D2 [03:51:59]Write to MH i2c: E2 0D 00 57 1C 80 0D 02 02 05 00 77 A3 C6 8E D2 00 00 37 [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [03:51:59]RAPDU: 90 00 [03:51:59]wFMCommunicate OK [03:51:59]wFMCommunicate request_size=4 [03:51:59]MH_SAM_APDU [03:51:59]CAPDU: 80 0D 03 02 [03:51:59]Write to MH i2c: E2 08 00 58 1C 80 0D 03 02 00 00 00 00 EF [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 0B 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 0B 00 58 1C 00 6D 26 12 50 0A 94 72 CA 90 00 BF [03:51:59]RAPDU: 6D 26 12 50 0A 94 72 CA 90 00 [03:51:59]wFMCommunicate OK [03:51:59]SAM_PROTO_SignData done [03:51:59]FM_MakeSignedData done [03:51:59]CreateOFDProtocolMessage [03:51:59]wFMCommunicate request_size=4 [03:51:59]MH_SAM_APDU [03:51:59]CAPDU: 80 11 00 00 [03:51:59]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:51:59]Read from MH i2c: E2 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 17 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [03:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:51:59]wFMCommunicate OK [03:51:59]CreateOFDProtocolMessage done [03:51:59]OFDSenderStorePacket 29425 [03:51:59]StoreOFDPacket docnum=29425 [03:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BB 11 07 01 9C C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 A4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 72 00 00 35 04 06 00 DF 77 A3 C6 8E D2 6D 26 12 50 0A 94 72 CA [03:51:59]CheckFolder [03:51:59]dirname=/storage/ofd_packets [03:51:59]CheckFolder done [03:51:59]ProducePacketName [03:51:59]name=ofd_packets/00029425 [03:51:59]NVStorageSaveData ofd_packets/00029425 [03:51:59]File name is /storage/ofd_packets/00029425 [03:51:59]Write 301 bytes [03:51:59]NVStorageSaveData done [03:51:59]OFDSenderStorePacket done [03:51:59]KKMCreateOFDPacket done [03:51:59]NVStorageSaveData kkm_last_timestamp [03:51:59]File name is /storage/kkm_last_timestamp [03:51:59]Write 4 bytes [03:51:59]NVStorageSaveData done [03:51:59]ExternCall_PrintAddStr [03:51:59]wPrintStart [03:51:59]Write to MH i2c: 01 00 00 5A 1C 76 [03:51:59]Write i2c OK [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: 01 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: 01 07 00 [03:51:59]MH_I2C_Read... [03:51:59]Read from MH i2c: 01 07 00 5A 1C 00 00 00 00 00 FF 0F 8B [03:51:59]RasterBufferAndPrint [03:51:59]line Счет N : (1)347819 [03:51:59]line ИНН: 02508201610067 [03:51:59]line Контрольно-Кассовый Чек [03:51:59]line ПРОДАЖА [03:51:59]line ТРК (МРК, ГНК) : 13 [03:51:59]line Товар: 2710124130 [03:51:59]line Аи-92-К-5 [03:51:59]line 1.550 * 64.80 [03:51:59]line = 100.44 [03:51:59]line НДС 12% НСП 1% [03:51:59]line > о реализуемом товаре [03:51:59]line ОКРУГЛЕНИЕ: -0.44 [03:51:59]line ИТОГО: 100.00 [03:51:59]line Внесено: 100.00 [03:51:59]line СДАЧА: 0.00 [03:51:59]line НСП 1% : 0.89 [03:51:59]line НДС 12% : 10.67 [03:51:59]line Наличными: 100.00 [03:51:59]line Безнал.: 0.00 [03:51:59]line Место: АЗС № 108 "Партнер Нефть" [03:51:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:51:59]line СНО: Общий режим [03:51:59]line Чек 19 15.04.2024 03:52 [03:51:59]line Смена: 117 ФФД: 1.0 [03:51:59]line ЗНМ: 0300000027 [03:51:59]line РНМ: 0000138879044617 [03:51:59]line Версия ККМ: 001 [03:51:59]line ФМ: 0000000000963154 [03:51:59]line ФД: 29425 [03:51:59]line ФПД: 245704941801170 [03:51:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T035200&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29425&fm=245704941801170&tin=02508201610067®Number=0000138879044617&sum=10000 [03:51:59]written 0, free lines is 4095 [03:51:59]OFD Sender: Processing packet 29425 [packets to send 8, broken 7] [03:51:59]ProducePacketName [03:51:59]name=ofd_packets/00029425 [03:51:59]OFD Sender: To server: pG, [03:51:59]CommunicateWithHost lk.salyk.kg:30040 [03:51:59]ConnectInit lk.salyk.kg [03:51:59]Connected sock=9 [03:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BB 11 07 01 9C C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 A4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 72 00 00 35 04 06 00 DF 77 A3 C6 8E D2 6D 26 12 50 0A 94 72 CA [03:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1C 7C 47 00 DB 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 72 00 00 F4 03 04 00 02 4F 1C 66 B6 04 01 00 00 FC 4E EB C6 ED 31 37 B9 [03:52:00]CommunicateWithHost err = 0 [03:52:00]CheckOFDResponse [03:52:00]1017 (14) - 77093643461234 [03:52:00]1041 (16) - 0000000000963154 [03:52:00]1040 (4) - 29425 [03:52:00]1012 (4) - 14.04.2024 21:47 [03:52:00]1206 (1) - 0 [03:52:00]OFD Sender: Remove packet 29425 [03:52:00]ProducePacketName [03:52:00]name=ofd_packets/00029425 [03:52:00]NVStorageDeleteData [03:52:00]Write to MH i2c: 01 00 00 84 1C A0 [03:52:00]Write i2c OK [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: 01 [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: 01 07 00 [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: 01 07 00 84 1C 00 00 00 00 00 CB 0C 7E [03:52:00]RasterBufferAndPrint [03:52:00]line [03:52:00]line [03:52:00]line [03:52:00]line [03:52:00]line [03:52:00]written 0, free lines is 3281 [03:52:00]MH_Cut [03:52:00]Write to MH i2c: D1 01 00 8B 1C 01 79 [03:52:00]Write i2c OK [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: D1 [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: D1 01 00 [03:52:00]MH_I2C_Read... [03:52:00]Read from MH i2c: D1 01 00 8B 1C 00 78 [03:52:00]Write to MH i2c: 01 00 00 8C 1C A8 [03:52:00]Write i2c OK [03:52:00]MH_I2C_Read... [03:52:00]OFD Sender: No OFD packet to send [03:52:01]*** Cut start [03:52:01]*** Partial cut [03:52:01]*** CUTSNS_PIN = 1 [03:52:01]*** CUTSNS_PIN = 0 [03:52:01]*** Brake cut motor [03:52:01]Read from MH i2c: 01 [03:52:01]MH_I2C_Read... [03:52:01]*** Stop cut motor [03:52:01]*** Cut end [03:52:01]Read from MH i2c: 01 07 00 [03:52:01]MH_I2C_Read... [03:52:01]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 FF 0F BD [03:52:01]process_action close_receipt done [03:52:01]requested_data is exist [03:52:01]produce_requested_data [03:52:01]requested_item fm.sn is exist - process it [03:52:01]wFMCommunicate request_size=4 [03:52:01]MH_SAM_APDU [03:52:01]CAPDU: 80 11 00 00 [03:52:01]Write to MH i2c: E2 08 00 8D 1C 80 11 00 00 00 00 00 00 23 [03:52:01]Write i2c OK [03:52:01]MH_I2C_Read... [03:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:01]Read from MH i2c: E2 [03:52:01]MH_I2C_Read... [03:52:01]Read from MH i2c: E2 17 00 [03:52:01]MH_I2C_Read... [03:52:01]Read from MH i2c: E2 17 00 8D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [03:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:52:01]wFMCommunicate OK [03:52:01]requested_item fd.num is exist - process it [03:52:01]SAM_PROTO_GetFieldsCounters [03:52:01]wFMCommunicate request_size=4 [03:52:01]MH_SAM_APDU [03:52:01]CAPDU: 80 13 00 00 [03:52:01]Write to MH i2c: E2 08 00 8E 1C 80 13 00 00 00 00 00 00 26 [03:52:01]Write i2c OK [03:52:01]MH_I2C_Read... [03:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:52:01]Read from MH i2c: E2 [03:52:01]MH_I2C_Read... [03:52:01]Read from MH i2c: E2 62 00 [03:52:01]MH_I2C_Read... [03:52:01]Read from MH i2c: E2 62 00 8E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 72 00 00 0E 04 04 00 75 00 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 75 [03:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 72 00 00 0E 04 04 00 75 00 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 [03:52:01]wFMCommunicate OK [03:52:01]SAM_PROTO_GetFieldsCounters done [03:52:01]requested_item shift.num is exist - process it [03:52:01]requested_item shift.opened is exist - process it [03:52:01]req_shift_opened [03:52:01]FM_GetShiftState [03:52:01]SAM_PROTO_GetShiftState [03:52:01]wFMCommunicate request_size=4 [03:52:01]MH_SAM_APDU [03:52:01]CAPDU: 80 13 01 00 [03:52:01]Write to MH i2c: E2 08 00 8F 1C 80 13 01 00 00 00 00 00 28 [03:52:01]Write i2c OK [03:52:01]MH_I2C_Read... [03:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:02]Read from MH i2c: E2 [03:52:02]MH_I2C_Read... [03:52:02]Read from MH i2c: E2 0E 00 [03:52:02]MH_I2C_Read... [03:52:02]Read from MH i2c: E2 0E 00 8F 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1C [03:52:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [03:52:02]wFMCommunicate OK [03:52:02]SAM_PROTO_GetShiftState done [03:52:02]FM_GetShiftState done [03:52:02]req_shift_opened done [03:52:02]requested_item shift.open_date is exist - process it [03:52:02]req_shift_open_date [03:52:02]req_shift_open_date done [03:52:02]produce_requested_data done [03:52:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29425,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [03:52:02]process_action_free close_receipt [03:52:02]json_value_free [03:52:02]json_value_free done [03:52:02]process_json_proto returns [03:52:02]Send response to host [03:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29425,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [03:52:02]free response buf [03:52:02]execute_script done [03:52:02]execute_script returns [03:52:02]free content buf [03:52:02]Sock 8.Close socket [03:52:02]Sock 8.Thread stoped [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:48]accept exits with 10 [04:24:48]New connection [04:24:48]New thread 3067112804 created [04:24:48]Thread 3066969444 joined [04:24:48]Waiting for new connection... [04:24:48] Sock 10.Parse request [04:24:48]Sock 10.Check first char [04:24:48]Sock 10.First char is OK [04:24:48]request: POST /json_proto HTTP/1.0 [04:24:48]Method: POST [04:24:48]URL: /json_proto [04:24:48]Method is POST - this is cgi request [04:24:48]url: /json_proto [04:24:48]query_string will be loaded in cgi processing [04:24:48]execute_cgi json_proto POST (null) [04:24:48]execute_cgi path=json_proto method=POST [04:24:48]POST find Content-Length [04:24:48]Host: 172.17.33.3:8080 [04:24:48]Content-Length: 677 [04:24:48]Content-Type: application/json [04:24:48] [04:24:48]POST finish read [04:24:48]Found Content-Length = 677 [04:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:48]execute_script... [04:24: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)347820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:48]POST & json_proto [04:24:48]process_json_proto [04:24:48]json parsed OK: [04:24:48]protocol is kg_v1.0 [04:24:48]action value=close_receipt [04:24:48]process_action close_receipt [04:24:48]cmd_close_receipt [04:24:48]MH_GetDate [04:24:48]Write to MH i2c: F0 00 00 90 1C 9B [04:24:48]Write i2c OK [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: F0 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: F0 09 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: F0 09 00 90 1C 00 13 AC 1C 66 23 5B 8F 65 57 [04:24:48]GetLastDocTimeStamp 1713153120 [04:24:48]current date 1713155091 [04:24:48]FM_GetShiftState [04:24:48]SAM_PROTO_GetShiftState [04:24:48]wFMCommunicate request_size=4 [04:24:48]MH_SAM_APDU [04:24:48]CAPDU: 80 13 01 00 [04:24:48]Write to MH i2c: E2 08 00 91 1C 80 13 01 00 00 00 00 00 2A [04:24:48]Write i2c OK [04:24:48]MH_I2C_Read... [04:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:48]Read from MH i2c: E2 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 0E 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 0E 00 91 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1E [04:24:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:24:48]wFMCommunicate OK [04:24:48]SAM_PROTO_GetShiftState done [04:24:48]FM_GetShiftState done [04:24:48]opened in 1713140468 [04:24:48]opened+sec_in_day 1713226868 [04:24:48]quantity*price = 45036 [04:24:48]sum+1 = 45037 [04:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 15.04.2024 04:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29426 ФПД: 146404214466374 1/tax-web-control/client/api/v1/ticket?date=20240415T042451&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29426&fm=146404214466374&tin=02508201610067®Number=0000138879044617&sum=45000 [04:24:49]StoreToDocumentArchive [04:24:49]shift 117 fd 29426 [04:24:49]save to /storage/0117/doc_00029426 [04:24:49]save last doc name /storage/0117/doc_00029426 to /storage/kkm_last_doc_name [04:24:49]save OK [04:24:49]Clear old archive folders... [04:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:24:49]tlvbuf is B6EE8300 [04:24:49]SAM_PROTO_ClearQueue [04:24:49]wFMCommunicate request_size=4 [04:24:49]MH_SAM_APDU [04:24:49]CAPDU: 80 09 00 00 [04:24:49]Write to MH i2c: E2 08 00 9E 1C 80 09 00 00 00 00 00 00 2C [04:24:49]Write i2c OK [04:24:49]MH_I2C_Read... [04:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:49]Read from MH i2c: E2 [04:24:49]MH_I2C_Read... [04:24:49]Read from MH i2c: E2 03 00 [04:24:49]MH_I2C_Read... [04:24:49]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [04:24:49]RAPDU: 90 00 [04:24:49]wFMCommunicate OK [04:24:49]SAM_PROTO_ClearQueue done [04:24:49]KKMCreateOFDPacket [04:24:49]OFDProtocolAddRootSTLVToBuf [04:24:49]FM_MakeSignedData [04:24:49]FM_MakeSignedData [04:24:49]SAM_PROTO_SignData [04:24:49]wFMCommunicate request_size=4 [04:24:49]MH_SAM_APDU [04:24:49]CAPDU: 80 0D 01 02 [04:24:49]Write to MH i2c: E2 08 00 9F 1C 80 0D 01 02 00 00 00 00 34 [04:24:49]Write i2c OK [04:24:49]MH_I2C_Read... [04:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:49]Read from MH i2c: E2 [04:24:49]MH_I2C_Read... [04:24:49]Read from MH i2c: E2 03 00 [04:24:49]MH_I2C_Read... [04:24:49]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [04:24:49]RAPDU: 90 00 [04:24:49]wFMCommunicate OK [04:24:49]wFMCommunicate request_size=255 [04:24:49]MH_SAM_APDU [04:24:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 13 AC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 72 00 00 35 04 06 00 85 [04:24:49]Write to MH i2c: E2 02 01 A0 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 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 13 AC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 72 00 00 35 04 06 00 85 00 00 91 [04:24:49]Write i2c OK [04:24:49]MH_I2C_Read... [04:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:50]Read from MH i2c: E2 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 03 00 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [04:24:50]RAPDU: 90 00 [04:24:50]wFMCommunicate OK [04:24:50]wFMCommunicate request_size=10 [04:24:50]MH_SAM_APDU [04:24:50]CAPDU: 80 0D 02 02 05 27 63 32 67 46 [04:24:50]Write to MH i2c: E2 0D 00 A1 1C 80 0D 02 02 05 00 27 63 32 67 46 00 00 AA [04:24:50]Write i2c OK [04:24:50]MH_I2C_Read... [04:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:50]Read from MH i2c: E2 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 03 00 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [04:24:50]RAPDU: 90 00 [04:24:50]wFMCommunicate OK [04:24:50]wFMCommunicate request_size=4 [04:24:50]MH_SAM_APDU [04:24:50]CAPDU: 80 0D 03 02 [04:24:50]Write to MH i2c: E2 08 00 A2 1C 80 0D 03 02 00 00 00 00 39 [04:24:50]Write i2c OK [04:24:50]MH_I2C_Read... [04:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:50]Read from MH i2c: E2 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 0B 00 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 0B 00 A2 1C 00 A5 BA 4E F5 EB 04 D3 D1 90 00 6F [04:24:50]RAPDU: A5 BA 4E F5 EB 04 D3 D1 90 00 [04:24:50]wFMCommunicate OK [04:24:50]SAM_PROTO_SignData done [04:24:50]FM_MakeSignedData done [04:24:50]CreateOFDProtocolMessage [04:24:50]wFMCommunicate request_size=4 [04:24:50]MH_SAM_APDU [04:24:50]CAPDU: 80 11 00 00 [04:24:50]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [04:24:50]Write i2c OK [04:24:50]MH_I2C_Read... [04:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:50]Read from MH i2c: E2 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 17 00 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [04:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:24:50]wFMCommunicate OK [04:24:50]CreateOFDProtocolMessage done [04:24:50]OFDSenderStorePacket 29426 [04:24:50]StoreOFDPacket docnum=29426 [04:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F7 46 07 01 3E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 13 AC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 72 00 00 35 04 06 00 85 27 63 32 67 46 A5 BA 4E F5 EB 04 D3 D1 [04:24:50]CheckFolder [04:24:50]dirname=/storage/ofd_packets [04:24:50]CheckFolder done [04:24:50]ProducePacketName [04:24:50]name=ofd_packets/00029426 [04:24:50]NVStorageSaveData ofd_packets/00029426 [04:24:50]File name is /storage/ofd_packets/00029426 [04:24:50]Write 301 bytes [04:24:50]NVStorageSaveData done [04:24:50]OFDSenderStorePacket done [04:24:50]KKMCreateOFDPacket done [04:24:50]NVStorageSaveData kkm_last_timestamp [04:24:50]File name is /storage/kkm_last_timestamp [04:24:50]Write 4 bytes [04:24:50]NVStorageSaveData done [04:24:50]ExternCall_PrintAddStr [04:24:50]wPrintStart [04:24:50]Write to MH i2c: 01 00 00 A4 1C C0 [04:24:50]Write i2c OK [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: 01 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: 01 07 00 [04:24:50]MH_I2C_Read... [04:24:50]Read from MH i2c: 01 07 00 A4 1C 00 00 00 00 00 FF 0F D5 [04:24:50]RasterBufferAndPrint [04:24:50]line Счет N : (1)347820 [04:24:50]line ИНН: 02508201610067 [04:24:50]line Контрольно-Кассовый Чек [04:24:50]line ПРОДАЖА [04:24:50]line ТРК (МРК, ГНК) : 32 [04:24:50]line Товар: 2710124130 [04:24:50]line Аи-92-К-5 [04:24:50]line 6.950 * 64.80 [04:24:50]line = 450.36 [04:24:50]line НДС 12% НСП 1% [04:24:50]line > о реализуемом товаре [04:24:50]line ОКРУГЛЕНИЕ: -0.36 [04:24:50]line ИТОГО: 450.00 [04:24:50]line Внесено: 450.00 [04:24:50]line СДАЧА: 0.00 [04:24:50]line НСП 1% : 3.98 [04:24:50]line НДС 12% : 47.83 [04:24:50]line Наличными: 450.00 [04:24:50]line Безнал.: 0.00 [04:24:50]line Место: АЗС № 108 "Партнер Нефть" [04:24:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:24:50]line СНО: Общий режим [04:24:50]line Чек 20 15.04.2024 04:24 [04:24:50]line Смена: 117 ФФД: 1.0 [04:24:50]line ЗНМ: 0300000027 [04:24:50]line РНМ: 0000138879044617 [04:24:50]line Версия ККМ: 001 [04:24:50]line ФМ: 0000000000963154 [04:24:50]line ФД: 29426 [04:24:50]line ФПД: 146404214466374 [04:24:50]line 1/tax-web-control/client/api/v1/ticket?date=20240415T042451&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29426&fm=146404214466374&tin=02508201610067®Number=0000138879044617&sum=45000 [04:24:50]OFD Sender: Processing packet 29426 [packets to send 8, broken 7] [04:24:50]ProducePacketName [04:24:50]name=ofd_packets/00029426 [04:24:50]OFD Sender: To server: pG, [04:24:50]CommunicateWithHost lk.salyk.kg:30040 [04:24:50]ConnectInit lk.salyk.kg [04:24:50]written 0, free lines is 4095 [04:24:50]Connected sock=9 [04:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F7 46 07 01 3E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 13 AC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 72 00 00 35 04 06 00 85 27 63 32 67 46 A5 BA 4E F5 EB 04 D3 D1 [04:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 88 8E 47 00 D2 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 39 36 33 31 35 34 10 04 04 00 F2 72 00 00 F4 03 04 00 B5 56 1C 66 B6 04 01 00 00 7F DC 6E AF 36 0E B4 B5 [04:24:50]CommunicateWithHost err = 0 [04:24:50]CheckOFDResponse [04:24:50]1017 (14) - 77093643461234 [04:24:50]1041 (16) - 0000000000963154 [04:24:50]1040 (4) - 29426 [04:24:50]1012 (4) - 14.04.2024 22:20 [04:24:50]1206 (1) - 0 [04:24:50]OFD Sender: Remove packet 29426 [04:24:50]ProducePacketName [04:24:50]name=ofd_packets/00029426 [04:24:50]NVStorageDeleteData [04:24:51]Write to MH i2c: 01 00 00 CE 1C EA [04:24:51]Write i2c OK [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: 01 [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: 01 07 00 [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: 01 07 00 CE 1C 00 00 00 00 00 C0 0C BD [04:24:51]RasterBufferAndPrint [04:24:51]line [04:24:51]line [04:24:51]line [04:24:51]line [04:24:51]line [04:24:51]written 0, free lines is 3268 [04:24:51]MH_Cut [04:24:51]Write to MH i2c: D1 01 00 D5 1C 01 C3 [04:24:51]Write i2c OK [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: D1 [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: D1 01 00 [04:24:51]MH_I2C_Read... [04:24:51]Read from MH i2c: D1 01 00 D5 1C 00 C2 [04:24:51]Write to MH i2c: 01 00 00 D6 1C F2 [04:24:51]Write i2c OK [04:24:51]MH_I2C_Read... [04:24:51]OFD Sender: No OFD packet to send [04:24:51]*** Cut start [04:24:51]*** Partial cut [04:24:51]*** CUTSNS_PIN = 1 [04:24:51]*** CUTSNS_PIN = 0 [04:24:52]*** Brake cut motor [04:24:52]Read from MH i2c: 01 [04:24:52]MH_I2C_Read... [04:24:52]*** Stop cut motor [04:24:52]*** Cut end [04:24:52]Read from MH i2c: 01 07 00 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 FF 0F 07 [04:24:52]process_action close_receipt done [04:24:52]requested_data is exist [04:24:52]produce_requested_data [04:24:52]requested_item fm.sn is exist - process it [04:24:52]wFMCommunicate request_size=4 [04:24:52]MH_SAM_APDU [04:24:52]CAPDU: 80 11 00 00 [04:24:52]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [04:24:52]Write i2c OK [04:24:52]MH_I2C_Read... [04:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:52]Read from MH i2c: E2 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 17 00 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [04:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:24:52]wFMCommunicate OK [04:24:52]requested_item fd.num is exist - process it [04:24:52]SAM_PROTO_GetFieldsCounters [04:24:52]wFMCommunicate request_size=4 [04:24:52]MH_SAM_APDU [04:24:52]CAPDU: 80 13 00 00 [04:24:52]Write to MH i2c: E2 08 00 D8 1C 80 13 00 00 00 00 00 00 70 [04:24:52]Write i2c OK [04:24:52]MH_I2C_Read... [04:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:52]Read from MH i2c: E2 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 62 00 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 62 00 D8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [04:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:52]wFMCommunicate OK [04:24:52]SAM_PROTO_GetFieldsCounters done [04:24:52]requested_item shift.num is exist - process it [04:24:52]requested_item shift.opened is exist - process it [04:24:52]req_shift_opened [04:24:52]FM_GetShiftState [04:24:52]SAM_PROTO_GetShiftState [04:24:52]wFMCommunicate request_size=4 [04:24:52]MH_SAM_APDU [04:24:52]CAPDU: 80 13 01 00 [04:24:52]Write to MH i2c: E2 08 00 D9 1C 80 13 01 00 00 00 00 00 72 [04:24:52]Write i2c OK [04:24:52]MH_I2C_Read... [04:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:52]Read from MH i2c: E2 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 0E 00 [04:24:52]MH_I2C_Read... [04:24:52]Read from MH i2c: E2 0E 00 D9 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [04:24:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:24:52]wFMCommunicate OK [04:24:52]SAM_PROTO_GetShiftState done [04:24:52]FM_GetShiftState done [04:24:52]req_shift_opened done [04:24:52]requested_item shift.open_date is exist - process it [04:24:52]req_shift_open_date [04:24:52]req_shift_open_date done [04:24:52]produce_requested_data done [04:24:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29426,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [04:24:52]process_action_free close_receipt [04:24:52]json_value_free [04:24:52]json_value_free done [04:24:52]process_json_proto returns [04:24:52]Send response to host [04:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29426,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [04:24:52]free response buf [04:24:52]execute_script done [04:24:52]execute_script returns [04:24:52]free content buf [04:24:52]Sock 10.Close socket [04:24:52]Sock 10.Thread stoped [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:36]int [04:25:36]Write to MH i2c: 01 00 00 DA 1C F6 [04:25:36]*** FLAG_PRN_KEY set [04:25:36]Write i2c OK [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 07 00 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 07 00 DA 1C 00 08 00 00 00 FF 0F 13 [04:25:36]state=0 [04:25:36]Key pressed [04:25:36]Feed [04:25:36]Write to MH i2c: D8 00 00 DB 1C CE [04:25:36]Write i2c OK [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: D8 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: D8 01 00 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: D8 01 00 DB 1C 00 CF [04:25:36]int [04:25:36]Write to MH i2c: 01 00 00 DC 1C F8 [04:25:36]Write i2c OK [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 07 00 [04:25:36]MH_I2C_Read... [04:25:36]Read from MH i2c: 01 07 00 DC 1C 00 48 00 00 00 3C 00 83 [04:25:36]state=2 [04:25:36]Key pressed [04:25:37]int [04:25:37]Write to MH i2c: 01 00 00 DD 1C F9 [04:25:37]*** FLAG_PRN_KEY reset [04:25:37]Write i2c OK [04:25:37]MH_I2C_Read... [04:25:37]Read from MH i2c: 01 [04:25:37]MH_I2C_Read... [04:25:37]Read from MH i2c: 01 07 00 [04:25:37]MH_I2C_Read... [04:25:37]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [04:25:37]state=2 [04:25:37]Stop feed [04:25:38]int [04:25:38]Write to MH i2c: 01 00 00 DE 1C FA [04:25:38]*** FLAG_PRN_KEY set [04:25:38]Write i2c OK [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 DE 1C 00 08 00 00 00 FF 0F 17 [04:25:38]state=0 [04:25:38]Key pressed [04:25:38]Feed [04:25:38]Write to MH i2c: D8 00 00 DF 1C D2 [04:25:38]Write i2c OK [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: D8 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: D8 01 00 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: D8 01 00 DF 1C 00 D3 [04:25:38]int [04:25:38]Write to MH i2c: 01 00 00 E0 1C FC [04:25:38]Write i2c OK [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 E0 1C 00 48 00 00 00 3C 00 87 [04:25:38]state=2 [04:25:38]Key pressed [04:25:38]int [04:25:38]Write to MH i2c: 01 00 00 E1 1C FD [04:25:38]*** FLAG_PRN_KEY reset [04:25:38]Write i2c OK [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 [04:25:38]MH_I2C_Read... [04:25:38]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 F6 0F 09 [04:25:38]state=2 [04:25:38]Stop feed [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34: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:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]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:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:33]accept exits with 8 [04:44:33]New connection [04:44:33]New thread 3066969444 created [04:44:33]Thread 3067112804 joined [04:44:33]Waiting for new connection... [04:44:33] Sock 8.Parse request [04:44:33]Sock 8.Check first char [04:44:33]Sock 8.First char is OK [04:44:33]request: POST /json_proto HTTP/1.0 [04:44:33]Method: POST [04:44:33]URL: /json_proto [04:44:33]Method is POST - this is cgi request [04:44:33]url: /json_proto [04:44:33]query_string will be loaded in cgi processing [04:44:33]execute_cgi json_proto POST (null) [04:44:33]execute_cgi path=json_proto method=POST [04:44:33]POST find Content-Length [04:44:33]Host: 172.17.33.3:8080 [04:44:33]Content-Length: 793 [04:44:33]Content-Type: application/json [04:44:33] [04:44:33]POST finish read [04:44:33]Found Content-Length = 793 [04:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:33]execute_script... [04:44: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)347821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:44:33]POST & json_proto [04:44:33]process_json_proto [04:44:33]json parsed OK: [04:44:33]protocol is kg_v1.0 [04:44:33]action value=close_receipt [04:44:33]process_action close_receipt [04:44:33]cmd_close_receipt [04:44:33]MH_GetDate [04:44:33]Write to MH i2c: F0 00 00 E2 1C ED [04:44:33]Write i2c OK [04:44:33]MH_I2C_Read... [04:44:33]Read from MH i2c: F0 [04:44:33]MH_I2C_Read... [04:44:33]Read from MH i2c: F0 09 00 [04:44:33]MH_I2C_Read... [04:44:33]Read from MH i2c: F0 09 00 E2 1C 00 B3 B0 1C 66 23 5B 8F 65 4D [04:44:33]GetLastDocTimeStamp 1713155091 [04:44:33]current date 1713156275 [04:44:33]FM_GetShiftState [04:44:33]SAM_PROTO_GetShiftState [04:44:33]wFMCommunicate request_size=4 [04:44:33]MH_SAM_APDU [04:44:33]CAPDU: 80 13 01 00 [04:44:33]Write to MH i2c: E2 08 00 E3 1C 80 13 01 00 00 00 00 00 7C [04:44:33]Write i2c OK [04:44:33]MH_I2C_Read... [04:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:33]Read from MH i2c: E2 [04:44:33]MH_I2C_Read... [04:44:33]Read from MH i2c: E2 0E 00 [04:44:33]MH_I2C_Read... [04:44:33]Read from MH i2c: E2 0E 00 E3 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 70 [04:44:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:44:33]wFMCommunicate OK [04:44:33]SAM_PROTO_GetShiftState done [04:44:33]FM_GetShiftState done [04:44:33]opened in 1713140468 [04:44:33]opened+sec_in_day 1713226868 [04:44:33]quantity*price = 100051 [04:44:33]sum+1 = 100052 [04:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 15.04.2024 04:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29427 ФПД: 181622030957955 1/tax-web-control/client/api/v1/ticket?date=20240415T044435&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29427&fm=181622030957955&tin=02508201610067®Number=0000138879044617&sum=100051 [04:44:34]StoreToDocumentArchive [04:44:34]shift 117 fd 29427 [04:44:34]save to /storage/0117/doc_00029427 [04:44:34]save last doc name /storage/0117/doc_00029427 to /storage/kkm_last_doc_name [04:44:34]save OK [04:44:34]Clear old archive folders... [04:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:44:34]tlvbuf is 0028DE20 [04:44:34]SAM_PROTO_ClearQueue [04:44:34]wFMCommunicate request_size=4 [04:44:34]MH_SAM_APDU [04:44:34]CAPDU: 80 09 00 00 [04:44:34]Write to MH i2c: E2 08 00 F0 1C 80 09 00 00 00 00 00 00 7E [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [04:44:34]RAPDU: 90 00 [04:44:34]wFMCommunicate OK [04:44:34]SAM_PROTO_ClearQueue done [04:44:34]KKMCreateOFDPacket [04:44:34]OFDProtocolAddRootSTLVToBuf [04:44:34]FM_MakeSignedData [04:44:34]FM_MakeSignedData [04:44:34]SAM_PROTO_SignData [04:44:34]wFMCommunicate request_size=4 [04:44:34]MH_SAM_APDU [04:44:34]CAPDU: 80 0D 01 02 [04:44:34]Write to MH i2c: E2 08 00 F1 1C 80 0D 01 02 00 00 00 00 86 [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [04:44:34]RAPDU: 90 00 [04:44:34]wFMCommunicate OK [04:44:34]wFMCommunicate request_size=255 [04:44:34]MH_SAM_APDU [04:44: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B3 B0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 72 00 00 35 04 06 00 A5 [04:44:34]Write to MH i2c: E2 02 01 F2 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B3 B0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 72 00 00 35 04 06 00 A5 00 00 4B [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [04:44:34]RAPDU: 90 00 [04:44:34]wFMCommunicate OK [04:44:34]wFMCommunicate request_size=10 [04:44:34]MH_SAM_APDU [04:44:34]CAPDU: 80 0D 02 02 05 2F 2C A3 7D 83 [04:44:34]Write to MH i2c: E2 0D 00 F3 1C 80 0D 02 02 05 00 2F 2C A3 7D 83 00 00 91 [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [04:44:34]RAPDU: 90 00 [04:44:34]wFMCommunicate OK [04:44:34]wFMCommunicate request_size=4 [04:44:34]MH_SAM_APDU [04:44:34]CAPDU: 80 0D 03 02 [04:44:34]Write to MH i2c: E2 08 00 F4 1C 80 0D 03 02 00 00 00 00 8B [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 0B 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 0B 00 F4 1C 00 10 6A CA 30 BF 4C CB CE 90 00 A4 [04:44:34]RAPDU: 10 6A CA 30 BF 4C CB CE 90 00 [04:44:34]wFMCommunicate OK [04:44:34]SAM_PROTO_SignData done [04:44:34]FM_MakeSignedData done [04:44:34]CreateOFDProtocolMessage [04:44:34]wFMCommunicate request_size=4 [04:44:34]MH_SAM_APDU [04:44:34]CAPDU: 80 11 00 00 [04:44:34]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:34]Read from MH i2c: E2 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 17 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [04:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:44:34]wFMCommunicate OK [04:44:34]CreateOFDProtocolMessage done [04:44:34]OFDSenderStorePacket 29427 [04:44:34]StoreOFDPacket docnum=29427 [04:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 FF 07 01 D2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B3 B0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 72 00 00 35 04 06 00 A5 2F 2C A3 7D 83 10 6A CA 30 BF 4C CB CE [04:44:34]CheckFolder [04:44:34]dirname=/storage/ofd_packets [04:44:34]CheckFolder done [04:44:34]ProducePacketName [04:44:34]name=ofd_packets/00029427 [04:44:34]NVStorageSaveData ofd_packets/00029427 [04:44:34]File name is /storage/ofd_packets/00029427 [04:44:34]Write 301 bytes [04:44:34]NVStorageSaveData done [04:44:34]OFDSenderStorePacket done [04:44:34]KKMCreateOFDPacket done [04:44:34]NVStorageSaveData kkm_last_timestamp [04:44:34]File name is /storage/kkm_last_timestamp [04:44:34]Write 4 bytes [04:44:34]NVStorageSaveData done [04:44:34]ExternCall_PrintAddStr [04:44:34]wPrintStart [04:44:34]Write to MH i2c: 01 00 00 F6 1C 12 [04:44:34]Write i2c OK [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: 01 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: 01 07 00 [04:44:34]MH_I2C_Read... [04:44:34]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 FF 0F 27 [04:44:34]RasterBufferAndPrint [04:44:34]line Счет N : (1)347821 [04:44:34]line ИНН: 02508201610067 [04:44:34]line Контрольно-Кассовый Чек [04:44:34]line ПРОДАЖА [04:44:34]line ТРК (МРК, ГНК) : 23 [04:44:34]line Товар: 2710124130 [04:44:34]line Аи-92-К-5 [04:44:34]line 15.440 * 64.80 [04:44:34]line = 1000.51 [04:44:34]line НДС 12% НСП 1% [04:44:34]line > о реализуемом товаре [04:44:34]line ИТОГО: 1000.51 [04:44:34]line НСП 1% : 8.85 [04:44:34]line НДС 12% : 106.25 [04:44:34]line Наличными: 0.00 [04:44:34]line Безнал.: 1000.51 [04:44:34]line Место: АЗС № 108 "Партнер Нефть" [04:44:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:44:34]line СНО: Общий режим [04:44:34]line Чек 21 15.04.2024 04:44 [04:44:34]line Смена: 117 ФФД: 1.0 [04:44:34]line ЗНМ: 0300000027 [04:44:34]line РНМ: 0000138879044617 [04:44:34]line Версия ККМ: 001 [04:44:34]line Платежная система: KICB Банк [04:44:34]line ФМ: 0000000000963154 [04:44:34]line ФД: 29427 [04:44:34]line ФПД: 181622030957955 [04:44:34]line 1/tax-web-control/client/api/v1/ticket?date=20240415T044435&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29427&fm=181622030957955&tin=02508201610067®Number=0000138879044617&sum=100051 [04:44:35]OFD Sender: Processing packet 29427 [packets to send 8, broken 7] [04:44:35]ProducePacketName [04:44:35]name=ofd_packets/00029427 [04:44:35]OFD Sender: To server: pG, [04:44:35]CommunicateWithHost lk.salyk.kg:30040 [04:44:35]ConnectInit lk.salyk.kg [04:44:35]written 0, free lines is 4095 [04:44:35]Connected sock=10 [04:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 FF 07 01 D2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 B3 B0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 72 00 00 35 04 06 00 A5 2F 2C A3 7D 83 10 6A CA 30 BF 4C CB CE [04:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B E1 47 00 FA 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 39 36 33 31 35 34 10 04 04 00 F3 72 00 00 F4 03 04 00 55 5B 1C 66 B6 04 01 00 00 DB 48 87 08 68 0B 59 0A [04:44:35]CommunicateWithHost err = 0 [04:44:35]CheckOFDResponse [04:44:35]1017 (14) - 77093643461234 [04:44:35]1041 (16) - 0000000000963154 [04:44:35]1040 (4) - 29427 [04:44:35]1012 (4) - 14.04.2024 22:40 [04:44:35]1206 (1) - 0 [04:44:35]OFD Sender: Remove packet 29427 [04:44:35]ProducePacketName [04:44:35]name=ofd_packets/00029427 [04:44:35]NVStorageDeleteData [04:44:35]Write to MH i2c: 01 00 00 1F 1D 3C [04:44:35]Write i2c OK [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: 01 [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: 01 07 00 [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: 01 07 00 1F 1D 00 00 00 00 00 D7 0C 26 [04:44:35]RasterBufferAndPrint [04:44:35]line [04:44:35]line [04:44:35]line [04:44:35]line [04:44:35]line [04:44:35]written 0, free lines is 3294 [04:44:35]MH_Cut [04:44:35]Write to MH i2c: D1 01 00 26 1D 01 15 [04:44:35]Write i2c OK [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: D1 [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: D1 01 00 [04:44:35]MH_I2C_Read... [04:44:35]Read from MH i2c: D1 01 00 26 1D 00 14 [04:44:35]Write to MH i2c: 01 00 00 27 1D 44 [04:44:35]Write i2c OK [04:44:35]MH_I2C_Read... [04:44:35]OFD Sender: No OFD packet to send [04:44:36]*** Cut start [04:44:36]*** Partial cut [04:44:36]*** CUTSNS_PIN = 1 [04:44:36]*** CUTSNS_PIN = 0 [04:44:36]*** Brake cut motor [04:44:36]Read from MH i2c: 01 [04:44:36]MH_I2C_Read... [04:44:36]*** Stop cut motor [04:44:36]*** Cut end [04:44:36]Read from MH i2c: 01 07 00 [04:44:36]MH_I2C_Read... [04:44:36]Read from MH i2c: 01 07 00 27 1D 00 00 00 00 00 FF 0F 59 [04:44:36]process_action close_receipt done [04:44:36]requested_data is exist [04:44:36]produce_requested_data [04:44:36]requested_item fm.sn is exist - process it [04:44:36]wFMCommunicate request_size=4 [04:44:36]MH_SAM_APDU [04:44:36]CAPDU: 80 11 00 00 [04:44:36]Write to MH i2c: E2 08 00 28 1D 80 11 00 00 00 00 00 00 BF [04:44:36]Write i2c OK [04:44:36]MH_I2C_Read... [04:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:36]Read from MH i2c: E2 [04:44:36]MH_I2C_Read... [04:44:36]Read from MH i2c: E2 17 00 [04:44:36]MH_I2C_Read... [04:44:36]Read from MH i2c: E2 17 00 28 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [04:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:44:36]wFMCommunicate OK [04:44:36]requested_item fd.num is exist - process it [04:44:36]SAM_PROTO_GetFieldsCounters [04:44:36]wFMCommunicate request_size=4 [04:44:36]MH_SAM_APDU [04:44:36]CAPDU: 80 13 00 00 [04:44:36]Write to MH i2c: E2 08 00 29 1D 80 13 00 00 00 00 00 00 C2 [04:44:36]Write i2c OK [04:44:36]MH_I2C_Read... [04:44:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:44:37]Read from MH i2c: E2 [04:44:37]MH_I2C_Read... [04:44:37]Read from MH i2c: E2 62 00 [04:44:37]MH_I2C_Read... [04:44:37]Read from MH i2c: E2 62 00 29 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [04:44:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:44:37]wFMCommunicate OK [04:44:37]SAM_PROTO_GetFieldsCounters done [04:44:37]requested_item shift.num is exist - process it [04:44:37]requested_item shift.opened is exist - process it [04:44:37]req_shift_opened [04:44:37]FM_GetShiftState [04:44:37]SAM_PROTO_GetShiftState [04:44:37]wFMCommunicate request_size=4 [04:44:37]MH_SAM_APDU [04:44:37]CAPDU: 80 13 01 00 [04:44:37]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [04:44:37]Write i2c OK [04:44:37]MH_I2C_Read... [04:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:37]Read from MH i2c: E2 [04:44:37]MH_I2C_Read... [04:44:37]Read from MH i2c: E2 0E 00 [04:44:37]MH_I2C_Read... [04:44:37]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B8 [04:44:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:44:37]wFMCommunicate OK [04:44:37]SAM_PROTO_GetShiftState done [04:44:37]FM_GetShiftState done [04:44:37]req_shift_opened done [04:44:37]requested_item shift.open_date is exist - process it [04:44:37]req_shift_open_date [04:44:37]req_shift_open_date done [04:44:37]produce_requested_data done [04:44:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29427,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [04:44:37]process_action_free close_receipt [04:44:37]json_value_free [04:44:37]json_value_free done [04:44:37]process_json_proto returns [04:44:37]Send response to host [04:44:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29427,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [04:44:37]free response buf [04:44:37]execute_script done [04:44:37]execute_script returns [04:44:37]free content buf [04:44:37]Sock 8.Close socket [04:44:37]Sock 8.Thread stoped [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:58:56]accept exits with 9 [04:58:56]New connection [04:58:56]New thread 3067112804 created [04:58:56]Thread 3066969444 joined [04:58:56]Waiting for new connection... [04:58:56] Sock 9.Parse request [04:58:56]Sock 9.Check first char [04:58:56]Sock 9.First char is OK [04:58:56]request: POST /json_proto HTTP/1.0 [04:58:56]Method: POST [04:58:56]URL: /json_proto [04:58:56]Method is POST - this is cgi request [04:58:56]url: /json_proto [04:58:56]query_string will be loaded in cgi processing [04:58:56]execute_cgi json_proto POST (null) [04:58:56]execute_cgi path=json_proto method=POST [04:58:56]POST find Content-Length [04:58:56]Host: 172.17.33.3:8080 [04:58:56]Content-Length: 840 [04:58:56]Content-Type: application/json [04:58:56] [04:58:56]POST finish read [04:58:56]Found Content-Length = 840 [04:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:56]execute_script... [04:58: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)347822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:56]POST & json_proto [04:58:56]process_json_proto [04:58:56]json parsed OK: [04:58:56]protocol is kg_v1.0 [04:58:56]action value=close_receipt [04:58:56]process_action close_receipt [04:58:56]cmd_close_receipt [04:58:56]MH_GetDate [04:58:56]Write to MH i2c: F0 00 00 2B 1D 37 [04:58:56]Write i2c OK [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: F0 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: F0 09 00 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: F0 09 00 2B 1D 00 13 B4 1C 66 23 5B 8F 65 FB [04:58:56]GetLastDocTimeStamp 1713156275 [04:58:56]current date 1713157139 [04:58:56]FM_GetShiftState [04:58:56]SAM_PROTO_GetShiftState [04:58:56]wFMCommunicate request_size=4 [04:58:56]MH_SAM_APDU [04:58:56]CAPDU: 80 13 01 00 [04:58:56]Write to MH i2c: E2 08 00 2C 1D 80 13 01 00 00 00 00 00 C6 [04:58:56]Write i2c OK [04:58:56]MH_I2C_Read... [04:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:56]Read from MH i2c: E2 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: E2 0E 00 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: E2 0E 00 2C 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BA [04:58:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:58:56]wFMCommunicate OK [04:58:56]SAM_PROTO_GetShiftState done [04:58:56]FM_GetShiftState done [04:58:56]opened in 1713140468 [04:58:56]opened+sec_in_day 1713226868 [04:58:56]quantity*price = 50025 [04:58:56]sum+1 = 50027 [04:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 15.04.2024 04:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29428 ФПД: 33473185769418 1/tax-web-control/client/api/v1/ticket?date=20240415T045859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29428&fm=33473185769418&tin=02508201610067®Number=0000138879044617&sum=50026 [04:58:58]StoreToDocumentArchive [04:58:58]shift 117 fd 29428 [04:58:58]save to /storage/0117/doc_00029428 [04:58:58]save last doc name /storage/0117/doc_00029428 to /storage/kkm_last_doc_name [04:58:58]save OK [04:58:58]Clear old archive folders... [04:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:58:58]tlvbuf is B6ECF6D0 [04:58:58]SAM_PROTO_ClearQueue [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 09 00 00 [04:58:58]Write to MH i2c: E2 08 00 39 1D 80 09 00 00 00 00 00 00 C8 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_ClearQueue done [04:58:58]KKMCreateOFDPacket [04:58:58]OFDProtocolAddRootSTLVToBuf [04:58:58]FM_MakeSignedData [04:58:58]FM_MakeSignedData [04:58:58]SAM_PROTO_SignData [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 01 02 [04:58:58]Write to MH i2c: E2 08 00 3A 1D 80 0D 01 02 00 00 00 00 D0 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=255 [04:58:58]MH_SAM_APDU [04:58: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 13 B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 72 00 00 35 04 06 00 1E [04:58:58]Write to MH i2c: E2 02 01 3B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 13 B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 72 00 00 35 04 06 00 1E 00 00 15 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=10 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 02 02 05 71 95 58 E7 CA [04:58:58]Write to MH i2c: E2 0D 00 3C 1D 80 0D 02 02 05 00 71 95 58 E7 CA 00 00 EC [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [04:58:58]RAPDU: 90 00 [04:58:58]wFMCommunicate OK [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 0D 03 02 [04:58:58]Write to MH i2c: E2 08 00 3D 1D 80 0D 03 02 00 00 00 00 D5 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0B 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0B 00 3D 1D 00 E8 54 D0 0C C6 44 72 E4 90 00 4E [04:58:58]RAPDU: E8 54 D0 0C C6 44 72 E4 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_SignData done [04:58:58]FM_MakeSignedData done [04:58:58]CreateOFDProtocolMessage [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 11 00 00 [04:58:58]Write to MH i2c: E2 08 00 3E 1D 80 11 00 00 00 00 00 00 D5 [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 17 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 17 00 3E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [04:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:58:58]wFMCommunicate OK [04:58:58]CreateOFDProtocolMessage done [04:58:58]OFDSenderStorePacket 29428 [04:58:58]StoreOFDPacket docnum=29428 [04:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 0F 07 01 19 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 13 B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 72 00 00 35 04 06 00 1E 71 95 58 E7 CA E8 54 D0 0C C6 44 72 E4 [04:58:58]CheckFolder [04:58:58]dirname=/storage/ofd_packets [04:58:58]CheckFolder done [04:58:58]ProducePacketName [04:58:58]name=ofd_packets/00029428 [04:58:58]NVStorageSaveData ofd_packets/00029428 [04:58:58]File name is /storage/ofd_packets/00029428 [04:58:58]Write 301 bytes [04:58:58]NVStorageSaveData done [04:58:58]OFDSenderStorePacket done [04:58:58]KKMCreateOFDPacket done [04:58:58]NVStorageSaveData kkm_last_timestamp [04:58:58]File name is /storage/kkm_last_timestamp [04:58:58]Write 4 bytes [04:58:58]NVStorageSaveData done [04:58:58]ExternCall_PrintAddStr [04:58:58]wPrintStart [04:58:58]Write to MH i2c: 01 00 00 3F 1D 5C [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 07 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 FF 0F 71 [04:58:58]RasterBufferAndPrint [04:58:58]line Счет N : (1)347822 [04:58:58]line ИНН: 02508201610067 [04:58:58]line Контрольно-Кассовый Чек [04:58:58]line ПРОДАЖА [04:58:58]line ТРК (МРК, ГНК) : 32 [04:58:58]line Товар: 2710124130 [04:58:58]line Аи-92-К-5 [04:58:58]line 7.720 * 64.80 [04:58:58]line = 500.26 [04:58:58]line НДС 12% НСП 1% [04:58:58]line > о реализуемом товаре [04:58:58]line ИТОГО: 500.26 [04:58:58]line НСП 1% : 4.43 [04:58:58]line НДС 12% : 53.12 [04:58:58]line Наличными: 0.00 [04:58:58]line Безнал.: 500.26 [04:58:58]line Место: АЗС № 108 "Партнер Нефть" [04:58:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:58:58]line СНО: Общий режим [04:58:58]line Чек 22 15.04.2024 04:58 [04:58:58]line Смена: 117 ФФД: 1.0 [04:58:58]line ЗНМ: 0300000027 [04:58:58]line РНМ: 0000138879044617 [04:58:58]line Версия ККМ: 001 [04:58:58]line Платежная система: АКБ Кыргызстан [04:58:58]line ФМ: 0000000000963154 [04:58:58]line ФД: 29428 [04:58:58]line ФПД: 33473185769418 [04:58:58]line 1/tax-web-control/client/api/v1/ticket?date=20240415T045859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29428&fm=33473185769418&tin=02508201610067®Number=0000138879044617&sum=50026 [04:58:58]OFD Sender: Processing packet 29428 [packets to send 8, broken 7] [04:58:58]ProducePacketName [04:58:58]name=ofd_packets/00029428 [04:58:58]OFD Sender: To server: pG, [04:58:58]CommunicateWithHost lk.salyk.kg:30040 [04:58:58]ConnectInit lk.salyk.kg [04:58:58]written 0, free lines is 4095 [04:58:59]Connected sock=10 [04:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 0F 07 01 19 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 13 B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 72 00 00 35 04 06 00 1E 71 95 58 E7 CA E8 54 D0 0C C6 44 72 E4 [04:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 67 EF 47 00 DB 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 39 36 33 31 35 34 10 04 04 00 F4 72 00 00 F4 03 04 00 B5 5E 1C 66 B6 04 01 00 00 9F D6 26 9E A6 24 E4 17 [04:58:59]CommunicateWithHost err = 0 [04:58:59]CheckOFDResponse [04:58:59]1017 (14) - 77093643461234 [04:58:59]1041 (16) - 0000000000963154 [04:58:59]1040 (4) - 29428 [04:58:59]1012 (4) - 14.04.2024 22:54 [04:58:59]1206 (1) - 0 [04:58:59]OFD Sender: Remove packet 29428 [04:58:59]ProducePacketName [04:58:59]name=ofd_packets/00029428 [04:58:59]NVStorageDeleteData [04:58:59]Write to MH i2c: 01 00 00 68 1D 85 [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 07 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: 01 07 00 68 1D 00 00 00 00 00 E6 0C 7E [04:58:59]RasterBufferAndPrint [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]line [04:58:59]written 0, free lines is 3308 [04:58:59]MH_Cut [04:58:59]Write to MH i2c: D1 01 00 6F 1D 01 5E [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 01 00 [04:58:59]MH_I2C_Read... [04:58:59]Read from MH i2c: D1 01 00 6F 1D 00 5D [04:58:59]Write to MH i2c: 01 00 00 70 1D 8D [04:58:59]Write i2c OK [04:58:59]MH_I2C_Read... [04:58:59]OFD Sender: No OFD packet to send [04:59:00]*** Cut start [04:59:00]*** Partial cut [04:59:00]*** CUTSNS_PIN = 1 [04:59:00]*** CUTSNS_PIN = 0 [04:59:00]*** Brake cut motor [04:59:00]Read from MH i2c: 01 [04:59:00]MH_I2C_Read... [04:59:00]*** Stop cut motor [04:59:00]*** Cut end [04:59:00]Read from MH i2c: 01 07 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: 01 07 00 70 1D 00 00 00 00 00 FF 0F A2 [04:59:00]process_action close_receipt done [04:59:00]requested_data is exist [04:59:00]produce_requested_data [04:59:00]requested_item fm.sn is exist - process it [04:59:00]wFMCommunicate request_size=4 [04:59:00]MH_SAM_APDU [04:59:00]CAPDU: 80 11 00 00 [04:59:00]Write to MH i2c: E2 08 00 71 1D 80 11 00 00 00 00 00 00 08 [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:00]Read from MH i2c: E2 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 17 00 [04:59:00]MH_I2C_Read... [04:59:00]Read from MH i2c: E2 17 00 71 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 57 [04:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:59:00]wFMCommunicate OK [04:59:00]requested_item fd.num is exist - process it [04:59:00]SAM_PROTO_GetFieldsCounters [04:59:00]wFMCommunicate request_size=4 [04:59:00]MH_SAM_APDU [04:59:00]CAPDU: 80 13 00 00 [04:59:00]Write to MH i2c: E2 08 00 72 1D 80 13 00 00 00 00 00 00 0B [04:59:00]Write i2c OK [04:59:00]MH_I2C_Read... [04:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:01]Read from MH i2c: E2 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 62 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 62 00 72 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [04:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:01]wFMCommunicate OK [04:59:01]SAM_PROTO_GetFieldsCounters done [04:59:01]requested_item shift.num is exist - process it [04:59:01]requested_item shift.opened is exist - process it [04:59:01]req_shift_opened [04:59:01]FM_GetShiftState [04:59:01]SAM_PROTO_GetShiftState [04:59:01]wFMCommunicate request_size=4 [04:59:01]MH_SAM_APDU [04:59:01]CAPDU: 80 13 01 00 [04:59:01]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [04:59:01]Write i2c OK [04:59:01]MH_I2C_Read... [04:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:01]Read from MH i2c: E2 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 0E 00 [04:59:01]MH_I2C_Read... [04:59:01]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 01 [04:59:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [04:59:01]wFMCommunicate OK [04:59:01]SAM_PROTO_GetShiftState done [04:59:01]FM_GetShiftState done [04:59:01]req_shift_opened done [04:59:01]requested_item shift.open_date is exist - process it [04:59:01]req_shift_open_date [04:59:01]req_shift_open_date done [04:59:01]produce_requested_data done [04:59:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29428,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [04:59:01]process_action_free close_receipt [04:59:01]json_value_free [04:59:01]json_value_free done [04:59:01]process_json_proto returns [04:59:01]Send response to host [04:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29428,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [04:59:01]free response buf [04:59:01]execute_script done [04:59:01]execute_script returns [04:59:01]free content buf [04:59:01]Sock 9.Close socket [04:59:01]Sock 9.Thread stoped [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:42]accept exits with 8 [05:00:42]New connection [05:00:42]New thread 3066969444 created [05:00:42]Thread 3067112804 joined [05:00:42]Waiting for new connection... [05:00:42] Sock 8.Parse request [05:00:42]Sock 8.Check first char [05:00:42]Sock 8.First char is OK [05:00:42]request: POST /json_proto HTTP/1.0 [05:00:42]Method: POST [05:00:42]URL: /json_proto [05:00:42]Method is POST - this is cgi request [05:00:42]url: /json_proto [05:00:42]query_string will be loaded in cgi processing [05:00:42]execute_cgi json_proto POST (null) [05:00:42]execute_cgi path=json_proto method=POST [05:00:42]POST find Content-Length [05:00:42]Host: 172.17.33.3:8080 [05:00:42]Content-Length: 836 [05:00:42]Content-Type: application/json [05:00:42] [05:00:42]POST finish read [05:00:42]Found Content-Length = 836 [05:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:42]execute_script... [05:00: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)347823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:42]POST & json_proto [05:00:42]process_json_proto [05:00:42]json parsed OK: [05:00:42]protocol is kg_v1.0 [05:00:42]action value=close_receipt [05:00:42]process_action close_receipt [05:00:42]cmd_close_receipt [05:00:42]MH_GetDate [05:00:42]Write to MH i2c: F0 00 00 74 1D 80 [05:00:42]Write i2c OK [05:00:42]MH_I2C_Read... [05:00:42]Read from MH i2c: F0 [05:00:42]MH_I2C_Read... [05:00:42]Read from MH i2c: F0 09 00 [05:00:42]MH_I2C_Read... [05:00:42]Read from MH i2c: F0 09 00 74 1D 00 7D B4 1C 66 23 5B 8F 65 AE [05:00:42]GetLastDocTimeStamp 1713157139 [05:00:42]current date 1713157245 [05:00:42]FM_GetShiftState [05:00:42]SAM_PROTO_GetShiftState [05:00:42]wFMCommunicate request_size=4 [05:00:42]MH_SAM_APDU [05:00:42]CAPDU: 80 13 01 00 [05:00:42]Write to MH i2c: E2 08 00 75 1D 80 13 01 00 00 00 00 00 0F [05:00:42]Write i2c OK [05:00:42]MH_I2C_Read... [05:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:42]Read from MH i2c: E2 [05:00:42]MH_I2C_Read... [05:00:42]Read from MH i2c: E2 0E 00 [05:00:42]MH_I2C_Read... [05:00:42]Read from MH i2c: E2 0E 00 75 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 03 [05:00:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [05:00:42]wFMCommunicate OK [05:00:42]SAM_PROTO_GetShiftState done [05:00:42]FM_GetShiftState done [05:00:42]opened in 1713140468 [05:00:42]opened+sec_in_day 1713226868 [05:00:42]quantity*price = 200032 [05:00:42]sum+1 = 200033 [05:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 15.04.2024 05:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29429 ФПД: 91992374168647 1/tax-web-control/client/api/v1/ticket?date=20240415T050045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29429&fm=91992374168647&tin=02508201610067®Number=0000138879044617&sum=200032 [05:00:44]StoreToDocumentArchive [05:00:44]shift 117 fd 29429 [05:00:44]save to /storage/0117/doc_00029429 [05:00:44]save last doc name /storage/0117/doc_00029429 to /storage/kkm_last_doc_name [05:00:44]save OK [05:00:44]Clear old archive folders... [05:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:00:44]tlvbuf is 0028DED0 [05:00:44]SAM_PROTO_ClearQueue [05:00:44]wFMCommunicate request_size=4 [05:00:44]MH_SAM_APDU [05:00:44]CAPDU: 80 09 00 00 [05:00:44]Write to MH i2c: E2 08 00 82 1D 80 09 00 00 00 00 00 00 11 [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [05:00:44]RAPDU: 90 00 [05:00:44]wFMCommunicate OK [05:00:44]SAM_PROTO_ClearQueue done [05:00:44]KKMCreateOFDPacket [05:00:44]OFDProtocolAddRootSTLVToBuf [05:00:44]FM_MakeSignedData [05:00:44]FM_MakeSignedData [05:00:44]SAM_PROTO_SignData [05:00:44]wFMCommunicate request_size=4 [05:00:44]MH_SAM_APDU [05:00:44]CAPDU: 80 0D 01 02 [05:00:44]Write to MH i2c: E2 08 00 83 1D 80 0D 01 02 00 00 00 00 19 [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [05:00:44]RAPDU: 90 00 [05:00:44]wFMCommunicate OK [05:00:44]wFMCommunicate request_size=255 [05:00:44]MH_SAM_APDU [05:00: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7D B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 72 00 00 35 04 06 00 [05:00:44]Write to MH i2c: E2 02 01 84 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7D B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 72 00 00 35 04 06 00 00 00 1F [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [05:00:44]RAPDU: 90 00 [05:00:44]wFMCommunicate OK [05:00:44]wFMCommunicate request_size=11 [05:00:44]MH_SAM_APDU [05:00:44]CAPDU: 80 0D 02 02 06 53 AA A4 C8 CC 47 [05:00:44]Write to MH i2c: E2 0E 00 85 1D 80 0D 02 02 06 00 53 AA A4 C8 CC 47 00 00 A4 [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [05:00:44]RAPDU: 90 00 [05:00:44]wFMCommunicate OK [05:00:44]wFMCommunicate request_size=4 [05:00:44]MH_SAM_APDU [05:00:44]CAPDU: 80 0D 03 02 [05:00:44]Write to MH i2c: E2 08 00 86 1D 80 0D 03 02 00 00 00 00 1E [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 0B 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 0B 00 86 1D 00 F1 86 B3 10 2B 35 21 6C 90 00 46 [05:00:44]RAPDU: F1 86 B3 10 2B 35 21 6C 90 00 [05:00:44]wFMCommunicate OK [05:00:44]SAM_PROTO_SignData done [05:00:44]FM_MakeSignedData done [05:00:44]CreateOFDProtocolMessage [05:00:44]wFMCommunicate request_size=4 [05:00:44]MH_SAM_APDU [05:00:44]CAPDU: 80 11 00 00 [05:00:44]Write to MH i2c: E2 08 00 87 1D 80 11 00 00 00 00 00 00 1E [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:44]Read from MH i2c: E2 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 17 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: E2 17 00 87 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [05:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:00:44]wFMCommunicate OK [05:00:44]CreateOFDProtocolMessage done [05:00:44]OFDSenderStorePacket 29429 [05:00:44]StoreOFDPacket docnum=29429 [05:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 54 BD 08 01 24 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7D B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 72 00 00 35 04 06 00 53 AA A4 C8 CC 47 F1 86 B3 10 2B 35 21 6C [05:00:44]CheckFolder [05:00:44]dirname=/storage/ofd_packets [05:00:44]CheckFolder done [05:00:44]ProducePacketName [05:00:44]name=ofd_packets/00029429 [05:00:44]NVStorageSaveData ofd_packets/00029429 [05:00:44]File name is /storage/ofd_packets/00029429 [05:00:44]Write 302 bytes [05:00:44]NVStorageSaveData done [05:00:44]OFDSenderStorePacket done [05:00:44]KKMCreateOFDPacket done [05:00:44]NVStorageSaveData kkm_last_timestamp [05:00:44]File name is /storage/kkm_last_timestamp [05:00:44]Write 4 bytes [05:00:44]NVStorageSaveData done [05:00:44]ExternCall_PrintAddStr [05:00:44]wPrintStart [05:00:44]Write to MH i2c: 01 00 00 88 1D A5 [05:00:44]Write i2c OK [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: 01 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: 01 07 00 [05:00:44]MH_I2C_Read... [05:00:44]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 FF 0F BA [05:00:44]RasterBufferAndPrint [05:00:44]line Счет N : (1)347823 [05:00:44]line ИНН: 02508201610067 [05:00:44]line Контрольно-Кассовый Чек [05:00:44]line ПРОДАЖА [05:00:44]line ТРК (МРК, ГНК) : 12 [05:00:44]line Товар: 2710124130 [05:00:44]line SUPER-92-К-5 [05:00:44]line 30.400 * 65.80 [05:00:44]line = 2000.32 [05:00:44]line НДС 12% НСП 1% [05:00:44]line > о реализуемом товаре [05:00:44]line ИТОГО: 2000.32 [05:00:44]line НСП 1% : 17.70 [05:00:44]line НДС 12% : 212.42 [05:00:44]line Наличными: 0.00 [05:00:44]line Безнал.: 2000.32 [05:00:44]line Место: АЗС № 108 "Партнер Нефть" [05:00:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:00:44]line СНО: Общий режим [05:00:44]line Чек 23 15.04.2024 05:00 [05:00:44]line Смена: 117 ФФД: 1.0 [05:00:44]line ЗНМ: 0300000027 [05:00:44]line РНМ: 0000138879044617 [05:00:44]line Версия ККМ: 001 [05:00:44]line Платежная система: АКБ Кыргызстан [05:00:44]line ФМ: 0000000000963154 [05:00:44]line ФД: 29429 [05:00:44]line ФПД: 91992374168647 [05:00:44]line 1/tax-web-control/client/api/v1/ticket?date=20240415T050045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29429&fm=91992374168647&tin=02508201610067®Number=0000138879044617&sum=200032 [05:00:44]OFD Sender: Processing packet 29429 [packets to send 8, broken 7] [05:00:44]ProducePacketName [05:00:44]name=ofd_packets/00029429 [05:00:44]OFD Sender: To server: pG, [05:00:44]CommunicateWithHost lk.salyk.kg:30040 [05:00:44]ConnectInit lk.salyk.kg [05:00:44]written 0, free lines is 4095 [05:00:45]Connected sock=11 [05:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 54 BD 08 01 24 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7D B4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 72 00 00 35 04 06 00 53 AA A4 C8 CC 47 F1 86 B3 10 2B 35 21 6C [05:00:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD 88 47 00 16 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 72 00 00 F4 03 04 00 1F 5F 1C 66 B6 04 01 00 00 DF 56 ED DD F8 5C D0 6B [05:00:45]CommunicateWithHost err = 0 [05:00:45]CheckOFDResponse [05:00:45]1017 (14) - 77093643461234 [05:00:45]1041 (16) - 0000000000963154 [05:00:45]1040 (4) - 29429 [05:00:45]1012 (4) - 14.04.2024 22:56 [05:00:45]1206 (1) - 0 [05:00:45]OFD Sender: Remove packet 29429 [05:00:45]ProducePacketName [05:00:45]name=ofd_packets/00029429 [05:00:45]NVStorageDeleteData [05:00:45]Write to MH i2c: 01 00 00 B1 1D CE [05:00:45]Write i2c OK [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: 01 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: 01 07 00 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: 01 07 00 B1 1D 00 00 00 00 00 E8 0C C9 [05:00:45]RasterBufferAndPrint [05:00:45]line [05:00:45]line [05:00:45]line [05:00:45]line [05:00:45]line [05:00:45]written 0, free lines is 3310 [05:00:45]MH_Cut [05:00:45]Write to MH i2c: D1 01 00 B8 1D 01 A7 [05:00:45]Write i2c OK [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: D1 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: D1 01 00 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: D1 01 00 B8 1D 00 A6 [05:00:45]Write to MH i2c: 01 00 00 B9 1D D6 [05:00:45]Write i2c OK [05:00:45]MH_I2C_Read... [05:00:45]OFD Sender: No OFD packet to send [05:00:46]*** Cut start [05:00:46]*** Partial cut [05:00:46]*** CUTSNS_PIN = 1 [05:00:46]*** CUTSNS_PIN = 0 [05:00:46]*** Brake cut motor [05:00:46]Read from MH i2c: 01 [05:00:46]MH_I2C_Read... [05:00:46]*** Stop cut motor [05:00:46]*** Cut end [05:00:46]Read from MH i2c: 01 07 00 [05:00:46]MH_I2C_Read... [05:00:46]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [05:00:46]process_action close_receipt done [05:00:46]requested_data is exist [05:00:46]produce_requested_data [05:00:46]requested_item fm.sn is exist - process it [05:00:46]wFMCommunicate request_size=4 [05:00:46]MH_SAM_APDU [05:00:46]CAPDU: 80 11 00 00 [05:00:46]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [05:00:46]Write i2c OK [05:00:46]MH_I2C_Read... [05:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:46]Read from MH i2c: E2 [05:00:46]MH_I2C_Read... [05:00:46]Read from MH i2c: E2 17 00 [05:00:46]MH_I2C_Read... [05:00:46]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [05:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:00:46]wFMCommunicate OK [05:00:46]requested_item fd.num is exist - process it [05:00:46]SAM_PROTO_GetFieldsCounters [05:00:46]wFMCommunicate request_size=4 [05:00:46]MH_SAM_APDU [05:00:46]CAPDU: 80 13 00 00 [05:00:46]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [05:00:46]Write i2c OK [05:00:46]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 62 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 62 00 BB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [05:00:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:00:47]wFMCommunicate OK [05:00:47]SAM_PROTO_GetFieldsCounters done [05:00:47]requested_item shift.num is exist - process it [05:00:47]requested_item shift.opened is exist - process it [05:00:47]req_shift_opened [05:00:47]FM_GetShiftState [05:00:47]SAM_PROTO_GetShiftState [05:00:47]wFMCommunicate request_size=4 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 13 01 00 [05:00:47]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [05:00:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [05:00:47]wFMCommunicate OK [05:00:47]SAM_PROTO_GetShiftState done [05:00:47]FM_GetShiftState done [05:00:47]req_shift_opened done [05:00:47]requested_item shift.open_date is exist - process it [05:00:47]req_shift_open_date [05:00:47]req_shift_open_date done [05:00:47]produce_requested_data done [05:00:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29429,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [05:00:47]process_action_free close_receipt [05:00:47]json_value_free [05:00:47]json_value_free done [05:00:47]process_json_proto returns [05:00:47]Send response to host [05:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29429,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [05:00:47]free response buf [05:00:47]execute_script done [05:00:47]execute_script returns [05:00:47]free content buf [05:00:47]Sock 8.Close socket [05:00:47]Sock 8.Thread stoped [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]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:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:41]accept exits with 9 [06:19:41]New connection [06:19:41]New thread 3067112804 created [06:19:41]Thread 3066969444 joined [06:19:41]Waiting for new connection... [06:19:41] Sock 9.Parse request [06:19:41]Sock 9.Check first char [06:19:41]Sock 9.First char is OK [06:19:41]request: POST /json_proto HTTP/1.0 [06:19:41]Method: POST [06:19:41]URL: /json_proto [06:19:41]Method is POST - this is cgi request [06:19:41]url: /json_proto [06:19:41]query_string will be loaded in cgi processing [06:19:41]execute_cgi json_proto POST (null) [06:19:41]execute_cgi path=json_proto method=POST [06:19:41]POST find Content-Length [06:19:41]Host: 172.17.33.3:8080 [06:19:41]Content-Length: 680 [06:19:41]Content-Type: application/json [06:19:41] [06:19:41]POST finish read [06:19:41]Found Content-Length = 680 [06:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 8.990, "sum" : 300.27, "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" ] } } [06:19:41]execute_script... [06:19: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)347824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 8.990, "sum" : 300.27, "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" ] } } [06:19:41]POST & json_proto [06:19:41]process_json_proto [06:19:41]json parsed OK: [06:19:41]protocol is kg_v1.0 [06:19:41]action value=close_receipt [06:19:41]process_action close_receipt [06:19:41]cmd_close_receipt [06:19:41]MH_GetDate [06:19:41]Write to MH i2c: F0 00 00 BD 1D C9 [06:19:41]Write i2c OK [06:19:41]MH_I2C_Read... [06:19:41]Read from MH i2c: F0 [06:19:41]MH_I2C_Read... [06:19:41]Read from MH i2c: F0 09 00 [06:19:41]MH_I2C_Read... [06:19:41]Read from MH i2c: F0 09 00 BD 1D 00 00 C7 1C 66 23 5B 8F 65 8D [06:19:41]GetLastDocTimeStamp 1713157245 [06:19:41]current date 1713161984 [06:19:41]FM_GetShiftState [06:19:41]SAM_PROTO_GetShiftState [06:19:41]wFMCommunicate request_size=4 [06:19:41]MH_SAM_APDU [06:19:41]CAPDU: 80 13 01 00 [06:19:41]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [06:19:41]Write i2c OK [06:19:41]MH_I2C_Read... [06:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:41]Read from MH i2c: E2 [06:19:41]MH_I2C_Read... [06:19:41]Read from MH i2c: E2 0E 00 [06:19:41]MH_I2C_Read... [06:19:41]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4C [06:19:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:19:41]wFMCommunicate OK [06:19:41]SAM_PROTO_GetShiftState done [06:19:41]FM_GetShiftState done [06:19:41]opened in 1713140468 [06:19:41]opened+sec_in_day 1713226868 [06:19:41]quantity*price = 30026 [06:19:41]sum+1 = 30028 [06:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 15.04.2024 06:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29430 ФПД: 272421968813408 1/tax-web-control/client/api/v1/ticket?date=20240415T061944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29430&fm=272421968813408&tin=02508201610067®Number=0000138879044617&sum=30000 [06:19:42]StoreToDocumentArchive [06:19:42]shift 117 fd 29430 [06:19:42]save to /storage/0117/doc_00029430 [06:19:42]save last doc name /storage/0117/doc_00029430 to /storage/kkm_last_doc_name [06:19:42]save OK [06:19:42]Clear old archive folders... [06:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:19:42]tlvbuf is B6EE8610 [06:19:42]SAM_PROTO_ClearQueue [06:19:42]wFMCommunicate request_size=4 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 09 00 00 [06:19:42]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:19:42]Read from MH i2c: E2 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [06:19:42]RAPDU: 90 00 [06:19:42]wFMCommunicate OK [06:19:42]SAM_PROTO_ClearQueue done [06:19:42]KKMCreateOFDPacket [06:19:42]OFDProtocolAddRootSTLVToBuf [06:19:42]FM_MakeSignedData [06:19:42]FM_MakeSignedData [06:19:42]SAM_PROTO_SignData [06:19:42]wFMCommunicate request_size=4 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 0D 01 02 [06:19:42]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:19:42]Read from MH i2c: E2 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [06:19:42]RAPDU: 90 00 [06:19:42]wFMCommunicate OK [06:19:42]wFMCommunicate request_size=255 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 18 00 00 00 F4 03 04 00 00 C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 72 00 00 35 04 06 00 F7 C4 [06:19:42]Write to MH i2c: E2 02 01 CD 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 18 00 00 00 F4 03 04 00 00 C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 72 00 00 35 04 06 00 F7 C4 00 00 22 [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:42]Read from MH i2c: E2 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [06:19:42]RAPDU: 90 00 [06:19:42]wFMCommunicate OK [06:19:42]wFMCommunicate request_size=9 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 0D 02 02 04 2E AE 1D 60 [06:19:42]Write to MH i2c: E2 0C 00 CE 1D 80 0D 02 02 04 00 2E AE 1D 60 00 00 C6 [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:42]Read from MH i2c: E2 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [06:19:42]RAPDU: 90 00 [06:19:42]wFMCommunicate OK [06:19:42]wFMCommunicate request_size=4 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 0D 03 02 [06:19:42]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:19:42]Read from MH i2c: E2 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 0B 00 [06:19:42]MH_I2C_Read... [06:19:42]Read from MH i2c: E2 0B 00 CF 1D 00 81 BA 76 56 FD 10 E0 0F 90 00 6B [06:19:42]RAPDU: 81 BA 76 56 FD 10 E0 0F 90 00 [06:19:42]wFMCommunicate OK [06:19:42]SAM_PROTO_SignData done [06:19:42]FM_MakeSignedData done [06:19:42]CreateOFDProtocolMessage [06:19:42]wFMCommunicate request_size=4 [06:19:42]MH_SAM_APDU [06:19:42]CAPDU: 80 11 00 00 [06:19:42]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [06:19:42]Write i2c OK [06:19:42]MH_I2C_Read... [06:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:43]Read from MH i2c: E2 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: E2 17 00 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [06:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:19:43]wFMCommunicate OK [06:19:43]CreateOFDProtocolMessage done [06:19:43]OFDSenderStorePacket 29430 [06:19:43]StoreOFDPacket docnum=29430 [06:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2F 9F 06 01 5A D5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 18 00 00 00 F4 03 04 00 00 C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 72 00 00 35 04 06 00 F7 C4 2E AE 1D 60 81 BA 76 56 FD 10 E0 0F [06:19:43]CheckFolder [06:19:43]dirname=/storage/ofd_packets [06:19:43]CheckFolder done [06:19:43]ProducePacketName [06:19:43]name=ofd_packets/00029430 [06:19:43]NVStorageSaveData ofd_packets/00029430 [06:19:43]File name is /storage/ofd_packets/00029430 [06:19:43]Write 300 bytes [06:19:43]NVStorageSaveData done [06:19:43]OFDSenderStorePacket done [06:19:43]KKMCreateOFDPacket done [06:19:43]NVStorageSaveData kkm_last_timestamp [06:19:43]File name is /storage/kkm_last_timestamp [06:19:43]Write 4 bytes [06:19:43]NVStorageSaveData done [06:19:43]ExternCall_PrintAddStr [06:19:43]wPrintStart [06:19:43]Write to MH i2c: 01 00 00 D1 1D EE [06:19:43]Write i2c OK [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 07 00 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [06:19:43]RasterBufferAndPrint [06:19:43]line Счет N : (1)347824 [06:19:43]line ИНН: 02508201610067 [06:19:43]line Контрольно-Кассовый Чек [06:19:43]line ПРОДАЖА [06:19:43]line ТРК (МРК, ГНК) : 71 [06:19:43]line Товар: 2711129700 [06:19:43]line ГАЗ-К-5 [06:19:43]line 8.990 * 33.40 [06:19:43]line = 300.27 [06:19:43]line НДС 12% НСП 1% [06:19:43]line > о реализуемом товаре [06:19:43]line ОКРУГЛЕНИЕ: -0.27 [06:19:43]line ИТОГО: 300.00 [06:19:43]line Внесено: 300.00 [06:19:43]line СДАЧА: 0.00 [06:19:43]line НСП 1% : 2.66 [06:19:43]line НДС 12% : 31.89 [06:19:43]line Наличными: 300.00 [06:19:43]line Безнал.: 0.00 [06:19:43]line Место: АЗС № 108 "Партнер Нефть" [06:19:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:19:43]line СНО: Общий режим [06:19:43]line Чек 24 15.04.2024 06:19 [06:19:43]line Смена: 117 ФФД: 1.0 [06:19:43]line ЗНМ: 0300000027 [06:19:43]line РНМ: 0000138879044617 [06:19:43]line Версия ККМ: 001 [06:19:43]line ФМ: 0000000000963154 [06:19:43]line ФД: 29430 [06:19:43]line ФПД: 272421968813408 [06:19:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T061944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29430&fm=272421968813408&tin=02508201610067®Number=0000138879044617&sum=30000 [06:19:43]OFD Sender: Processing packet 29430 [packets to send 8, broken 7] [06:19:43]ProducePacketName [06:19:43]name=ofd_packets/00029430 [06:19:43]OFD Sender: To server: pG, [06:19:43]CommunicateWithHost lk.salyk.kg:30040 [06:19:43]ConnectInit lk.salyk.kg [06:19:43]written 0, free lines is 4095 [06:19:43]Connected sock=10 [06:19:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 2F 9F 06 01 5A D5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 18 00 00 00 F4 03 04 00 00 C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 72 00 00 35 04 06 00 F7 C4 2E AE 1D 60 81 BA 76 56 FD 10 E0 0F [06:19:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 8D 47 00 DC 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 72 00 00 F4 03 04 00 A2 71 1C 66 B6 04 01 00 00 A1 AD 8C E1 EE F9 36 32 [06:19:43]CommunicateWithHost err = 0 [06:19:43]CheckOFDResponse [06:19:43]1017 (14) - 77093643461234 [06:19:43]1041 (16) - 0000000000963154 [06:19:43]1040 (4) - 29430 [06:19:43]1012 (4) - 15.04.2024 00:15 [06:19:43]1206 (1) - 0 [06:19:43]OFD Sender: Remove packet 29430 [06:19:43]ProducePacketName [06:19:43]name=ofd_packets/00029430 [06:19:43]NVStorageDeleteData [06:19:43]Write to MH i2c: 01 00 00 FB 1D 18 [06:19:43]Write i2c OK [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 07 00 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: 01 07 00 FB 1D 00 00 00 00 00 B9 0C E4 [06:19:43]RasterBufferAndPrint [06:19:43]line [06:19:43]line [06:19:43]line [06:19:43]line [06:19:43]line [06:19:43]written 0, free lines is 3264 [06:19:43]MH_Cut [06:19:43]Write to MH i2c: D1 01 00 02 1E 01 F2 [06:19:43]Write i2c OK [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: D1 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: D1 01 00 [06:19:43]MH_I2C_Read... [06:19:43]Read from MH i2c: D1 01 00 02 1E 00 F1 [06:19:43]Write to MH i2c: 01 00 00 03 1E 21 [06:19:43]Write i2c OK [06:19:43]MH_I2C_Read... [06:19:44]OFD Sender: No OFD packet to send [06:19:44]*** Cut start [06:19:44]*** Partial cut [06:19:44]*** CUTSNS_PIN = 1 [06:19:44]*** CUTSNS_PIN = 0 [06:19:44]*** Brake cut motor [06:19:45]Read from MH i2c: 01 [06:19:45]MH_I2C_Read... [06:19:45]*** Stop cut motor [06:19:45]*** Cut end [06:19:45]Read from MH i2c: 01 07 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [06:19:45]process_action close_receipt done [06:19:45]requested_data is exist [06:19:45]produce_requested_data [06:19:45]requested_item fm.sn is exist - process it [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 11 00 00 [06:19:45]Write to MH i2c: E2 08 00 04 1E 80 11 00 00 00 00 00 00 9C [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 17 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 17 00 04 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [06:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:19:45]wFMCommunicate OK [06:19:45]requested_item fd.num is exist - process it [06:19:45]SAM_PROTO_GetFieldsCounters [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 13 00 00 [06:19:45]Write to MH i2c: E2 08 00 05 1E 80 13 00 00 00 00 00 00 9F [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 62 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 62 00 05 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [06:19:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 72 00 00 0E 04 04 00 75 00 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 [06:19:45]wFMCommunicate OK [06:19:45]SAM_PROTO_GetFieldsCounters done [06:19:45]requested_item shift.num is exist - process it [06:19:45]requested_item shift.opened is exist - process it [06:19:45]req_shift_opened [06:19:45]FM_GetShiftState [06:19:45]SAM_PROTO_GetShiftState [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 13 01 00 [06:19:45]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0E 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 95 [06:19:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:19:45]wFMCommunicate OK [06:19:45]SAM_PROTO_GetShiftState done [06:19:45]FM_GetShiftState done [06:19:45]req_shift_opened done [06:19:45]requested_item shift.open_date is exist - process it [06:19:45]req_shift_open_date [06:19:45]req_shift_open_date done [06:19:45]produce_requested_data done [06:19:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29430,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:19:45]process_action_free close_receipt [06:19:45]json_value_free [06:19:45]json_value_free done [06:19:45]process_json_proto returns [06:19:45]Send response to host [06:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29430,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:19:45]free response buf [06:19:45]execute_script done [06:19:45]execute_script returns [06:19:45]free content buf [06:19:45]Sock 9.Close socket [06:19:45]Sock 9.Thread stoped [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]accept exits with 8 [06:23:39]New connection [06:23:39]New thread 3066969444 created [06:23:39]Thread 3067112804 joined [06:23:39]Waiting for new connection... [06:23:39] Sock 8.Parse request [06:23:39]Sock 8.Check first char [06:23:39]Sock 8.First char is OK [06:23:39]request: POST /json_proto HTTP/1.0 [06:23:39]Method: POST [06:23:39]URL: /json_proto [06:23:39]Method is POST - this is cgi request [06:23:39]url: /json_proto [06:23:39]query_string will be loaded in cgi processing [06:23:39]execute_cgi json_proto POST (null) [06:23:39]execute_cgi path=json_proto method=POST [06:23:39]POST find Content-Length [06:23:39]Host: 172.17.33.3:8080 [06:23:39]Content-Length: 678 [06:23:39]Content-Type: application/json [06:23:39] [06:23:39]POST finish read [06:23:39]Found Content-Length = 678 [06:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [06:23:39]execute_script... [06:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [06:23:39]POST & json_proto [06:23:39]process_json_proto [06:23:39]json parsed OK: [06:23:39]protocol is kg_v1.0 [06:23:39]action value=close_receipt [06:23:39]process_action close_receipt [06:23:39]cmd_close_receipt [06:23:39]MH_GetDate [06:23:39]Write to MH i2c: F0 00 00 07 1E 14 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: F0 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: F0 09 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: F0 09 00 07 1E 00 EE C7 1C 66 23 5B 8F 65 C6 [06:23:39]GetLastDocTimeStamp 1713161984 [06:23:39]current date 1713162222 [06:23:39]FM_GetShiftState [06:23:39]SAM_PROTO_GetShiftState [06:23:39]wFMCommunicate request_size=4 [06:23:39]MH_SAM_APDU [06:23:39]CAPDU: 80 13 01 00 [06:23:39]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:39]Read from MH i2c: E2 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 0E 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 97 [06:23:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:23:39]wFMCommunicate OK [06:23:39]SAM_PROTO_GetShiftState done [06:23:39]FM_GetShiftState done [06:23:39]opened in 1713140468 [06:23:39]opened+sec_in_day 1713226868 [06:23:39]quantity*price = 70048 [06:23:39]sum+1 = 70050 [06:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 15.04.2024 06:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29431 ФПД: 251700343068451 1/tax-web-control/client/api/v1/ticket?date=20240415T062342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29431&fm=251700343068451&tin=02508201610067®Number=0000138879044617&sum=70000 [06:23:40]StoreToDocumentArchive [06:23:40]shift 117 fd 29431 [06:23:40]save to /storage/0117/doc_00029431 [06:23:40]save last doc name /storage/0117/doc_00029431 to /storage/kkm_last_doc_name [06:23:40]save OK [06:23:40]Clear old archive folders... [06:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:23:40]tlvbuf is 0026F190 [06:23:40]SAM_PROTO_ClearQueue [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 09 00 00 [06:23:40]Write to MH i2c: E2 08 00 15 1E 80 09 00 00 00 00 00 00 A5 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_ClearQueue done [06:23:40]KKMCreateOFDPacket [06:23:40]OFDProtocolAddRootSTLVToBuf [06:23:40]FM_MakeSignedData [06:23:40]FM_MakeSignedData [06:23:40]SAM_PROTO_SignData [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 01 02 [06:23:40]Write to MH i2c: E2 08 00 16 1E 80 0D 01 02 00 00 00 00 AD [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=255 [06:23:40]MH_SAM_APDU [06:23: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 19 00 00 00 F4 03 04 00 EE C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 72 00 00 35 04 06 00 E4 [06:23:40]Write to MH i2c: E2 02 01 17 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 19 00 00 00 F4 03 04 00 EE C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 72 00 00 35 04 06 00 E4 00 00 04 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=10 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 02 02 05 EB 8D 89 D7 23 [06:23:40]Write to MH i2c: E2 0D 00 18 1E 80 0D 02 02 05 00 EB 8D 89 D7 23 00 00 B5 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 03 02 [06:23:40]Write to MH i2c: E2 08 00 19 1E 80 0D 03 02 00 00 00 00 B2 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 19 1E 00 A0 13 21 1B 08 42 85 9B 90 00 0C [06:23:40]RAPDU: A0 13 21 1B 08 42 85 9B 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_SignData done [06:23:40]FM_MakeSignedData done [06:23:40]CreateOFDProtocolMessage [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 11 00 00 [06:23:40]Write to MH i2c: E2 08 00 1A 1E 80 11 00 00 00 00 00 00 B2 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 1A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [06:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:23:40]wFMCommunicate OK [06:23:40]CreateOFDProtocolMessage done [06:23:40]OFDSenderStorePacket 29431 [06:23:40]StoreOFDPacket docnum=29431 [06:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 33 F0 07 01 CD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 19 00 00 00 F4 03 04 00 EE C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 72 00 00 35 04 06 00 E4 EB 8D 89 D7 23 A0 13 21 1B 08 42 85 9B [06:23:40]CheckFolder [06:23:40]dirname=/storage/ofd_packets [06:23:40]CheckFolder done [06:23:40]ProducePacketName [06:23:40]name=ofd_packets/00029431 [06:23:40]NVStorageSaveData ofd_packets/00029431 [06:23:40]File name is /storage/ofd_packets/00029431 [06:23:40]Write 301 bytes [06:23:40]NVStorageSaveData done [06:23:40]OFDSenderStorePacket done [06:23:40]KKMCreateOFDPacket done [06:23:40]NVStorageSaveData kkm_last_timestamp [06:23:40]File name is /storage/kkm_last_timestamp [06:23:40]Write 4 bytes [06:23:40]NVStorageSaveData done [06:23:40]ExternCall_PrintAddStr [06:23:40]wPrintStart [06:23:40]Write to MH i2c: 01 00 00 1B 1E 39 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 1B 1E 00 00 00 00 00 FF 0F 4E [06:23:40]RasterBufferAndPrint [06:23:40]line Счет N : (1)347826 [06:23:40]line ИНН: 02508201610067 [06:23:40]line Контрольно-Кассовый Чек [06:23:40]line ПРОДАЖА [06:23:40]line ТРК (МРК, ГНК) : 32 [06:23:40]line Товар: 2710124130 [06:23:40]line Аи-92-К-5 [06:23:40]line 10.810 * 64.80 [06:23:40]line = 700.49 [06:23:40]line НДС 12% НСП 1% [06:23:40]line > о реализуемом товаре [06:23:40]line ОКРУГЛЕНИЕ: -0.49 [06:23:40]line ИТОГО: 700.00 [06:23:40]line Внесено: 700.00 [06:23:40]line СДАЧА: 0.00 [06:23:40]line НСП 1% : 6.20 [06:23:40]line НДС 12% : 74.39 [06:23:40]line Наличными: 700.00 [06:23:40]line Безнал.: 0.00 [06:23:40]line Место: АЗС № 108 "Партнер Нефть" [06:23:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:23:40]line СНО: Общий режим [06:23:40]line Чек 25 15.04.2024 06:23 [06:23:40]line Смена: 117 ФФД: 1.0 [06:23:41]line ЗНМ: 0300000027 [06:23:41]line РНМ: 0000138879044617 [06:23:41]line Версия ККМ: 001 [06:23:41]line ФМ: 0000000000963154 [06:23:41]line ФД: 29431 [06:23:41]line ФПД: 251700343068451 [06:23:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T062342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29431&fm=251700343068451&tin=02508201610067®Number=0000138879044617&sum=70000 [06:23:41]OFD Sender: Processing packet 29431 [packets to send 8, broken 7] [06:23:41]ProducePacketName [06:23:41]name=ofd_packets/00029431 [06:23:41]OFD Sender: To server: pG, [06:23:41]CommunicateWithHost lk.salyk.kg:30040 [06:23:41]ConnectInit lk.salyk.kg [06:23:41]written 0, free lines is 4095 [06:23:41]Connected sock=10 [06:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 33 F0 07 01 CD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 19 00 00 00 F4 03 04 00 EE C7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 72 00 00 35 04 06 00 E4 EB 8D 89 D7 23 A0 13 21 1B 08 42 85 9B [06:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 FB 47 00 7E 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 72 00 00 F4 03 04 00 90 72 1C 66 B6 04 01 00 00 F0 40 FA 61 05 DF C6 A6 [06:23:41]CommunicateWithHost err = 0 [06:23:41]CheckOFDResponse [06:23:41]1017 (14) - 77093643461234 [06:23:41]1041 (16) - 0000000000963154 [06:23:41]1040 (4) - 29431 [06:23:41]1012 (4) - 15.04.2024 00:19 [06:23:41]1206 (1) - 0 [06:23:41]OFD Sender: Remove packet 29431 [06:23:41]ProducePacketName [06:23:41]name=ofd_packets/00029431 [06:23:41]NVStorageDeleteData [06:23:41]Write to MH i2c: 01 00 00 45 1E 63 [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 07 00 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 C5 0C 3B [06:23:41]RasterBufferAndPrint [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]written 0, free lines is 3273 [06:23:41]MH_Cut [06:23:41]Write to MH i2c: D1 01 00 4C 1E 01 3C [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 01 00 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 01 00 4C 1E 00 3B [06:23:41]Write to MH i2c: 01 00 00 4D 1E 6B [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:42]OFD Sender: No OFD packet to send [06:23:42]*** Cut start [06:23:42]*** Partial cut [06:23:42]*** CUTSNS_PIN = 1 [06:23:42]*** CUTSNS_PIN = 0 [06:23:42]*** Brake cut motor [06:23:43]Read from MH i2c: 01 [06:23:43]MH_I2C_Read... [06:23:43]*** Stop cut motor [06:23:43]*** Cut end [06:23:43]Read from MH i2c: 01 07 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [06:23:43]process_action close_receipt done [06:23:43]requested_data is exist [06:23:43]produce_requested_data [06:23:43]requested_item fm.sn is exist - process it [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 11 00 00 [06:23:43]Write to MH i2c: E2 08 00 4E 1E 80 11 00 00 00 00 00 00 E6 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 17 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 17 00 4E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [06:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:23:43]wFMCommunicate OK [06:23:43]requested_item fd.num is exist - process it [06:23:43]SAM_PROTO_GetFieldsCounters [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 13 00 00 [06:23:43]Write to MH i2c: E2 08 00 4F 1E 80 13 00 00 00 00 00 00 E9 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 62 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 62 00 4F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 72 00 00 0E 04 04 00 75 00 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 50 [06:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 72 00 00 0E 04 04 00 75 00 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 [06:23:43]wFMCommunicate OK [06:23:43]SAM_PROTO_GetFieldsCounters done [06:23:43]requested_item shift.num is exist - process it [06:23:43]requested_item shift.opened is exist - process it [06:23:43]req_shift_opened [06:23:43]FM_GetShiftState [06:23:43]SAM_PROTO_GetShiftState [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 13 01 00 [06:23:43]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 0E 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DF [06:23:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:23:43]wFMCommunicate OK [06:23:43]SAM_PROTO_GetShiftState done [06:23:43]FM_GetShiftState done [06:23:43]req_shift_opened done [06:23:43]requested_item shift.open_date is exist - process it [06:23:43]req_shift_open_date [06:23:43]req_shift_open_date done [06:23:43]produce_requested_data done [06:23:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29431,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:23:43]process_action_free close_receipt [06:23:43]json_value_free [06:23:43]json_value_free done [06:23:43]process_json_proto returns [06:23:43]Send response to host [06:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29431,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:23:43]free response buf [06:23:43]execute_script done [06:23:43]execute_script returns [06:23:43]free content buf [06:23:43]Sock 8.Close socket [06:23:43]Sock 8.Thread stoped [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:40]accept exits with 9 [06:25:40]New connection [06:25:40]New thread 3067112804 created [06:25:40]Thread 3066969444 joined [06:25:40]Waiting for new connection... [06:25:40] Sock 9.Parse request [06:25:40]Sock 9.Check first char [06:25:40]Sock 9.First char is OK [06:25:40]request: POST /json_proto HTTP/1.0 [06:25:40]Method: POST [06:25:40]URL: /json_proto [06:25:40]Method is POST - this is cgi request [06:25:40]url: /json_proto [06:25:40]query_string will be loaded in cgi processing [06:25:40]execute_cgi json_proto POST (null) [06:25:40]execute_cgi path=json_proto method=POST [06:25:40]POST find Content-Length [06:25:40]Host: 172.17.33.3:8080 [06:25:40]Content-Length: 1216 [06:25:40]Content-Type: application/json [06:25:40] [06:25:40]POST finish read [06:25:40]Found Content-Length = 1216 [06:25: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347825\u000A15.04.2024 06:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 35.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1169.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\u000A53124\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:40]execute_script... [06:25: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347825\u000A15.04.2024 06:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 35.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1169.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\u000A53124\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:40]POST & json_proto [06:25:40]process_json_proto [06:25:40]json parsed OK: [06:25:40]protocol is kg_v1.0 [06:25:40]action value=print_text [06:25:40]process_action print_text [06:25:40]cmd_print_text [06:25:40]ExternCall_PrintAddStr [06:25:40]wPrintStart [06:25:40]Write to MH i2c: 01 00 00 51 1E 6F [06:25:40]Write i2c OK [06:25:40]MH_I2C_Read... [06:25:40]Read from MH i2c: 01 [06:25:40]MH_I2C_Read... [06:25:40]Read from MH i2c: 01 07 00 [06:25:40]MH_I2C_Read... [06:25:40]Read from MH i2c: 01 07 00 51 1E 00 00 00 00 00 FF 0F 84 [06:25:40]RasterBufferAndPrint [06:25:40]line *****ТОВАРНЫЙ ЧЕК***** [06:25:40]line АЗС 108 [06:25:40]line Партнер нефть [06:25:40]line 02508201610067 [06:25:40]line Кассир : Джумагулова Н. [06:25:40]line Счет N : (1)347825 [06:25:40]line 15.04.2024 06:07 [06:25:40]line ПРОДАЖА [06:25:40]line ТРК (МРК, ГНК): 71 [06:25:40]line Вид ГСМ : 2711129700 [06:25:40]line ГАЗ-К-5 [06:25:40]line 35.000 x 33.40 [06:25:40]line ИТОГ: 1169.00 [06:25:40]line Тип оплаты: Талоны: Топливная Карта [06:25:40]line 53124 [06:25:40]line ______________________ [06:25:40]line (подпись) [06:25:40]written 0, free lines is 4095 [06:25:41]Write to MH i2c: 01 00 00 66 1E 84 [06:25:41]Write i2c OK [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: 01 [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: 01 07 00 [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: 01 07 00 66 1E 00 00 00 00 00 F3 0D 8B [06:25:41]RasterBufferAndPrint [06:25:41]line [06:25:41]line [06:25:41]line [06:25:41]line [06:25:41]line [06:25:41]written 0, free lines is 3573 [06:25:41]MH_Cut [06:25:41]Write to MH i2c: D1 01 00 6D 1E 01 5D [06:25:41]Write i2c OK [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: D1 [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: D1 01 00 [06:25:41]MH_I2C_Read... [06:25:41]Read from MH i2c: D1 01 00 6D 1E 00 5C [06:25:41]Write to MH i2c: 01 00 00 6E 1E 8C [06:25:41]Write i2c OK [06:25:41]MH_I2C_Read... [06:25:41]*** Cut start [06:25:41]*** Partial cut [06:25:41]*** CUTSNS_PIN = 1 [06:25:41]*** CUTSNS_PIN = 0 [06:25:41]*** Brake cut motor [06:25:42]OFD Sender: No OFD packet to send [06:25:42]Read from MH i2c: 01 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: 01 07 00 [06:25:42]MH_I2C_Read... [06:25:42]*** Stop cut motor [06:25:42]*** Cut end [06:25:42]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [06:25:42]process_action print_text done [06:25:42]requested_data is exist [06:25:42]produce_requested_data [06:25:42]requested_item fm.sn is exist - process it [06:25:42]wFMCommunicate request_size=4 [06:25:42]MH_SAM_APDU [06:25:42]CAPDU: 80 11 00 00 [06:25:42]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [06:25:42]Write i2c OK [06:25:42]MH_I2C_Read... [06:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:42]Read from MH i2c: E2 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 17 00 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [06:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:25:42]wFMCommunicate OK [06:25:42]requested_item fd.num is exist - process it [06:25:42]SAM_PROTO_GetFieldsCounters [06:25:42]wFMCommunicate request_size=4 [06:25:42]MH_SAM_APDU [06:25:42]CAPDU: 80 13 00 00 [06:25:42]Write to MH i2c: E2 08 00 70 1E 80 13 00 00 00 00 00 00 0A [06:25:42]Write i2c OK [06:25:42]MH_I2C_Read... [06:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:42]Read from MH i2c: E2 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 62 00 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 62 00 70 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 72 00 00 0E 04 04 00 75 00 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 71 [06:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 72 00 00 0E 04 04 00 75 00 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 [06:25:42]wFMCommunicate OK [06:25:42]SAM_PROTO_GetFieldsCounters done [06:25:42]requested_item shift.num is exist - process it [06:25:42]requested_item shift.opened is exist - process it [06:25:42]req_shift_opened [06:25:42]FM_GetShiftState [06:25:42]SAM_PROTO_GetShiftState [06:25:42]wFMCommunicate request_size=4 [06:25:42]MH_SAM_APDU [06:25:42]CAPDU: 80 13 01 00 [06:25:42]Write to MH i2c: E2 08 00 71 1E 80 13 01 00 00 00 00 00 0C [06:25:42]Write i2c OK [06:25:42]MH_I2C_Read... [06:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:42]Read from MH i2c: E2 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 0E 00 [06:25:42]MH_I2C_Read... [06:25:42]Read from MH i2c: E2 0E 00 71 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 00 [06:25:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:25:42]wFMCommunicate OK [06:25:42]SAM_PROTO_GetShiftState done [06:25:42]FM_GetShiftState done [06:25:42]req_shift_opened done [06:25:42]requested_item shift.open_date is exist - process it [06:25:42]req_shift_open_date [06:25:42]req_shift_open_date done [06:25:42]produce_requested_data done [06:25:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29431,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:25:42]process_action_free print_text [06:25:42]json_value_free [06:25:42]json_value_free done [06:25:42]process_json_proto returns [06:25:42]Send response to host [06:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29431,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:25:42]free response buf [06:25:42]execute_script done [06:25:42]execute_script returns [06:25:42]free content buf [06:25:42]Sock 9.Close socket [06:25:42]Sock 9.Thread stoped [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:16]accept exits with 8 [06:28:16]New connection [06:28:16]New thread 3066969444 created [06:28:16]Thread 3067112804 joined [06:28:16]Waiting for new connection... [06:28:16] Sock 8.Parse request [06:28:16]Sock 8.Check first char [06:28:16]Sock 8.First char is OK [06:28:16]request: POST /json_proto HTTP/1.0 [06:28:16]Method: POST [06:28:16]URL: /json_proto [06:28:16]Method is POST - this is cgi request [06:28:16]url: /json_proto [06:28:16]query_string will be loaded in cgi processing [06:28:16]execute_cgi json_proto POST (null) [06:28:16]execute_cgi path=json_proto method=POST [06:28:16]POST find Content-Length [06:28:16]Host: 172.17.33.3:8080 [06:28:16]Content-Length: 682 [06:28:16]Content-Type: application/json [06:28:16] [06:28:16]POST finish read [06:28:16]Found Content-Length = 682 [06:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:28:16]execute_script... [06:28: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)347827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:28:16]POST & json_proto [06:28:16]process_json_proto [06:28:16]json parsed OK: [06:28:16]protocol is kg_v1.0 [06:28:16]action value=close_receipt [06:28:16]process_action close_receipt [06:28:16]cmd_close_receipt [06:28:16]MH_GetDate [06:28:16]Write to MH i2c: F0 00 00 72 1E 7F [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 72 1E 00 03 C9 1C 66 23 5B 8F 65 48 [06:28:16]GetLastDocTimeStamp 1713162222 [06:28:16]current date 1713162499 [06:28:16]FM_GetShiftState [06:28:16]SAM_PROTO_GetShiftState [06:28:16]wFMCommunicate request_size=4 [06:28:16]MH_SAM_APDU [06:28:16]CAPDU: 80 13 01 00 [06:28:16]Write to MH i2c: E2 08 00 73 1E 80 13 01 00 00 00 00 00 0E [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:16]Read from MH i2c: E2 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 73 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 02 [06:28:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:28:16]wFMCommunicate OK [06:28:16]SAM_PROTO_GetShiftState done [06:28:16]FM_GetShiftState done [06:28:16]opened in 1713140468 [06:28:16]opened+sec_in_day 1713226868 [06:28:16]quantity*price = 100018 [06:28:16]sum+1 = 100020 [06:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 15.04.2024 06:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29432 ФПД: 23729598850045 1/tax-web-control/client/api/v1/ticket?date=20240415T062819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29432&fm=23729598850045&tin=02508201610067®Number=0000138879044617&sum=100000 [06:28:17]StoreToDocumentArchive [06:28:17]shift 117 fd 29432 [06:28:17]save to /storage/0117/doc_00029432 [06:28:17]save last doc name /storage/0117/doc_00029432 to /storage/kkm_last_doc_name [06:28:17]save OK [06:28:17]Clear old archive folders... [06:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:17]tlvbuf is B6ECFA00 [06:28:17]SAM_PROTO_ClearQueue [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 09 00 00 [06:28:17]Write to MH i2c: E2 08 00 80 1E 80 09 00 00 00 00 00 00 10 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 80 1E 00 90 00 12 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]SAM_PROTO_ClearQueue done [06:28:17]KKMCreateOFDPacket [06:28:17]OFDProtocolAddRootSTLVToBuf [06:28:17]FM_MakeSignedData [06:28:17]FM_MakeSignedData [06:28:17]SAM_PROTO_SignData [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 01 02 [06:28:17]Write to MH i2c: E2 08 00 81 1E 80 0D 01 02 00 00 00 00 18 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 81 1E 00 90 00 13 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=255 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 03 C9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 72 00 00 35 04 06 00 15 [06:28:17]Write to MH i2c: E2 02 01 82 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 03 C9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 72 00 00 35 04 06 00 15 00 00 A8 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 03 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 03 00 82 1E 00 90 00 14 [06:28:18]RAPDU: 90 00 [06:28:18]wFMCommunicate OK [06:28:18]wFMCommunicate request_size=10 [06:28:18]MH_SAM_APDU [06:28:18]CAPDU: 80 0D 02 02 05 94 FA 4F 63 FD [06:28:18]Write to MH i2c: E2 0D 00 83 1E 80 0D 02 02 05 00 94 FA 4F 63 FD 00 00 62 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 03 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 03 00 83 1E 00 90 00 15 [06:28:18]RAPDU: 90 00 [06:28:18]wFMCommunicate OK [06:28:18]wFMCommunicate request_size=4 [06:28:18]MH_SAM_APDU [06:28:18]CAPDU: 80 0D 03 02 [06:28:18]Write to MH i2c: E2 08 00 84 1E 80 0D 03 02 00 00 00 00 1D [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0B 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 0B 00 84 1E 00 D4 A5 46 8A 01 DE 41 AB 90 00 32 [06:28:18]RAPDU: D4 A5 46 8A 01 DE 41 AB 90 00 [06:28:18]wFMCommunicate OK [06:28:18]SAM_PROTO_SignData done [06:28:18]FM_MakeSignedData done [06:28:18]CreateOFDProtocolMessage [06:28:18]wFMCommunicate request_size=4 [06:28:18]MH_SAM_APDU [06:28:18]CAPDU: 80 11 00 00 [06:28:18]Write to MH i2c: E2 08 00 85 1E 80 11 00 00 00 00 00 00 1D [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 85 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [06:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:28:18]wFMCommunicate OK [06:28:18]CreateOFDProtocolMessage done [06:28:18]OFDSenderStorePacket 29432 [06:28:18]StoreOFDPacket docnum=29432 [06:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5A 24 07 01 57 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 03 C9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 72 00 00 35 04 06 00 15 94 FA 4F 63 FD D4 A5 46 8A 01 DE 41 AB [06:28:18]CheckFolder [06:28:18]dirname=/storage/ofd_packets [06:28:18]CheckFolder done [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00029432 [06:28:18]NVStorageSaveData ofd_packets/00029432 [06:28:18]File name is /storage/ofd_packets/00029432 [06:28:18]Write 301 bytes [06:28:18]NVStorageSaveData done [06:28:18]OFDSenderStorePacket done [06:28:18]KKMCreateOFDPacket done [06:28:18]NVStorageSaveData kkm_last_timestamp [06:28:18]File name is /storage/kkm_last_timestamp [06:28:18]Write 4 bytes [06:28:18]NVStorageSaveData done [06:28:18]ExternCall_PrintAddStr [06:28:18]wPrintStart [06:28:18]Write to MH i2c: 01 00 00 86 1E A4 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 86 1E 00 00 00 00 00 FF 0F B9 [06:28:18]RasterBufferAndPrint [06:28:18]line Счет N : (1)347827 [06:28:18]line ИНН: 02508201610067 [06:28:18]line Контрольно-Кассовый Чек [06:28:18]line ПРОДАЖА [06:28:18]line ТРК (МРК, ГНК) : 43 [06:28:18]line Товар: 2710124500 [06:28:18]line Аи-95-К-5 [06:28:18]line 13.720 * 72.90 [06:28:18]line = 1000.19 [06:28:18]line НДС 12% НСП 1% [06:28:18]line > о реализуемом товаре [06:28:18]line ОКРУГЛЕНИЕ: -0.19 [06:28:18]line ИТОГО: 1000.00 [06:28:18]line Внесено: 1000.00 [06:28:18]line СДАЧА: 0.00 [06:28:18]line НСП 1% : 8.85 [06:28:18]line НДС 12% : 106.21 [06:28:18]line Наличными: 1000.00 [06:28:18]line Безнал.: 0.00 [06:28:18]line Место: АЗС № 108 "Партнер Нефть" [06:28:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:28:18]line СНО: Общий режим [06:28:18]line Чек 26 15.04.2024 06:28 [06:28:18]line Смена: 117 ФФД: 1.0 [06:28:18]line ЗНМ: 0300000027 [06:28:18]line РНМ: 0000138879044617 [06:28:18]line Версия ККМ: 001 [06:28:18]line ФМ: 0000000000963154 [06:28:18]line ФД: 29432 [06:28:18]line ФПД: 23729598850045 [06:28:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T062819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29432&fm=23729598850045&tin=02508201610067®Number=0000138879044617&sum=100000 [06:28:18]written 0, free lines is 4095 [06:28:18]OFD Sender: Processing packet 29432 [packets to send 8, broken 7] [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00029432 [06:28:18]OFD Sender: To server: pG, [06:28:18]CommunicateWithHost lk.salyk.kg:30040 [06:28:18]ConnectInit lk.salyk.kg [06:28:18]Write to MH i2c: 01 00 00 B0 1E CE [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 BC 0C 9D [06:28:18]RasterBufferAndPrint [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]written 0, free lines is 3265 [06:28:18]MH_Cut [06:28:18]Write to MH i2c: D1 01 00 B7 1E 01 A7 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 B7 1E 00 A6 [06:28:18]Write to MH i2c: 01 00 00 B8 1E D6 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Connected sock=10 [06:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5A 24 07 01 57 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 03 C9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 72 00 00 35 04 06 00 15 94 FA 4F 63 FD D4 A5 46 8A 01 DE 41 AB [06:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E F3 47 00 2E 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 39 36 33 31 35 34 10 04 04 00 F8 72 00 00 F4 03 04 00 A5 73 1C 66 B6 04 01 00 00 0F D4 FF 46 8C 50 D5 99 [06:28:19]CommunicateWithHost err = 0 [06:28:19]CheckOFDResponse [06:28:19]1017 (14) - 77093643461234 [06:28:19]1041 (16) - 0000000000963154 [06:28:19]1040 (4) - 29432 [06:28:19]1012 (4) - 15.04.2024 00:24 [06:28:19]1206 (1) - 0 [06:28:19]OFD Sender: Remove packet 29432 [06:28:19]ProducePacketName [06:28:19]name=ofd_packets/00029432 [06:28:19]NVStorageDeleteData [06:28:19]OFD Sender: No OFD packet to send [06:28:19]*** Cut start [06:28:19]*** Partial cut [06:28:19]*** CUTSNS_PIN = 1 [06:28:19]*** CUTSNS_PIN = 0 [06:28:19]*** Brake cut motor [06:28:20]Read from MH i2c: 01 [06:28:20]MH_I2C_Read... [06:28:20]*** Stop cut motor [06:28:20]*** Cut end [06:28:20]Read from MH i2c: 01 07 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 FF 0F EB [06:28:20]process_action close_receipt done [06:28:20]requested_data is exist [06:28:20]produce_requested_data [06:28:20]requested_item fm.sn is exist - process it [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 11 00 00 [06:28:20]Write to MH i2c: E2 08 00 B9 1E 80 11 00 00 00 00 00 00 51 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 B9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [06:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:28:20]wFMCommunicate OK [06:28:20]requested_item fd.num is exist - process it [06:28:20]SAM_PROTO_GetFieldsCounters [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 00 00 [06:28:20]Write to MH i2c: E2 08 00 BA 1E 80 13 00 00 00 00 00 00 54 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 BA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 72 00 00 0E 04 04 00 75 00 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 BF [06:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 72 00 00 0E 04 04 00 75 00 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 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetFieldsCounters done [06:28:20]requested_item shift.num is exist - process it [06:28:20]requested_item shift.opened is exist - process it [06:28:20]req_shift_opened [06:28:20]FM_GetShiftState [06:28:20]SAM_PROTO_GetShiftState [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 01 00 [06:28:20]Write to MH i2c: E2 08 00 BB 1E 80 13 01 00 00 00 00 00 56 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 BB 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [06:28:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetShiftState done [06:28:20]FM_GetShiftState done [06:28:20]req_shift_opened done [06:28:20]requested_item shift.open_date is exist - process it [06:28:20]req_shift_open_date [06:28:20]req_shift_open_date done [06:28:20]produce_requested_data done [06:28:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29432,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:28:20]process_action_free close_receipt [06:28:20]json_value_free [06:28:20]json_value_free done [06:28:20]process_json_proto returns [06:28:20]Send response to host [06:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29432,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:28:20]free response buf [06:28:20]execute_script done [06:28:20]execute_script returns [06:28:20]free content buf [06:28:20]Sock 8.Close socket [06:28:20]Sock 8.Thread stoped [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:10]accept exits with 9 [06:30:10]New connection [06:30:10]New thread 3067112804 created [06:30:10]Thread 3066969444 joined [06:30:10]Waiting for new connection... [06:30:10] Sock 9.Parse request [06:30:10]Sock 9.Check first char [06:30:10]Sock 9.First char is OK [06:30:10]request: POST /json_proto HTTP/1.0 [06:30:10]Method: POST [06:30:10]URL: /json_proto [06:30:10]Method is POST - this is cgi request [06:30:10]url: /json_proto [06:30:10]query_string will be loaded in cgi processing [06:30:10]execute_cgi json_proto POST (null) [06:30:10]execute_cgi path=json_proto method=POST [06:30:10]POST find Content-Length [06:30:10]Host: 172.17.33.3:8080 [06:30:10]Content-Length: 1216 [06:30:10]Content-Type: application/json [06:30:10] [06:30:10]POST finish read [06:30:10]Found Content-Length = 1216 [06:30: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347828\u000A15.04.2024 06:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1002.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\u000A53124\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:10]execute_script... [06:30: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347828\u000A15.04.2024 06:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 30.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1002.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\u000A53124\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:10]POST & json_proto [06:30:10]process_json_proto [06:30:10]json parsed OK: [06:30:10]protocol is kg_v1.0 [06:30:10]action value=print_text [06:30:10]process_action print_text [06:30:10]cmd_print_text [06:30:10]ExternCall_PrintAddStr [06:30:10]wPrintStart [06:30:10]Write to MH i2c: 01 00 00 BC 1E DA [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 BC 1E 00 00 00 00 00 FF 0F EF [06:30:10]RasterBufferAndPrint [06:30:10]line *****ТОВАРНЫЙ ЧЕК***** [06:30:10]line АЗС 108 [06:30:10]line Партнер нефть [06:30:10]line 02508201610067 [06:30:10]line Кассир : Джумагулова Н. [06:30:10]line Счет N : (1)347828 [06:30:10]line 15.04.2024 06:11 [06:30:10]line ПРОДАЖА [06:30:10]line ТРК (МРК, ГНК): 71 [06:30:10]line Вид ГСМ : 2711129700 [06:30:10]line ГАЗ-К-5 [06:30:10]line 30.000 x 33.40 [06:30:10]line ИТОГ: 1002.00 [06:30:10]line Тип оплаты: Талоны: Топливная Карта [06:30:10]line 53124 [06:30:10]line ______________________ [06:30:10]line (подпись) [06:30:10]written 0, free lines is 4095 [06:30:11]Write to MH i2c: 01 00 00 D1 1E EF [06:30:11]Write i2c OK [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: 01 [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: 01 07 00 [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: 01 07 00 D1 1E 00 00 00 00 00 F3 0D F6 [06:30:11]RasterBufferAndPrint [06:30:11]line [06:30:11]line [06:30:11]line [06:30:11]line [06:30:11]line [06:30:11]written 0, free lines is 3573 [06:30:11]MH_Cut [06:30:11]Write to MH i2c: D1 01 00 D8 1E 01 C8 [06:30:11]Write i2c OK [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: D1 [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: D1 01 00 [06:30:11]MH_I2C_Read... [06:30:11]Read from MH i2c: D1 01 00 D8 1E 00 C7 [06:30:11]Write to MH i2c: 01 00 00 D9 1E F7 [06:30:11]Write i2c OK [06:30:11]MH_I2C_Read... [06:30:11]*** Cut start [06:30:11]*** Partial cut [06:30:11]*** CUTSNS_PIN = 1 [06:30:11]*** CUTSNS_PIN = 0 [06:30:11]*** Brake cut motor [06:30:12]Read from MH i2c: 01 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: 01 07 00 [06:30:12]MH_I2C_Read... [06:30:12]*** Stop cut motor [06:30:12]*** Cut end [06:30:12]Read from MH i2c: 01 07 00 D9 1E 00 00 00 00 00 FF 0F 0C [06:30:12]process_action print_text done [06:30:12]requested_data is exist [06:30:12]produce_requested_data [06:30:12]requested_item fm.sn is exist - process it [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 11 00 00 [06:30:12]Write to MH i2c: E2 08 00 DA 1E 80 11 00 00 00 00 00 00 72 [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 17 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 17 00 DA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [06:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:30:12]wFMCommunicate OK [06:30:12]requested_item fd.num is exist - process it [06:30:12]SAM_PROTO_GetFieldsCounters [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 13 00 00 [06:30:12]Write to MH i2c: E2 08 00 DB 1E 80 13 00 00 00 00 00 00 75 [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 62 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 62 00 DB 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 72 00 00 0E 04 04 00 75 00 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 E0 [06:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 72 00 00 0E 04 04 00 75 00 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 [06:30:12]wFMCommunicate OK [06:30:12]SAM_PROTO_GetFieldsCounters done [06:30:12]requested_item shift.num is exist - process it [06:30:12]requested_item shift.opened is exist - process it [06:30:12]req_shift_opened [06:30:12]FM_GetShiftState [06:30:12]SAM_PROTO_GetShiftState [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 13 01 00 [06:30:12]Write to MH i2c: E2 08 00 DC 1E 80 13 01 00 00 00 00 00 77 [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 0E 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 0E 00 DC 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6B [06:30:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:30:12]wFMCommunicate OK [06:30:12]SAM_PROTO_GetShiftState done [06:30:12]FM_GetShiftState done [06:30:12]req_shift_opened done [06:30:12]requested_item shift.open_date is exist - process it [06:30:12]req_shift_open_date [06:30:12]req_shift_open_date done [06:30:12]produce_requested_data done [06:30:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29432,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:30:12]process_action_free print_text [06:30:12]json_value_free [06:30:12]json_value_free done [06:30:12]process_json_proto returns [06:30:12]Send response to host [06:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29432,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:30:12]free response buf [06:30:12]execute_script done [06:30:12]execute_script returns [06:30:12]free content buf [06:30:12]Sock 9.Close socket [06:30:12]Sock 9.Thread stoped [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:43]accept exits with 8 [06:46:43]New connection [06:46:43]New thread 3066969444 created [06:46:43]Thread 3067112804 joined [06:46:43]Waiting for new connection... [06:46:43] Sock 8.Parse request [06:46:43]Sock 8.Check first char [06:46:43]Sock 8.First char is OK [06:46:43]request: POST /json_proto HTTP/1.0 [06:46:43]Method: POST [06:46:43]URL: /json_proto [06:46:43]Method is POST - this is cgi request [06:46:43]url: /json_proto [06:46:43]query_string will be loaded in cgi processing [06:46:43]execute_cgi json_proto POST (null) [06:46:43]execute_cgi path=json_proto method=POST [06:46:43]POST find Content-Length [06:46:43]Host: 172.17.33.3:8080 [06:46:43]Content-Length: 675 [06:46:43]Content-Type: application/json [06:46:43] [06:46:43]POST finish read [06:46:43]Found Content-Length = 675 [06:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:43]execute_script... [06:46: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)347829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:43]POST & json_proto [06:46:43]process_json_proto [06:46:43]json parsed OK: [06:46:43]protocol is kg_v1.0 [06:46:43]action value=close_receipt [06:46:43]process_action close_receipt [06:46:43]cmd_close_receipt [06:46:43]MH_GetDate [06:46:43]Write to MH i2c: F0 00 00 DD 1E EA [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: F0 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: F0 09 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: F0 09 00 DD 1E 00 56 CD 1C 66 23 5B 8F 65 0A [06:46:43]GetLastDocTimeStamp 1713162499 [06:46:43]current date 1713163606 [06:46:43]FM_GetShiftState [06:46:43]SAM_PROTO_GetShiftState [06:46:43]wFMCommunicate request_size=4 [06:46:43]MH_SAM_APDU [06:46:43]CAPDU: 80 13 01 00 [06:46:43]Write to MH i2c: E2 08 00 DE 1E 80 13 01 00 00 00 00 00 79 [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 DE 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6D [06:46:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:46:43]wFMCommunicate OK [06:46:43]SAM_PROTO_GetShiftState done [06:46:43]FM_GetShiftState done [06:46:43]opened in 1713140468 [06:46:43]opened+sec_in_day 1713226868 [06:46:43]quantity*price = 200032 [06:46:43]sum+1 = 200033 [06:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 15.04.2024 06:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29433 ФПД: 157114689418870 1/tax-web-control/client/api/v1/ticket?date=20240415T064646&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29433&fm=157114689418870&tin=02508201610067®Number=0000138879044617&sum=200000 [06:46:44]StoreToDocumentArchive [06:46:44]shift 117 fd 29433 [06:46:44]save to /storage/0117/doc_00029433 [06:46:44]save last doc name /storage/0117/doc_00029433 to /storage/kkm_last_doc_name [06:46:44]save OK [06:46:44]Clear old archive folders... [06:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:46:44]tlvbuf is 00259150 [06:46:44]SAM_PROTO_ClearQueue [06:46:44]wFMCommunicate request_size=4 [06:46:44]MH_SAM_APDU [06:46:44]CAPDU: 80 09 00 00 [06:46:44]Write to MH i2c: E2 08 00 EB 1E 80 09 00 00 00 00 00 00 7B [06:46:44]Write i2c OK [06:46:44]MH_I2C_Read... [06:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:44]Read from MH i2c: E2 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 EB 1E 00 90 00 7D [06:46:44]RAPDU: 90 00 [06:46:44]wFMCommunicate OK [06:46:44]SAM_PROTO_ClearQueue done [06:46:44]KKMCreateOFDPacket [06:46:44]OFDProtocolAddRootSTLVToBuf [06:46:44]FM_MakeSignedData [06:46:44]FM_MakeSignedData [06:46:44]SAM_PROTO_SignData [06:46:44]wFMCommunicate request_size=4 [06:46:44]MH_SAM_APDU [06:46:44]CAPDU: 80 0D 01 02 [06:46:44]Write to MH i2c: E2 08 00 EC 1E 80 0D 01 02 00 00 00 00 83 [06:46:44]Write i2c OK [06:46:44]MH_I2C_Read... [06:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:44]Read from MH i2c: E2 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 EC 1E 00 90 00 7E [06:46:44]RAPDU: 90 00 [06:46:44]wFMCommunicate OK [06:46:44]wFMCommunicate request_size=255 [06:46:44]MH_SAM_APDU [06:46: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1B 00 00 00 F4 03 04 00 56 CD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 72 00 00 35 04 06 00 [06:46:44]Write to MH i2c: E2 02 01 ED 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1B 00 00 00 F4 03 04 00 56 CD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 72 00 00 35 04 06 00 00 00 43 [06:46:44]Write i2c OK [06:46:44]MH_I2C_Read... [06:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:44]Read from MH i2c: E2 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 [06:46:44]MH_I2C_Read... [06:46:44]Read from MH i2c: E2 03 00 ED 1E 00 90 00 7F [06:46:44]RAPDU: 90 00 [06:46:44]wFMCommunicate OK [06:46:44]wFMCommunicate request_size=11 [06:46:44]MH_SAM_APDU [06:46:44]CAPDU: 80 0D 02 02 06 8E E5 1D 40 76 76 [06:46:44]Write to MH i2c: E2 0E 00 EE 1E 80 0D 02 02 06 00 8E E5 1D 40 76 76 00 00 4E [06:46:44]Write i2c OK [06:46:44]MH_I2C_Read... [06:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:45]Read from MH i2c: E2 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 03 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 03 00 EE 1E 00 90 00 80 [06:46:45]RAPDU: 90 00 [06:46:45]wFMCommunicate OK [06:46:45]wFMCommunicate request_size=4 [06:46:45]MH_SAM_APDU [06:46:45]CAPDU: 80 0D 03 02 [06:46:45]Write to MH i2c: E2 08 00 EF 1E 80 0D 03 02 00 00 00 00 88 [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:45]Read from MH i2c: E2 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 0B 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 0B 00 EF 1E 00 86 18 C7 DC 7A 32 23 6A 90 00 03 [06:46:45]RAPDU: 86 18 C7 DC 7A 32 23 6A 90 00 [06:46:45]wFMCommunicate OK [06:46:45]SAM_PROTO_SignData done [06:46:45]FM_MakeSignedData done [06:46:45]CreateOFDProtocolMessage [06:46:45]wFMCommunicate request_size=4 [06:46:45]MH_SAM_APDU [06:46:45]CAPDU: 80 11 00 00 [06:46:45]Write to MH i2c: E2 08 00 F0 1E 80 11 00 00 00 00 00 00 88 [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:45]Read from MH i2c: E2 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 17 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: E2 17 00 F0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [06:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:46:45]wFMCommunicate OK [06:46:45]CreateOFDProtocolMessage done [06:46:45]OFDSenderStorePacket 29433 [06:46:45]StoreOFDPacket docnum=29433 [06:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 87 8F 08 01 54 FE 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1B 00 00 00 F4 03 04 00 56 CD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 72 00 00 35 04 06 00 8E E5 1D 40 76 76 86 18 C7 DC 7A 32 23 6A [06:46:45]CheckFolder [06:46:45]dirname=/storage/ofd_packets [06:46:45]CheckFolder done [06:46:45]ProducePacketName [06:46:45]name=ofd_packets/00029433 [06:46:45]NVStorageSaveData ofd_packets/00029433 [06:46:45]File name is /storage/ofd_packets/00029433 [06:46:45]Write 302 bytes [06:46:45]NVStorageSaveData done [06:46:45]OFDSenderStorePacket done [06:46:45]KKMCreateOFDPacket done [06:46:45]NVStorageSaveData kkm_last_timestamp [06:46:45]File name is /storage/kkm_last_timestamp [06:46:45]Write 4 bytes [06:46:45]NVStorageSaveData done [06:46:45]ExternCall_PrintAddStr [06:46:45]wPrintStart [06:46:45]Write to MH i2c: 01 00 00 F1 1E 0F [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 07 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 07 00 F1 1E 00 00 00 00 00 FF 0F 24 [06:46:45]RasterBufferAndPrint [06:46:45]line Счет N : (1)347829 [06:46:45]line ИНН: 02508201610067 [06:46:45]line Контрольно-Кассовый Чек [06:46:45]line ПРОДАЖА [06:46:45]line ТРК (МРК, ГНК) : 31 [06:46:45]line Товар: 2710124130 [06:46:45]line SUPER-92-К-5 [06:46:45]line 30.400 * 65.80 [06:46:45]line = 2000.32 [06:46:45]line НДС 12% НСП 1% [06:46:45]line > о реализуемом товаре [06:46:45]line ОКРУГЛЕНИЕ: -0.32 [06:46:45]line ИТОГО: 2000.00 [06:46:45]line Внесено: 2000.00 [06:46:45]line СДАЧА: 0.00 [06:46:45]line НСП 1% : 17.70 [06:46:45]line НДС 12% : 212.42 [06:46:45]line Наличными: 2000.00 [06:46:45]line Безнал.: 0.00 [06:46:45]line Место: АЗС № 108 "Партнер Нефть" [06:46:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:46:45]line СНО: Общий режим [06:46:45]line Чек 27 15.04.2024 06:46 [06:46:45]line Смена: 117 ФФД: 1.0 [06:46:45]line ЗНМ: 0300000027 [06:46:45]line РНМ: 0000138879044617 [06:46:45]line Версия ККМ: 001 [06:46:45]line ФМ: 0000000000963154 [06:46:45]line ФД: 29433 [06:46:45]line ФПД: 157114689418870 [06:46:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T064646&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29433&fm=157114689418870&tin=02508201610067®Number=0000138879044617&sum=200000 [06:46:45]OFD Sender: Processing packet 29433 [packets to send 8, broken 7] [06:46:45]ProducePacketName [06:46:45]name=ofd_packets/00029433 [06:46:45]OFD Sender: To server: pG, [06:46:45]CommunicateWithHost lk.salyk.kg:30040 [06:46:45]ConnectInit lk.salyk.kg [06:46:45]written 0, free lines is 4095 [06:46:45]Connected sock=10 [06:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 87 8F 08 01 54 FE 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1B 00 00 00 F4 03 04 00 56 CD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 72 00 00 35 04 06 00 8E E5 1D 40 76 76 86 18 C7 DC 7A 32 23 6A [06:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 3B 47 00 EB 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 39 36 33 31 35 34 10 04 04 00 F9 72 00 00 F4 03 04 00 F8 77 1C 66 B6 04 01 00 00 EF 02 CA B9 BE 97 76 34 [06:46:45]CommunicateWithHost err = 0 [06:46:45]CheckOFDResponse [06:46:45]1017 (14) - 77093643461234 [06:46:45]1041 (16) - 0000000000963154 [06:46:45]1040 (4) - 29433 [06:46:45]1012 (4) - 15.04.2024 00:42 [06:46:45]1206 (1) - 0 [06:46:45]OFD Sender: Remove packet 29433 [06:46:45]ProducePacketName [06:46:45]name=ofd_packets/00029433 [06:46:45]NVStorageDeleteData [06:46:45]Write to MH i2c: 01 00 00 1B 1F 3A [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 07 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: 01 07 00 1B 1F 00 00 00 00 00 BD 0C 0A [06:46:45]RasterBufferAndPrint [06:46:45]line [06:46:45]line [06:46:45]line [06:46:45]line [06:46:45]line [06:46:45]written 0, free lines is 3267 [06:46:45]MH_Cut [06:46:45]Write to MH i2c: D1 01 00 22 1F 01 13 [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: D1 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: D1 01 00 [06:46:45]MH_I2C_Read... [06:46:45]Read from MH i2c: D1 01 00 22 1F 00 12 [06:46:45]Write to MH i2c: 01 00 00 23 1F 42 [06:46:45]Write i2c OK [06:46:45]MH_I2C_Read... [06:46:46]OFD Sender: No OFD packet to send [06:46:46]*** Cut start [06:46:46]*** Partial cut [06:46:46]*** CUTSNS_PIN = 1 [06:46:46]*** CUTSNS_PIN = 0 [06:46:47]*** Brake cut motor [06:46:47]Read from MH i2c: 01 [06:46:47]MH_I2C_Read... [06:46:47]*** Stop cut motor [06:46:47]*** Cut end [06:46:47]Read from MH i2c: 01 07 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: 01 07 00 23 1F 00 00 00 00 00 FF 0F 57 [06:46:47]process_action close_receipt done [06:46:47]requested_data is exist [06:46:47]produce_requested_data [06:46:47]requested_item fm.sn is exist - process it [06:46:47]wFMCommunicate request_size=4 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 11 00 00 [06:46:47]Write to MH i2c: E2 08 00 24 1F 80 11 00 00 00 00 00 00 BD [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 17 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 17 00 24 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [06:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:46:47]wFMCommunicate OK [06:46:47]requested_item fd.num is exist - process it [06:46:47]SAM_PROTO_GetFieldsCounters [06:46:47]wFMCommunicate request_size=4 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 13 00 00 [06:46:47]Write to MH i2c: E2 08 00 25 1F 80 13 00 00 00 00 00 00 C0 [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 62 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 62 00 25 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 72 00 00 0E 04 04 00 75 00 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 2F [06:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 72 00 00 0E 04 04 00 75 00 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 [06:46:47]wFMCommunicate OK [06:46:47]SAM_PROTO_GetFieldsCounters done [06:46:47]requested_item shift.num is exist - process it [06:46:47]requested_item shift.opened is exist - process it [06:46:47]req_shift_opened [06:46:47]FM_GetShiftState [06:46:47]SAM_PROTO_GetShiftState [06:46:47]wFMCommunicate request_size=4 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 13 01 00 [06:46:47]Write to MH i2c: E2 08 00 26 1F 80 13 01 00 00 00 00 00 C2 [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:47]Read from MH i2c: E2 0E 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 0E 00 26 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B6 [06:46:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:46:47]wFMCommunicate OK [06:46:47]SAM_PROTO_GetShiftState done [06:46:47]FM_GetShiftState done [06:46:47]req_shift_opened done [06:46:47]requested_item shift.open_date is exist - process it [06:46:47]req_shift_open_date [06:46:47]req_shift_open_date done [06:46:47]produce_requested_data done [06:46:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29433,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:46:47]process_action_free close_receipt [06:46:47]json_value_free [06:46:47]json_value_free done [06:46:47]process_json_proto returns [06:46:47]Send response to host [06:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29433,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:46:47]free response buf [06:46:47]execute_script done [06:46:47]execute_script returns [06:46:47]free content buf [06:46:47]Sock 8.Close socket [06:46:47]Sock 8.Thread stoped [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:18]accept exits with 9 [06:50:18]New connection [06:50:18]New thread 3067112804 created [06:50:18]Thread 3066969444 joined [06:50:18]Waiting for new connection... [06:50:18] Sock 9.Parse request [06:50:18]Sock 9.Check first char [06:50:18]Sock 9.First char is OK [06:50:18]request: POST /json_proto HTTP/1.0 [06:50:18]Method: POST [06:50:18]URL: /json_proto [06:50:18]Method is POST - this is cgi request [06:50:18]url: /json_proto [06:50:18]query_string will be loaded in cgi processing [06:50:18]execute_cgi json_proto POST (null) [06:50:18]execute_cgi path=json_proto method=POST [06:50:18]POST find Content-Length [06:50:18]Host: 172.17.33.3:8080 [06:50:18]Content-Length: 1212 [06:50:18]Content-Type: application/json [06:50:18] [06:50:18]POST finish read [06:50:18]Found Content-Length = 1212 [06:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347830\u000A15.04.2024 06:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:18]execute_script... [06:50:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347830\u000A15.04.2024 06:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:18]POST & json_proto [06:50:18]process_json_proto [06:50:18]json parsed OK: [06:50:18]protocol is kg_v1.0 [06:50:18]action value=print_text [06:50:18]process_action print_text [06:50:18]cmd_print_text [06:50:18]ExternCall_PrintAddStr [06:50:18]wPrintStart [06:50:18]Write to MH i2c: 01 00 00 27 1F 46 [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 07 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 FF 0F 5B [06:50:18]RasterBufferAndPrint [06:50:18]line *****ТОВАРНЫЙ ЧЕК***** [06:50:18]line АЗС 108 [06:50:18]line Партнер нефть [06:50:18]line 02508201610067 [06:50:18]line Кассир : Джумагулова Н. [06:50:18]line Счет N : (1)347830 [06:50:18]line 15.04.2024 06:32 [06:50:18]line ПРОДАЖА [06:50:18]line ТРК (МРК, ГНК): 42 [06:50:18]line Вид ГСМ : 2710124130 [06:50:18]line Аи-92-К-5 [06:50:18]line 13.890 x 64.80 [06:50:18]line ИТОГ: 900.07 [06:50:18]line Тип оплаты: Талоны: Топливная Карта [06:50:18]line 74589 [06:50:18]line ______________________ [06:50:18]line (подпись) [06:50:18]written 0, free lines is 4095 [06:50:18]Write to MH i2c: 01 00 00 3C 1F 5B [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 07 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: 01 07 00 3C 1F 00 00 00 00 00 F5 0D 64 [06:50:18]RasterBufferAndPrint [06:50:18]line [06:50:18]line [06:50:18]line [06:50:18]line [06:50:18]line [06:50:18]written 0, free lines is 3575 [06:50:18]MH_Cut [06:50:18]Write to MH i2c: D1 01 00 43 1F 01 34 [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: D1 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: D1 01 00 [06:50:18]MH_I2C_Read... [06:50:18]Read from MH i2c: D1 01 00 43 1F 00 33 [06:50:18]Write to MH i2c: 01 00 00 44 1F 63 [06:50:18]Write i2c OK [06:50:18]MH_I2C_Read... [06:50:18]*** Cut start [06:50:18]*** Partial cut [06:50:18]*** CUTSNS_PIN = 1 [06:50:18]*** CUTSNS_PIN = 0 [06:50:19]*** Brake cut motor [06:50:19]Read from MH i2c: 01 [06:50:19]MH_I2C_Read... [06:50:19]*** Stop cut motor [06:50:19]*** Cut end [06:50:19]Read from MH i2c: 01 07 00 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: 01 07 00 44 1F 00 00 00 00 00 FF 0F 78 [06:50:19]process_action print_text done [06:50:19]requested_data is exist [06:50:19]produce_requested_data [06:50:19]requested_item fm.sn is exist - process it [06:50:19]wFMCommunicate request_size=4 [06:50:19]MH_SAM_APDU [06:50:19]CAPDU: 80 11 00 00 [06:50:19]Write to MH i2c: E2 08 00 45 1F 80 11 00 00 00 00 00 00 DE [06:50:19]Write i2c OK [06:50:19]MH_I2C_Read... [06:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:19]Read from MH i2c: E2 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 17 00 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 17 00 45 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [06:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:50:19]wFMCommunicate OK [06:50:19]requested_item fd.num is exist - process it [06:50:19]SAM_PROTO_GetFieldsCounters [06:50:19]wFMCommunicate request_size=4 [06:50:19]MH_SAM_APDU [06:50:19]CAPDU: 80 13 00 00 [06:50:19]Write to MH i2c: E2 08 00 46 1F 80 13 00 00 00 00 00 00 E1 [06:50:19]Write i2c OK [06:50:19]MH_I2C_Read... [06:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:19]Read from MH i2c: E2 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 62 00 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 62 00 46 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 72 00 00 0E 04 04 00 75 00 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 50 [06:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 72 00 00 0E 04 04 00 75 00 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 [06:50:19]wFMCommunicate OK [06:50:19]SAM_PROTO_GetFieldsCounters done [06:50:19]requested_item shift.num is exist - process it [06:50:19]requested_item shift.opened is exist - process it [06:50:19]req_shift_opened [06:50:19]FM_GetShiftState [06:50:19]SAM_PROTO_GetShiftState [06:50:19]wFMCommunicate request_size=4 [06:50:19]MH_SAM_APDU [06:50:19]CAPDU: 80 13 01 00 [06:50:19]Write to MH i2c: E2 08 00 47 1F 80 13 01 00 00 00 00 00 E3 [06:50:19]Write i2c OK [06:50:19]MH_I2C_Read... [06:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:19]Read from MH i2c: E2 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 0E 00 [06:50:19]MH_I2C_Read... [06:50:19]Read from MH i2c: E2 0E 00 47 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [06:50:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:50:19]wFMCommunicate OK [06:50:19]SAM_PROTO_GetShiftState done [06:50:19]FM_GetShiftState done [06:50:19]req_shift_opened done [06:50:19]requested_item shift.open_date is exist - process it [06:50:19]req_shift_open_date [06:50:19]req_shift_open_date done [06:50:19]produce_requested_data done [06:50:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29433,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:50:19]process_action_free print_text [06:50:19]json_value_free [06:50:19]json_value_free done [06:50:19]process_json_proto returns [06:50:19]Send response to host [06:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29433,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:50:19]free response buf [06:50:19]execute_script done [06:50:19]execute_script returns [06:50:19]free content buf [06:50:19]Sock 9.Close socket [06:50:19]Sock 9.Thread stoped [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:39]accept exits with 8 [06:55:39]New connection [06:55:39]New thread 3066969444 created [06:55:39]Thread 3067112804 joined [06:55:39]Waiting for new connection... [06:55:39] Sock 8.Parse request [06:55:39]Sock 8.Check first char [06:55:39]Sock 8.First char is OK [06:55:39]request: POST /json_proto HTTP/1.0 [06:55:39]Method: POST [06:55:39]URL: /json_proto [06:55:39]Method is POST - this is cgi request [06:55:39]url: /json_proto [06:55:39]query_string will be loaded in cgi processing [06:55:39]execute_cgi json_proto POST (null) [06:55:39]execute_cgi path=json_proto method=POST [06:55:39]POST find Content-Length [06:55:39]Host: 172.17.33.3:8080 [06:55:39]Content-Length: 678 [06:55:39]Content-Type: application/json [06:55:39] [06:55:39]POST finish read [06:55:39]Found Content-Length = 678 [06:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [06:55:39]execute_script... [06:55: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)347831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [06:55:39]POST & json_proto [06:55:39]process_json_proto [06:55:39]json parsed OK: [06:55:39]protocol is kg_v1.0 [06:55:39]action value=close_receipt [06:55:39]process_action close_receipt [06:55:39]cmd_close_receipt [06:55:39]MH_GetDate [06:55:39]Write to MH i2c: F0 00 00 48 1F 56 [06:55:39]Write i2c OK [06:55:39]MH_I2C_Read... [06:55:39]Read from MH i2c: F0 [06:55:39]MH_I2C_Read... [06:55:39]Read from MH i2c: F0 09 00 [06:55:39]MH_I2C_Read... [06:55:39]Read from MH i2c: F0 09 00 48 1F 00 6E CF 1C 66 23 5B 8F 65 90 [06:55:39]GetLastDocTimeStamp 1713163606 [06:55:39]current date 1713164142 [06:55:39]FM_GetShiftState [06:55:39]SAM_PROTO_GetShiftState [06:55:39]wFMCommunicate request_size=4 [06:55:39]MH_SAM_APDU [06:55:39]CAPDU: 80 13 01 00 [06:55:39]Write to MH i2c: E2 08 00 49 1F 80 13 01 00 00 00 00 00 E5 [06:55:39]Write i2c OK [06:55:39]MH_I2C_Read... [06:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:39]Read from MH i2c: E2 [06:55:39]MH_I2C_Read... [06:55:39]Read from MH i2c: E2 0E 00 [06:55:39]MH_I2C_Read... [06:55:39]Read from MH i2c: E2 0E 00 49 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [06:55:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:55:39]wFMCommunicate OK [06:55:39]SAM_PROTO_GetShiftState done [06:55:39]FM_GetShiftState done [06:55:39]opened in 1713140468 [06:55:39]opened+sec_in_day 1713226868 [06:55:39]quantity*price = 80044 [06:55:39]sum+1 = 80045 [06:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 15.04.2024 06:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29434 ФПД: 198039463050704 1/tax-web-control/client/api/v1/ticket?date=20240415T065542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29434&fm=198039463050704&tin=02508201610067®Number=0000138879044617&sum=80000 [06:55:40]StoreToDocumentArchive [06:55:40]shift 117 fd 29434 [06:55:40]save to /storage/0117/doc_00029434 [06:55:40]save last doc name /storage/0117/doc_00029434 to /storage/kkm_last_doc_name [06:55:40]save OK [06:55:40]Clear old archive folders... [06:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:55:40]tlvbuf is 00258D50 [06:55:40]SAM_PROTO_ClearQueue [06:55:40]wFMCommunicate request_size=4 [06:55:40]MH_SAM_APDU [06:55:40]CAPDU: 80 09 00 00 [06:55:40]Write to MH i2c: E2 08 00 56 1F 80 09 00 00 00 00 00 00 E7 [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:40]Read from MH i2c: E2 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [06:55:40]RAPDU: 90 00 [06:55:40]wFMCommunicate OK [06:55:40]SAM_PROTO_ClearQueue done [06:55:40]KKMCreateOFDPacket [06:55:40]OFDProtocolAddRootSTLVToBuf [06:55:40]FM_MakeSignedData [06:55:40]FM_MakeSignedData [06:55:40]SAM_PROTO_SignData [06:55:40]wFMCommunicate request_size=4 [06:55:40]MH_SAM_APDU [06:55:40]CAPDU: 80 0D 01 02 [06:55:40]Write to MH i2c: E2 08 00 57 1F 80 0D 01 02 00 00 00 00 EF [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:40]Read from MH i2c: E2 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [06:55:40]RAPDU: 90 00 [06:55:40]wFMCommunicate OK [06:55:40]wFMCommunicate request_size=255 [06:55:40]MH_SAM_APDU [06:55: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 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 1C 00 00 00 F4 03 04 00 6E CF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 72 00 00 35 04 06 00 B4 [06:55:40]Write to MH i2c: E2 02 01 58 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 1C 00 00 00 F4 03 04 00 6E CF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 72 00 00 35 04 06 00 B4 00 00 A0 [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:40]Read from MH i2c: E2 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [06:55:40]RAPDU: 90 00 [06:55:40]wFMCommunicate OK [06:55:40]wFMCommunicate request_size=10 [06:55:40]MH_SAM_APDU [06:55:40]CAPDU: 80 0D 02 02 05 1D A7 D8 BD D0 [06:55:40]Write to MH i2c: E2 0D 00 59 1F 80 0D 02 02 05 00 1D A7 D8 BD D0 00 00 25 [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:40]Read from MH i2c: E2 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [06:55:40]RAPDU: 90 00 [06:55:40]wFMCommunicate OK [06:55:40]wFMCommunicate request_size=4 [06:55:40]MH_SAM_APDU [06:55:40]CAPDU: 80 0D 03 02 [06:55:40]Write to MH i2c: E2 08 00 5A 1F 80 0D 03 02 00 00 00 00 F4 [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:40]Read from MH i2c: E2 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 0B 00 [06:55:40]MH_I2C_Read... [06:55:40]Read from MH i2c: E2 0B 00 5A 1F 00 94 99 DC F5 38 A6 18 CA 90 00 B3 [06:55:40]RAPDU: 94 99 DC F5 38 A6 18 CA 90 00 [06:55:40]wFMCommunicate OK [06:55:40]SAM_PROTO_SignData done [06:55:40]FM_MakeSignedData done [06:55:40]CreateOFDProtocolMessage [06:55:40]wFMCommunicate request_size=4 [06:55:40]MH_SAM_APDU [06:55:40]CAPDU: 80 11 00 00 [06:55:40]Write to MH i2c: E2 08 00 5B 1F 80 11 00 00 00 00 00 00 F4 [06:55:40]Write i2c OK [06:55:40]MH_I2C_Read... [06:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:41]Read from MH i2c: E2 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: E2 17 00 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: E2 17 00 5B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [06:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:55:41]wFMCommunicate OK [06:55:41]CreateOFDProtocolMessage done [06:55:41]OFDSenderStorePacket 29434 [06:55:41]StoreOFDPacket docnum=29434 [06:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CA 0C 07 01 30 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 1C 00 00 00 F4 03 04 00 6E CF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 72 00 00 35 04 06 00 B4 1D A7 D8 BD D0 94 99 DC F5 38 A6 18 CA [06:55:41]CheckFolder [06:55:41]dirname=/storage/ofd_packets [06:55:41]CheckFolder done [06:55:41]ProducePacketName [06:55:41]name=ofd_packets/00029434 [06:55:41]NVStorageSaveData ofd_packets/00029434 [06:55:41]File name is /storage/ofd_packets/00029434 [06:55:41]Write 301 bytes [06:55:41]NVStorageSaveData done [06:55:41]OFDSenderStorePacket done [06:55:41]KKMCreateOFDPacket done [06:55:41]NVStorageSaveData kkm_last_timestamp [06:55:41]File name is /storage/kkm_last_timestamp [06:55:41]Write 4 bytes [06:55:41]NVStorageSaveData done [06:55:41]OFD Sender: Processing packet 29434 [packets to send 8, broken 7] [06:55:41]ProducePacketName [06:55:41]name=ofd_packets/00029434 [06:55:41]OFD Sender: To server: pG, [06:55:41]CommunicateWithHost lk.salyk.kg:30040 [06:55:41]ConnectInit lk.salyk.kg [06:55:41]ExternCall_PrintAddStr [06:55:41]wPrintStart [06:55:41]Write to MH i2c: 01 00 00 5C 1F 7B [06:55:41]Write i2c OK [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 07 00 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 07 00 5C 1F 00 00 00 00 00 FF 0F 90 [06:55:41]RasterBufferAndPrint [06:55:41]line Счет N : (1)347831 [06:55:41]line ИНН: 02508201610067 [06:55:41]line Контрольно-Кассовый Чек [06:55:41]line ПРОДАЖА [06:55:41]line ТРК (МРК, ГНК) : 33 [06:55:41]line Товар: 2710124500 [06:55:41]line Аи-95-К-5 [06:55:41]line 10.980 * 72.90 [06:55:41]line = 800.44 [06:55:41]line НДС 12% НСП 1% [06:55:41]line > о реализуемом товаре [06:55:41]line ОКРУГЛЕНИЕ: -0.44 [06:55:41]line ИТОГО: 800.00 [06:55:41]line Внесено: 800.00 [06:55:41]line СДАЧА: 0.00 [06:55:41]line НСП 1% : 7.08 [06:55:41]line НДС 12% : 85.00 [06:55:41]line Наличными: 800.00 [06:55:41]line Безнал.: 0.00 [06:55:41]line Место: АЗС № 108 "Партнер Нефть" [06:55:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:55:41]line СНО: Общий режим [06:55:41]line Чек 28 15.04.2024 06:55 [06:55:41]line Смена: 117 ФФД: 1.0 [06:55:41]line ЗНМ: 0300000027 [06:55:41]line РНМ: 0000138879044617 [06:55:41]line Версия ККМ: 001 [06:55:41]line ФМ: 0000000000963154 [06:55:41]line ФД: 29434 [06:55:41]line ФПД: 198039463050704 [06:55:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T065542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29434&fm=198039463050704&tin=02508201610067®Number=0000138879044617&sum=80000 [06:55:41]Connected sock=11 [06:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CA 0C 07 01 30 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 1C 00 00 00 F4 03 04 00 6E CF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 72 00 00 35 04 06 00 B4 1D A7 D8 BD D0 94 99 DC F5 38 A6 18 CA [06:55:41]written 0, free lines is 4095 [06:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 80 A8 47 00 09 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 72 00 00 F4 03 04 00 10 7A 1C 66 B6 04 01 00 00 47 2E 87 8D 83 BE 64 B3 [06:55:41]CommunicateWithHost err = 0 [06:55:41]CheckOFDResponse [06:55:41]1017 (14) - 77093643461234 [06:55:41]1041 (16) - 0000000000963154 [06:55:41]1040 (4) - 29434 [06:55:41]1012 (4) - 15.04.2024 00:51 [06:55:41]1206 (1) - 0 [06:55:41]OFD Sender: Remove packet 29434 [06:55:41]ProducePacketName [06:55:41]name=ofd_packets/00029434 [06:55:41]NVStorageDeleteData [06:55:41]Write to MH i2c: 01 00 00 86 1F A5 [06:55:41]Write i2c OK [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 07 00 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: 01 07 00 86 1F 00 00 00 00 00 BC 0C 74 [06:55:41]RasterBufferAndPrint [06:55:41]line [06:55:41]line [06:55:41]line [06:55:41]line [06:55:41]line [06:55:41]written 0, free lines is 3266 [06:55:41]MH_Cut [06:55:41]Write to MH i2c: D1 01 00 8D 1F 01 7E [06:55:41]Write i2c OK [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: D1 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: D1 01 00 [06:55:41]MH_I2C_Read... [06:55:41]Read from MH i2c: D1 01 00 8D 1F 00 7D [06:55:41]Write to MH i2c: 01 00 00 8E 1F AD [06:55:41]Write i2c OK [06:55:41]MH_I2C_Read... [06:55:42]OFD Sender: No OFD packet to send [06:55:42]*** Cut start [06:55:42]*** Partial cut [06:55:42]*** CUTSNS_PIN = 1 [06:55:42]*** CUTSNS_PIN = 0 [06:55:42]*** Brake cut motor [06:55:43]Read from MH i2c: 01 [06:55:43]MH_I2C_Read... [06:55:43]*** Stop cut motor [06:55:43]*** Cut end [06:55:43]Read from MH i2c: 01 07 00 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: 01 07 00 8E 1F 00 00 00 00 00 FF 0F C2 [06:55:43]process_action close_receipt done [06:55:43]requested_data is exist [06:55:43]produce_requested_data [06:55:43]requested_item fm.sn is exist - process it [06:55:43]wFMCommunicate request_size=4 [06:55:43]MH_SAM_APDU [06:55:43]CAPDU: 80 11 00 00 [06:55:43]Write to MH i2c: E2 08 00 8F 1F 80 11 00 00 00 00 00 00 28 [06:55:43]Write i2c OK [06:55:43]MH_I2C_Read... [06:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:43]Read from MH i2c: E2 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 17 00 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 17 00 8F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [06:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:55:43]wFMCommunicate OK [06:55:43]requested_item fd.num is exist - process it [06:55:43]SAM_PROTO_GetFieldsCounters [06:55:43]wFMCommunicate request_size=4 [06:55:43]MH_SAM_APDU [06:55:43]CAPDU: 80 13 00 00 [06:55:43]Write to MH i2c: E2 08 00 90 1F 80 13 00 00 00 00 00 00 2B [06:55:43]Write i2c OK [06:55:43]MH_I2C_Read... [06:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:43]Read from MH i2c: E2 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 62 00 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 62 00 90 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 72 00 00 0E 04 04 00 75 00 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 9E [06:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 72 00 00 0E 04 04 00 75 00 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 [06:55:43]wFMCommunicate OK [06:55:43]SAM_PROTO_GetFieldsCounters done [06:55:43]requested_item shift.num is exist - process it [06:55:43]requested_item shift.opened is exist - process it [06:55:43]req_shift_opened [06:55:43]FM_GetShiftState [06:55:43]SAM_PROTO_GetShiftState [06:55:43]wFMCommunicate request_size=4 [06:55:43]MH_SAM_APDU [06:55:43]CAPDU: 80 13 01 00 [06:55:43]Write to MH i2c: E2 08 00 91 1F 80 13 01 00 00 00 00 00 2D [06:55:43]Write i2c OK [06:55:43]MH_I2C_Read... [06:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:43]Read from MH i2c: E2 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 0E 00 [06:55:43]MH_I2C_Read... [06:55:43]Read from MH i2c: E2 0E 00 91 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [06:55:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:55:43]wFMCommunicate OK [06:55:43]SAM_PROTO_GetShiftState done [06:55:43]FM_GetShiftState done [06:55:43]req_shift_opened done [06:55:43]requested_item shift.open_date is exist - process it [06:55:43]req_shift_open_date [06:55:43]req_shift_open_date done [06:55:43]produce_requested_data done [06:55:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29434,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:55:43]process_action_free close_receipt [06:55:43]json_value_free [06:55:43]json_value_free done [06:55:43]process_json_proto returns [06:55:43]Send response to host [06:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29434,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:55:43]free response buf [06:55:43]execute_script done [06:55:43]execute_script returns [06:55:43]free content buf [06:55:43]Sock 8.Close socket [06:55:43]Sock 8.Thread stoped [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:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:34]accept exits with 9 [06:59:34]New connection [06:59:34]New thread 3067112804 created [06:59:34]Thread 3066969444 joined [06:59:34]Waiting for new connection... [06:59:34] Sock 9.Parse request [06:59:34]Sock 9.Check first char [06:59:34]Sock 9.First char is OK [06:59:34]request: POST /json_proto HTTP/1.0 [06:59:34]Method: POST [06:59:34]URL: /json_proto [06:59:34]Method is POST - this is cgi request [06:59:34]url: /json_proto [06:59:34]query_string will be loaded in cgi processing [06:59:34]execute_cgi json_proto POST (null) [06:59:34]execute_cgi path=json_proto method=POST [06:59:34]POST find Content-Length [06:59:34]Host: 172.17.33.3:8080 [06:59:34]Content-Length: 675 [06:59:34]Content-Type: application/json [06:59:34] [06:59:34]POST finish read [06:59:34]Found Content-Length = 675 [06:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:34]execute_script... [06:59:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:34]POST & json_proto [06:59:34]process_json_proto [06:59:34]json parsed OK: [06:59:34]protocol is kg_v1.0 [06:59:34]action value=close_receipt [06:59:34]process_action close_receipt [06:59:34]cmd_close_receipt [06:59:34]MH_GetDate [06:59:34]Write to MH i2c: F0 00 00 92 1F A0 [06:59:34]Write i2c OK [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 09 00 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 09 00 92 1F 00 59 D0 1C 66 23 5B 8F 65 C6 [06:59:34]GetLastDocTimeStamp 1713164142 [06:59:34]current date 1713164377 [06:59:34]FM_GetShiftState [06:59:34]SAM_PROTO_GetShiftState [06:59:34]wFMCommunicate request_size=4 [06:59:34]MH_SAM_APDU [06:59:34]CAPDU: 80 13 01 00 [06:59:34]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [06:59:34]Write i2c OK [06:59:34]MH_I2C_Read... [06:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:34]Read from MH i2c: E2 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: E2 0E 00 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [06:59:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:59:34]wFMCommunicate OK [06:59:34]SAM_PROTO_GetShiftState done [06:59:34]FM_GetShiftState done [06:59:34]opened in 1713140468 [06:59:34]opened+sec_in_day 1713226868 [06:59:34]quantity*price = 200032 [06:59:34]sum+1 = 200033 [06:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 15.04.2024 06:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29435 ФПД: 19672258183750 1/tax-web-control/client/api/v1/ticket?date=20240415T065937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29435&fm=19672258183750&tin=02508201610067®Number=0000138879044617&sum=200000 [06:59:35]StoreToDocumentArchive [06:59:35]shift 117 fd 29435 [06:59:35]save to /storage/0117/doc_00029435 [06:59:35]save last doc name /storage/0117/doc_00029435 to /storage/kkm_last_doc_name [06:59:35]save OK [06:59:35]Clear old archive folders... [06:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:59:35]tlvbuf is 0028DA40 [06:59:35]SAM_PROTO_ClearQueue [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 09 00 00 [06:59:35]Write to MH i2c: E2 08 00 A0 1F 80 09 00 00 00 00 00 00 31 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]SAM_PROTO_ClearQueue done [06:59:35]KKMCreateOFDPacket [06:59:35]OFDProtocolAddRootSTLVToBuf [06:59:35]FM_MakeSignedData [06:59:35]FM_MakeSignedData [06:59:35]SAM_PROTO_SignData [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 01 02 [06:59:35]Write to MH i2c: E2 08 00 A1 1F 80 0D 01 02 00 00 00 00 39 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]wFMCommunicate request_size=255 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 02 02 FA 03 00 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1D 00 00 00 F4 03 04 00 59 D0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 72 00 00 35 04 06 00 [06:59:35]Write to MH i2c: E2 02 01 A2 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1D 00 00 00 F4 03 04 00 59 D0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 72 00 00 35 04 06 00 00 00 03 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]wFMCommunicate request_size=11 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 02 02 06 11 E4 4D F6 02 46 [06:59:35]Write to MH i2c: E2 0E 00 A3 1F 80 0D 02 02 06 00 11 E4 4D F6 02 46 00 00 C8 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 03 02 [06:59:35]Write to MH i2c: E2 08 00 A4 1F 80 0D 03 02 00 00 00 00 3E [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 0B 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 0B 00 A4 1F 00 53 7E 84 B7 67 AE 94 E8 90 00 DC [06:59:35]RAPDU: 53 7E 84 B7 67 AE 94 E8 90 00 [06:59:35]wFMCommunicate OK [06:59:35]SAM_PROTO_SignData done [06:59:35]FM_MakeSignedData done [06:59:35]CreateOFDProtocolMessage [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 11 00 00 [06:59:35]Write to MH i2c: E2 08 00 A5 1F 80 11 00 00 00 00 00 00 3E [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 17 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 17 00 A5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [06:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:59:35]wFMCommunicate OK [06:59:35]CreateOFDProtocolMessage done [06:59:35]OFDSenderStorePacket 29435 [06:59:35]StoreOFDPacket docnum=29435 [06:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1E 64 08 01 BF 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1D 00 00 00 F4 03 04 00 59 D0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 72 00 00 35 04 06 00 11 E4 4D F6 02 46 53 7E 84 B7 67 AE 94 E8 [06:59:35]CheckFolder [06:59:35]dirname=/storage/ofd_packets [06:59:35]CheckFolder done [06:59:35]ProducePacketName [06:59:35]name=ofd_packets/00029435 [06:59:35]NVStorageSaveData ofd_packets/00029435 [06:59:35]File name is /storage/ofd_packets/00029435 [06:59:35]Write 302 bytes [06:59:35]NVStorageSaveData done [06:59:35]OFDSenderStorePacket done [06:59:35]KKMCreateOFDPacket done [06:59:35]NVStorageSaveData kkm_last_timestamp [06:59:35]File name is /storage/kkm_last_timestamp [06:59:35]Write 4 bytes [06:59:35]NVStorageSaveData done [06:59:35]ExternCall_PrintAddStr [06:59:35]wPrintStart [06:59:35]Write to MH i2c: 01 00 00 A6 1F C5 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: 01 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: 01 07 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: 01 07 00 A6 1F 00 00 00 00 00 FF 0F DA [06:59:35]RasterBufferAndPrint [06:59:35]line Счет N : (1)347832 [06:59:35]line ИНН: 02508201610067 [06:59:35]line Контрольно-Кассовый Чек [06:59:35]line ПРОДАЖА [06:59:35]line ТРК (МРК, ГНК) : 31 [06:59:35]line Товар: 2710124130 [06:59:35]line SUPER-92-К-5 [06:59:35]line 30.400 * 65.80 [06:59:35]line = 2000.32 [06:59:35]line НДС 12% НСП 1% [06:59:35]line > о реализуемом товаре [06:59:35]line ОКРУГЛЕНИЕ: -0.32 [06:59:35]line ИТОГО: 2000.00 [06:59:35]line Внесено: 2000.00 [06:59:35]line СДАЧА: 0.00 [06:59:35]line НСП 1% : 17.70 [06:59:35]line НДС 12% : 212.42 [06:59:35]line Наличными: 2000.00 [06:59:35]line Безнал.: 0.00 [06:59:35]line Место: АЗС № 108 "Партнер Нефть" [06:59:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:59:35]line СНО: Общий режим [06:59:35]line Чек 29 15.04.2024 06:59 [06:59:35]line Смена: 117 ФФД: 1.0 [06:59:35]line ЗНМ: 0300000027 [06:59:35]line РНМ: 0000138879044617 [06:59:35]line Версия ККМ: 001 [06:59:35]line ФМ: 0000000000963154 [06:59:35]line ФД: 29435 [06:59:35]line ФПД: 19672258183750 [06:59:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T065937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29435&fm=19672258183750&tin=02508201610067®Number=0000138879044617&sum=200000 [06:59:36]OFD Sender: Processing packet 29435 [packets to send 8, broken 7] [06:59:36]ProducePacketName [06:59:36]name=ofd_packets/00029435 [06:59:36]OFD Sender: To server: pG, [06:59:36]CommunicateWithHost lk.salyk.kg:30040 [06:59:36]ConnectInit lk.salyk.kg [06:59:36]written 0, free lines is 4095 [06:59:36]Connected sock=10 [06:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1E 64 08 01 BF 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1D 00 00 00 F4 03 04 00 59 D0 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 72 00 00 35 04 06 00 11 E4 4D F6 02 46 53 7E 84 B7 67 AE 94 E8 [06:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 73 47 00 7E E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 72 00 00 F4 03 04 00 FB 7A 1C 66 B6 04 01 00 00 83 9F 0F A4 0E 48 80 B1 [06:59:36]CommunicateWithHost err = 0 [06:59:36]CheckOFDResponse [06:59:36]1017 (14) - 77093643461234 [06:59:36]1041 (16) - 0000000000963154 [06:59:36]1040 (4) - 29435 [06:59:36]1012 (4) - 15.04.2024 00:55 [06:59:36]1206 (1) - 0 [06:59:36]OFD Sender: Remove packet 29435 [06:59:36]ProducePacketName [06:59:36]name=ofd_packets/00029435 [06:59:36]NVStorageDeleteData [06:59:36]Write to MH i2c: 01 00 00 D0 1F EF [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 07 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 C6 0C C8 [06:59:36]RasterBufferAndPrint [06:59:36]line [06:59:36]line [06:59:36]line [06:59:36]line [06:59:36]line [06:59:36]written 0, free lines is 3274 [06:59:36]MH_Cut [06:59:36]Write to MH i2c: D1 01 00 D7 1F 01 C8 [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: D1 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: D1 01 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: D1 01 00 D7 1F 00 C7 [06:59:36]Write to MH i2c: 01 00 00 D8 1F F7 [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:37]OFD Sender: No OFD packet to send [06:59:37]*** Cut start [06:59:37]*** Partial cut [06:59:37]*** CUTSNS_PIN = 1 [06:59:37]*** CUTSNS_PIN = 0 [06:59:37]*** Brake cut motor [06:59:38]Read from MH i2c: 01 [06:59:38]MH_I2C_Read... [06:59:38]*** Stop cut motor [06:59:38]*** Cut end [06:59:38]Read from MH i2c: 01 07 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [06:59:38]process_action close_receipt done [06:59:38]requested_data is exist [06:59:38]produce_requested_data [06:59:38]requested_item fm.sn is exist - process it [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 11 00 00 [06:59:38]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 17 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [06:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:59:38]wFMCommunicate OK [06:59:38]requested_item fd.num is exist - process it [06:59:38]SAM_PROTO_GetFieldsCounters [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 13 00 00 [06:59:38]Write to MH i2c: E2 08 00 DA 1F 80 13 00 00 00 00 00 00 75 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 62 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 62 00 DA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 72 00 00 0E 04 04 00 75 00 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 EC [06:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 72 00 00 0E 04 04 00 75 00 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 [06:59:38]wFMCommunicate OK [06:59:38]SAM_PROTO_GetFieldsCounters done [06:59:38]requested_item shift.num is exist - process it [06:59:38]requested_item shift.opened is exist - process it [06:59:38]req_shift_opened [06:59:38]FM_GetShiftState [06:59:38]SAM_PROTO_GetShiftState [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 13 01 00 [06:59:38]Write to MH i2c: E2 08 00 DB 1F 80 13 01 00 00 00 00 00 77 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 0E 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 0E 00 DB 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6B [06:59:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [06:59:38]wFMCommunicate OK [06:59:38]SAM_PROTO_GetShiftState done [06:59:38]FM_GetShiftState done [06:59:38]req_shift_opened done [06:59:38]requested_item shift.open_date is exist - process it [06:59:38]req_shift_open_date [06:59:38]req_shift_open_date done [06:59:38]produce_requested_data done [06:59:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29435,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [06:59:38]process_action_free close_receipt [06:59:38]json_value_free [06:59:38]json_value_free done [06:59:38]process_json_proto returns [06:59:38]Send response to host [06:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29435,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [06:59:38]free response buf [06:59:38]execute_script done [06:59:38]execute_script returns [06:59:38]free content buf [06:59:38]Sock 9.Close socket [06:59:38]Sock 9.Thread stoped [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:55]accept exits with 8 [07:08:55]New connection [07:08:55]New thread 3066969444 created [07:08:55]Thread 3067112804 joined [07:08:55]Waiting for new connection... [07:08:55] Sock 8.Parse request [07:08:55]Sock 8.Check first char [07:08:55]Sock 8.First char is OK [07:08:55]request: POST /json_proto HTTP/1.0 [07:08:55]Method: POST [07:08:55]URL: /json_proto [07:08:55]Method is POST - this is cgi request [07:08:55]url: /json_proto [07:08:55]query_string will be loaded in cgi processing [07:08:55]execute_cgi json_proto POST (null) [07:08:55]execute_cgi path=json_proto method=POST [07:08:55]POST find Content-Length [07:08:55]Host: 172.17.33.3:8080 [07:08:55]Content-Length: 682 [07:08:55]Content-Type: application/json [07:08:55] [07:08:55]POST finish read [07:08:55]Found Content-Length = 682 [07:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:08:55]execute_script... [07:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:08:55]POST & json_proto [07:08:55]process_json_proto [07:08:55]json parsed OK: [07:08:55]protocol is kg_v1.0 [07:08:55]action value=close_receipt [07:08:55]process_action close_receipt [07:08:55]cmd_close_receipt [07:08:55]MH_GetDate [07:08:55]Write to MH i2c: F0 00 00 DC 1F EA [07:08:55]Write i2c OK [07:08:55]MH_I2C_Read... [07:08:55]Read from MH i2c: F0 [07:08:55]MH_I2C_Read... [07:08:55]Read from MH i2c: F0 09 00 [07:08:55]MH_I2C_Read... [07:08:55]Read from MH i2c: F0 09 00 DC 1F 00 8B D2 1C 66 23 5B 8F 65 44 [07:08:55]GetLastDocTimeStamp 1713164377 [07:08:55]current date 1713164939 [07:08:55]FM_GetShiftState [07:08:55]SAM_PROTO_GetShiftState [07:08:55]wFMCommunicate request_size=4 [07:08:55]MH_SAM_APDU [07:08:55]CAPDU: 80 13 01 00 [07:08:55]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [07:08:55]Write i2c OK [07:08:55]MH_I2C_Read... [07:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:55]Read from MH i2c: E2 [07:08:55]MH_I2C_Read... [07:08:55]Read from MH i2c: E2 0E 00 [07:08:55]MH_I2C_Read... [07:08:55]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6D [07:08:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:08:55]wFMCommunicate OK [07:08:55]SAM_PROTO_GetShiftState done [07:08:55]FM_GetShiftState done [07:08:55]opened in 1713140468 [07:08:55]opened+sec_in_day 1713226868 [07:08:55]quantity*price = 100018 [07:08:55]sum+1 = 100020 [07:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 15.04.2024 07:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29436 ФПД: 129884406199891 1/tax-web-control/client/api/v1/ticket?date=20240415T070859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29436&fm=129884406199891&tin=02508201610067®Number=0000138879044617&sum=100000 [07:08:56]StoreToDocumentArchive [07:08:56]shift 117 fd 29436 [07:08:56]save to /storage/0117/doc_00029436 [07:08:56]save last doc name /storage/0117/doc_00029436 to /storage/kkm_last_doc_name [07:08:56]save OK [07:08:56]Clear old archive folders... [07:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:56]tlvbuf is B6F7FEF0 [07:08:56]SAM_PROTO_ClearQueue [07:08:56]wFMCommunicate request_size=4 [07:08:56]MH_SAM_APDU [07:08:56]CAPDU: 80 09 00 00 [07:08:56]Write to MH i2c: E2 08 00 EA 1F 80 09 00 00 00 00 00 00 7B [07:08:56]Write i2c OK [07:08:56]MH_I2C_Read... [07:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:56]Read from MH i2c: E2 [07:08:56]MH_I2C_Read... [07:08:56]Read from MH i2c: E2 03 00 [07:08:56]MH_I2C_Read... [07:08:56]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [07:08:56]RAPDU: 90 00 [07:08:56]wFMCommunicate OK [07:08:56]SAM_PROTO_ClearQueue done [07:08:56]KKMCreateOFDPacket [07:08:56]OFDProtocolAddRootSTLVToBuf [07:08:56]FM_MakeSignedData [07:08:56]FM_MakeSignedData [07:08:56]SAM_PROTO_SignData [07:08:56]wFMCommunicate request_size=4 [07:08:56]MH_SAM_APDU [07:08:56]CAPDU: 80 0D 01 02 [07:08:56]Write to MH i2c: E2 08 00 EB 1F 80 0D 01 02 00 00 00 00 83 [07:08:56]Write i2c OK [07:08:56]MH_I2C_Read... [07:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:57]Read from MH i2c: E2 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [07:08:57]RAPDU: 90 00 [07:08:57]wFMCommunicate OK [07:08:57]wFMCommunicate request_size=255 [07:08:57]MH_SAM_APDU [07:08:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8B D2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 72 00 00 35 04 06 00 76 [07:08:57]Write to MH i2c: E2 02 01 EC 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8B D2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 72 00 00 35 04 06 00 76 00 00 0D [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:57]Read from MH i2c: E2 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [07:08:57]RAPDU: 90 00 [07:08:57]wFMCommunicate OK [07:08:57]wFMCommunicate request_size=10 [07:08:57]MH_SAM_APDU [07:08:57]CAPDU: 80 0D 02 02 05 21 11 E4 B6 53 [07:08:57]Write to MH i2c: E2 0D 00 ED 1F 80 0D 02 02 05 00 21 11 E4 B6 53 00 00 AF [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:57]Read from MH i2c: E2 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [07:08:57]RAPDU: 90 00 [07:08:57]wFMCommunicate OK [07:08:57]wFMCommunicate request_size=4 [07:08:57]MH_SAM_APDU [07:08:57]CAPDU: 80 0D 03 02 [07:08:57]Write to MH i2c: E2 08 00 EE 1F 80 0D 03 02 00 00 00 00 88 [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:57]Read from MH i2c: E2 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 0B 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 0B 00 EE 1F 00 AF 67 F5 19 8A 0A A7 27 90 00 0F [07:08:57]RAPDU: AF 67 F5 19 8A 0A A7 27 90 00 [07:08:57]wFMCommunicate OK [07:08:57]SAM_PROTO_SignData done [07:08:57]FM_MakeSignedData done [07:08:57]CreateOFDProtocolMessage [07:08:57]wFMCommunicate request_size=4 [07:08:57]MH_SAM_APDU [07:08:57]CAPDU: 80 11 00 00 [07:08:57]Write to MH i2c: E2 08 00 EF 1F 80 11 00 00 00 00 00 00 88 [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:57]Read from MH i2c: E2 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 17 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: E2 17 00 EF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [07:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:08:57]wFMCommunicate OK [07:08:57]CreateOFDProtocolMessage done [07:08:57]OFDSenderStorePacket 29436 [07:08:57]StoreOFDPacket docnum=29436 [07:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D DE 07 01 21 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8B D2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 72 00 00 35 04 06 00 76 21 11 E4 B6 53 AF 67 F5 19 8A 0A A7 27 [07:08:57]CheckFolder [07:08:57]dirname=/storage/ofd_packets [07:08:57]CheckFolder done [07:08:57]ProducePacketName [07:08:57]name=ofd_packets/00029436 [07:08:57]NVStorageSaveData ofd_packets/00029436 [07:08:57]File name is /storage/ofd_packets/00029436 [07:08:57]Write 301 bytes [07:08:57]NVStorageSaveData done [07:08:57]OFDSenderStorePacket done [07:08:57]KKMCreateOFDPacket done [07:08:57]NVStorageSaveData kkm_last_timestamp [07:08:57]File name is /storage/kkm_last_timestamp [07:08:57]Write 4 bytes [07:08:57]NVStorageSaveData done [07:08:57]ExternCall_PrintAddStr [07:08:57]wPrintStart [07:08:57]Write to MH i2c: 01 00 00 F0 1F 0F [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 07 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 FF 0F 24 [07:08:57]RasterBufferAndPrint [07:08:57]line Счет N : (1)347833 [07:08:57]line ИНН: 02508201610067 [07:08:57]line Контрольно-Кассовый Чек [07:08:57]line ПРОДАЖА [07:08:57]line ТРК (МРК, ГНК) : 33 [07:08:57]line Товар: 2710124500 [07:08:57]line Аи-95-К-5 [07:08:57]line 13.720 * 72.90 [07:08:57]line = 1000.19 [07:08:57]line НДС 12% НСП 1% [07:08:57]line > о реализуемом товаре [07:08:57]line ОКРУГЛЕНИЕ: -0.19 [07:08:57]line ИТОГО: 1000.00 [07:08:57]line Внесено: 1000.00 [07:08:57]line СДАЧА: 0.00 [07:08:57]line НСП 1% : 8.85 [07:08:57]line НДС 12% : 106.21 [07:08:57]line Наличными: 1000.00 [07:08:57]line Безнал.: 0.00 [07:08:57]line Место: АЗС № 108 "Партнер Нефть" [07:08:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:08:57]line СНО: Общий режим [07:08:57]line Чек 30 15.04.2024 07:08 [07:08:57]line Смена: 117 ФФД: 1.0 [07:08:57]line ЗНМ: 0300000027 [07:08:57]line РНМ: 0000138879044617 [07:08:57]line Версия ККМ: 001 [07:08:57]line ФМ: 0000000000963154 [07:08:57]line ФД: 29436 [07:08:57]line ФПД: 129884406199891 [07:08:57]line 1/tax-web-control/client/api/v1/ticket?date=20240415T070859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29436&fm=129884406199891&tin=02508201610067®Number=0000138879044617&sum=100000 [07:08:57]written 0, free lines is 4095 [07:08:57]OFD Sender: Processing packet 29436 [packets to send 8, broken 7] [07:08:57]ProducePacketName [07:08:57]name=ofd_packets/00029436 [07:08:57]OFD Sender: To server: pG, [07:08:57]CommunicateWithHost lk.salyk.kg:30040 [07:08:57]ConnectInit lk.salyk.kg [07:08:57]Connected sock=10 [07:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D DE 07 01 21 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 8B D2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 72 00 00 35 04 06 00 76 21 11 E4 B6 53 AF 67 F5 19 8A 0A A7 27 [07:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD 92 47 00 15 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 72 00 00 F4 03 04 00 2C 7D 1C 66 B6 04 01 00 00 0B B7 AF 73 E1 3F D1 0C [07:08:57]CommunicateWithHost err = 0 [07:08:57]CheckOFDResponse [07:08:57]1017 (14) - 77093643461234 [07:08:57]1041 (16) - 0000000000963154 [07:08:57]1040 (4) - 29436 [07:08:57]1012 (4) - 15.04.2024 01:04 [07:08:57]1206 (1) - 0 [07:08:57]OFD Sender: Remove packet 29436 [07:08:57]ProducePacketName [07:08:57]name=ofd_packets/00029436 [07:08:57]NVStorageDeleteData [07:08:57]Write to MH i2c: 01 00 00 1A 20 3A [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 07 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: 01 07 00 1A 20 00 00 00 00 00 C5 0C 12 [07:08:57]RasterBufferAndPrint [07:08:57]line [07:08:57]line [07:08:57]line [07:08:57]line [07:08:57]line [07:08:57]written 0, free lines is 3275 [07:08:57]MH_Cut [07:08:57]Write to MH i2c: D1 01 00 21 20 01 13 [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: D1 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: D1 01 00 [07:08:57]MH_I2C_Read... [07:08:57]Read from MH i2c: D1 01 00 21 20 00 12 [07:08:57]Write to MH i2c: 01 00 00 22 20 42 [07:08:57]Write i2c OK [07:08:57]MH_I2C_Read... [07:08:58]OFD Sender: No OFD packet to send [07:08:58]*** Cut start [07:08:58]*** Partial cut [07:08:58]*** CUTSNS_PIN = 1 [07:08:58]*** CUTSNS_PIN = 0 [07:08:59]*** Brake cut motor [07:08:59]Read from MH i2c: 01 [07:08:59]MH_I2C_Read... [07:08:59]*** Stop cut motor [07:08:59]*** Cut end [07:08:59]Read from MH i2c: 01 07 00 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: 01 07 00 22 20 00 00 00 00 00 FF 0F 57 [07:08:59]process_action close_receipt done [07:08:59]requested_data is exist [07:08:59]produce_requested_data [07:08:59]requested_item fm.sn is exist - process it [07:08:59]wFMCommunicate request_size=4 [07:08:59]MH_SAM_APDU [07:08:59]CAPDU: 80 11 00 00 [07:08:59]Write to MH i2c: E2 08 00 23 20 80 11 00 00 00 00 00 00 BD [07:08:59]Write i2c OK [07:08:59]MH_I2C_Read... [07:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:59]Read from MH i2c: E2 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 17 00 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 17 00 23 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [07:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:08:59]wFMCommunicate OK [07:08:59]requested_item fd.num is exist - process it [07:08:59]SAM_PROTO_GetFieldsCounters [07:08:59]wFMCommunicate request_size=4 [07:08:59]MH_SAM_APDU [07:08:59]CAPDU: 80 13 00 00 [07:08:59]Write to MH i2c: E2 08 00 24 20 80 13 00 00 00 00 00 00 C0 [07:08:59]Write i2c OK [07:08:59]MH_I2C_Read... [07:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:59]Read from MH i2c: E2 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 62 00 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 62 00 24 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 72 00 00 0E 04 04 00 75 00 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 3B [07:08:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 72 00 00 0E 04 04 00 75 00 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 [07:08:59]wFMCommunicate OK [07:08:59]SAM_PROTO_GetFieldsCounters done [07:08:59]requested_item shift.num is exist - process it [07:08:59]requested_item shift.opened is exist - process it [07:08:59]req_shift_opened [07:08:59]FM_GetShiftState [07:08:59]SAM_PROTO_GetShiftState [07:08:59]wFMCommunicate request_size=4 [07:08:59]MH_SAM_APDU [07:08:59]CAPDU: 80 13 01 00 [07:08:59]Write to MH i2c: E2 08 00 25 20 80 13 01 00 00 00 00 00 C2 [07:08:59]Write i2c OK [07:08:59]MH_I2C_Read... [07:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:59]Read from MH i2c: E2 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 0E 00 [07:08:59]MH_I2C_Read... [07:08:59]Read from MH i2c: E2 0E 00 25 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B6 [07:08:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:08:59]wFMCommunicate OK [07:08:59]SAM_PROTO_GetShiftState done [07:08:59]FM_GetShiftState done [07:08:59]req_shift_opened done [07:08:59]requested_item shift.open_date is exist - process it [07:08:59]req_shift_open_date [07:08:59]req_shift_open_date done [07:08:59]produce_requested_data done [07:08:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29436,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:08:59]process_action_free close_receipt [07:08:59]json_value_free [07:08:59]json_value_free done [07:08:59]process_json_proto returns [07:08:59]Send response to host [07:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29436,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:08:59]free response buf [07:08:59]execute_script done [07:08:59]execute_script returns [07:08:59]free content buf [07:08:59]Sock 8.Close socket [07:08:59]Sock 8.Thread stoped [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:15]accept exits with 9 [07:13:15]New connection [07:13:15]New thread 3067112804 created [07:13:15]Thread 3066969444 joined [07:13:15]Waiting for new connection... [07:13:15] Sock 9.Parse request [07:13:15]Sock 9.Check first char [07:13:15]Sock 9.First char is OK [07:13:15]request: POST /json_proto HTTP/1.0 [07:13:15]Method: POST [07:13:15]URL: /json_proto [07:13:15]Method is POST - this is cgi request [07:13:15]url: /json_proto [07:13:15]query_string will be loaded in cgi processing [07:13:15]execute_cgi json_proto POST (null) [07:13:15]execute_cgi path=json_proto method=POST [07:13:15]POST find Content-Length [07:13:15]Host: 172.17.33.3:8080 [07:13:15]Content-Length: 1212 [07:13:15]Content-Type: application/json [07:13:15] [07:13:15]POST finish read [07:13:15]Found Content-Length = 1212 [07:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347834\u000A15.04.2024 06:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:15]execute_script... [07:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347834\u000A15.04.2024 06:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:15]POST & json_proto [07:13:15]process_json_proto [07:13:15]json parsed OK: [07:13:15]protocol is kg_v1.0 [07:13:15]action value=print_text [07:13:15]process_action print_text [07:13:15]cmd_print_text [07:13:15]ExternCall_PrintAddStr [07:13:15]wPrintStart [07:13:15]Write to MH i2c: 01 00 00 26 20 46 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 07 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 07 00 26 20 00 00 00 00 00 FF 0F 5B [07:13:15]RasterBufferAndPrint [07:13:15]line *****ТОВАРНЫЙ ЧЕК***** [07:13:15]line АЗС 108 [07:13:15]line Партнер нефть [07:13:15]line 02508201610067 [07:13:15]line Кассир : Джумагулова Н. [07:13:15]line Счет N : (1)347834 [07:13:15]line 15.04.2024 06:54 [07:13:15]line ПРОДАЖА [07:13:15]line ТРК (МРК, ГНК): 42 [07:13:15]line Вид ГСМ : 2710124130 [07:13:15]line Аи-92-К-5 [07:13:15]line 13.890 x 64.80 [07:13:15]line ИТОГ: 900.07 [07:13:15]line Тип оплаты: Талоны: Топливная Карта [07:13:15]line 74586 [07:13:15]line ______________________ [07:13:15]line (подпись) [07:13:15]written 0, free lines is 4095 [07:13:15]Write to MH i2c: 01 00 00 3B 20 5B [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 07 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 F5 0D 64 [07:13:15]RasterBufferAndPrint [07:13:15]line [07:13:15]line [07:13:15]line [07:13:15]line [07:13:15]line [07:13:15]written 0, free lines is 3575 [07:13:15]MH_Cut [07:13:15]Write to MH i2c: D1 01 00 42 20 01 34 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: D1 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: D1 01 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: D1 01 00 42 20 00 33 [07:13:15]Write to MH i2c: 01 00 00 43 20 63 [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:16]*** Cut start [07:13:16]*** Partial cut [07:13:16]*** CUTSNS_PIN = 1 [07:13:16]*** CUTSNS_PIN = 0 [07:13:16]*** Brake cut motor [07:13:16]Read from MH i2c: 01 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: 01 07 00 [07:13:16]MH_I2C_Read... [07:13:16]*** Stop cut motor [07:13:16]*** Cut end [07:13:16]Read from MH i2c: 01 07 00 43 20 00 00 00 00 00 FF 0F 78 [07:13:16]process_action print_text done [07:13:16]requested_data is exist [07:13:16]produce_requested_data [07:13:16]requested_item fm.sn is exist - process it [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 11 00 00 [07:13:16]Write to MH i2c: E2 08 00 44 20 80 11 00 00 00 00 00 00 DE [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 17 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 17 00 44 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [07:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:13:16]wFMCommunicate OK [07:13:16]requested_item fd.num is exist - process it [07:13:16]SAM_PROTO_GetFieldsCounters [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 13 00 00 [07:13:16]Write to MH i2c: E2 08 00 45 20 80 13 00 00 00 00 00 00 E1 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 62 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 62 00 45 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 72 00 00 0E 04 04 00 75 00 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 5C [07:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 72 00 00 0E 04 04 00 75 00 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 [07:13:17]wFMCommunicate OK [07:13:17]SAM_PROTO_GetFieldsCounters done [07:13:17]requested_item shift.num is exist - process it [07:13:17]requested_item shift.opened is exist - process it [07:13:17]req_shift_opened [07:13:17]FM_GetShiftState [07:13:17]SAM_PROTO_GetShiftState [07:13:17]wFMCommunicate request_size=4 [07:13:17]MH_SAM_APDU [07:13:17]CAPDU: 80 13 01 00 [07:13:17]Write to MH i2c: E2 08 00 46 20 80 13 01 00 00 00 00 00 E3 [07:13:17]Write i2c OK [07:13:17]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 0E 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 0E 00 46 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [07:13:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:13:17]wFMCommunicate OK [07:13:17]SAM_PROTO_GetShiftState done [07:13:17]FM_GetShiftState done [07:13:17]req_shift_opened done [07:13:17]requested_item shift.open_date is exist - process it [07:13:17]req_shift_open_date [07:13:17]req_shift_open_date done [07:13:17]produce_requested_data done [07:13:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29436,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:13:17]process_action_free print_text [07:13:17]json_value_free [07:13:17]json_value_free done [07:13:17]process_json_proto returns [07:13:17]Send response to host [07:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29436,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:13:17]free response buf [07:13:17]execute_script done [07:13:17]execute_script returns [07:13:17]free content buf [07:13:17]Sock 9.Close socket [07:13:17]Sock 9.Thread stoped [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:20]accept exits with 8 [07:17:20]New connection [07:17:20]New thread 3066969444 created [07:17:20]Thread 3067112804 joined [07:17:20]Waiting for new connection... [07:17:20] Sock 8.Parse request [07:17:20]Sock 8.Check first char [07:17:20]Sock 8.First char is OK [07:17:20]request: POST /json_proto HTTP/1.0 [07:17:20]Method: POST [07:17:20]URL: /json_proto [07:17:20]Method is POST - this is cgi request [07:17:20]url: /json_proto [07:17:20]query_string will be loaded in cgi processing [07:17:20]execute_cgi json_proto POST (null) [07:17:20]execute_cgi path=json_proto method=POST [07:17:20]POST find Content-Length [07:17:20]Host: 172.17.33.3:8080 [07:17:20]Content-Length: 682 [07:17:20]Content-Type: application/json [07:17:20] [07:17:20]POST finish read [07:17:20]Found Content-Length = 682 [07:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 34.580, "sum" : 2240.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2240.00, "payments": [ { "type": 0, "sum" : 2240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:20]execute_script... [07:17: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)347835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 34.580, "sum" : 2240.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2240.00, "payments": [ { "type": 0, "sum" : 2240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:20]POST & json_proto [07:17:20]process_json_proto [07:17:20]json parsed OK: [07:17:20]protocol is kg_v1.0 [07:17:20]action value=close_receipt [07:17:20]process_action close_receipt [07:17:20]cmd_close_receipt [07:17:20]MH_GetDate [07:17:20]Write to MH i2c: F0 00 00 47 20 56 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: F0 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: F0 09 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: F0 09 00 47 20 00 83 D4 1C 66 23 5B 8F 65 AA [07:17:20]GetLastDocTimeStamp 1713164939 [07:17:20]current date 1713165443 [07:17:20]FM_GetShiftState [07:17:20]SAM_PROTO_GetShiftState [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 13 01 00 [07:17:20]Write to MH i2c: E2 08 00 48 20 80 13 01 00 00 00 00 00 E5 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0E 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0E 00 48 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [07:17:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:17:20]wFMCommunicate OK [07:17:20]SAM_PROTO_GetShiftState done [07:17:20]FM_GetShiftState done [07:17:20]opened in 1713140468 [07:17:20]opened+sec_in_day 1713226868 [07:17:20]quantity*price = 224078 [07:17:20]sum+1 = 224079 [07:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 2240.00 Внесено: 2400.00 СДАЧА: 160.00 НСП 1% : 19.83 НДС 12% : 237.96 Наличными: 2240.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 15.04.2024 07:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29437 ФПД: 42368785650647 1/tax-web-control/client/api/v1/ticket?date=20240415T071723&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29437&fm=42368785650647&tin=02508201610067®Number=0000138879044617&sum=224000 [07:17:21]StoreToDocumentArchive [07:17:21]shift 117 fd 29437 [07:17:21]save to /storage/0117/doc_00029437 [07:17:21]save last doc name /storage/0117/doc_00029437 to /storage/kkm_last_doc_name [07:17:21]save OK [07:17:21]Clear old archive folders... [07:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:21]tlvbuf is 002670B0 [07:17:21]SAM_PROTO_ClearQueue [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 09 00 00 [07:17:21]Write to MH i2c: E2 08 00 55 20 80 09 00 00 00 00 00 00 E7 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]SAM_PROTO_ClearQueue done [07:17:21]KKMCreateOFDPacket [07:17:21]OFDProtocolAddRootSTLVToBuf [07:17:21]FM_MakeSignedData [07:17:21]FM_MakeSignedData [07:17:21]SAM_PROTO_SignData [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 0D 01 02 [07:17:21]Write to MH i2c: E2 08 00 56 20 80 0D 01 02 00 00 00 00 EF [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]wFMCommunicate request_size=255 [07:17:21]MH_SAM_APDU [07:17: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 14 87 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 4E 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 5C 00 00 00 00 07 04 06 00 00 6B 03 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 83 D4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 72 00 00 35 04 06 00 26 [07:17:21]Write to MH i2c: E2 02 01 57 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 14 87 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 4E 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 5C 00 00 00 00 07 04 06 00 00 6B 03 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 83 D4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 72 00 00 35 04 06 00 26 00 00 CA [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]wFMCommunicate request_size=10 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 0D 02 02 05 88 C0 6B 13 D7 [07:17:21]Write to MH i2c: E2 0D 00 58 20 80 0D 02 02 05 00 88 C0 6B 13 D7 00 00 99 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 0D 03 02 [07:17:21]Write to MH i2c: E2 08 00 59 20 80 0D 03 02 00 00 00 00 F4 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0B 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0B 00 59 20 00 9E F1 04 B9 41 18 52 D8 90 00 C4 [07:17:21]RAPDU: 9E F1 04 B9 41 18 52 D8 90 00 [07:17:21]wFMCommunicate OK [07:17:21]SAM_PROTO_SignData done [07:17:21]FM_MakeSignedData done [07:17:21]CreateOFDProtocolMessage [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 11 00 00 [07:17:21]Write to MH i2c: E2 08 00 5A 20 80 11 00 00 00 00 00 00 F4 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 17 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 17 00 5A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [07:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:17:21]wFMCommunicate OK [07:17:21]CreateOFDProtocolMessage done [07:17:21]OFDSenderStorePacket 29437 [07:17:21]StoreOFDPacket docnum=29437 [07:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 DE 07 01 92 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 14 87 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 4E 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 5C 00 00 00 00 07 04 06 00 00 6B 03 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 83 D4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 72 00 00 35 04 06 00 26 88 C0 6B 13 D7 9E F1 04 B9 41 18 52 D8 [07:17:21]CheckFolder [07:17:21]dirname=/storage/ofd_packets [07:17:21]CheckFolder done [07:17:21]ProducePacketName [07:17:21]name=ofd_packets/00029437 [07:17:21]NVStorageSaveData ofd_packets/00029437 [07:17:21]File name is /storage/ofd_packets/00029437 [07:17:21]Write 301 bytes [07:17:21]NVStorageSaveData done [07:17:21]OFDSenderStorePacket done [07:17:21]KKMCreateOFDPacket done [07:17:21]NVStorageSaveData kkm_last_timestamp [07:17:21]File name is /storage/kkm_last_timestamp [07:17:21]Write 4 bytes [07:17:21]NVStorageSaveData done [07:17:21]ExternCall_PrintAddStr [07:17:21]wPrintStart [07:17:21]Write to MH i2c: 01 00 00 5B 20 7B [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 FF 0F 90 [07:17:21]RasterBufferAndPrint [07:17:21]line Счет N : (1)347835 [07:17:21]line ИНН: 02508201610067 [07:17:21]line Контрольно-Кассовый Чек [07:17:21]line ПРОДАЖА [07:17:21]line ТРК (МРК, ГНК) : 23 [07:17:21]line Товар: 2710124130 [07:17:21]line Аи-92-К-5 [07:17:21]line 34.580 * 64.80 [07:17:21]line = 2240.78 [07:17:21]line НДС 12% НСП 1% [07:17:21]line > о реализуемом товаре [07:17:21]line ОКРУГЛЕНИЕ: -0.78 [07:17:21]line ИТОГО: 2240.00 [07:17:21]line Внесено: 2400.00 [07:17:21]line СДАЧА: 160.00 [07:17:21]line НСП 1% : 19.83 [07:17:21]line НДС 12% : 237.96 [07:17:21]line Наличными: 2240.00 [07:17:21]line Безнал.: 0.00 [07:17:21]line Место: АЗС № 108 "Партнер Нефть" [07:17:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:17:21]line СНО: Общий режим [07:17:21]line Чек 31 15.04.2024 07:17 [07:17:21]line Смена: 117 ФФД: 1.0 [07:17:21]line ЗНМ: 0300000027 [07:17:21]line РНМ: 0000138879044617 [07:17:21]line Версия ККМ: 001 [07:17:21]line ФМ: 0000000000963154 [07:17:21]line ФД: 29437 [07:17:21]line ФПД: 42368785650647 [07:17:21]line 1/tax-web-control/client/api/v1/ticket?date=20240415T071723&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29437&fm=42368785650647&tin=02508201610067®Number=0000138879044617&sum=224000 [07:17:22]OFD Sender: Processing packet 29437 [packets to send 8, broken 7] [07:17:22]ProducePacketName [07:17:22]name=ofd_packets/00029437 [07:17:22]OFD Sender: To server: pG, [07:17:22]CommunicateWithHost lk.salyk.kg:30040 [07:17:22]ConnectInit lk.salyk.kg [07:17:22]written 0, free lines is 4095 [07:17:22]Connected sock=10 [07:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 DE 07 01 92 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 14 87 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 4E 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 5C 00 00 00 00 07 04 06 00 00 6B 03 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 83 D4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 72 00 00 35 04 06 00 26 88 C0 6B 13 D7 9E F1 04 B9 41 18 52 D8 [07:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A7 61 47 00 7A 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 39 36 33 31 35 34 10 04 04 00 FD 72 00 00 F4 03 04 00 25 7F 1C 66 B6 04 01 00 00 A5 85 77 94 ED 70 09 D9 [07:17:22]CommunicateWithHost err = 0 [07:17:22]CheckOFDResponse [07:17:22]1017 (14) - 77093643461234 [07:17:22]1041 (16) - 0000000000963154 [07:17:22]1040 (4) - 29437 [07:17:22]1012 (4) - 15.04.2024 01:13 [07:17:22]1206 (1) - 0 [07:17:22]OFD Sender: Remove packet 29437 [07:17:22]ProducePacketName [07:17:22]name=ofd_packets/00029437 [07:17:22]NVStorageDeleteData [07:17:22]Write to MH i2c: 01 00 00 85 20 A5 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: 01 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: 01 07 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: 01 07 00 85 20 00 00 00 00 00 BD 0C 75 [07:17:22]RasterBufferAndPrint [07:17:22]line [07:17:22]line [07:17:22]line [07:17:22]line [07:17:22]line [07:17:22]written 0, free lines is 3266 [07:17:22]MH_Cut [07:17:22]Write to MH i2c: D1 01 00 8C 20 01 7E [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: D1 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: D1 01 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: D1 01 00 8C 20 00 7D [07:17:22]Write to MH i2c: 01 00 00 8D 20 AD [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]OFD Sender: No OFD packet to send [07:17:23]*** Cut start [07:17:23]*** Partial cut [07:17:23]*** CUTSNS_PIN = 1 [07:17:23]*** CUTSNS_PIN = 0 [07:17:23]*** Brake cut motor [07:17:24]Read from MH i2c: 01 [07:17:24]MH_I2C_Read... [07:17:24]*** Stop cut motor [07:17:24]*** Cut end [07:17:24]Read from MH i2c: 01 07 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 FF 0F C2 [07:17:24]process_action close_receipt done [07:17:24]requested_data is exist [07:17:24]produce_requested_data [07:17:24]requested_item fm.sn is exist - process it [07:17:24]wFMCommunicate request_size=4 [07:17:24]MH_SAM_APDU [07:17:24]CAPDU: 80 11 00 00 [07:17:24]Write to MH i2c: E2 08 00 8E 20 80 11 00 00 00 00 00 00 28 [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:24]Read from MH i2c: E2 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 17 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 17 00 8E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [07:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:17:24]wFMCommunicate OK [07:17:24]requested_item fd.num is exist - process it [07:17:24]SAM_PROTO_GetFieldsCounters [07:17:24]wFMCommunicate request_size=4 [07:17:24]MH_SAM_APDU [07:17:24]CAPDU: 80 13 00 00 [07:17:24]Write to MH i2c: E2 08 00 8F 20 80 13 00 00 00 00 00 00 2B [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:24]Read from MH i2c: E2 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 62 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 62 00 8F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 72 00 00 0E 04 04 00 75 00 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 AA [07:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 72 00 00 0E 04 04 00 75 00 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 [07:17:24]wFMCommunicate OK [07:17:24]SAM_PROTO_GetFieldsCounters done [07:17:24]requested_item shift.num is exist - process it [07:17:24]requested_item shift.opened is exist - process it [07:17:24]req_shift_opened [07:17:24]FM_GetShiftState [07:17:24]SAM_PROTO_GetShiftState [07:17:24]wFMCommunicate request_size=4 [07:17:24]MH_SAM_APDU [07:17:24]CAPDU: 80 13 01 00 [07:17:24]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [07:17:24]Write i2c OK [07:17:24]MH_I2C_Read... [07:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:24]Read from MH i2c: E2 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 0E 00 [07:17:24]MH_I2C_Read... [07:17:24]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [07:17:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:17:24]wFMCommunicate OK [07:17:24]SAM_PROTO_GetShiftState done [07:17:24]FM_GetShiftState done [07:17:24]req_shift_opened done [07:17:24]requested_item shift.open_date is exist - process it [07:17:24]req_shift_open_date [07:17:24]req_shift_open_date done [07:17:24]produce_requested_data done [07:17:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29437,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:17:24]process_action_free close_receipt [07:17:24]json_value_free [07:17:24]json_value_free done [07:17:24]process_json_proto returns [07:17:24]Send response to host [07:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29437,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:17:24]free response buf [07:17:24]execute_script done [07:17:24]execute_script returns [07:17:24]free content buf [07:17:24]Sock 8.Close socket [07:17:24]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:16]accept exits with 9 [07:28:16]New connection [07:28:16]New thread 3067112804 created [07:28:16]Thread 3066969444 joined [07:28:16]Waiting for new connection... [07:28:16] Sock 9.Parse request [07:28:16]Sock 9.Check first char [07:28:16]Sock 9.First char is OK [07:28:16]request: POST /json_proto HTTP/1.0 [07:28:16]Method: POST [07:28:16]URL: /json_proto [07:28:16]Method is POST - this is cgi request [07:28:16]url: /json_proto [07:28:16]query_string will be loaded in cgi processing [07:28:16]execute_cgi json_proto POST (null) [07:28:16]execute_cgi path=json_proto method=POST [07:28:16]POST find Content-Length [07:28:16]Host: 172.17.33.3:8080 [07:28:16]Content-Length: 677 [07:28:16]Content-Type: application/json [07:28:16] [07:28:16]POST finish read [07:28:16]Found Content-Length = 677 [07:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [07:28:16]execute_script... [07:28: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)347836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [07:28:16]POST & json_proto [07:28:16]process_json_proto [07:28:16]json parsed OK: [07:28:16]protocol is kg_v1.0 [07:28:16]action value=close_receipt [07:28:16]process_action close_receipt [07:28:16]cmd_close_receipt [07:28:16]MH_GetDate [07:28:16]Write to MH i2c: F0 00 00 91 20 A0 [07:28:16]Write i2c OK [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 09 00 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: F0 09 00 91 20 00 14 D7 1C 66 23 5B 8F 65 88 [07:28:16]GetLastDocTimeStamp 1713165443 [07:28:16]current date 1713166100 [07:28:16]FM_GetShiftState [07:28:16]SAM_PROTO_GetShiftState [07:28:16]wFMCommunicate request_size=4 [07:28:16]MH_SAM_APDU [07:28:16]CAPDU: 80 13 01 00 [07:28:16]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [07:28:16]Write i2c OK [07:28:16]MH_I2C_Read... [07:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:16]Read from MH i2c: E2 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: E2 0E 00 [07:28:16]MH_I2C_Read... [07:28:16]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [07:28:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:28:16]wFMCommunicate OK [07:28:16]SAM_PROTO_GetShiftState done [07:28:16]FM_GetShiftState done [07:28:16]opened in 1713140468 [07:28:16]opened+sec_in_day 1713226868 [07:28:16]quantity*price = 40022 [07:28:16]sum+1 = 40023 [07:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 15.04.2024 07:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29438 ФПД: 29327740754590 1/tax-web-control/client/api/v1/ticket?date=20240415T072820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29438&fm=29327740754590&tin=02508201610067®Number=0000138879044617&sum=40000 [07:28:18]StoreToDocumentArchive [07:28:18]shift 117 fd 29438 [07:28:18]save to /storage/0117/doc_00029438 [07:28:18]save last doc name /storage/0117/doc_00029438 to /storage/kkm_last_doc_name [07:28:18]save OK [07:28:18]Clear old archive folders... [07:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:18]tlvbuf is B6ECF300 [07:28:18]SAM_PROTO_ClearQueue [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 09 00 00 [07:28:18]Write to MH i2c: E2 08 00 9F 20 80 09 00 00 00 00 00 00 31 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [07:28:18]RAPDU: 90 00 [07:28:18]wFMCommunicate OK [07:28:18]SAM_PROTO_ClearQueue done [07:28:18]KKMCreateOFDPacket [07:28:18]OFDProtocolAddRootSTLVToBuf [07:28:18]FM_MakeSignedData [07:28:18]FM_MakeSignedData [07:28:18]SAM_PROTO_SignData [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 0D 01 02 [07:28:18]Write to MH i2c: E2 08 00 A0 20 80 0D 01 02 00 00 00 00 39 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [07:28:18]RAPDU: 90 00 [07:28:18]wFMCommunicate OK [07:28:18]wFMCommunicate request_size=255 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 20 00 00 00 F4 03 04 00 14 D7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 72 00 00 35 04 06 00 1A [07:28:18]Write to MH i2c: E2 02 01 A1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 20 00 00 00 F4 03 04 00 14 D7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 72 00 00 35 04 06 00 1A 00 00 C4 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]OFD Sender: No OFD packet to send [07:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [07:28:18]RAPDU: 90 00 [07:28:18]wFMCommunicate OK [07:28:18]wFMCommunicate request_size=10 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 0D 02 02 05 AC 65 91 DA 9E [07:28:18]Write to MH i2c: E2 0D 00 A2 20 80 0D 02 02 05 00 AC 65 91 DA 9E 00 00 60 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [07:28:18]RAPDU: 90 00 [07:28:18]wFMCommunicate OK [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 0D 03 02 [07:28:18]Write to MH i2c: E2 08 00 A3 20 80 0D 03 02 00 00 00 00 3E [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 0B 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 0B 00 A3 20 00 6E 73 47 F7 39 68 14 47 90 00 5A [07:28:18]RAPDU: 6E 73 47 F7 39 68 14 47 90 00 [07:28:18]wFMCommunicate OK [07:28:18]SAM_PROTO_SignData done [07:28:18]FM_MakeSignedData done [07:28:18]CreateOFDProtocolMessage [07:28:18]wFMCommunicate request_size=4 [07:28:18]MH_SAM_APDU [07:28:18]CAPDU: 80 11 00 00 [07:28:18]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:18]Read from MH i2c: E2 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 17 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [07:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:28:18]wFMCommunicate OK [07:28:18]CreateOFDProtocolMessage done [07:28:18]OFDSenderStorePacket 29438 [07:28:18]StoreOFDPacket docnum=29438 [07:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF B3 07 01 46 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 20 00 00 00 F4 03 04 00 14 D7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 72 00 00 35 04 06 00 1A AC 65 91 DA 9E 6E 73 47 F7 39 68 14 47 [07:28:18]CheckFolder [07:28:18]dirname=/storage/ofd_packets [07:28:18]CheckFolder done [07:28:18]ProducePacketName [07:28:18]name=ofd_packets/00029438 [07:28:18]NVStorageSaveData ofd_packets/00029438 [07:28:18]File name is /storage/ofd_packets/00029438 [07:28:18]Write 301 bytes [07:28:18]NVStorageSaveData done [07:28:18]OFDSenderStorePacket done [07:28:18]KKMCreateOFDPacket done [07:28:18]NVStorageSaveData kkm_last_timestamp [07:28:18]File name is /storage/kkm_last_timestamp [07:28:18]Write 4 bytes [07:28:18]NVStorageSaveData done [07:28:18]ExternCall_PrintAddStr [07:28:18]wPrintStart [07:28:18]Write to MH i2c: 01 00 00 A5 20 C5 [07:28:18]Write i2c OK [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 [07:28:18]MH_I2C_Read... [07:28:18]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 FF 0F DA [07:28:18]RasterBufferAndPrint [07:28:18]line Счет N : (1)347836 [07:28:18]line ИНН: 02508201610067 [07:28:18]line Контрольно-Кассовый Чек [07:28:18]line ПРОДАЖА [07:28:18]line ТРК (МРК, ГНК) : 33 [07:28:18]line Товар: 2710124500 [07:28:18]line Аи-95-К-5 [07:28:18]line 5.490 * 72.90 [07:28:18]line = 400.22 [07:28:18]line НДС 12% НСП 1% [07:28:18]line > о реализуемом товаре [07:28:18]line ОКРУГЛЕНИЕ: -0.22 [07:28:18]line ИТОГО: 400.00 [07:28:18]line Внесено: 400.00 [07:28:18]line СДАЧА: 0.00 [07:28:18]line НСП 1% : 3.54 [07:28:18]line НДС 12% : 42.50 [07:28:18]line Наличными: 400.00 [07:28:18]line Безнал.: 0.00 [07:28:18]line Место: АЗС № 108 "Партнер Нефть" [07:28:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:28:18]line СНО: Общий режим [07:28:18]line Чек 32 15.04.2024 07:28 [07:28:18]line Смена: 117 ФФД: 1.0 [07:28:18]line ЗНМ: 0300000027 [07:28:18]line РНМ: 0000138879044617 [07:28:18]line Версия ККМ: 001 [07:28:18]line ФМ: 0000000000963154 [07:28:18]line ФД: 29438 [07:28:18]line ФПД: 29327740754590 [07:28:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T072820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29438&fm=29327740754590&tin=02508201610067®Number=0000138879044617&sum=40000 [07:28:18]OFD Sender: Processing packet 29438 [packets to send 8, broken 7] [07:28:18]ProducePacketName [07:28:18]name=ofd_packets/00029438 [07:28:18]OFD Sender: To server: pG, [07:28:18]CommunicateWithHost lk.salyk.kg:30040 [07:28:18]ConnectInit lk.salyk.kg [07:28:18]written 0, free lines is 4095 [07:28:19]Connected sock=10 [07:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF B3 07 01 46 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 20 00 00 00 F4 03 04 00 14 D7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 72 00 00 35 04 06 00 1A AC 65 91 DA 9E 6E 73 47 F7 39 68 14 47 [07:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 87 47 00 4C 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 39 36 33 31 35 34 10 04 04 00 FE 72 00 00 F4 03 04 00 B6 81 1C 66 B6 04 01 00 00 69 B2 06 E1 27 98 D6 2E [07:28:19]CommunicateWithHost err = 0 [07:28:19]CheckOFDResponse [07:28:19]1017 (14) - 77093643461234 [07:28:19]1041 (16) - 0000000000963154 [07:28:19]1040 (4) - 29438 [07:28:19]1012 (4) - 15.04.2024 01:24 [07:28:19]1206 (1) - 0 [07:28:19]OFD Sender: Remove packet 29438 [07:28:19]ProducePacketName [07:28:19]name=ofd_packets/00029438 [07:28:19]NVStorageDeleteData [07:28:19]Write to MH i2c: 01 00 00 CF 20 EF [07:28:19]Write i2c OK [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: 01 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: 01 07 00 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 B8 0C BA [07:28:19]RasterBufferAndPrint [07:28:19]line [07:28:19]line [07:28:19]line [07:28:19]line [07:28:19]line [07:28:19]written 0, free lines is 3261 [07:28:19]MH_Cut [07:28:19]Write to MH i2c: D1 01 00 D6 20 01 C8 [07:28:19]Write i2c OK [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: D1 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: D1 01 00 [07:28:19]MH_I2C_Read... [07:28:19]Read from MH i2c: D1 01 00 D6 20 00 C7 [07:28:19]Write to MH i2c: 01 00 00 D7 20 F7 [07:28:19]Write i2c OK [07:28:19]MH_I2C_Read... [07:28:19]OFD Sender: No OFD packet to send [07:28:20]*** Cut start [07:28:20]*** Partial cut [07:28:20]*** CUTSNS_PIN = 1 [07:28:20]*** CUTSNS_PIN = 0 [07:28:20]*** Brake cut motor [07:28:20]Read from MH i2c: 01 [07:28:20]MH_I2C_Read... [07:28:20]*** Stop cut motor [07:28:20]*** Cut end [07:28:20]Read from MH i2c: 01 07 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 FF 0F 0C [07:28:20]process_action close_receipt done [07:28:20]requested_data is exist [07:28:20]produce_requested_data [07:28:20]requested_item fm.sn is exist - process it [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 11 00 00 [07:28:20]Write to MH i2c: E2 08 00 D8 20 80 11 00 00 00 00 00 00 72 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:20]Read from MH i2c: E2 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 [07:28:20]MH_I2C_Read... [07:28:20]Read from MH i2c: E2 17 00 D8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [07:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:28:20]wFMCommunicate OK [07:28:20]requested_item fd.num is exist - process it [07:28:20]SAM_PROTO_GetFieldsCounters [07:28:20]wFMCommunicate request_size=4 [07:28:20]MH_SAM_APDU [07:28:20]CAPDU: 80 13 00 00 [07:28:20]Write to MH i2c: E2 08 00 D9 20 80 13 00 00 00 00 00 00 75 [07:28:20]Write i2c OK [07:28:20]MH_I2C_Read... [07:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:21]Read from MH i2c: E2 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: E2 62 00 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: E2 62 00 D9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 72 00 00 0E 04 04 00 75 00 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 F8 [07:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 72 00 00 0E 04 04 00 75 00 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 [07:28:21]wFMCommunicate OK [07:28:21]SAM_PROTO_GetFieldsCounters done [07:28:21]requested_item shift.num is exist - process it [07:28:21]requested_item shift.opened is exist - process it [07:28:21]req_shift_opened [07:28:21]FM_GetShiftState [07:28:21]SAM_PROTO_GetShiftState [07:28:21]wFMCommunicate request_size=4 [07:28:21]MH_SAM_APDU [07:28:21]CAPDU: 80 13 01 00 [07:28:21]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [07:28:21]Write i2c OK [07:28:21]MH_I2C_Read... [07:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:21]Read from MH i2c: E2 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: E2 0E 00 [07:28:21]MH_I2C_Read... [07:28:21]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6B [07:28:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:28:21]wFMCommunicate OK [07:28:21]SAM_PROTO_GetShiftState done [07:28:21]FM_GetShiftState done [07:28:21]req_shift_opened done [07:28:21]requested_item shift.open_date is exist - process it [07:28:21]req_shift_open_date [07:28:21]req_shift_open_date done [07:28:21]produce_requested_data done [07:28:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29438,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:28:21]process_action_free close_receipt [07:28:21]json_value_free [07:28:21]json_value_free done [07:28:21]process_json_proto returns [07:28:21]Send response to host [07:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29438,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:28:21]free response buf [07:28:21]execute_script done [07:28:21]execute_script returns [07:28:21]free content buf [07:28:21]Sock 9.Close socket [07:28:21]Sock 9.Thread stoped [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30: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:03]accept exits with 8 [07:33:03]New connection [07:33:03]New thread 3066969444 created [07:33:03]Thread 3067112804 joined [07:33:03]Waiting for new connection... [07:33:03] Sock 8.Parse request [07:33:03]Sock 8.Check first char [07:33:03]Sock 8.First char is OK [07:33:03]request: POST /json_proto HTTP/1.0 [07:33:03]Method: POST [07:33:03]URL: /json_proto [07:33:03]Method is POST - this is cgi request [07:33:03]url: /json_proto [07:33:03]query_string will be loaded in cgi processing [07:33:03]execute_cgi json_proto POST (null) [07:33:03]execute_cgi path=json_proto method=POST [07:33:03]POST find Content-Length [07:33:03]Host: 172.17.33.3:8080 [07:33:03]Content-Length: 1200 [07:33:03]Content-Type: application/json [07:33:03] [07:33:03]POST finish read [07:33:03]Found Content-Length = 1200 [07:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347837\u000A15.04.2024 07:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A3793595\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:03]execute_script... [07:33:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347837\u000A15.04.2024 07:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A3793595\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:03]POST & json_proto [07:33:03]process_json_proto [07:33:03]json parsed OK: [07:33:03]protocol is kg_v1.0 [07:33:03]action value=print_text [07:33:03]process_action print_text [07:33:03]cmd_print_text [07:33:03]ExternCall_PrintAddStr [07:33:03]wPrintStart [07:33:03]Write to MH i2c: 01 00 00 DB 20 FB [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 DB 20 00 00 00 00 00 FF 0F 10 [07:33:03]RasterBufferAndPrint [07:33:03]line *****ТОВАРНЫЙ ЧЕК***** [07:33:03]line АЗС 108 [07:33:03]line Партнер нефть [07:33:03]line 02508201610067 [07:33:03]line Кассир : Джумагулова Н. [07:33:03]line Счет N : (1)347837 [07:33:03]line 15.04.2024 07:14 [07:33:03]line ПРОДАЖА [07:33:03]line ТРК (МРК, ГНК): 51 [07:33:03]line Вид ГСМ : 2710194210 [07:33:03]line ДТ-К-5 [07:33:03]line 20.000 x 72.90 [07:33:03]line ИТОГ: 1458.00 [07:33:03]line Тип оплаты: Талоны: Партнер нефть [07:33:03]line 3793595 [07:33:03]line ______________________ [07:33:03]line (подпись) [07:33:03]written 0, free lines is 4095 [07:33:03]Write to MH i2c: 01 00 00 F0 20 10 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 F4 0D 18 [07:33:03]RasterBufferAndPrint [07:33:03]line [07:33:03]line [07:33:03]line [07:33:03]line [07:33:03]line [07:33:03]written 0, free lines is 3574 [07:33:03]MH_Cut [07:33:03]Write to MH i2c: D1 01 00 F7 20 01 E9 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: D1 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: D1 01 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: D1 01 00 F7 20 00 E8 [07:33:03]Write to MH i2c: 01 00 00 F8 20 18 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:04]*** Cut start [07:33:04]*** Partial cut [07:33:04]*** CUTSNS_PIN = 1 [07:33:04]*** CUTSNS_PIN = 0 [07:33:04]*** Brake cut motor [07:33:04]Read from MH i2c: 01 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: 01 07 00 [07:33:04]MH_I2C_Read... [07:33:04]*** Stop cut motor [07:33:04]*** Cut end [07:33:04]Read from MH i2c: 01 07 00 F8 20 00 00 00 00 00 FF 0F 2D [07:33:04]process_action print_text done [07:33:04]requested_data is exist [07:33:04]produce_requested_data [07:33:04]requested_item fm.sn is exist - process it [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 11 00 00 [07:33:04]Write to MH i2c: E2 08 00 F9 20 80 11 00 00 00 00 00 00 93 [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 17 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 17 00 F9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [07:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:33:04]wFMCommunicate OK [07:33:04]requested_item fd.num is exist - process it [07:33:04]SAM_PROTO_GetFieldsCounters [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 13 00 00 [07:33:04]Write to MH i2c: E2 08 00 FA 20 80 13 00 00 00 00 00 00 96 [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 62 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 62 00 FA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 72 00 00 0E 04 04 00 75 00 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 19 [07:33:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 72 00 00 0E 04 04 00 75 00 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 [07:33:04]wFMCommunicate OK [07:33:04]SAM_PROTO_GetFieldsCounters done [07:33:04]requested_item shift.num is exist - process it [07:33:04]requested_item shift.opened is exist - process it [07:33:04]req_shift_opened [07:33:04]FM_GetShiftState [07:33:04]SAM_PROTO_GetShiftState [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 13 01 00 [07:33:04]Write to MH i2c: E2 08 00 FB 20 80 13 01 00 00 00 00 00 98 [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]OFD Sender: No OFD packet to send [07:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:05]Read from MH i2c: E2 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 FB 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8C [07:33:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:33:05]wFMCommunicate OK [07:33:05]SAM_PROTO_GetShiftState done [07:33:05]FM_GetShiftState done [07:33:05]req_shift_opened done [07:33:05]requested_item shift.open_date is exist - process it [07:33:05]req_shift_open_date [07:33:05]req_shift_open_date done [07:33:05]produce_requested_data done [07:33:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29438,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:33:05]process_action_free print_text [07:33:05]json_value_free [07:33:05]json_value_free done [07:33:05]process_json_proto returns [07:33:05]Send response to host [07:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29438,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:33:05]free response buf [07:33:05]execute_script done [07:33:05]execute_script returns [07:33:05]free content buf [07:33:05]Sock 8.Close socket [07:33:05]Sock 8.Thread stoped [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:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [07:34:30]New connection [07:34:30]New thread 3067112804 created [07:34:30]Thread 3066969444 joined [07:34:30]Waiting for new connection... [07:34:30] Sock 9.Parse request [07:34:30]Sock 9.Check first char [07:34:30]Sock 9.First char is OK [07:34:30]request: POST /json_proto HTTP/1.0 [07:34:30]Method: POST [07:34:30]URL: /json_proto [07:34:30]Method is POST - this is cgi request [07:34:30]url: /json_proto [07:34:30]query_string will be loaded in cgi processing [07:34:30]execute_cgi json_proto POST (null) [07:34:30]execute_cgi path=json_proto method=POST [07:34:30]POST find Content-Length [07:34:30]Host: 172.17.33.3:8080 [07:34:30]Content-Length: 682 [07:34:30]Content-Type: application/json [07:34:30] [07:34:30]POST finish read [07:34:30]Found Content-Length = 682 [07:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 33.960, "sum" : 2200.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:30]execute_script... [07:34: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)347838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 33.960, "sum" : 2200.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:30]POST & json_proto [07:34:30]process_json_proto [07:34:30]json parsed OK: [07:34:30]protocol is kg_v1.0 [07:34:30]action value=close_receipt [07:34:30]process_action close_receipt [07:34:30]cmd_close_receipt [07:34:30]MH_GetDate [07:34:30]Write to MH i2c: F0 00 00 FC 20 0B [07:34:30]Write i2c OK [07:34:30]MH_I2C_Read... [07:34:30]Read from MH i2c: F0 [07:34:30]MH_I2C_Read... [07:34:30]Read from MH i2c: F0 09 00 [07:34:30]MH_I2C_Read... [07:34:30]Read from MH i2c: F0 09 00 FC 20 00 8A D8 1C 66 23 5B 8F 65 6A [07:34:30]GetLastDocTimeStamp 1713166100 [07:34:30]current date 1713166474 [07:34:30]FM_GetShiftState [07:34:30]SAM_PROTO_GetShiftState [07:34:30]wFMCommunicate request_size=4 [07:34:30]MH_SAM_APDU [07:34:30]CAPDU: 80 13 01 00 [07:34:30]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [07:34:30]Write i2c OK [07:34:30]MH_I2C_Read... [07:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:30]Read from MH i2c: E2 [07:34:30]MH_I2C_Read... [07:34:30]Read from MH i2c: E2 0E 00 [07:34:30]MH_I2C_Read... [07:34:30]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8E [07:34:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:34:30]wFMCommunicate OK [07:34:30]SAM_PROTO_GetShiftState done [07:34:30]FM_GetShiftState done [07:34:30]opened in 1713140468 [07:34:30]opened+sec_in_day 1713226868 [07:34:30]quantity*price = 220060 [07:34:30]sum+1 = 220062 [07:34:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.69 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 15.04.2024 07:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29439 ФПД: 83912287775386 1/tax-web-control/client/api/v1/ticket?date=20240415T073434&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29439&fm=83912287775386&tin=02508201610067®Number=0000138879044617&sum=220000 [07:34:31]StoreToDocumentArchive [07:34:31]shift 117 fd 29439 [07:34:31]save to /storage/0117/doc_00029439 [07:34:31]save last doc name /storage/0117/doc_00029439 to /storage/kkm_last_doc_name [07:34:31]save OK [07:34:31]Clear old archive folders... [07:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:31]tlvbuf is B6F014C0 [07:34:31]SAM_PROTO_ClearQueue [07:34:31]wFMCommunicate request_size=4 [07:34:31]MH_SAM_APDU [07:34:31]CAPDU: 80 09 00 00 [07:34:31]Write to MH i2c: E2 08 00 0A 21 80 09 00 00 00 00 00 00 9D [07:34:31]Write i2c OK [07:34:31]MH_I2C_Read... [07:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:31]Read from MH i2c: E2 [07:34:31]MH_I2C_Read... [07:34:31]Read from MH i2c: E2 03 00 [07:34:31]MH_I2C_Read... [07:34:31]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [07:34:31]RAPDU: 90 00 [07:34:31]wFMCommunicate OK [07:34:31]SAM_PROTO_ClearQueue done [07:34:31]KKMCreateOFDPacket [07:34:31]OFDProtocolAddRootSTLVToBuf [07:34:31]FM_MakeSignedData [07:34:31]FM_MakeSignedData [07:34:31]SAM_PROTO_SignData [07:34:31]wFMCommunicate request_size=4 [07:34:31]MH_SAM_APDU [07:34:31]CAPDU: 80 0D 01 02 [07:34:31]Write to MH i2c: E2 08 00 0B 21 80 0D 01 02 00 00 00 00 A5 [07:34:31]Write i2c OK [07:34:31]MH_I2C_Read... [07:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:31]Read from MH i2c: E2 [07:34:31]MH_I2C_Read... [07:34:31]Read from MH i2c: E2 03 00 [07:34:31]MH_I2C_Read... [07:34:31]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [07:34:31]RAPDU: 90 00 [07:34:31]wFMCommunicate OK [07:34:31]wFMCommunicate request_size=255 [07:34:31]MH_SAM_APDU [07:34: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 A8 84 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8A D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 72 00 00 35 04 06 00 4C [07:34:31]Write to MH i2c: E2 02 01 0C 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 84 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8A D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 72 00 00 35 04 06 00 4C 00 00 55 [07:34:31]Write i2c OK [07:34:31]MH_I2C_Read... [07:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:32]Read from MH i2c: E2 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 03 00 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [07:34:32]RAPDU: 90 00 [07:34:32]wFMCommunicate OK [07:34:32]wFMCommunicate request_size=10 [07:34:32]MH_SAM_APDU [07:34:32]CAPDU: 80 0D 02 02 05 51 5A 1A EA 9A [07:34:32]Write to MH i2c: E2 0D 00 0D 21 80 0D 02 02 05 00 51 5A 1A EA 9A 00 00 FB [07:34:32]Write i2c OK [07:34:32]MH_I2C_Read... [07:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:32]Read from MH i2c: E2 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 03 00 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [07:34:32]RAPDU: 90 00 [07:34:32]wFMCommunicate OK [07:34:32]wFMCommunicate request_size=4 [07:34:32]MH_SAM_APDU [07:34:32]CAPDU: 80 0D 03 02 [07:34:32]Write to MH i2c: E2 08 00 0E 21 80 0D 03 02 00 00 00 00 AA [07:34:32]Write i2c OK [07:34:32]MH_I2C_Read... [07:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:32]Read from MH i2c: E2 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 0B 00 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 0B 00 0E 21 00 87 ED 9B 5E F4 97 E2 B0 90 00 35 [07:34:32]RAPDU: 87 ED 9B 5E F4 97 E2 B0 90 00 [07:34:32]wFMCommunicate OK [07:34:32]SAM_PROTO_SignData done [07:34:32]FM_MakeSignedData done [07:34:32]CreateOFDProtocolMessage [07:34:32]wFMCommunicate request_size=4 [07:34:32]MH_SAM_APDU [07:34:32]CAPDU: 80 11 00 00 [07:34:32]Write to MH i2c: E2 08 00 0F 21 80 11 00 00 00 00 00 00 AA [07:34:32]Write i2c OK [07:34:32]MH_I2C_Read... [07:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:32]Read from MH i2c: E2 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 17 00 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: E2 17 00 0F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [07:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:34:32]wFMCommunicate OK [07:34:32]CreateOFDProtocolMessage done [07:34:32]OFDSenderStorePacket 29439 [07:34:32]StoreOFDPacket docnum=29439 [07:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 B8 07 01 53 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 84 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8A D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 72 00 00 35 04 06 00 4C 51 5A 1A EA 9A 87 ED 9B 5E F4 97 E2 B0 [07:34:32]CheckFolder [07:34:32]dirname=/storage/ofd_packets [07:34:32]CheckFolder done [07:34:32]ProducePacketName [07:34:32]name=ofd_packets/00029439 [07:34:32]NVStorageSaveData ofd_packets/00029439 [07:34:32]File name is /storage/ofd_packets/00029439 [07:34:32]Write 301 bytes [07:34:32]NVStorageSaveData done [07:34:32]OFDSenderStorePacket done [07:34:32]KKMCreateOFDPacket done [07:34:32]NVStorageSaveData kkm_last_timestamp [07:34:32]File name is /storage/kkm_last_timestamp [07:34:32]Write 4 bytes [07:34:32]NVStorageSaveData done [07:34:32]ExternCall_PrintAddStr [07:34:32]wPrintStart [07:34:32]Write to MH i2c: 01 00 00 10 21 31 [07:34:32]Write i2c OK [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: 01 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: 01 07 00 [07:34:32]MH_I2C_Read... [07:34:32]Read from MH i2c: 01 07 00 10 21 00 00 00 00 00 FF 0F 46 [07:34:32]RasterBufferAndPrint [07:34:32]line Счет N : (1)347838 [07:34:32]line ИНН: 02508201610067 [07:34:32]line Контрольно-Кассовый Чек [07:34:32]line ПРОДАЖА [07:34:32]line ТРК (МРК, ГНК) : 32 [07:34:32]line Товар: 2710124130 [07:34:32]line Аи-92-К-5 [07:34:32]line 33.960 * 64.80 [07:34:32]line = 2200.61 [07:34:32]line НДС 12% НСП 1% [07:34:32]line > о реализуемом товаре [07:34:32]line ОКРУГЛЕНИЕ: -0.61 [07:34:32]line ИТОГО: 2200.00 [07:34:32]line Внесено: 2200.00 [07:34:32]line СДАЧА: 0.00 [07:34:32]line НСП 1% : 19.47 [07:34:32]line НДС 12% : 233.69 [07:34:32]line Наличными: 2200.00 [07:34:32]line Безнал.: 0.00 [07:34:32]line Место: АЗС № 108 "Партнер Нефть" [07:34:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:34:32]line СНО: Общий режим [07:34:32]line Чек 33 15.04.2024 07:34 [07:34:32]line Смена: 117 ФФД: 1.0 [07:34:32]line ЗНМ: 0300000027 [07:34:32]line РНМ: 0000138879044617 [07:34:32]line Версия ККМ: 001 [07:34:32]line ФМ: 0000000000963154 [07:34:32]line ФД: 29439 [07:34:32]line ФПД: 83912287775386 [07:34:32]line 1/tax-web-control/client/api/v1/ticket?date=20240415T073434&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29439&fm=83912287775386&tin=02508201610067®Number=0000138879044617&sum=220000 [07:34:32]OFD Sender: Processing packet 29439 [packets to send 8, broken 7] [07:34:32]ProducePacketName [07:34:32]name=ofd_packets/00029439 [07:34:32]OFD Sender: To server: pG, [07:34:32]CommunicateWithHost lk.salyk.kg:30040 [07:34:32]ConnectInit lk.salyk.kg [07:34:32]written 0, free lines is 4095 [07:34:32]Connected sock=10 [07:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 B8 07 01 53 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 84 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9D 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8A D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 72 00 00 35 04 06 00 4C 51 5A 1A EA 9A 87 ED 9B 5E F4 97 E2 B0 [07:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 C3 47 00 31 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 39 36 33 31 35 34 10 04 04 00 FF 72 00 00 F4 03 04 00 2B 83 1C 66 B6 04 01 00 00 D6 82 0C 61 F7 2D 36 23 [07:34:32]CommunicateWithHost err = 0 [07:34:32]CheckOFDResponse [07:34:32]1017 (14) - 77093643461234 [07:34:32]1041 (16) - 0000000000963154 [07:34:32]1040 (4) - 29439 [07:34:32]1012 (4) - 15.04.2024 01:30 [07:34:32]1206 (1) - 0 [07:34:32]OFD Sender: Remove packet 29439 [07:34:32]ProducePacketName [07:34:32]name=ofd_packets/00029439 [07:34:32]NVStorageDeleteData [07:34:33]Write to MH i2c: 01 00 00 3A 21 5B [07:34:33]Write i2c OK [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: 01 [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: 01 07 00 [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 C0 0C 2E [07:34:33]RasterBufferAndPrint [07:34:33]line [07:34:33]line [07:34:33]line [07:34:33]line [07:34:33]line [07:34:33]written 0, free lines is 3268 [07:34:33]MH_Cut [07:34:33]Write to MH i2c: D1 01 00 41 21 01 34 [07:34:33]Write i2c OK [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: D1 [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: D1 01 00 [07:34:33]MH_I2C_Read... [07:34:33]Read from MH i2c: D1 01 00 41 21 00 33 [07:34:33]Write to MH i2c: 01 00 00 42 21 63 [07:34:33]Write i2c OK [07:34:33]MH_I2C_Read... [07:34:33]OFD Sender: No OFD packet to send [07:34:33]*** Cut start [07:34:33]*** Partial cut [07:34:33]*** CUTSNS_PIN = 1 [07:34:34]*** CUTSNS_PIN = 0 [07:34:34]*** Brake cut motor [07:34:34]Read from MH i2c: 01 [07:34:34]MH_I2C_Read... [07:34:34]*** Stop cut motor [07:34:34]*** Cut end [07:34:34]Read from MH i2c: 01 07 00 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 FF 0F 78 [07:34:34]process_action close_receipt done [07:34:34]requested_data is exist [07:34:34]produce_requested_data [07:34:34]requested_item fm.sn is exist - process it [07:34:34]wFMCommunicate request_size=4 [07:34:34]MH_SAM_APDU [07:34:34]CAPDU: 80 11 00 00 [07:34:34]Write to MH i2c: E2 08 00 43 21 80 11 00 00 00 00 00 00 DE [07:34:34]Write i2c OK [07:34:34]MH_I2C_Read... [07:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:34]Read from MH i2c: E2 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 17 00 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 17 00 43 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [07:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:34:34]wFMCommunicate OK [07:34:34]requested_item fd.num is exist - process it [07:34:34]SAM_PROTO_GetFieldsCounters [07:34:34]wFMCommunicate request_size=4 [07:34:34]MH_SAM_APDU [07:34:34]CAPDU: 80 13 00 00 [07:34:34]Write to MH i2c: E2 08 00 44 21 80 13 00 00 00 00 00 00 E1 [07:34:34]Write i2c OK [07:34:34]MH_I2C_Read... [07:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:34]Read from MH i2c: E2 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 62 00 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 62 00 44 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 72 00 00 0E 04 04 00 75 00 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 68 [07:34:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 72 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:34]wFMCommunicate OK [07:34:34]SAM_PROTO_GetFieldsCounters done [07:34:34]requested_item shift.num is exist - process it [07:34:34]requested_item shift.opened is exist - process it [07:34:34]req_shift_opened [07:34:34]FM_GetShiftState [07:34:34]SAM_PROTO_GetShiftState [07:34:34]wFMCommunicate request_size=4 [07:34:34]MH_SAM_APDU [07:34:34]CAPDU: 80 13 01 00 [07:34:34]Write to MH i2c: E2 08 00 45 21 80 13 01 00 00 00 00 00 E3 [07:34:34]Write i2c OK [07:34:34]MH_I2C_Read... [07:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:34]Read from MH i2c: E2 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 0E 00 [07:34:34]MH_I2C_Read... [07:34:34]Read from MH i2c: E2 0E 00 45 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [07:34:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:34:34]wFMCommunicate OK [07:34:34]SAM_PROTO_GetShiftState done [07:34:34]FM_GetShiftState done [07:34:34]req_shift_opened done [07:34:34]requested_item shift.open_date is exist - process it [07:34:34]req_shift_open_date [07:34:34]req_shift_open_date done [07:34:34]produce_requested_data done [07:34:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29439,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:34:34]process_action_free close_receipt [07:34:34]json_value_free [07:34:34]json_value_free done [07:34:34]process_json_proto returns [07:34:34]Send response to host [07:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29439,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:34:34]free response buf [07:34:34]execute_script done [07:34:34]execute_script returns [07:34:34]free content buf [07:34:34]Sock 9.Close socket [07:34:34]Sock 9.Thread stoped [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:53]accept exits with 8 [07:34:53]New connection [07:34:53]New thread 3066969444 created [07:34:53]Thread 3067112804 joined [07:34:53]Waiting for new connection... [07:34:53] Sock 8.Parse request [07:34:53]Sock 8.Check first char [07:34:53]Sock 8.First char is OK [07:34:53]request: POST /json_proto HTTP/1.0 [07:34:53]Method: POST [07:34:53]URL: /json_proto [07:34:53]Method is POST - this is cgi request [07:34:53]url: /json_proto [07:34:53]query_string will be loaded in cgi processing [07:34:53]execute_cgi json_proto POST (null) [07:34:53]execute_cgi path=json_proto method=POST [07:34:53]POST find Content-Length [07:34:53]Host: 172.17.33.3:8080 [07:34:53]Content-Length: 677 [07:34:53]Content-Type: application/json [07:34:53] [07:34:53]POST finish read [07:34:53]Found Content-Length = 677 [07:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:53]execute_script... [07:34: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)347839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:53]POST & json_proto [07:34:53]process_json_proto [07:34:53]json parsed OK: [07:34:53]protocol is kg_v1.0 [07:34:53]action value=close_receipt [07:34:53]process_action close_receipt [07:34:53]cmd_close_receipt [07:34:53]MH_GetDate [07:34:53]Write to MH i2c: F0 00 00 46 21 56 [07:34:53]Write i2c OK [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: F0 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: F0 09 00 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: F0 09 00 46 21 00 A1 D8 1C 66 23 5B 8F 65 CC [07:34:53]GetLastDocTimeStamp 1713166474 [07:34:53]current date 1713166497 [07:34:53]FM_GetShiftState [07:34:53]SAM_PROTO_GetShiftState [07:34:53]wFMCommunicate request_size=4 [07:34:53]MH_SAM_APDU [07:34:53]CAPDU: 80 13 01 00 [07:34:53]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [07:34:53]Write i2c OK [07:34:53]MH_I2C_Read... [07:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:53]Read from MH i2c: E2 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 0E 00 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [07:34:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:34:53]wFMCommunicate OK [07:34:53]SAM_PROTO_GetShiftState done [07:34:53]FM_GetShiftState done [07:34:53]opened in 1713140468 [07:34:53]opened+sec_in_day 1713226868 [07:34:53]quantity*price = 60004 [07:34:53]sum+1 = 60006 [07:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 15.04.2024 07:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29440 ФПД: 108022537617205 1/tax-web-control/client/api/v1/ticket?date=20240415T073457&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29440&fm=108022537617205&tin=02508201610067®Number=0000138879044617&sum=60000 [07:34:54]StoreToDocumentArchive [07:34:54]shift 117 fd 29440 [07:34:54]save to /storage/0117/doc_00029440 [07:34:54]save last doc name /storage/0117/doc_00029440 to /storage/kkm_last_doc_name [07:34:54]save OK [07:34:54]Clear old archive folders... [07:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:54]tlvbuf is B6EE86A0 [07:34:54]SAM_PROTO_ClearQueue [07:34:54]wFMCommunicate request_size=4 [07:34:54]MH_SAM_APDU [07:34:54]CAPDU: 80 09 00 00 [07:34:54]Write to MH i2c: E2 08 00 54 21 80 09 00 00 00 00 00 00 E7 [07:34:54]Write i2c OK [07:34:54]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]SAM_PROTO_ClearQueue done [07:34:55]KKMCreateOFDPacket [07:34:55]OFDProtocolAddRootSTLVToBuf [07:34:55]FM_MakeSignedData [07:34:55]FM_MakeSignedData [07:34:55]SAM_PROTO_SignData [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 01 02 [07:34:55]Write to MH i2c: E2 08 00 55 21 80 0D 01 02 00 00 00 00 EF [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=255 [07:34:55]MH_SAM_APDU [07:34: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 22 00 00 00 F4 03 04 00 A1 D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 73 00 00 35 04 06 00 62 [07:34:55]Write to MH i2c: E2 02 01 56 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 22 00 00 00 F4 03 04 00 A1 D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 73 00 00 35 04 06 00 62 00 00 2A [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=10 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 02 02 05 3E F4 FB 7F 35 [07:34:55]Write to MH i2c: E2 0D 00 57 21 80 0D 02 02 05 00 3E F4 FB 7F 35 00 00 DD [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [07:34:55]RAPDU: 90 00 [07:34:55]wFMCommunicate OK [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 0D 03 02 [07:34:55]Write to MH i2c: E2 08 00 58 21 80 0D 03 02 00 00 00 00 F4 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 0B 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 0B 00 58 21 00 0C B7 50 08 10 8B 67 78 90 00 8A [07:34:55]RAPDU: 0C B7 50 08 10 8B 67 78 90 00 [07:34:55]wFMCommunicate OK [07:34:55]SAM_PROTO_SignData done [07:34:55]FM_MakeSignedData done [07:34:55]CreateOFDProtocolMessage [07:34:55]wFMCommunicate request_size=4 [07:34:55]MH_SAM_APDU [07:34:55]CAPDU: 80 11 00 00 [07:34:55]Write to MH i2c: E2 08 00 59 21 80 11 00 00 00 00 00 00 F4 [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:55]Read from MH i2c: E2 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 17 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: E2 17 00 59 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [07:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:34:55]wFMCommunicate OK [07:34:55]CreateOFDProtocolMessage done [07:34:55]OFDSenderStorePacket 29440 [07:34:55]StoreOFDPacket docnum=29440 [07:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 93 07 01 70 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 22 00 00 00 F4 03 04 00 A1 D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 73 00 00 35 04 06 00 62 3E F4 FB 7F 35 0C B7 50 08 10 8B 67 78 [07:34:55]CheckFolder [07:34:55]dirname=/storage/ofd_packets [07:34:55]CheckFolder done [07:34:55]ProducePacketName [07:34:55]name=ofd_packets/00029440 [07:34:55]NVStorageSaveData ofd_packets/00029440 [07:34:55]File name is /storage/ofd_packets/00029440 [07:34:55]Write 301 bytes [07:34:55]NVStorageSaveData done [07:34:55]OFDSenderStorePacket done [07:34:55]KKMCreateOFDPacket done [07:34:55]NVStorageSaveData kkm_last_timestamp [07:34:55]File name is /storage/kkm_last_timestamp [07:34:55]Write 4 bytes [07:34:55]NVStorageSaveData done [07:34:55]ExternCall_PrintAddStr [07:34:55]wPrintStart [07:34:55]Write to MH i2c: 01 00 00 5A 21 7B [07:34:55]Write i2c OK [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 [07:34:55]MH_I2C_Read... [07:34:55]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 FF 0F 90 [07:34:55]RasterBufferAndPrint [07:34:55]line Счет N : (1)347839 [07:34:55]line ИНН: 02508201610067 [07:34:55]line Контрольно-Кассовый Чек [07:34:55]line ПРОДАЖА [07:34:55]line ТРК (МРК, ГНК) : 13 [07:34:55]line Товар: 2710124130 [07:34:55]line Аи-92-К-5 [07:34:55]line 9.260 * 64.80 [07:34:55]line = 600.05 [07:34:55]line НДС 12% НСП 1% [07:34:55]line > о реализуемом товаре [07:34:55]line ОКРУГЛЕНИЕ: -0.05 [07:34:55]line ИТОГО: 600.00 [07:34:55]line Внесено: 600.00 [07:34:55]line СДАЧА: 0.00 [07:34:55]line НСП 1% : 5.31 [07:34:55]line НДС 12% : 63.72 [07:34:55]line Наличными: 600.00 [07:34:55]line Безнал.: 0.00 [07:34:55]line Место: АЗС № 108 "Партнер Нефть" [07:34:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:34:55]line СНО: Общий режим [07:34:55]line Чек 34 15.04.2024 07:34 [07:34:55]line Смена: 117 ФФД: 1.0 [07:34:55]line ЗНМ: 0300000027 [07:34:55]line РНМ: 0000138879044617 [07:34:55]line Версия ККМ: 001 [07:34:55]line ФМ: 0000000000963154 [07:34:55]line ФД: 29440 [07:34:55]line ФПД: 108022537617205 [07:34:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T073457&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29440&fm=108022537617205&tin=02508201610067®Number=0000138879044617&sum=60000 [07:34:55]OFD Sender: Processing packet 29440 [packets to send 8, broken 7] [07:34:55]ProducePacketName [07:34:55]name=ofd_packets/00029440 [07:34:55]OFD Sender: To server: pG, [07:34:55]CommunicateWithHost lk.salyk.kg:30040 [07:34:55]ConnectInit lk.salyk.kg [07:34:55]written 0, free lines is 4095 [07:34:55]Connected sock=10 [07:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 93 07 01 70 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 22 00 00 00 F4 03 04 00 A1 D8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 73 00 00 35 04 06 00 62 3E F4 FB 7F 35 0C B7 50 08 10 8B 67 78 [07:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 71 C3 47 00 52 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 39 36 33 31 35 34 10 04 04 00 00 73 00 00 F4 03 04 00 42 83 1C 66 B6 04 01 00 00 4F F2 1F C6 54 E4 E4 E8 [07:34:56]CommunicateWithHost err = 0 [07:34:56]CheckOFDResponse [07:34:56]1017 (14) - 77093643461234 [07:34:56]1041 (16) - 0000000000963154 [07:34:56]1040 (4) - 29440 [07:34:56]1012 (4) - 15.04.2024 01:30 [07:34:56]1206 (1) - 0 [07:34:56]OFD Sender: Remove packet 29440 [07:34:56]ProducePacketName [07:34:56]name=ofd_packets/00029440 [07:34:56]NVStorageDeleteData [07:34:56]Write to MH i2c: 01 00 00 84 21 A5 [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 C5 0C 7D [07:34:56]RasterBufferAndPrint [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]line [07:34:56]written 0, free lines is 3273 [07:34:56]MH_Cut [07:34:56]Write to MH i2c: D1 01 00 8B 21 01 7E [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 01 00 [07:34:56]MH_I2C_Read... [07:34:56]Read from MH i2c: D1 01 00 8B 21 00 7D [07:34:56]Write to MH i2c: 01 00 00 8C 21 AD [07:34:56]Write i2c OK [07:34:56]MH_I2C_Read... [07:34:56]OFD Sender: No OFD packet to send [07:34:57]*** Cut start [07:34:57]*** Partial cut [07:34:57]*** CUTSNS_PIN = 1 [07:34:57]*** CUTSNS_PIN = 0 [07:34:57]*** Brake cut motor [07:34:57]Read from MH i2c: 01 [07:34:57]MH_I2C_Read... [07:34:57]*** Stop cut motor [07:34:57]*** Cut end [07:34:57]Read from MH i2c: 01 07 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [07:34:57]process_action close_receipt done [07:34:57]requested_data is exist [07:34:57]produce_requested_data [07:34:57]requested_item fm.sn is exist - process it [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 11 00 00 [07:34:57]Write to MH i2c: E2 08 00 8D 21 80 11 00 00 00 00 00 00 28 [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 17 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 17 00 8D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [07:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:34:57]wFMCommunicate OK [07:34:57]requested_item fd.num is exist - process it [07:34:57]SAM_PROTO_GetFieldsCounters [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 13 00 00 [07:34:57]Write to MH i2c: E2 08 00 8E 21 80 13 00 00 00 00 00 00 2B [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:57]Read from MH i2c: E2 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 62 00 [07:34:57]MH_I2C_Read... [07:34:57]Read from MH i2c: E2 62 00 8E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 73 00 00 0E 04 04 00 75 00 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 B7 [07:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:57]wFMCommunicate OK [07:34:57]SAM_PROTO_GetFieldsCounters done [07:34:57]requested_item shift.num is exist - process it [07:34:57]requested_item shift.opened is exist - process it [07:34:57]req_shift_opened [07:34:57]FM_GetShiftState [07:34:57]SAM_PROTO_GetShiftState [07:34:57]wFMCommunicate request_size=4 [07:34:57]MH_SAM_APDU [07:34:57]CAPDU: 80 13 01 00 [07:34:57]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [07:34:57]Write i2c OK [07:34:57]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 [07:34:58]MH_I2C_Read... [07:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:58]Read from MH i2c: E2 0E 00 [07:34:58]MH_I2C_Read... [07:34:58]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [07:34:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:34:58]wFMCommunicate OK [07:34:58]SAM_PROTO_GetShiftState done [07:34:58]FM_GetShiftState done [07:34:58]req_shift_opened done [07:34:58]requested_item shift.open_date is exist - process it [07:34:58]req_shift_open_date [07:34:58]req_shift_open_date done [07:34:58]produce_requested_data done [07:34:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29440,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:34:58]process_action_free close_receipt [07:34:58]json_value_free [07:34:58]json_value_free done [07:34:58]process_json_proto returns [07:34:58]Send response to host [07:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29440,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:34:58]free response buf [07:34:58]execute_script done [07:34:58]execute_script returns [07:34:58]free content buf [07:34:58]Sock 8.Close socket [07:34:58]Sock 8.Thread stoped [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:40]accept exits with 9 [07:36:40]New connection [07:36:40]New thread 3067112804 created [07:36:40]Thread 3066969444 joined [07:36:40]Waiting for new connection... [07:36:40] Sock 9.Parse request [07:36:40]Sock 9.Check first char [07:36:40]Sock 9.First char is OK [07:36:40]request: POST /json_proto HTTP/1.0 [07:36:40]Method: POST [07:36:40]URL: /json_proto [07:36:40]Method is POST - this is cgi request [07:36:40]url: /json_proto [07:36:40]query_string will be loaded in cgi processing [07:36:40]execute_cgi json_proto POST (null) [07:36:40]execute_cgi path=json_proto method=POST [07:36:40]POST find Content-Length [07:36:40]Host: 172.17.33.3:8080 [07:36:40]Content-Length: 670 [07:36:40]Content-Type: application/json [07:36:40] [07:36:40]POST finish read [07:36:40]Found Content-Length = 670 [07:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:40]execute_script... [07:36: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)347841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:40]POST & json_proto [07:36:40]process_json_proto [07:36:40]json parsed OK: [07:36:40]protocol is kg_v1.0 [07:36:40]action value=close_receipt [07:36:40]process_action close_receipt [07:36:40]cmd_close_receipt [07:36:40]MH_GetDate [07:36:40]Write to MH i2c: F0 00 00 90 21 A0 [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: F0 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: F0 09 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: F0 09 00 90 21 00 0B D9 1C 66 23 5B 8F 65 81 [07:36:40]GetLastDocTimeStamp 1713166497 [07:36:40]current date 1713166603 [07:36:40]FM_GetShiftState [07:36:40]SAM_PROTO_GetShiftState [07:36:40]wFMCommunicate request_size=4 [07:36:40]MH_SAM_APDU [07:36:40]CAPDU: 80 13 01 00 [07:36:40]Write to MH i2c: E2 08 00 91 21 80 13 01 00 00 00 00 00 2F [07:36:40]Write i2c OK [07:36:40]MH_I2C_Read... [07:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:40]Read from MH i2c: E2 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: E2 0E 00 [07:36:40]MH_I2C_Read... [07:36:40]Read from MH i2c: E2 0E 00 91 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [07:36:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:36:40]wFMCommunicate OK [07:36:40]SAM_PROTO_GetShiftState done [07:36:40]FM_GetShiftState done [07:36:40]opened in 1713140468 [07:36:40]opened+sec_in_day 1713226868 [07:36:40]quantity*price = 40006 [07:36:40]sum+1 = 40007 [07:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 15.04.2024 07:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29441 ФПД: 109596950178320 1/tax-web-control/client/api/v1/ticket?date=20240415T073643&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29441&fm=109596950178320&tin=02508201610067®Number=0000138879044617&sum=40000 [07:36:41]StoreToDocumentArchive [07:36:41]shift 117 fd 29441 [07:36:41]save to /storage/0117/doc_00029441 [07:36:41]save last doc name /storage/0117/doc_00029441 to /storage/kkm_last_doc_name [07:36:41]save OK [07:36:41]Clear old archive folders... [07:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:36:41]tlvbuf is 0028DE60 [07:36:41]SAM_PROTO_ClearQueue [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 09 00 00 [07:36:41]Write to MH i2c: E2 08 00 9E 21 80 09 00 00 00 00 00 00 31 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [07:36:41]RAPDU: 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_ClearQueue done [07:36:41]KKMCreateOFDPacket [07:36:41]OFDProtocolAddRootSTLVToBuf [07:36:41]FM_MakeSignedData [07:36:41]FM_MakeSignedData [07:36:41]SAM_PROTO_SignData [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 0D 01 02 [07:36:41]Write to MH i2c: E2 08 00 9F 21 80 0D 01 02 00 00 00 00 39 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 9F 21 00 90 00 34 [07:36:41]RAPDU: 90 00 [07:36:41]wFMCommunicate OK [07:36:41]wFMCommunicate request_size=255 [07:36:41]MH_SAM_APDU [07:36: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0B D9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 73 00 00 35 04 06 00 [07:36:41]Write to MH i2c: E2 02 01 A0 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0B D9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 73 00 00 35 04 06 00 00 00 C5 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]OFD Sender: No OFD packet to send [07:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 A0 21 00 90 00 35 [07:36:41]RAPDU: 90 00 [07:36:41]wFMCommunicate OK [07:36:41]wFMCommunicate request_size=11 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 0D 02 02 06 63 AD 87 48 AA 10 [07:36:41]Write to MH i2c: E2 0E 00 A1 21 80 0D 02 02 06 00 63 AD 87 48 AA 10 00 00 E1 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [07:36:41]RAPDU: 90 00 [07:36:41]wFMCommunicate OK [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 0D 03 02 [07:36:41]Write to MH i2c: E2 08 00 A2 21 80 0D 03 02 00 00 00 00 3E [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0B 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 0B 00 A2 21 00 8A 43 4E 01 F5 BC 3A 18 90 00 5E [07:36:41]RAPDU: 8A 43 4E 01 F5 BC 3A 18 90 00 [07:36:41]wFMCommunicate OK [07:36:41]SAM_PROTO_SignData done [07:36:41]FM_MakeSignedData done [07:36:41]CreateOFDProtocolMessage [07:36:41]wFMCommunicate request_size=4 [07:36:41]MH_SAM_APDU [07:36:41]CAPDU: 80 11 00 00 [07:36:41]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:41]Read from MH i2c: E2 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 17 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [07:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:36:41]wFMCommunicate OK [07:36:41]CreateOFDProtocolMessage done [07:36:41]OFDSenderStorePacket 29441 [07:36:41]StoreOFDPacket docnum=29441 [07:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 45 6F 08 01 BA 50 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0B D9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 73 00 00 35 04 06 00 63 AD 87 48 AA 10 8A 43 4E 01 F5 BC 3A 18 [07:36:41]CheckFolder [07:36:41]dirname=/storage/ofd_packets [07:36:41]CheckFolder done [07:36:41]ProducePacketName [07:36:41]name=ofd_packets/00029441 [07:36:41]NVStorageSaveData ofd_packets/00029441 [07:36:41]File name is /storage/ofd_packets/00029441 [07:36:41]Write 302 bytes [07:36:41]NVStorageSaveData done [07:36:41]OFDSenderStorePacket done [07:36:41]KKMCreateOFDPacket done [07:36:41]NVStorageSaveData kkm_last_timestamp [07:36:41]File name is /storage/kkm_last_timestamp [07:36:41]Write 4 bytes [07:36:41]NVStorageSaveData done [07:36:41]ExternCall_PrintAddStr [07:36:41]wPrintStart [07:36:41]Write to MH i2c: 01 00 00 A4 21 C5 [07:36:41]Write i2c OK [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: 01 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: 01 07 00 [07:36:41]MH_I2C_Read... [07:36:41]Read from MH i2c: 01 07 00 A4 21 00 00 00 00 00 FF 0F DA [07:36:41]RasterBufferAndPrint [07:36:41]line Счет N : (1)347841 [07:36:41]line ИНН: 02508201610067 [07:36:41]line Контрольно-Кассовый Чек [07:36:41]line ПРОДАЖА [07:36:41]line ТРК (МРК, ГНК) : 12 [07:36:41]line Товар: 2710124130 [07:36:41]line SUPER-92-К-5 [07:36:41]line 6.080 * 65.80 [07:36:41]line = 400.06 [07:36:41]line НДС 12% НСП 1% [07:36:41]line > о реализуемом товаре [07:36:41]line ОКРУГЛЕНИЕ: -0.06 [07:36:41]line ИТОГО: 400.00 [07:36:41]line Внесено: 400.00 [07:36:41]line СДАЧА: 0.00 [07:36:41]line НСП 1% : 3.54 [07:36:41]line НДС 12% : 42.48 [07:36:41]line Наличными: 400.00 [07:36:41]line Безнал.: 0.00 [07:36:41]line Место: АЗС № 108 "Партнер Нефть" [07:36:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:36:41]line СНО: Общий режим [07:36:41]line Чек 35 15.04.2024 07:36 [07:36:41]line Смена: 117 ФФД: 1.0 [07:36:41]line ЗНМ: 0300000027 [07:36:41]line РНМ: 0000138879044617 [07:36:41]line Версия ККМ: 001 [07:36:41]line ФМ: 0000000000963154 [07:36:41]line ФД: 29441 [07:36:41]line ФПД: 109596950178320 [07:36:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T073643&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29441&fm=109596950178320&tin=02508201610067®Number=0000138879044617&sum=40000 [07:36:42]OFD Sender: Processing packet 29441 [packets to send 8, broken 7] [07:36:42]ProducePacketName [07:36:42]name=ofd_packets/00029441 [07:36:42]OFD Sender: To server: pG, [07:36:42]CommunicateWithHost lk.salyk.kg:30040 [07:36:42]ConnectInit lk.salyk.kg [07:36:42]written 0, free lines is 4095 [07:36:42]Connected sock=10 [07:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 45 6F 08 01 BA 50 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0B D9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 73 00 00 35 04 06 00 63 AD 87 48 AA 10 8A 43 4E 01 F5 BC 3A 18 [07:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 38 47 00 BF 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 39 36 33 31 35 34 10 04 04 00 01 73 00 00 F4 03 04 00 AD 83 1C 66 B6 04 01 00 00 B5 25 C9 51 B9 02 B1 A2 [07:36:42]CommunicateWithHost err = 0 [07:36:42]CheckOFDResponse [07:36:42]1017 (14) - 77093643461234 [07:36:42]1041 (16) - 0000000000963154 [07:36:42]1040 (4) - 29441 [07:36:42]1012 (4) - 15.04.2024 01:32 [07:36:42]1206 (1) - 0 [07:36:42]OFD Sender: Remove packet 29441 [07:36:42]ProducePacketName [07:36:42]name=ofd_packets/00029441 [07:36:42]NVStorageDeleteData [07:36:42]Write to MH i2c: 01 00 00 CE 21 EF [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 07 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: 01 07 00 CE 21 00 00 00 00 00 BB 0C BD [07:36:42]RasterBufferAndPrint [07:36:42]line [07:36:42]line [07:36:42]line [07:36:42]line [07:36:42]line [07:36:42]written 0, free lines is 3265 [07:36:42]MH_Cut [07:36:42]Write to MH i2c: D1 01 00 D5 21 01 C8 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: D1 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: D1 01 00 [07:36:42]MH_I2C_Read... [07:36:42]Read from MH i2c: D1 01 00 D5 21 00 C7 [07:36:42]Write to MH i2c: 01 00 00 D6 21 F7 [07:36:42]Write i2c OK [07:36:42]MH_I2C_Read... [07:36:43]OFD Sender: No OFD packet to send [07:36:43]*** Cut start [07:36:43]*** Partial cut [07:36:43]*** CUTSNS_PIN = 1 [07:36:43]*** CUTSNS_PIN = 0 [07:36:43]*** Brake cut motor [07:36:44]Read from MH i2c: 01 [07:36:44]MH_I2C_Read... [07:36:44]*** Stop cut motor [07:36:44]*** Cut end [07:36:44]Read from MH i2c: 01 07 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [07:36:44]process_action close_receipt done [07:36:44]requested_data is exist [07:36:44]produce_requested_data [07:36:44]requested_item fm.sn is exist - process it [07:36:44]wFMCommunicate request_size=4 [07:36:44]MH_SAM_APDU [07:36:44]CAPDU: 80 11 00 00 [07:36:44]Write to MH i2c: E2 08 00 D7 21 80 11 00 00 00 00 00 00 72 [07:36:44]Write i2c OK [07:36:44]MH_I2C_Read... [07:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:44]Read from MH i2c: E2 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 17 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 17 00 D7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [07:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:36:44]wFMCommunicate OK [07:36:44]requested_item fd.num is exist - process it [07:36:44]SAM_PROTO_GetFieldsCounters [07:36:44]wFMCommunicate request_size=4 [07:36:44]MH_SAM_APDU [07:36:44]CAPDU: 80 13 00 00 [07:36:44]Write to MH i2c: E2 08 00 D8 21 80 13 00 00 00 00 00 00 75 [07:36:44]Write i2c OK [07:36:44]MH_I2C_Read... [07:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:44]Read from MH i2c: E2 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 62 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 62 00 D8 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 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 [07:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:44]wFMCommunicate OK [07:36:44]SAM_PROTO_GetFieldsCounters done [07:36:44]requested_item shift.num is exist - process it [07:36:44]requested_item shift.opened is exist - process it [07:36:44]req_shift_opened [07:36:44]FM_GetShiftState [07:36:44]SAM_PROTO_GetShiftState [07:36:44]wFMCommunicate request_size=4 [07:36:44]MH_SAM_APDU [07:36:44]CAPDU: 80 13 01 00 [07:36:44]Write to MH i2c: E2 08 00 D9 21 80 13 01 00 00 00 00 00 77 [07:36:44]Write i2c OK [07:36:44]MH_I2C_Read... [07:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:44]Read from MH i2c: E2 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 0E 00 [07:36:44]MH_I2C_Read... [07:36:44]Read from MH i2c: E2 0E 00 D9 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6B [07:36:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:36:44]wFMCommunicate OK [07:36:44]SAM_PROTO_GetShiftState done [07:36:44]FM_GetShiftState done [07:36:44]req_shift_opened done [07:36:44]requested_item shift.open_date is exist - process it [07:36:44]req_shift_open_date [07:36:44]req_shift_open_date done [07:36:44]produce_requested_data done [07:36:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:36:44]process_action_free close_receipt [07:36:44]json_value_free [07:36:44]json_value_free done [07:36:44]process_json_proto returns [07:36:44]Send response to host [07:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:36:44]free response buf [07:36:44]execute_script done [07:36:44]execute_script returns [07:36:44]free content buf [07:36:44]Sock 9.Close socket [07:36:44]Sock 9.Thread stoped [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:53]accept exits with 8 [07:36:53]New connection [07:36:53]New thread 3066969444 created [07:36:53]Thread 3067112804 joined [07:36:53]Waiting for new connection... [07:36:53] Sock 8.Parse request [07:36:53]Sock 8.Check first char [07:36:53]Sock 8.First char is OK [07:36:53]request: POST /json_proto HTTP/1.0 [07:36:53]Method: POST [07:36:53]URL: /json_proto [07:36:53]Method is POST - this is cgi request [07:36:53]url: /json_proto [07:36:53]query_string will be loaded in cgi processing [07:36:53]execute_cgi json_proto POST (null) [07:36:53]execute_cgi path=json_proto method=POST [07:36:53]POST find Content-Length [07:36:53]Host: 172.17.33.3:8080 [07:36:53]Content-Length: 1211 [07:36:53]Content-Type: application/json [07:36:53] [07:36:53]POST finish read [07:36:53]Found Content-Length = 1211 [07:36:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347840\u000A15.04.2024 07:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3830766:3830767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:53]execute_script... [07:36:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347840\u000A15.04.2024 07:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3830766:3830767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:53]POST & json_proto [07:36:53]process_json_proto [07:36:53]json parsed OK: [07:36:53]protocol is kg_v1.0 [07:36:53]action value=print_text [07:36:53]process_action print_text [07:36:53]cmd_print_text [07:36:53]ExternCall_PrintAddStr [07:36:53]wPrintStart [07:36:53]Write to MH i2c: 01 00 00 DA 21 FB [07:36:53]Write i2c OK [07:36:53]MH_I2C_Read... [07:36:53]Read from MH i2c: 01 [07:36:53]MH_I2C_Read... [07:36:53]Read from MH i2c: 01 07 00 [07:36:53]MH_I2C_Read... [07:36:53]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [07:36:53]RasterBufferAndPrint [07:36:53]line *****ТОВАРНЫЙ ЧЕК***** [07:36:53]line АЗС 108 [07:36:53]line Партнер нефть [07:36:53]line 02508201610067 [07:36:53]line Кассир : Джумагулова Н. [07:36:53]line Счет N : (1)347840 [07:36:53]line 15.04.2024 07:18 [07:36:53]line ПРОДАЖА [07:36:53]line ТРК (МРК, ГНК): 32 [07:36:53]line Вид ГСМ : 2710124130 [07:36:53]line Аи-92-К-5 [07:36:53]line 20.000 x 64.80 [07:36:53]line ИТОГ: 1296.00 [07:36:53]line Тип оплаты: Талоны: Партнер нефть [07:36:53]line 3830766:3830767 [07:36:53]line ______________________ [07:36:53]line (подпись) [07:36:53]written 0, free lines is 4095 [07:36:54]Write to MH i2c: 01 00 00 EF 21 10 [07:36:54]Write i2c OK [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: 01 [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: 01 07 00 [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: 01 07 00 EF 21 00 00 00 00 00 FC 0D 20 [07:36:54]RasterBufferAndPrint [07:36:54]line [07:36:54]line [07:36:54]line [07:36:54]line [07:36:54]line [07:36:54]written 0, free lines is 3582 [07:36:54]MH_Cut [07:36:54]Write to MH i2c: D1 01 00 F6 21 01 E9 [07:36:54]Write i2c OK [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: D1 [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: D1 01 00 [07:36:54]MH_I2C_Read... [07:36:54]Read from MH i2c: D1 01 00 F6 21 00 E8 [07:36:54]Write to MH i2c: 01 00 00 F7 21 18 [07:36:54]Write i2c OK [07:36:54]MH_I2C_Read... [07:36:54]*** Cut start [07:36:54]*** Partial cut [07:36:54]*** CUTSNS_PIN = 1 [07:36:54]*** CUTSNS_PIN = 0 [07:36:54]*** Brake cut motor [07:36:55]Read from MH i2c: 01 [07:36:55]MH_I2C_Read... [07:36:55]*** Stop cut motor [07:36:55]*** Cut end [07:36:55]Read from MH i2c: 01 07 00 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 FF 0F 2D [07:36:55]process_action print_text done [07:36:55]requested_data is exist [07:36:55]produce_requested_data [07:36:55]requested_item fm.sn is exist - process it [07:36:55]wFMCommunicate request_size=4 [07:36:55]MH_SAM_APDU [07:36:55]CAPDU: 80 11 00 00 [07:36:55]Write to MH i2c: E2 08 00 F8 21 80 11 00 00 00 00 00 00 93 [07:36:55]Write i2c OK [07:36:55]MH_I2C_Read... [07:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:55]Read from MH i2c: E2 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 17 00 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 17 00 F8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [07:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:36:55]wFMCommunicate OK [07:36:55]requested_item fd.num is exist - process it [07:36:55]SAM_PROTO_GetFieldsCounters [07:36:55]wFMCommunicate request_size=4 [07:36:55]MH_SAM_APDU [07:36:55]CAPDU: 80 13 00 00 [07:36:55]Write to MH i2c: E2 08 00 F9 21 80 13 00 00 00 00 00 00 96 [07:36:55]Write i2c OK [07:36:55]MH_I2C_Read... [07:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:55]Read from MH i2c: E2 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 62 00 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 62 00 F9 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 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 26 [07:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:55]wFMCommunicate OK [07:36:55]SAM_PROTO_GetFieldsCounters done [07:36:55]requested_item shift.num is exist - process it [07:36:55]requested_item shift.opened is exist - process it [07:36:55]req_shift_opened [07:36:55]FM_GetShiftState [07:36:55]SAM_PROTO_GetShiftState [07:36:55]wFMCommunicate request_size=4 [07:36:55]MH_SAM_APDU [07:36:55]CAPDU: 80 13 01 00 [07:36:55]Write to MH i2c: E2 08 00 FA 21 80 13 01 00 00 00 00 00 98 [07:36:55]Write i2c OK [07:36:55]MH_I2C_Read... [07:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:55]Read from MH i2c: E2 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 0E 00 [07:36:55]MH_I2C_Read... [07:36:55]Read from MH i2c: E2 0E 00 FA 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8C [07:36:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:36:55]wFMCommunicate OK [07:36:55]SAM_PROTO_GetShiftState done [07:36:55]FM_GetShiftState done [07:36:55]req_shift_opened done [07:36:55]requested_item shift.open_date is exist - process it [07:36:55]req_shift_open_date [07:36:55]req_shift_open_date done [07:36:55]produce_requested_data done [07:36:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:36:55]process_action_free print_text [07:36:55]json_value_free [07:36:55]json_value_free done [07:36:55]process_json_proto returns [07:36:55]Send response to host [07:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:36:55]free response buf [07:36:55]execute_script done [07:36:55]execute_script returns [07:36:55]free content buf [07:36:55]Sock 8.Close socket [07:36:55]Sock 8.Thread stoped [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:32]accept exits with 9 [07:43:32]New connection [07:43:32]New thread 3067112804 created [07:43:32]Thread 3066969444 joined [07:43:32]Waiting for new connection... [07:43:32] Sock 9.Parse request [07:43:32]Sock 9.Check first char [07:43:32]Sock 9.First char is OK [07:43:32]request: POST /json_proto HTTP/1.0 [07:43:32]Method: POST [07:43:32]URL: /json_proto [07:43:32]Method is POST - this is cgi request [07:43:32]url: /json_proto [07:43:32]query_string will be loaded in cgi processing [07:43:32]execute_cgi json_proto POST (null) [07:43:32]execute_cgi path=json_proto method=POST [07:43:32]POST find Content-Length [07:43:32]Host: 172.17.33.3:8080 [07:43:32]Content-Length: 1175 [07:43:32]Content-Type: application/json [07:43:32] [07:43:32]POST finish read [07:43:32]Found Content-Length = 1175 [07:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347842\u000A15.04.2024 07:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126405\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:32]execute_script... [07:43:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347842\u000A15.04.2024 07:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126405\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:32]POST & json_proto [07:43:32]process_json_proto [07:43:32]json parsed OK: [07:43:32]protocol is kg_v1.0 [07:43:32]action value=print_text [07:43:32]process_action print_text [07:43:32]cmd_print_text [07:43:32]ExternCall_PrintAddStr [07:43:32]wPrintStart [07:43:32]Write to MH i2c: 01 00 00 FB 21 1C [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 FF 0F 31 [07:43:32]RasterBufferAndPrint [07:43:32]line *****ТОВАРНЫЙ ЧЕК***** [07:43:32]line АЗС 108 [07:43:32]line Партнер нефть [07:43:32]line 02508201610067 [07:43:32]line Кассир : Джумагулова Н. [07:43:32]line Счет N : (1)347842 [07:43:32]line 15.04.2024 07:25 [07:43:32]line ПРОДАЖА [07:43:32]line ТРК (МРК, ГНК): 42 [07:43:32]line Вид ГСМ : 2710124130 [07:43:32]line Аи-92-К-5 [07:43:32]line 25.000 x 64.80 [07:43:32]line ИТОГ: 1620.00 [07:43:32]line Тип оплаты: Талоны: ТК ГПНА Online [07:43:32]line 30126405 [07:43:32]line ______________________ [07:43:32]line (подпись) [07:43:32]written 0, free lines is 4095 [07:43:32]Write to MH i2c: 01 00 00 10 22 32 [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 F5 0D 3B [07:43:32]RasterBufferAndPrint [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]line [07:43:32]written 0, free lines is 3575 [07:43:32]MH_Cut [07:43:32]Write to MH i2c: D1 01 00 17 22 01 0B [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 01 00 [07:43:32]MH_I2C_Read... [07:43:32]Read from MH i2c: D1 01 00 17 22 00 0A [07:43:32]Write to MH i2c: 01 00 00 18 22 3A [07:43:32]Write i2c OK [07:43:32]MH_I2C_Read... [07:43:33]OFD Sender: No OFD packet to send [07:43:33]*** Cut start [07:43:33]*** Partial cut [07:43:33]*** CUTSNS_PIN = 1 [07:43:33]*** CUTSNS_PIN = 0 [07:43:33]*** Brake cut motor [07:43:34]Read from MH i2c: 01 [07:43:34]MH_I2C_Read... [07:43:34]*** Stop cut motor [07:43:34]*** Cut end [07:43:34]Read from MH i2c: 01 07 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: 01 07 00 18 22 00 00 00 00 00 FF 0F 4F [07:43:34]process_action print_text done [07:43:34]requested_data is exist [07:43:34]produce_requested_data [07:43:34]requested_item fm.sn is exist - process it [07:43:34]wFMCommunicate request_size=4 [07:43:34]MH_SAM_APDU [07:43:34]CAPDU: 80 11 00 00 [07:43:34]Write to MH i2c: E2 08 00 19 22 80 11 00 00 00 00 00 00 B5 [07:43:34]Write i2c OK [07:43:34]MH_I2C_Read... [07:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:34]Read from MH i2c: E2 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 17 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 17 00 19 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [07:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:43:34]wFMCommunicate OK [07:43:34]requested_item fd.num is exist - process it [07:43:34]SAM_PROTO_GetFieldsCounters [07:43:34]wFMCommunicate request_size=4 [07:43:34]MH_SAM_APDU [07:43:34]CAPDU: 80 13 00 00 [07:43:34]Write to MH i2c: E2 08 00 1A 22 80 13 00 00 00 00 00 00 B8 [07:43:34]Write i2c OK [07:43:34]MH_I2C_Read... [07:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:34]Read from MH i2c: E2 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 62 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 62 00 1A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 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 48 [07:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:34]wFMCommunicate OK [07:43:34]SAM_PROTO_GetFieldsCounters done [07:43:34]requested_item shift.num is exist - process it [07:43:34]requested_item shift.opened is exist - process it [07:43:34]req_shift_opened [07:43:34]FM_GetShiftState [07:43:34]SAM_PROTO_GetShiftState [07:43:34]wFMCommunicate request_size=4 [07:43:34]MH_SAM_APDU [07:43:34]CAPDU: 80 13 01 00 [07:43:34]Write to MH i2c: E2 08 00 1B 22 80 13 01 00 00 00 00 00 BA [07:43:34]Write i2c OK [07:43:34]MH_I2C_Read... [07:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:34]Read from MH i2c: E2 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 0E 00 [07:43:34]MH_I2C_Read... [07:43:34]Read from MH i2c: E2 0E 00 1B 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AE [07:43:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:43:34]wFMCommunicate OK [07:43:34]SAM_PROTO_GetShiftState done [07:43:34]FM_GetShiftState done [07:43:34]req_shift_opened done [07:43:34]requested_item shift.open_date is exist - process it [07:43:34]req_shift_open_date [07:43:34]req_shift_open_date done [07:43:34]produce_requested_data done [07:43:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:43:34]process_action_free print_text [07:43:34]json_value_free [07:43:34]json_value_free done [07:43:34]process_json_proto returns [07:43:34]Send response to host [07:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29441,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:43:34]free response buf [07:43:34]execute_script done [07:43:34]execute_script returns [07:43:34]free content buf [07:43:34]Sock 9.Close socket [07:43:34]Sock 9.Thread stoped [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:52]accept exits with 8 [07:49:52]New connection [07:49:52]New thread 3066969444 created [07:49:52]Thread 3067112804 joined [07:49:52]Waiting for new connection... [07:49:52] Sock 8.Parse request [07:49:52]Sock 8.Check first char [07:49:52]Sock 8.First char is OK [07:49:52]request: POST /json_proto HTTP/1.0 [07:49:52]Method: POST [07:49:52]URL: /json_proto [07:49:52]Method is POST - this is cgi request [07:49:52]url: /json_proto [07:49:52]query_string will be loaded in cgi processing [07:49:52]execute_cgi json_proto POST (null) [07:49:52]execute_cgi path=json_proto method=POST [07:49:52]POST find Content-Length [07:49:52]Host: 172.17.33.3:8080 [07:49:52]Content-Length: 677 [07:49:52]Content-Type: application/json [07:49:52] [07:49:52]POST finish read [07:49:52]Found Content-Length = 677 [07:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:52]execute_script... [07:49:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:52]POST & json_proto [07:49:52]process_json_proto [07:49:52]json parsed OK: [07:49:52]protocol is kg_v1.0 [07:49:52]action value=close_receipt [07:49:52]process_action close_receipt [07:49:52]cmd_close_receipt [07:49:52]MH_GetDate [07:49:52]Write to MH i2c: F0 00 00 1C 22 2D [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: F0 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: F0 09 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: F0 09 00 1C 22 00 23 DC 1C 66 23 5B 8F 65 29 [07:49:52]GetLastDocTimeStamp 1713166603 [07:49:52]current date 1713167395 [07:49:52]FM_GetShiftState [07:49:52]SAM_PROTO_GetShiftState [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 13 01 00 [07:49:52]Write to MH i2c: E2 08 00 1D 22 80 13 01 00 00 00 00 00 BC [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 0E 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 0E 00 1D 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B0 [07:49:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:49:52]wFMCommunicate OK [07:49:52]SAM_PROTO_GetShiftState done [07:49:52]FM_GetShiftState done [07:49:52]opened in 1713140468 [07:49:52]opened+sec_in_day 1713226868 [07:49:52]quantity*price = 50025 [07:49:52]sum+1 = 50027 [07:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 15.04.2024 07:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29442 ФПД: 29331520970967 1/tax-web-control/client/api/v1/ticket?date=20240415T074956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29442&fm=29331520970967&tin=02508201610067®Number=0000138879044617&sum=50000 [07:49:53]StoreToDocumentArchive [07:49:53]shift 117 fd 29442 [07:49:53]save to /storage/0117/doc_00029442 [07:49:53]save last doc name /storage/0117/doc_00029442 to /storage/kkm_last_doc_name [07:49:53]save OK [07:49:53]Clear old archive folders... [07:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:53]tlvbuf is B6ECF5F0 [07:49:53]SAM_PROTO_ClearQueue [07:49:53]wFMCommunicate request_size=4 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 09 00 00 [07:49:53]Write to MH i2c: E2 08 00 2A 22 80 09 00 00 00 00 00 00 BE [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 2A 22 00 90 00 C0 [07:49:53]RAPDU: 90 00 [07:49:53]wFMCommunicate OK [07:49:53]SAM_PROTO_ClearQueue done [07:49:53]KKMCreateOFDPacket [07:49:53]OFDProtocolAddRootSTLVToBuf [07:49:53]FM_MakeSignedData [07:49:53]FM_MakeSignedData [07:49:53]SAM_PROTO_SignData [07:49:53]wFMCommunicate request_size=4 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 0D 01 02 [07:49:53]Write to MH i2c: E2 08 00 2B 22 80 0D 01 02 00 00 00 00 C6 [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]OFD Sender: No OFD packet to send [07:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 2B 22 00 90 00 C1 [07:49:53]RAPDU: 90 00 [07:49:53]wFMCommunicate OK [07:49:53]wFMCommunicate request_size=255 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 24 DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 73 00 00 35 04 06 00 1A [07:49:53]Write to MH i2c: E2 02 01 2C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 24 DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 73 00 00 35 04 06 00 1A 00 00 29 [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 2C 22 00 90 00 C2 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]wFMCommunicate request_size=10 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 02 02 05 AD 46 E3 60 D7 [07:49:54]Write to MH i2c: E2 0D 00 2D 22 80 0D 02 02 05 00 AD 46 E3 60 D7 00 00 E0 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 03 00 2D 22 00 90 00 C3 [07:49:54]RAPDU: 90 00 [07:49:54]wFMCommunicate OK [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 0D 03 02 [07:49:54]Write to MH i2c: E2 08 00 2E 22 80 0D 03 02 00 00 00 00 CB [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0B 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 0B 00 2E 22 00 76 20 9E 8F CA D9 80 A6 90 00 58 [07:49:54]RAPDU: 76 20 9E 8F CA D9 80 A6 90 00 [07:49:54]wFMCommunicate OK [07:49:54]SAM_PROTO_SignData done [07:49:54]FM_MakeSignedData done [07:49:54]CreateOFDProtocolMessage [07:49:54]wFMCommunicate request_size=4 [07:49:54]MH_SAM_APDU [07:49:54]CAPDU: 80 11 00 00 [07:49:54]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:54]Read from MH i2c: E2 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 17 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [07:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:49:54]wFMCommunicate OK [07:49:54]CreateOFDProtocolMessage done [07:49:54]OFDSenderStorePacket 29442 [07:49:54]StoreOFDPacket docnum=29442 [07:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E 4C 07 01 B8 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 24 DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 73 00 00 35 04 06 00 1A AD 46 E3 60 D7 76 20 9E 8F CA D9 80 A6 [07:49:54]CheckFolder [07:49:54]dirname=/storage/ofd_packets [07:49:54]CheckFolder done [07:49:54]ProducePacketName [07:49:54]name=ofd_packets/00029442 [07:49:54]NVStorageSaveData ofd_packets/00029442 [07:49:54]File name is /storage/ofd_packets/00029442 [07:49:54]Write 301 bytes [07:49:54]NVStorageSaveData done [07:49:54]OFDSenderStorePacket done [07:49:54]KKMCreateOFDPacket done [07:49:54]NVStorageSaveData kkm_last_timestamp [07:49:54]File name is /storage/kkm_last_timestamp [07:49:54]Write 4 bytes [07:49:54]NVStorageSaveData done [07:49:54]ExternCall_PrintAddStr [07:49:54]wPrintStart [07:49:54]Write to MH i2c: 01 00 00 30 22 52 [07:49:54]Write i2c OK [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 07 00 [07:49:54]MH_I2C_Read... [07:49:54]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [07:49:54]RasterBufferAndPrint [07:49:54]line Счет N : (1)347843 [07:49:54]line ИНН: 02508201610067 [07:49:54]line Контрольно-Кассовый Чек [07:49:54]line ПРОДАЖА [07:49:54]line ТРК (МРК, ГНК) : 32 [07:49:54]line Товар: 2710124130 [07:49:54]line Аи-92-К-5 [07:49:54]line 7.720 * 64.80 [07:49:54]line = 500.26 [07:49:54]line НДС 12% НСП 1% [07:49:54]line > о реализуемом товаре [07:49:54]line ОКРУГЛЕНИЕ: -0.26 [07:49:54]line ИТОГО: 500.00 [07:49:54]line Внесено: 500.00 [07:49:54]line СДАЧА: 0.00 [07:49:54]line НСП 1% : 4.43 [07:49:54]line НДС 12% : 53.12 [07:49:54]line Наличными: 500.00 [07:49:54]line Безнал.: 0.00 [07:49:54]line Место: АЗС № 108 "Партнер Нефть" [07:49:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:49:54]line СНО: Общий режим [07:49:54]line Чек 36 15.04.2024 07:49 [07:49:54]line Смена: 117 ФФД: 1.0 [07:49:54]line ЗНМ: 0300000027 [07:49:54]line РНМ: 0000138879044617 [07:49:54]line Версия ККМ: 001 [07:49:54]line ФМ: 0000000000963154 [07:49:54]line ФД: 29442 [07:49:54]line ФПД: 29331520970967 [07:49:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T074956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29442&fm=29331520970967&tin=02508201610067®Number=0000138879044617&sum=50000 [07:49:54]written 0, free lines is 4095 [07:49:54]OFD Sender: Processing packet 29442 [packets to send 8, broken 7] [07:49:54]ProducePacketName [07:49:54]name=ofd_packets/00029442 [07:49:54]OFD Sender: To server: pG, [07:49:54]CommunicateWithHost lk.salyk.kg:30040 [07:49:54]ConnectInit lk.salyk.kg [07:49:54]Connected sock=11 [07:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E 4C 07 01 B8 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 24 DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 73 00 00 35 04 06 00 1A AD 46 E3 60 D7 76 20 9E 8F CA D9 80 A6 [07:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E 43 47 00 2E 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 39 36 33 31 35 34 10 04 04 00 02 73 00 00 F4 03 04 00 C5 86 1C 66 B6 04 01 00 00 28 89 51 DE B0 02 C4 AE [07:49:54]CommunicateWithHost err = 0 [07:49:54]CheckOFDResponse [07:49:54]1017 (14) - 77093643461234 [07:49:54]1041 (16) - 0000000000963154 [07:49:54]1040 (4) - 29442 [07:49:54]1012 (4) - 15.04.2024 01:45 [07:49:54]1206 (1) - 0 [07:49:54]OFD Sender: Remove packet 29442 [07:49:54]ProducePacketName [07:49:54]name=ofd_packets/00029442 [07:49:54]NVStorageDeleteData [07:49:55]Write to MH i2c: 01 00 00 5A 22 7C [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 5A 22 00 00 00 00 00 B1 0C 40 [07:49:55]RasterBufferAndPrint [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]line [07:49:55]written 0, free lines is 3253 [07:49:55]MH_Cut [07:49:55]Write to MH i2c: D1 01 00 61 22 01 55 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: D1 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: D1 01 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: D1 01 00 61 22 00 54 [07:49:55]Write to MH i2c: 01 00 00 62 22 84 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]OFD Sender: No OFD packet to send [07:49:55]*** Cut start [07:49:55]*** Partial cut [07:49:55]*** CUTSNS_PIN = 1 [07:49:55]*** CUTSNS_PIN = 0 [07:49:56]*** Brake cut motor [07:49:56]Read from MH i2c: 01 [07:49:56]*** Stop cut motor [07:49:56]*** Cut end [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: 01 07 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: 01 07 00 62 22 00 00 00 00 00 FF 0F 99 [07:49:56]process_action close_receipt done [07:49:56]requested_data is exist [07:49:56]produce_requested_data [07:49:56]requested_item fm.sn is exist - process it [07:49:56]wFMCommunicate request_size=4 [07:49:56]MH_SAM_APDU [07:49:56]CAPDU: 80 11 00 00 [07:49:56]Write to MH i2c: E2 08 00 63 22 80 11 00 00 00 00 00 00 FF [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:56]Read from MH i2c: E2 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 17 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 17 00 63 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [07:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:49:56]wFMCommunicate OK [07:49:56]requested_item fd.num is exist - process it [07:49:56]SAM_PROTO_GetFieldsCounters [07:49:56]wFMCommunicate request_size=4 [07:49:56]MH_SAM_APDU [07:49:56]CAPDU: 80 13 00 00 [07:49:56]Write to MH i2c: E2 08 00 64 22 80 13 00 00 00 00 00 00 02 [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:56]Read from MH i2c: E2 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 62 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 62 00 64 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 73 00 00 0E 04 04 00 75 00 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 96 [07:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 73 00 00 0E 04 04 00 75 00 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 [07:49:56]wFMCommunicate OK [07:49:56]SAM_PROTO_GetFieldsCounters done [07:49:56]requested_item shift.num is exist - process it [07:49:56]requested_item shift.opened is exist - process it [07:49:56]req_shift_opened [07:49:56]FM_GetShiftState [07:49:56]SAM_PROTO_GetShiftState [07:49:56]wFMCommunicate request_size=4 [07:49:56]MH_SAM_APDU [07:49:56]CAPDU: 80 13 01 00 [07:49:56]Write to MH i2c: E2 08 00 65 22 80 13 01 00 00 00 00 00 04 [07:49:56]Write i2c OK [07:49:56]MH_I2C_Read... [07:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:56]Read from MH i2c: E2 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 0E 00 [07:49:56]MH_I2C_Read... [07:49:56]Read from MH i2c: E2 0E 00 65 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F8 [07:49:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:49:56]wFMCommunicate OK [07:49:56]SAM_PROTO_GetShiftState done [07:49:56]FM_GetShiftState done [07:49:56]req_shift_opened done [07:49:56]requested_item shift.open_date is exist - process it [07:49:56]req_shift_open_date [07:49:56]req_shift_open_date done [07:49:56]produce_requested_data done [07:49:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29442,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:49:56]process_action_free close_receipt [07:49:56]json_value_free [07:49:56]json_value_free done [07:49:56]process_json_proto returns [07:49:56]Send response to host [07:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29442,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:49:56]free response buf [07:49:56]execute_script done [07:49:56]execute_script returns [07:49:56]free content buf [07:49:56]Sock 8.Close socket [07:49:56]Sock 8.Thread stoped [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:13]int [07:50:13]Write to MH i2c: 01 00 00 66 22 88 [07:50:13]*** FLAG_PRN_KEY set [07:50:13]Write i2c OK [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 07 00 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 07 00 66 22 00 08 00 00 00 FF 0F A5 [07:50:13]state=0 [07:50:13]Key pressed [07:50:13]Feed [07:50:13]Write to MH i2c: D8 00 00 67 22 60 [07:50:13]Write i2c OK [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: D8 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: D8 01 00 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: D8 01 00 67 22 00 61 [07:50:13]int [07:50:13]Write to MH i2c: 01 00 00 68 22 8A [07:50:13]Write i2c OK [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 07 00 [07:50:13]MH_I2C_Read... [07:50:13]Read from MH i2c: 01 07 00 68 22 00 48 00 00 00 3C 00 15 [07:50:13]state=2 [07:50:13]Key pressed [07:50:14]int [07:50:14]Write to MH i2c: 01 00 00 69 22 8B [07:50:14]*** FLAG_PRN_KEY reset [07:50:14]Write i2c OK [07:50:14]MH_I2C_Read... [07:50:14]Read from MH i2c: 01 [07:50:14]MH_I2C_Read... [07:50:14]Read from MH i2c: 01 07 00 [07:50:14]MH_I2C_Read... [07:50:14]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 F6 0F 97 [07:50:14]state=2 [07:50:14]Stop feed [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:09]int [07:51:09]Write to MH i2c: 01 00 00 6A 22 8C [07:51:09]*** FLAG_PRN_KEY set [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 6A 22 00 08 00 00 00 FF 0F A9 [07:51:09]state=0 [07:51:09]Key pressed [07:51:09]Feed [07:51:09]Write to MH i2c: D8 00 00 6B 22 64 [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D8 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D8 01 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D8 01 00 6B 22 00 65 [07:51:09]int [07:51:09]Write to MH i2c: 01 00 00 6C 22 8E [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 6C 22 00 48 00 00 00 3D 00 1A [07:51:09]state=2 [07:51:09]Key pressed [07:51:10]OFD Sender: No OFD packet to send [07:51:10]int [07:51:10]Write to MH i2c: 01 00 00 6D 22 8F [07:51:10]*** FLAG_PRN_KEY reset [07:51:10]Write i2c OK [07:51:10]MH_I2C_Read... [07:51:10]Read from MH i2c: 01 [07:51:10]MH_I2C_Read... [07:51:10]Read from MH i2c: 01 07 00 [07:51:10]MH_I2C_Read... [07:51:10]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 F6 0F 9B [07:51:10]state=2 [07:51:10]Stop feed [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:52:57]accept exits with 9 [07:52:57]New connection [07:52:57]New thread 3067112804 created [07:52:57]Thread 3066969444 joined [07:52:57]Waiting for new connection... [07:52:57] Sock 9.Parse request [07:52:57]Sock 9.Check first char [07:52:57]Sock 9.First char is OK [07:52:57]request: POST /json_proto HTTP/1.0 [07:52:57]Method: POST [07:52:57]URL: /json_proto [07:52:57]Method is POST - this is cgi request [07:52:57]url: /json_proto [07:52:57]query_string will be loaded in cgi processing [07:52:57]execute_cgi json_proto POST (null) [07:52:57]execute_cgi path=json_proto method=POST [07:52:57]POST find Content-Length [07:52:57]Host: 172.17.33.3:8080 [07:52:57]Content-Length: 682 [07:52:57]Content-Type: application/json [07:52:57] [07:52:57]POST finish read [07:52:57]Found Content-Length = 682 [07:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:52:57]execute_script... [07:52: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)347844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:52:57]POST & json_proto [07:52:57]process_json_proto [07:52:57]json parsed OK: [07:52:57]protocol is kg_v1.0 [07:52:57]action value=close_receipt [07:52:57]process_action close_receipt [07:52:57]cmd_close_receipt [07:52:57]MH_GetDate [07:52:57]Write to MH i2c: F0 00 00 6E 22 7F [07:52:57]Write i2c OK [07:52:57]MH_I2C_Read... [07:52:57]Read from MH i2c: F0 [07:52:57]MH_I2C_Read... [07:52:57]Read from MH i2c: F0 09 00 [07:52:57]MH_I2C_Read... [07:52:57]Read from MH i2c: F0 09 00 6E 22 00 DC DC 1C 66 23 5B 8F 65 34 [07:52:57]GetLastDocTimeStamp 1713167396 [07:52:57]current date 1713167580 [07:52:57]FM_GetShiftState [07:52:57]SAM_PROTO_GetShiftState [07:52:57]wFMCommunicate request_size=4 [07:52:57]MH_SAM_APDU [07:52:57]CAPDU: 80 13 01 00 [07:52:57]Write to MH i2c: E2 08 00 6F 22 80 13 01 00 00 00 00 00 0E [07:52:57]Write i2c OK [07:52:57]MH_I2C_Read... [07:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:57]Read from MH i2c: E2 [07:52:57]MH_I2C_Read... [07:52:57]Read from MH i2c: E2 0E 00 [07:52:57]MH_I2C_Read... [07:52:57]Read from MH i2c: E2 0E 00 6F 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 02 [07:52:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:52:57]wFMCommunicate OK [07:52:57]SAM_PROTO_GetShiftState done [07:52:57]FM_GetShiftState done [07:52:57]opened in 1713140468 [07:52:57]opened+sec_in_day 1713226868 [07:52:57]quantity*price = 100018 [07:52:57]sum+1 = 100020 [07:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 15.04.2024 07:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29443 ФПД: 114180103465735 1/tax-web-control/client/api/v1/ticket?date=20240415T075300&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29443&fm=114180103465735&tin=02508201610067®Number=0000138879044617&sum=100000 [07:52:58]StoreToDocumentArchive [07:52:58]shift 117 fd 29443 [07:52:58]save to /storage/0117/doc_00029443 [07:52:58]save last doc name /storage/0117/doc_00029443 to /storage/kkm_last_doc_name [07:52:58]save OK [07:52:58]Clear old archive folders... [07:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:58]tlvbuf is 0023CF60 [07:52:58]SAM_PROTO_ClearQueue [07:52:58]wFMCommunicate request_size=4 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 09 00 00 [07:52:58]Write to MH i2c: E2 08 00 7C 22 80 09 00 00 00 00 00 00 10 [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 7C 22 00 90 00 12 [07:52:58]RAPDU: 90 00 [07:52:58]wFMCommunicate OK [07:52:58]SAM_PROTO_ClearQueue done [07:52:58]KKMCreateOFDPacket [07:52:58]OFDProtocolAddRootSTLVToBuf [07:52:58]FM_MakeSignedData [07:52:58]FM_MakeSignedData [07:52:58]SAM_PROTO_SignData [07:52:58]wFMCommunicate request_size=4 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 0D 01 02 [07:52:58]Write to MH i2c: E2 08 00 7D 22 80 0D 01 02 00 00 00 00 18 [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 7D 22 00 90 00 13 [07:52:58]RAPDU: 90 00 [07:52:58]wFMCommunicate OK [07:52:58]wFMCommunicate request_size=255 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DC DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 73 00 00 35 04 06 00 67 [07:52:58]Write to MH i2c: E2 02 01 7E 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DC DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 73 00 00 35 04 06 00 67 00 00 FD [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 7E 22 00 90 00 14 [07:52:58]RAPDU: 90 00 [07:52:58]wFMCommunicate OK [07:52:58]wFMCommunicate request_size=10 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 0D 02 02 05 D8 A0 81 EB 07 [07:52:58]Write to MH i2c: E2 0D 00 7F 22 80 0D 02 02 05 00 D8 A0 81 EB 07 00 00 10 [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [07:52:58]RAPDU: 90 00 [07:52:58]wFMCommunicate OK [07:52:58]wFMCommunicate request_size=4 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 0D 03 02 [07:52:58]Write to MH i2c: E2 08 00 80 22 80 0D 03 02 00 00 00 00 1D [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 0B 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 0B 00 80 22 00 34 76 C6 F1 CB 02 81 2A 90 00 F7 [07:52:58]RAPDU: 34 76 C6 F1 CB 02 81 2A 90 00 [07:52:58]wFMCommunicate OK [07:52:58]SAM_PROTO_SignData done [07:52:58]FM_MakeSignedData done [07:52:58]CreateOFDProtocolMessage [07:52:58]wFMCommunicate request_size=4 [07:52:58]MH_SAM_APDU [07:52:58]CAPDU: 80 11 00 00 [07:52:58]Write to MH i2c: E2 08 00 81 22 80 11 00 00 00 00 00 00 1D [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:58]Read from MH i2c: E2 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 17 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: E2 17 00 81 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [07:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:52:58]wFMCommunicate OK [07:52:58]CreateOFDProtocolMessage done [07:52:58]OFDSenderStorePacket 29443 [07:52:58]StoreOFDPacket docnum=29443 [07:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 7C 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DC DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 73 00 00 35 04 06 00 67 D8 A0 81 EB 07 34 76 C6 F1 CB 02 81 2A [07:52:58]CheckFolder [07:52:58]dirname=/storage/ofd_packets [07:52:58]CheckFolder done [07:52:58]ProducePacketName [07:52:58]name=ofd_packets/00029443 [07:52:58]NVStorageSaveData ofd_packets/00029443 [07:52:58]File name is /storage/ofd_packets/00029443 [07:52:58]Write 301 bytes [07:52:58]NVStorageSaveData done [07:52:58]OFDSenderStorePacket done [07:52:58]KKMCreateOFDPacket done [07:52:58]NVStorageSaveData kkm_last_timestamp [07:52:58]File name is /storage/kkm_last_timestamp [07:52:58]Write 4 bytes [07:52:58]NVStorageSaveData done [07:52:58]ExternCall_PrintAddStr [07:52:58]wPrintStart [07:52:58]Write to MH i2c: 01 00 00 82 22 A4 [07:52:58]Write i2c OK [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: 01 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: 01 07 00 [07:52:58]MH_I2C_Read... [07:52:58]Read from MH i2c: 01 07 00 82 22 00 00 00 00 00 FF 0F B9 [07:52:58]RasterBufferAndPrint [07:52:58]line Счет N : (1)347844 [07:52:58]line ИНН: 02508201610067 [07:52:58]line Контрольно-Кассовый Чек [07:52:58]line ПРОДАЖА [07:52:58]line ТРК (МРК, ГНК) : 43 [07:52:58]line Товар: 2710124500 [07:52:58]line Аи-95-К-5 [07:52:58]line 13.720 * 72.90 [07:52:58]line = 1000.19 [07:52:58]line НДС 12% НСП 1% [07:52:58]line > о реализуемом товаре [07:52:58]line ОКРУГЛЕНИЕ: -0.19 [07:52:58]line ИТОГО: 1000.00 [07:52:58]line Внесено: 1000.00 [07:52:58]line СДАЧА: 0.00 [07:52:58]line НСП 1% : 8.85 [07:52:58]line НДС 12% : 106.21 [07:52:58]line Наличными: 1000.00 [07:52:58]line Безнал.: 0.00 [07:52:58]line Место: АЗС № 108 "Партнер Нефть" [07:52:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:52:58]line СНО: Общий режим [07:52:58]line Чек 37 15.04.2024 07:53 [07:52:58]line Смена: 117 ФФД: 1.0 [07:52:59]line ЗНМ: 0300000027 [07:52:59]line РНМ: 0000138879044617 [07:52:59]line Версия ККМ: 001 [07:52:59]line ФМ: 0000000000963154 [07:52:59]line ФД: 29443 [07:52:59]line ФПД: 114180103465735 [07:52:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075300&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29443&fm=114180103465735&tin=02508201610067®Number=0000138879044617&sum=100000 [07:52:59]OFD Sender: Processing packet 29443 [packets to send 8, broken 7] [07:52:59]ProducePacketName [07:52:59]name=ofd_packets/00029443 [07:52:59]OFD Sender: To server: pG, [07:52:59]CommunicateWithHost lk.salyk.kg:30040 [07:52:59]ConnectInit lk.salyk.kg [07:52:59]written 0, free lines is 4095 [07:52:59]Connected sock=10 [07:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 7C 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 DC DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 73 00 00 35 04 06 00 67 D8 A0 81 EB 07 34 76 C6 F1 CB 02 81 2A [07:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 32 47 00 D2 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 39 36 33 31 35 34 10 04 04 00 03 73 00 00 F4 03 04 00 7E 87 1C 66 B6 04 01 00 00 5D 63 F5 6C F8 8E 87 05 [07:52:59]CommunicateWithHost err = 0 [07:52:59]CheckOFDResponse [07:52:59]1017 (14) - 77093643461234 [07:52:59]1041 (16) - 0000000000963154 [07:52:59]1040 (4) - 29443 [07:52:59]1012 (4) - 15.04.2024 01:48 [07:52:59]1206 (1) - 0 [07:52:59]OFD Sender: Remove packet 29443 [07:52:59]ProducePacketName [07:52:59]name=ofd_packets/00029443 [07:52:59]NVStorageDeleteData [07:52:59]Write to MH i2c: 01 00 00 AC 22 CE [07:52:59]Write i2c OK [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: 01 [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: 01 07 00 [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: 01 07 00 AC 22 00 00 00 00 00 C6 0C A7 [07:52:59]RasterBufferAndPrint [07:52:59]line [07:52:59]line [07:52:59]line [07:52:59]line [07:52:59]line [07:52:59]written 0, free lines is 3274 [07:52:59]MH_Cut [07:52:59]Write to MH i2c: D1 01 00 B3 22 01 A7 [07:52:59]Write i2c OK [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: D1 [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: D1 01 00 [07:52:59]MH_I2C_Read... [07:52:59]Read from MH i2c: D1 01 00 B3 22 00 A6 [07:52:59]Write to MH i2c: 01 00 00 B4 22 D6 [07:52:59]Write i2c OK [07:52:59]MH_I2C_Read... [07:53:00]OFD Sender: No OFD packet to send [07:53:00]*** Cut start [07:53:00]*** Partial cut [07:53:00]*** CUTSNS_PIN = 1 [07:53:00]*** CUTSNS_PIN = 0 [07:53:00]*** Brake cut motor [07:53:01]Read from MH i2c: 01 [07:53:01]MH_I2C_Read... [07:53:01]*** Stop cut motor [07:53:01]*** Cut end [07:53:01]Read from MH i2c: 01 07 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 FF 0F EB [07:53:01]process_action close_receipt done [07:53:01]requested_data is exist [07:53:01]produce_requested_data [07:53:01]requested_item fm.sn is exist - process it [07:53:01]wFMCommunicate request_size=4 [07:53:01]MH_SAM_APDU [07:53:01]CAPDU: 80 11 00 00 [07:53:01]Write to MH i2c: E2 08 00 B5 22 80 11 00 00 00 00 00 00 51 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:01]Read from MH i2c: E2 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 17 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 17 00 B5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [07:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:53:01]wFMCommunicate OK [07:53:01]requested_item fd.num is exist - process it [07:53:01]SAM_PROTO_GetFieldsCounters [07:53:01]wFMCommunicate request_size=4 [07:53:01]MH_SAM_APDU [07:53:01]CAPDU: 80 13 00 00 [07:53:01]Write to MH i2c: E2 08 00 B6 22 80 13 00 00 00 00 00 00 54 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:01]Read from MH i2c: E2 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 62 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 62 00 B6 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 73 00 00 0E 04 04 00 75 00 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 EC [07:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 73 00 00 0E 04 04 00 75 00 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 [07:53:01]wFMCommunicate OK [07:53:01]SAM_PROTO_GetFieldsCounters done [07:53:01]requested_item shift.num is exist - process it [07:53:01]requested_item shift.opened is exist - process it [07:53:01]req_shift_opened [07:53:01]FM_GetShiftState [07:53:01]SAM_PROTO_GetShiftState [07:53:01]wFMCommunicate request_size=4 [07:53:01]MH_SAM_APDU [07:53:01]CAPDU: 80 13 01 00 [07:53:01]Write to MH i2c: E2 08 00 B7 22 80 13 01 00 00 00 00 00 56 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:01]Read from MH i2c: E2 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 0E 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: E2 0E 00 B7 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [07:53:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:53:01]wFMCommunicate OK [07:53:01]SAM_PROTO_GetShiftState done [07:53:01]FM_GetShiftState done [07:53:01]req_shift_opened done [07:53:01]requested_item shift.open_date is exist - process it [07:53:01]req_shift_open_date [07:53:01]req_shift_open_date done [07:53:01]produce_requested_data done [07:53:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29443,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:53:01]process_action_free close_receipt [07:53:01]json_value_free [07:53:01]json_value_free done [07:53:01]process_json_proto returns [07:53:01]Send response to host [07:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29443,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:53:01]free response buf [07:53:01]execute_script done [07:53:01]execute_script returns [07:53:01]free content buf [07:53:01]Sock 9.Close socket [07:53:01]Sock 9.Thread stoped [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:31]accept exits with 8 [07:53:31]New connection [07:53:31]New thread 3066969444 created [07:53:31]Thread 3067112804 joined [07:53:31]Waiting for new connection... [07:53:31] Sock 8.Parse request [07:53:31]Sock 8.Check first char [07:53:31]Sock 8.First char is OK [07:53:31]request: POST /json_proto HTTP/1.0 [07:53:31]Method: POST [07:53:31]URL: /json_proto [07:53:31]Method is POST - this is cgi request [07:53:31]url: /json_proto [07:53:31]query_string will be loaded in cgi processing [07:53:31]execute_cgi json_proto POST (null) [07:53:31]execute_cgi path=json_proto method=POST [07:53:31]POST find Content-Length [07:53:31]Host: 172.17.33.3:8080 [07:53:31]Content-Length: 678 [07:53:31]Content-Type: application/json [07:53:31] [07:53:31]POST finish read [07:53:31]Found Content-Length = 678 [07:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [07:53:31]execute_script... [07:53: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)347845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [07:53:31]POST & json_proto [07:53:31]process_json_proto [07:53:31]json parsed OK: [07:53:31]protocol is kg_v1.0 [07:53:31]action value=close_receipt [07:53:31]process_action close_receipt [07:53:31]cmd_close_receipt [07:53:31]MH_GetDate [07:53:31]Write to MH i2c: F0 00 00 B8 22 C9 [07:53:31]Write i2c OK [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: F0 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: F0 09 00 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: F0 09 00 B8 22 00 FE DC 1C 66 23 5B 8F 65 A0 [07:53:31]GetLastDocTimeStamp 1713167580 [07:53:31]current date 1713167614 [07:53:31]FM_GetShiftState [07:53:31]SAM_PROTO_GetShiftState [07:53:31]wFMCommunicate request_size=4 [07:53:31]MH_SAM_APDU [07:53:31]CAPDU: 80 13 01 00 [07:53:31]Write to MH i2c: E2 08 00 B9 22 80 13 01 00 00 00 00 00 58 [07:53:31]Write i2c OK [07:53:31]MH_I2C_Read... [07:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:31]Read from MH i2c: E2 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: E2 0E 00 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: E2 0E 00 B9 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4C [07:53:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:53:31]wFMCommunicate OK [07:53:31]SAM_PROTO_GetShiftState done [07:53:31]FM_GetShiftState done [07:53:31]opened in 1713140468 [07:53:31]opened+sec_in_day 1713226868 [07:53:31]quantity*price = 65059 [07:53:31]sum+1 = 65060 [07:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 15.04.2024 07:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29444 ФПД: 115584490793348 1/tax-web-control/client/api/v1/ticket?date=20240415T075334&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29444&fm=115584490793348&tin=02508201610067®Number=0000138879044617&sum=65000 [07:53:32]StoreToDocumentArchive [07:53:32]shift 117 fd 29444 [07:53:32]save to /storage/0117/doc_00029444 [07:53:32]save last doc name /storage/0117/doc_00029444 to /storage/kkm_last_doc_name [07:53:32]save OK [07:53:32]Clear old archive folders... [07:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:32]tlvbuf is B6DCF900 [07:53:32]SAM_PROTO_ClearQueue [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 09 00 00 [07:53:32]Write to MH i2c: E2 08 00 C6 22 80 09 00 00 00 00 00 00 5A [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_ClearQueue done [07:53:32]KKMCreateOFDPacket [07:53:32]OFDProtocolAddRootSTLVToBuf [07:53:32]FM_MakeSignedData [07:53:32]FM_MakeSignedData [07:53:32]SAM_PROTO_SignData [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 01 02 [07:53:32]Write to MH i2c: E2 08 00 C7 22 80 0D 01 02 00 00 00 00 62 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 C7 22 00 90 00 5D [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=255 [07:53:32]MH_SAM_APDU [07:53: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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FE DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 73 00 00 35 04 06 00 69 [07:53:32]Write to MH i2c: E2 02 01 C8 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FE DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 73 00 00 35 04 06 00 69 00 00 6C [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 C8 22 00 90 00 5E [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=10 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 02 02 05 1F 9C 83 E9 84 [07:53:32]Write to MH i2c: E2 0D 00 C9 22 80 0D 02 02 05 00 1F 9C 83 E9 84 00 00 1A [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [07:53:32]RAPDU: 90 00 [07:53:32]wFMCommunicate OK [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 0D 03 02 [07:53:32]Write to MH i2c: E2 08 00 CA 22 80 0D 03 02 00 00 00 00 67 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0B 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0B 00 CA 22 00 DF 60 12 4B 7C F7 80 6D 90 00 64 [07:53:32]RAPDU: DF 60 12 4B 7C F7 80 6D 90 00 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_SignData done [07:53:32]FM_MakeSignedData done [07:53:32]CreateOFDProtocolMessage [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 11 00 00 [07:53:32]Write to MH i2c: E2 08 00 CB 22 80 11 00 00 00 00 00 00 67 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 17 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 17 00 CB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [07:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:53:32]wFMCommunicate OK [07:53:32]CreateOFDProtocolMessage done [07:53:32]OFDSenderStorePacket 29444 [07:53:32]StoreOFDPacket docnum=29444 [07:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 9D 07 01 C6 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FE DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 73 00 00 35 04 06 00 69 1F 9C 83 E9 84 DF 60 12 4B 7C F7 80 6D [07:53:32]CheckFolder [07:53:32]dirname=/storage/ofd_packets [07:53:32]CheckFolder done [07:53:32]ProducePacketName [07:53:32]name=ofd_packets/00029444 [07:53:32]NVStorageSaveData ofd_packets/00029444 [07:53:32]File name is /storage/ofd_packets/00029444 [07:53:32]Write 301 bytes [07:53:32]NVStorageSaveData done [07:53:32]OFDSenderStorePacket done [07:53:32]KKMCreateOFDPacket done [07:53:32]NVStorageSaveData kkm_last_timestamp [07:53:32]File name is /storage/kkm_last_timestamp [07:53:32]Write 4 bytes [07:53:32]NVStorageSaveData done [07:53:32]ExternCall_PrintAddStr [07:53:32]wPrintStart [07:53:32]Write to MH i2c: 01 00 00 CC 22 EE [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 07 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: 01 07 00 CC 22 00 00 00 00 00 FF 0F 03 [07:53:32]RasterBufferAndPrint [07:53:32]line Счет N : (1)347845 [07:53:32]line ИНН: 02508201610067 [07:53:32]line Контрольно-Кассовый Чек [07:53:32]line ПРОДАЖА [07:53:32]line ТРК (МРК, ГНК) : 13 [07:53:32]line Товар: 2710124130 [07:53:32]line Аи-92-К-5 [07:53:32]line 10.040 * 64.80 [07:53:32]line = 650.59 [07:53:32]line НДС 12% НСП 1% [07:53:32]line > о реализуемом товаре [07:53:32]line ОКРУГЛЕНИЕ: -0.59 [07:53:32]line ИТОГО: 650.00 [07:53:32]line Внесено: 650.00 [07:53:32]line СДАЧА: 0.00 [07:53:32]line НСП 1% : 5.76 [07:53:32]line НДС 12% : 69.09 [07:53:32]line Наличными: 650.00 [07:53:32]line Безнал.: 0.00 [07:53:32]line Место: АЗС № 108 "Партнер Нефть" [07:53:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:53:32]line СНО: Общий режим [07:53:32]line Чек 38 15.04.2024 07:53 [07:53:32]line Смена: 117 ФФД: 1.0 [07:53:32]line ЗНМ: 0300000027 [07:53:32]line РНМ: 0000138879044617 [07:53:32]line Версия ККМ: 001 [07:53:32]line ФМ: 0000000000963154 [07:53:32]line ФД: 29444 [07:53:32]line ФПД: 115584490793348 [07:53:32]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075334&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29444&fm=115584490793348&tin=02508201610067®Number=0000138879044617&sum=65000 [07:53:33]OFD Sender: Processing packet 29444 [packets to send 8, broken 7] [07:53:33]ProducePacketName [07:53:33]name=ofd_packets/00029444 [07:53:33]OFD Sender: To server: pG, [07:53:33]CommunicateWithHost lk.salyk.kg:30040 [07:53:33]ConnectInit lk.salyk.kg [07:53:33]written 0, free lines is 4095 [07:53:33]Connected sock=10 [07:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 9D 07 01 C6 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 FE DC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 73 00 00 35 04 06 00 69 1F 9C 83 E9 84 DF 60 12 4B 7C F7 80 6D [07:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 60 47 00 A9 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 39 36 33 31 35 34 10 04 04 00 04 73 00 00 F4 03 04 00 A0 87 1C 66 B6 04 01 00 00 20 12 C8 91 CC 3E 04 AF [07:53:33]CommunicateWithHost err = 0 [07:53:33]CheckOFDResponse [07:53:33]1017 (14) - 77093643461234 [07:53:33]1041 (16) - 0000000000963154 [07:53:33]1040 (4) - 29444 [07:53:33]1012 (4) - 15.04.2024 01:49 [07:53:33]1206 (1) - 0 [07:53:33]OFD Sender: Remove packet 29444 [07:53:33]ProducePacketName [07:53:33]name=ofd_packets/00029444 [07:53:33]NVStorageDeleteData [07:53:33]Write to MH i2c: 01 00 00 F6 22 18 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 07 00 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 D1 0C FC [07:53:33]RasterBufferAndPrint [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]line [07:53:33]written 0, free lines is 3289 [07:53:33]MH_Cut [07:53:33]Write to MH i2c: D1 01 00 FD 22 01 F1 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 01 00 [07:53:33]MH_I2C_Read... [07:53:33]Read from MH i2c: D1 01 00 FD 22 00 F0 [07:53:33]Write to MH i2c: 01 00 00 FE 22 20 [07:53:33]Write i2c OK [07:53:33]MH_I2C_Read... [07:53:33]OFD Sender: No OFD packet to send [07:53:34]*** Cut start [07:53:34]*** Partial cut [07:53:34]*** CUTSNS_PIN = 1 [07:53:34]*** CUTSNS_PIN = 0 [07:53:34]*** Brake cut motor [07:53:35]Read from MH i2c: 01 [07:53:35]MH_I2C_Read... [07:53:35]*** Stop cut motor [07:53:35]*** Cut end [07:53:35]Read from MH i2c: 01 07 00 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 FF 0F 35 [07:53:35]process_action close_receipt done [07:53:35]requested_data is exist [07:53:35]produce_requested_data [07:53:35]requested_item fm.sn is exist - process it [07:53:35]wFMCommunicate request_size=4 [07:53:35]MH_SAM_APDU [07:53:35]CAPDU: 80 11 00 00 [07:53:35]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [07:53:35]Write i2c OK [07:53:35]MH_I2C_Read... [07:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:35]Read from MH i2c: E2 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 17 00 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [07:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:53:35]wFMCommunicate OK [07:53:35]requested_item fd.num is exist - process it [07:53:35]SAM_PROTO_GetFieldsCounters [07:53:35]wFMCommunicate request_size=4 [07:53:35]MH_SAM_APDU [07:53:35]CAPDU: 80 13 00 00 [07:53:35]Write to MH i2c: E2 08 00 00 23 80 13 00 00 00 00 00 00 9F [07:53:35]Write i2c OK [07:53:35]MH_I2C_Read... [07:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:35]Read from MH i2c: E2 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 62 00 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 62 00 00 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 73 00 00 0E 04 04 00 75 00 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 3B [07:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 73 00 00 0E 04 04 00 75 00 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 [07:53:35]wFMCommunicate OK [07:53:35]SAM_PROTO_GetFieldsCounters done [07:53:35]requested_item shift.num is exist - process it [07:53:35]requested_item shift.opened is exist - process it [07:53:35]req_shift_opened [07:53:35]FM_GetShiftState [07:53:35]SAM_PROTO_GetShiftState [07:53:35]wFMCommunicate request_size=4 [07:53:35]MH_SAM_APDU [07:53:35]CAPDU: 80 13 01 00 [07:53:35]Write to MH i2c: E2 08 00 01 23 80 13 01 00 00 00 00 00 A1 [07:53:35]Write i2c OK [07:53:35]MH_I2C_Read... [07:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:35]Read from MH i2c: E2 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 0E 00 [07:53:35]MH_I2C_Read... [07:53:35]Read from MH i2c: E2 0E 00 01 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 95 [07:53:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:53:35]wFMCommunicate OK [07:53:35]SAM_PROTO_GetShiftState done [07:53:35]FM_GetShiftState done [07:53:35]req_shift_opened done [07:53:35]requested_item shift.open_date is exist - process it [07:53:35]req_shift_open_date [07:53:35]req_shift_open_date done [07:53:35]produce_requested_data done [07:53:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29444,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:53:35]process_action_free close_receipt [07:53:35]json_value_free [07:53:35]json_value_free done [07:53:35]process_json_proto returns [07:53:35]Send response to host [07:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29444,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:53:35]free response buf [07:53:35]execute_script done [07:53:35]execute_script returns [07:53:35]free content buf [07:53:35]Sock 8.Close socket [07:53:35]Sock 8.Thread stoped [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:51]accept exits with 9 [07:53:51]New connection [07:53:51]New thread 3067112804 created [07:53:51]Thread 3066969444 joined [07:53:51]Waiting for new connection... [07:53:51] Sock 9.Parse request [07:53:51]Sock 9.Check first char [07:53:51]Sock 9.First char is OK [07:53:51]request: POST /json_proto HTTP/1.0 [07:53:51]Method: POST [07:53:51]URL: /json_proto [07:53:51]Method is POST - this is cgi request [07:53:51]url: /json_proto [07:53:51]query_string will be loaded in cgi processing [07:53:51]execute_cgi json_proto POST (null) [07:53:51]execute_cgi path=json_proto method=POST [07:53:51]POST find Content-Length [07:53:51]Host: 172.17.33.3:8080 [07:53:51]Content-Length: 671 [07:53:51]Content-Type: application/json [07:53:51] [07:53:51]POST finish read [07:53:51]Found Content-Length = 671 [07:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:51]execute_script... [07:53: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)347846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:51]POST & json_proto [07:53:51]process_json_proto [07:53:51]json parsed OK: [07:53:51]protocol is kg_v1.0 [07:53:51]action value=close_receipt [07:53:51]process_action close_receipt [07:53:51]cmd_close_receipt [07:53:51]MH_GetDate [07:53:51]Write to MH i2c: F0 00 00 02 23 14 [07:53:51]Write i2c OK [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: F0 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: F0 09 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: F0 09 00 02 23 00 12 DD 1C 66 23 5B 8F 65 00 [07:53:51]GetLastDocTimeStamp 1713167614 [07:53:51]current date 1713167634 [07:53:51]FM_GetShiftState [07:53:51]SAM_PROTO_GetShiftState [07:53:51]wFMCommunicate request_size=4 [07:53:51]MH_SAM_APDU [07:53:51]CAPDU: 80 13 01 00 [07:53:51]Write to MH i2c: E2 08 00 03 23 80 13 01 00 00 00 00 00 A3 [07:53:51]Write i2c OK [07:53:51]MH_I2C_Read... [07:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:51]Read from MH i2c: E2 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 0E 00 [07:53:51]MH_I2C_Read... [07:53:51]Read from MH i2c: E2 0E 00 03 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 97 [07:53:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:53:51]wFMCommunicate OK [07:53:51]SAM_PROTO_GetShiftState done [07:53:51]FM_GetShiftState done [07:53:51]opened in 1713140468 [07:53:51]opened+sec_in_day 1713226868 [07:53:51]quantity*price = 80012 [07:53:51]sum+1 = 80014 [07:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 15.04.2024 07:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29445 ФПД: 244322034103639 1/tax-web-control/client/api/v1/ticket?date=20240415T075355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29445&fm=244322034103639&tin=02508201610067®Number=0000138879044617&sum=80000 [07:53:52]StoreToDocumentArchive [07:53:52]shift 117 fd 29445 [07:53:52]save to /storage/0117/doc_00029445 [07:53:52]save last doc name /storage/0117/doc_00029445 to /storage/kkm_last_doc_name [07:53:52]save OK [07:53:52]Clear old archive folders... [07:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:53:52]tlvbuf is B6ECF6B0 [07:53:52]SAM_PROTO_ClearQueue [07:53:52]wFMCommunicate request_size=4 [07:53:52]MH_SAM_APDU [07:53:52]CAPDU: 80 09 00 00 [07:53:52]Write to MH i2c: E2 08 00 10 23 80 09 00 00 00 00 00 00 A5 [07:53:52]Write i2c OK [07:53:52]MH_I2C_Read... [07:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:52]Read from MH i2c: E2 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 03 00 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [07:53:52]RAPDU: 90 00 [07:53:52]wFMCommunicate OK [07:53:52]SAM_PROTO_ClearQueue done [07:53:52]KKMCreateOFDPacket [07:53:52]OFDProtocolAddRootSTLVToBuf [07:53:52]FM_MakeSignedData [07:53:52]FM_MakeSignedData [07:53:52]SAM_PROTO_SignData [07:53:52]wFMCommunicate request_size=4 [07:53:52]MH_SAM_APDU [07:53:52]CAPDU: 80 0D 01 02 [07:53:52]Write to MH i2c: E2 08 00 11 23 80 0D 01 02 00 00 00 00 AD [07:53:52]Write i2c OK [07:53:52]MH_I2C_Read... [07:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:52]Read from MH i2c: E2 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 03 00 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [07:53:52]RAPDU: 90 00 [07:53:52]wFMCommunicate OK [07:53:52]wFMCommunicate request_size=255 [07:53:52]MH_SAM_APDU [07:53: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 73 00 00 35 04 06 00 [07:53:52]Write to MH i2c: E2 02 01 12 23 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 73 00 00 35 04 06 00 00 00 D0 [07:53:52]Write i2c OK [07:53:52]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [07:53:53]RAPDU: 90 00 [07:53:53]wFMCommunicate OK [07:53:53]wFMCommunicate request_size=11 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 0D 02 02 06 DE 35 A8 0D B5 57 [07:53:53]Write to MH i2c: E2 0E 00 13 23 80 0D 02 02 06 00 DE 35 A8 0D B5 57 00 00 90 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [07:53:53]RAPDU: 90 00 [07:53:53]wFMCommunicate OK [07:53:53]wFMCommunicate request_size=4 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 0D 03 02 [07:53:53]Write to MH i2c: E2 08 00 14 23 80 0D 03 02 00 00 00 00 B2 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 0B 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 0B 00 14 23 00 D1 DC 64 79 B2 D4 8B 64 90 00 B2 [07:53:53]RAPDU: D1 DC 64 79 B2 D4 8B 64 90 00 [07:53:53]wFMCommunicate OK [07:53:53]SAM_PROTO_SignData done [07:53:53]FM_MakeSignedData done [07:53:53]CreateOFDProtocolMessage [07:53:53]wFMCommunicate request_size=4 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 11 00 00 [07:53:53]Write to MH i2c: E2 08 00 15 23 80 11 00 00 00 00 00 00 B2 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 17 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 17 00 15 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [07:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:53:53]wFMCommunicate OK [07:53:53]CreateOFDProtocolMessage done [07:53:53]OFDSenderStorePacket 29445 [07:53:53]StoreOFDPacket docnum=29445 [07:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FF 4C 08 01 BA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 73 00 00 35 04 06 00 DE 35 A8 0D B5 57 D1 DC 64 79 B2 D4 8B 64 [07:53:53]CheckFolder [07:53:53]dirname=/storage/ofd_packets [07:53:53]CheckFolder done [07:53:53]ProducePacketName [07:53:53]name=ofd_packets/00029445 [07:53:53]NVStorageSaveData ofd_packets/00029445 [07:53:53]File name is /storage/ofd_packets/00029445 [07:53:53]Write 302 bytes [07:53:53]NVStorageSaveData done [07:53:53]OFDSenderStorePacket done [07:53:53]KKMCreateOFDPacket done [07:53:53]NVStorageSaveData kkm_last_timestamp [07:53:53]File name is /storage/kkm_last_timestamp [07:53:53]Write 4 bytes [07:53:53]NVStorageSaveData done [07:53:53]ExternCall_PrintAddStr [07:53:53]wPrintStart [07:53:53]Write to MH i2c: 01 00 00 16 23 39 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 07 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [07:53:53]RasterBufferAndPrint [07:53:53]line Счет N : (1)347846 [07:53:53]line ИНН: 02508201610067 [07:53:53]line Контрольно-Кассовый Чек [07:53:53]line ПРОДАЖА [07:53:53]line ТРК (МРК, ГНК) : 22 [07:53:53]line Товар: 2710124130 [07:53:53]line SUPER-92-К-5 [07:53:53]line 12.160 * 65.80 [07:53:53]line = 800.13 [07:53:53]line НДС 12% НСП 1% [07:53:53]line > о реализуемом товаре [07:53:53]line ОКРУГЛЕНИЕ: -0.13 [07:53:53]line ИТОГО: 800.00 [07:53:53]line Внесено: 800.00 [07:53:53]line СДАЧА: 0.00 [07:53:53]line НСП 1% : 7.08 [07:53:53]line НДС 12% : 84.97 [07:53:53]line Наличными: 800.00 [07:53:53]line Безнал.: 0.00 [07:53:53]line Место: АЗС № 108 "Партнер Нефть" [07:53:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:53:53]line СНО: Общий режим [07:53:53]line Чек 39 15.04.2024 07:53 [07:53:53]line Смена: 117 ФФД: 1.0 [07:53:53]line ЗНМ: 0300000027 [07:53:53]line РНМ: 0000138879044617 [07:53:53]line Версия ККМ: 001 [07:53:53]line ФМ: 0000000000963154 [07:53:53]line ФД: 29445 [07:53:53]line ФПД: 244322034103639 [07:53:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29445&fm=244322034103639&tin=02508201610067®Number=0000138879044617&sum=80000 [07:53:53]OFD Sender: Processing packet 29445 [packets to send 8, broken 7] [07:53:53]ProducePacketName [07:53:53]name=ofd_packets/00029445 [07:53:53]OFD Sender: To server: pG, [07:53:53]CommunicateWithHost lk.salyk.kg:30040 [07:53:53]ConnectInit lk.salyk.kg [07:53:53]written 0, free lines is 4095 [07:53:53]Connected sock=10 [07:53:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FF 4C 08 01 BA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 73 00 00 35 04 06 00 DE 35 A8 0D B5 57 D1 DC 64 79 B2 D4 8B 64 [07:53:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 53 0C 47 00 40 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 39 36 33 31 35 34 10 04 04 00 05 73 00 00 F4 03 04 00 B4 87 1C 66 B6 04 01 00 00 E6 C4 0F DA EE AD 0B 70 [07:53:53]CommunicateWithHost err = 0 [07:53:53]CheckOFDResponse [07:53:53]1017 (14) - 77093643461234 [07:53:53]1041 (16) - 0000000000963154 [07:53:53]1040 (4) - 29445 [07:53:53]1012 (4) - 15.04.2024 01:49 [07:53:53]1206 (1) - 0 [07:53:53]OFD Sender: Remove packet 29445 [07:53:53]ProducePacketName [07:53:53]name=ofd_packets/00029445 [07:53:53]NVStorageDeleteData [07:53:53]Write to MH i2c: 01 00 00 40 23 63 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 07 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 CC 0C 42 [07:53:53]RasterBufferAndPrint [07:53:53]line [07:53:53]line [07:53:53]line [07:53:53]line [07:53:53]line [07:53:54]written 0, free lines is 3282 [07:53:54]MH_Cut [07:53:54]Write to MH i2c: D1 01 00 47 23 01 3C [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 01 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 01 00 47 23 00 3B [07:53:54]Write to MH i2c: 01 00 00 48 23 6B [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]OFD Sender: No OFD packet to send [07:53:54]*** Cut start [07:53:54]*** Partial cut [07:53:54]*** CUTSNS_PIN = 1 [07:53:54]*** CUTSNS_PIN = 0 [07:53:55]*** Brake cut motor [07:53:55]Read from MH i2c: 01 [07:53:55]MH_I2C_Read... [07:53:55]*** Stop cut motor [07:53:55]*** Cut end [07:53:55]Read from MH i2c: 01 07 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [07:53:55]process_action close_receipt done [07:53:55]requested_data is exist [07:53:55]produce_requested_data [07:53:55]requested_item fm.sn is exist - process it [07:53:55]wFMCommunicate request_size=4 [07:53:55]MH_SAM_APDU [07:53:55]CAPDU: 80 11 00 00 [07:53:55]Write to MH i2c: E2 08 00 49 23 80 11 00 00 00 00 00 00 E6 [07:53:55]Write i2c OK [07:53:55]MH_I2C_Read... [07:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:55]Read from MH i2c: E2 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 17 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 17 00 49 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [07:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:53:55]wFMCommunicate OK [07:53:55]requested_item fd.num is exist - process it [07:53:55]SAM_PROTO_GetFieldsCounters [07:53:55]wFMCommunicate request_size=4 [07:53:55]MH_SAM_APDU [07:53:55]CAPDU: 80 13 00 00 [07:53:55]Write to MH i2c: E2 08 00 4A 23 80 13 00 00 00 00 00 00 E9 [07:53:55]Write i2c OK [07:53:55]MH_I2C_Read... [07:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:55]Read from MH i2c: E2 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 62 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 62 00 4A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 73 00 00 0E 04 04 00 75 00 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 89 [07:53:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 73 00 00 0E 04 04 00 75 00 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 [07:53:55]wFMCommunicate OK [07:53:55]SAM_PROTO_GetFieldsCounters done [07:53:55]requested_item shift.num is exist - process it [07:53:55]requested_item shift.opened is exist - process it [07:53:55]req_shift_opened [07:53:55]FM_GetShiftState [07:53:55]SAM_PROTO_GetShiftState [07:53:55]wFMCommunicate request_size=4 [07:53:55]MH_SAM_APDU [07:53:55]CAPDU: 80 13 01 00 [07:53:55]Write to MH i2c: E2 08 00 4B 23 80 13 01 00 00 00 00 00 EB [07:53:55]Write i2c OK [07:53:55]MH_I2C_Read... [07:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:55]Read from MH i2c: E2 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 0E 00 [07:53:55]MH_I2C_Read... [07:53:55]Read from MH i2c: E2 0E 00 4B 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DF [07:53:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:53:55]wFMCommunicate OK [07:53:55]SAM_PROTO_GetShiftState done [07:53:55]FM_GetShiftState done [07:53:55]req_shift_opened done [07:53:55]requested_item shift.open_date is exist - process it [07:53:55]req_shift_open_date [07:53:55]req_shift_open_date done [07:53:55]produce_requested_data done [07:53:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29445,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:53:55]process_action_free close_receipt [07:53:55]json_value_free [07:53:55]json_value_free done [07:53:55]process_json_proto returns [07:53:55]Send response to host [07:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29445,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:53:55]free response buf [07:53:55]execute_script done [07:53:55]execute_script returns [07:53:55]free content buf [07:53:55]Sock 9.Close socket [07:53:55]Sock 9.Thread stoped [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]accept exits with 8 [07:57:39]New connection [07:57:39]New thread 3066969444 created [07:57:39]Thread 3067112804 joined [07:57:39]Waiting for new connection... [07:57:39] Sock 8.Parse request [07:57:39]Sock 8.Check first char [07:57:39]Sock 8.First char is OK [07:57:39]request: POST /json_proto HTTP/1.0 [07:57:39]Method: POST [07:57:39]URL: /json_proto [07:57:39]Method is POST - this is cgi request [07:57:39]url: /json_proto [07:57:39]query_string will be loaded in cgi processing [07:57:39]execute_cgi json_proto POST (null) [07:57:39]execute_cgi path=json_proto method=POST [07:57:39]POST find Content-Length [07:57:39]Host: 172.17.33.3:8080 [07:57:39]Content-Length: 675 [07:57:39]Content-Type: application/json [07:57:39] [07:57:39]POST finish read [07:57:39]Found Content-Length = 675 [07:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:39]execute_script... [07:57: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)347849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:39]POST & json_proto [07:57:39]process_json_proto [07:57:39]json parsed OK: [07:57:39]protocol is kg_v1.0 [07:57:39]action value=close_receipt [07:57:39]process_action close_receipt [07:57:39]cmd_close_receipt [07:57:39]MH_GetDate [07:57:39]Write to MH i2c: F0 00 00 4C 23 5E [07:57:39]Write i2c OK [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: F0 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: F0 09 00 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: F0 09 00 4C 23 00 F6 DD 1C 66 23 5B 8F 65 2E [07:57:39]GetLastDocTimeStamp 1713167635 [07:57:39]current date 1713167862 [07:57:39]FM_GetShiftState [07:57:39]SAM_PROTO_GetShiftState [07:57:39]wFMCommunicate request_size=4 [07:57:39]MH_SAM_APDU [07:57:39]CAPDU: 80 13 01 00 [07:57:39]Write to MH i2c: E2 08 00 4D 23 80 13 01 00 00 00 00 00 ED [07:57:39]Write i2c OK [07:57:39]MH_I2C_Read... [07:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:39]Read from MH i2c: E2 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 0E 00 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 0E 00 4D 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [07:57:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:57:39]wFMCommunicate OK [07:57:39]SAM_PROTO_GetShiftState done [07:57:39]FM_GetShiftState done [07:57:39]opened in 1713140468 [07:57:39]opened+sec_in_day 1713226868 [07:57:39]quantity*price = 100016 [07:57:39]sum+1 = 100017 [07:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 15.04.2024 07:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29446 ФПД: 124164713884159 1/tax-web-control/client/api/v1/ticket?date=20240415T075742&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29446&fm=124164713884159&tin=02508201610067®Number=0000138879044617&sum=100000 [07:57:40]StoreToDocumentArchive [07:57:40]shift 117 fd 29446 [07:57:40]save to /storage/0117/doc_00029446 [07:57:40]save last doc name /storage/0117/doc_00029446 to /storage/kkm_last_doc_name [07:57:40]save OK [07:57:40]Clear old archive folders... [07:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:57:40]tlvbuf is B6DCF260 [07:57:40]SAM_PROTO_ClearQueue [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 09 00 00 [07:57:40]Write to MH i2c: E2 08 00 5A 23 80 09 00 00 00 00 00 00 EF [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]SAM_PROTO_ClearQueue done [07:57:40]KKMCreateOFDPacket [07:57:40]OFDProtocolAddRootSTLVToBuf [07:57:40]FM_MakeSignedData [07:57:40]FM_MakeSignedData [07:57:40]SAM_PROTO_SignData [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 0D 01 02 [07:57:40]Write to MH i2c: E2 08 00 5B 23 80 0D 01 02 00 00 00 00 F7 [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]wFMCommunicate request_size=255 [07:57:40]MH_SAM_APDU [07:57: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F6 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 73 00 00 35 04 06 00 [07:57:40]Write to MH i2c: E2 02 01 5C 23 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F6 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 73 00 00 35 04 06 00 00 00 3E [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 5C 23 00 90 00 F3 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]wFMCommunicate request_size=11 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 0D 02 02 06 70 ED 59 AA 29 FF [07:57:40]Write to MH i2c: E2 0E 00 5D 23 80 0D 02 02 06 00 70 ED 59 AA 29 FF 00 00 8E [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 5D 23 00 90 00 F4 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 0D 03 02 [07:57:40]Write to MH i2c: E2 08 00 5E 23 80 0D 03 02 00 00 00 00 FC [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 0B 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 0B 00 5E 23 00 22 44 3D A0 B9 93 D9 15 90 00 7A [07:57:40]RAPDU: 22 44 3D A0 B9 93 D9 15 90 00 [07:57:40]wFMCommunicate OK [07:57:40]SAM_PROTO_SignData done [07:57:40]FM_MakeSignedData done [07:57:40]CreateOFDProtocolMessage [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 11 00 00 [07:57:40]Write to MH i2c: E2 08 00 5F 23 80 11 00 00 00 00 00 00 FC [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 17 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 17 00 5F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [07:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:57:40]wFMCommunicate OK [07:57:40]CreateOFDProtocolMessage done [07:57:40]OFDSenderStorePacket 29446 [07:57:40]StoreOFDPacket docnum=29446 [07:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 81 C1 08 01 34 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F6 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 73 00 00 35 04 06 00 70 ED 59 AA 29 FF 22 44 3D A0 B9 93 D9 15 [07:57:40]CheckFolder [07:57:40]dirname=/storage/ofd_packets [07:57:40]CheckFolder done [07:57:40]ProducePacketName [07:57:40]name=ofd_packets/00029446 [07:57:40]NVStorageSaveData ofd_packets/00029446 [07:57:40]File name is /storage/ofd_packets/00029446 [07:57:40]Write 302 bytes [07:57:40]NVStorageSaveData done [07:57:40]OFDSenderStorePacket done [07:57:40]KKMCreateOFDPacket done [07:57:40]NVStorageSaveData kkm_last_timestamp [07:57:40]File name is /storage/kkm_last_timestamp [07:57:40]Write 4 bytes [07:57:40]NVStorageSaveData done [07:57:40]ExternCall_PrintAddStr [07:57:40]wPrintStart [07:57:40]Write to MH i2c: 01 00 00 60 23 83 [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 07 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 07 00 60 23 00 00 00 00 00 FF 0F 98 [07:57:40]RasterBufferAndPrint [07:57:40]line Счет N : (1)347849 [07:57:40]line ИНН: 02508201610067 [07:57:40]line Контрольно-Кассовый Чек [07:57:40]line ПРОДАЖА [07:57:40]line ТРК (МРК, ГНК) : 22 [07:57:40]line Товар: 2710124130 [07:57:40]line SUPER-92-К-5 [07:57:40]line 15.200 * 65.80 [07:57:40]line = 1000.16 [07:57:40]line НДС 12% НСП 1% [07:57:40]line > о реализуемом товаре [07:57:40]line ОКРУГЛЕНИЕ: -0.16 [07:57:40]line ИТОГО: 1000.00 [07:57:40]line Внесено: 1000.00 [07:57:40]line СДАЧА: 0.00 [07:57:40]line НСП 1% : 8.85 [07:57:40]line НДС 12% : 106.21 [07:57:40]line Наличными: 1000.00 [07:57:40]line Безнал.: 0.00 [07:57:40]line Место: АЗС № 108 "Партнер Нефть" [07:57:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:57:40]line СНО: Общий режим [07:57:40]line Чек 40 15.04.2024 07:57 [07:57:40]line Смена: 117 ФФД: 1.0 [07:57:40]line ЗНМ: 0300000027 [07:57:40]line РНМ: 0000138879044617 [07:57:40]line Версия ККМ: 001 [07:57:40]line ФМ: 0000000000963154 [07:57:40]line ФД: 29446 [07:57:40]line ФПД: 124164713884159 [07:57:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075742&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29446&fm=124164713884159&tin=02508201610067®Number=0000138879044617&sum=100000 [07:57:41]OFD Sender: Processing packet 29446 [packets to send 8, broken 7] [07:57:41]ProducePacketName [07:57:41]name=ofd_packets/00029446 [07:57:41]OFD Sender: To server: pG, [07:57:41]CommunicateWithHost lk.salyk.kg:30040 [07:57:41]ConnectInit lk.salyk.kg [07:57:41]written 0, free lines is 4095 [07:57:41]Connected sock=10 [07:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 81 C1 08 01 34 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F6 DD 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 73 00 00 35 04 06 00 70 ED 59 AA 29 FF 22 44 3D A0 B9 93 D9 15 [07:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E0 6B 47 00 F0 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 39 36 33 31 35 34 10 04 04 00 06 73 00 00 F4 03 04 00 98 88 1C 66 B6 04 01 00 00 2C BD D5 EC 93 42 57 E9 [07:57:41]CommunicateWithHost err = 0 [07:57:41]CheckOFDResponse [07:57:41]1017 (14) - 77093643461234 [07:57:41]1041 (16) - 0000000000963154 [07:57:41]1040 (4) - 29446 [07:57:41]1012 (4) - 15.04.2024 01:53 [07:57:41]1206 (1) - 0 [07:57:41]OFD Sender: Remove packet 29446 [07:57:41]ProducePacketName [07:57:41]name=ofd_packets/00029446 [07:57:41]NVStorageDeleteData [07:57:41]Write to MH i2c: 01 00 00 8A 23 AD [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 07 00 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 07 00 8A 23 00 00 00 00 00 CA 0C 8A [07:57:41]RasterBufferAndPrint [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]written 0, free lines is 3279 [07:57:41]MH_Cut [07:57:41]Write to MH i2c: D1 01 00 91 23 01 86 [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 01 00 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 01 00 91 23 00 85 [07:57:41]Write to MH i2c: 01 00 00 92 23 B5 [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]OFD Sender: No OFD packet to send [07:57:42]*** Cut start [07:57:42]*** Partial cut [07:57:42]*** CUTSNS_PIN = 1 [07:57:42]*** CUTSNS_PIN = 0 [07:57:42]*** Brake cut motor [07:57:43]Read from MH i2c: 01 [07:57:43]*** Stop cut motor [07:57:43]*** Cut end [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: 01 07 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 FF 0F CA [07:57:43]process_action close_receipt done [07:57:43]requested_data is exist [07:57:43]produce_requested_data [07:57:43]requested_item fm.sn is exist - process it [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 11 00 00 [07:57:43]Write to MH i2c: E2 08 00 93 23 80 11 00 00 00 00 00 00 30 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 93 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [07:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:57:43]wFMCommunicate OK [07:57:43]requested_item fd.num is exist - process it [07:57:43]SAM_PROTO_GetFieldsCounters [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 13 00 00 [07:57:43]Write to MH i2c: E2 08 00 94 23 80 13 00 00 00 00 00 00 33 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 62 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 62 00 94 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [07:57:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 73 00 00 0E 04 04 00 75 00 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:57:43]wFMCommunicate OK [07:57:43]SAM_PROTO_GetFieldsCounters done [07:57:43]requested_item shift.num is exist - process it [07:57:43]requested_item shift.opened is exist - process it [07:57:43]req_shift_opened [07:57:43]FM_GetShiftState [07:57:43]SAM_PROTO_GetShiftState [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 13 01 00 [07:57:43]Write to MH i2c: E2 08 00 95 23 80 13 01 00 00 00 00 00 35 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 0E 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 0E 00 95 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 29 [07:57:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:57:43]wFMCommunicate OK [07:57:43]SAM_PROTO_GetShiftState done [07:57:43]FM_GetShiftState done [07:57:43]req_shift_opened done [07:57:43]requested_item shift.open_date is exist - process it [07:57:43]req_shift_open_date [07:57:43]req_shift_open_date done [07:57:43]produce_requested_data done [07:57:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29446,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:57:43]process_action_free close_receipt [07:57:43]json_value_free [07:57:43]json_value_free done [07:57:43]process_json_proto returns [07:57:43]Send response to host [07:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29446,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:57:43]free response buf [07:57:43]execute_script done [07:57:43]execute_script returns [07:57:43]free content buf [07:57:43]Sock 8.Close socket [07:57:43]Sock 8.Thread stoped [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]accept exits with 9 [07:58:11]New connection [07:58:11]New thread 3067112804 created [07:58:11]Thread 3066969444 joined [07:58:11]Waiting for new connection... [07:58:11] Sock 9.Parse request [07:58:11]Sock 9.Check first char [07:58:11]Sock 9.First char is OK [07:58:11]request: POST /json_proto HTTP/1.0 [07:58:11]Method: POST [07:58:11]URL: /json_proto [07:58:11]Method is POST - this is cgi request [07:58:11]url: /json_proto [07:58:11]query_string will be loaded in cgi processing [07:58:11]execute_cgi json_proto POST (null) [07:58:11]execute_cgi path=json_proto method=POST [07:58:11]POST find Content-Length [07:58:11]Host: 172.17.33.3:8080 [07:58:11]Content-Length: 670 [07:58:11]Content-Type: application/json [07:58:11] [07:58:11]POST finish read [07:58:11]Found Content-Length = 670 [07:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347850", "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" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:11]execute_script... [07:58:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347850", "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" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:11]POST & json_proto [07:58:11]process_json_proto [07:58:11]json parsed OK: [07:58:11]protocol is kg_v1.0 [07:58:11]action value=close_receipt [07:58:11]process_action close_receipt [07:58:11]cmd_close_receipt [07:58:11]MH_GetDate [07:58:11]Write to MH i2c: F0 00 00 96 23 A8 [07:58:11]Write i2c OK [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 09 00 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: F0 09 00 96 23 00 17 DE 1C 66 23 5B 8F 65 9A [07:58:11]GetLastDocTimeStamp 1713167862 [07:58:11]current date 1713167895 [07:58:11]FM_GetShiftState [07:58:11]SAM_PROTO_GetShiftState [07:58:11]wFMCommunicate request_size=4 [07:58:11]MH_SAM_APDU [07:58:11]CAPDU: 80 13 01 00 [07:58:11]Write to MH i2c: E2 08 00 97 23 80 13 01 00 00 00 00 00 37 [07:58:11]Write i2c OK [07:58:11]MH_I2C_Read... [07:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:11]Read from MH i2c: E2 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: E2 0E 00 [07:58:11]MH_I2C_Read... [07:58:11]Read from MH i2c: E2 0E 00 97 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2B [07:58:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:58:11]wFMCommunicate OK [07:58:11]SAM_PROTO_GetShiftState done [07:58:11]FM_GetShiftState done [07:58:11]opened in 1713140468 [07:58:11]opened+sec_in_day 1713226868 [07:58:11]quantity*price = 60009 [07:58:11]sum+1 = 60011 [07:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 15.04.2024 07:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29447 ФПД: 280441242511480 1/tax-web-control/client/api/v1/ticket?date=20240415T075815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29447&fm=280441242511480&tin=02508201610067®Number=0000138879044617&sum=60000 [07:58:12]StoreToDocumentArchive [07:58:12]shift 117 fd 29447 [07:58:12]save to /storage/0117/doc_00029447 [07:58:12]save last doc name /storage/0117/doc_00029447 to /storage/kkm_last_doc_name [07:58:12]save OK [07:58:12]Clear old archive folders... [07:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:58:12]tlvbuf is B6F016D0 [07:58:12]SAM_PROTO_ClearQueue [07:58:12]wFMCommunicate request_size=4 [07:58:12]MH_SAM_APDU [07:58:12]CAPDU: 80 09 00 00 [07:58:12]Write to MH i2c: E2 08 00 A4 23 80 09 00 00 00 00 00 00 39 [07:58:12]Write i2c OK [07:58:12]MH_I2C_Read... [07:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:12]Read from MH i2c: E2 [07:58:12]MH_I2C_Read... [07:58:12]Read from MH i2c: E2 03 00 [07:58:12]MH_I2C_Read... [07:58:12]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [07:58:12]RAPDU: 90 00 [07:58:12]wFMCommunicate OK [07:58:12]SAM_PROTO_ClearQueue done [07:58:12]KKMCreateOFDPacket [07:58:12]OFDProtocolAddRootSTLVToBuf [07:58:12]FM_MakeSignedData [07:58:12]FM_MakeSignedData [07:58:12]SAM_PROTO_SignData [07:58:12]wFMCommunicate request_size=4 [07:58:12]MH_SAM_APDU [07:58:12]CAPDU: 80 0D 01 02 [07:58:12]Write to MH i2c: E2 08 00 A5 23 80 0D 01 02 00 00 00 00 41 [07:58:12]Write i2c OK [07:58:12]MH_I2C_Read... [07:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:12]Read from MH i2c: E2 [07:58:12]MH_I2C_Read... [07:58:12]Read from MH i2c: E2 03 00 [07:58:12]MH_I2C_Read... [07:58:12]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [07:58:12]RAPDU: 90 00 [07:58:12]wFMCommunicate OK [07:58:12]wFMCommunicate request_size=255 [07:58:12]MH_SAM_APDU [07:58: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 17 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 73 00 00 35 04 06 00 [07:58:12]Write to MH i2c: E2 02 01 A6 23 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 17 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 73 00 00 35 04 06 00 00 00 2B [07:58:12]Write i2c OK [07:58:12]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 A6 23 00 90 00 3D [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]wFMCommunicate request_size=11 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 0D 02 02 06 FF 0F 50 A3 E8 78 [07:58:13]Write to MH i2c: E2 0E 00 A7 23 80 0D 02 02 06 00 FF 0F 50 A3 E8 78 00 00 B1 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 03 00 A7 23 00 90 00 3E [07:58:13]RAPDU: 90 00 [07:58:13]wFMCommunicate OK [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 0D 03 02 [07:58:13]Write to MH i2c: E2 08 00 A8 23 80 0D 03 02 00 00 00 00 46 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0B 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 0B 00 A8 23 00 A2 94 3F 5C 13 C6 97 68 90 00 F0 [07:58:13]RAPDU: A2 94 3F 5C 13 C6 97 68 90 00 [07:58:13]wFMCommunicate OK [07:58:13]SAM_PROTO_SignData done [07:58:13]FM_MakeSignedData done [07:58:13]CreateOFDProtocolMessage [07:58:13]wFMCommunicate request_size=4 [07:58:13]MH_SAM_APDU [07:58:13]CAPDU: 80 11 00 00 [07:58:13]Write to MH i2c: E2 08 00 A9 23 80 11 00 00 00 00 00 00 46 [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:13]Read from MH i2c: E2 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 17 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: E2 17 00 A9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [07:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:13]wFMCommunicate OK [07:58:13]CreateOFDProtocolMessage done [07:58:13]OFDSenderStorePacket 29447 [07:58:13]StoreOFDPacket docnum=29447 [07:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 EB 08 01 02 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 17 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 73 00 00 35 04 06 00 FF 0F 50 A3 E8 78 A2 94 3F 5C 13 C6 97 68 [07:58:13]CheckFolder [07:58:13]dirname=/storage/ofd_packets [07:58:13]CheckFolder done [07:58:13]ProducePacketName [07:58:13]name=ofd_packets/00029447 [07:58:13]NVStorageSaveData ofd_packets/00029447 [07:58:13]File name is /storage/ofd_packets/00029447 [07:58:13]Write 302 bytes [07:58:13]NVStorageSaveData done [07:58:13]OFDSenderStorePacket done [07:58:13]KKMCreateOFDPacket done [07:58:13]NVStorageSaveData kkm_last_timestamp [07:58:13]File name is /storage/kkm_last_timestamp [07:58:13]Write 4 bytes [07:58:13]NVStorageSaveData done [07:58:13]ExternCall_PrintAddStr [07:58:13]wPrintStart [07:58:13]Write to MH i2c: 01 00 00 AA 23 CD [07:58:13]Write i2c OK [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 07 00 [07:58:13]MH_I2C_Read... [07:58:13]Read from MH i2c: 01 07 00 AA 23 00 00 00 00 00 FF 0F E2 [07:58:13]RasterBufferAndPrint [07:58:13]line Счет N : (1)347850 [07:58:13]line ИНН: 02508201610067 [07:58:13]line Контрольно-Кассовый Чек [07:58:13]line ПРОДАЖА [07:58:13]line ТРК (МРК, ГНК) : 62 [07:58:13]line Товар: 2710124130 [07:58:13]line SUPER-92-К-5 [07:58:13]line 9.120 * 65.80 [07:58:13]line = 600.10 [07:58:13]line НДС 12% НСП 1% [07:58:13]line > о реализуемом товаре [07:58:13]line ОКРУГЛЕНИЕ: -0.10 [07:58:13]line ИТОГО: 600.00 [07:58:13]line Внесено: 600.00 [07:58:13]line СДАЧА: 0.00 [07:58:13]line НСП 1% : 5.31 [07:58:13]line НДС 12% : 63.73 [07:58:13]line Наличными: 600.00 [07:58:13]line Безнал.: 0.00 [07:58:13]line Место: АЗС № 108 "Партнер Нефть" [07:58:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:58:13]line СНО: Общий режим [07:58:13]line Чек 41 15.04.2024 07:58 [07:58:13]line Смена: 117 ФФД: 1.0 [07:58:13]line ЗНМ: 0300000027 [07:58:13]line РНМ: 0000138879044617 [07:58:13]line Версия ККМ: 001 [07:58:13]line ФМ: 0000000000963154 [07:58:13]line ФД: 29447 [07:58:13]line ФПД: 280441242511480 [07:58:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29447&fm=280441242511480&tin=02508201610067®Number=0000138879044617&sum=60000 [07:58:13]OFD Sender: Processing packet 29447 [packets to send 8, broken 7] [07:58:13]ProducePacketName [07:58:13]name=ofd_packets/00029447 [07:58:13]OFD Sender: To server: pG, [07:58:13]CommunicateWithHost lk.salyk.kg:30040 [07:58:13]ConnectInit lk.salyk.kg [07:58:13]written 0, free lines is 4095 [07:58:13]Connected sock=10 [07:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 EB 08 01 02 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 17 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 73 00 00 35 04 06 00 FF 0F 50 A3 E8 78 A2 94 3F 5C 13 C6 97 68 [07:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 2F 47 00 83 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 73 00 00 F4 03 04 00 B8 88 1C 66 B6 04 01 00 00 EE B5 D4 BC 94 57 54 07 [07:58:13]CommunicateWithHost err = 0 [07:58:13]CheckOFDResponse [07:58:13]1017 (14) - 77093643461234 [07:58:13]1041 (16) - 0000000000963154 [07:58:13]1040 (4) - 29447 [07:58:13]1012 (4) - 15.04.2024 01:54 [07:58:13]1206 (1) - 0 [07:58:13]OFD Sender: Remove packet 29447 [07:58:13]ProducePacketName [07:58:13]name=ofd_packets/00029447 [07:58:13]NVStorageDeleteData [07:58:14]Write to MH i2c: 01 00 00 D4 23 F7 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 BB 0C C5 [07:58:14]RasterBufferAndPrint [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]line [07:58:14]written 0, free lines is 3263 [07:58:14]MH_Cut [07:58:14]Write to MH i2c: D1 01 00 DB 23 01 D0 [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 01 00 [07:58:14]MH_I2C_Read... [07:58:14]Read from MH i2c: D1 01 00 DB 23 00 CF [07:58:14]Write to MH i2c: 01 00 00 DC 23 FF [07:58:14]Write i2c OK [07:58:14]MH_I2C_Read... [07:58:14]OFD Sender: No OFD packet to send [07:58:14]*** Cut start [07:58:14]*** Partial cut [07:58:14]*** CUTSNS_PIN = 1 [07:58:15]*** CUTSNS_PIN = 0 [07:58:15]*** Brake cut motor [07:58:15]Read from MH i2c: 01 [07:58:15]MH_I2C_Read... [07:58:15]*** Stop cut motor [07:58:15]*** Cut end [07:58:15]Read from MH i2c: 01 07 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FF 0F 14 [07:58:15]process_action close_receipt done [07:58:15]requested_data is exist [07:58:15]produce_requested_data [07:58:15]requested_item fm.sn is exist - process it [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 11 00 00 [07:58:15]Write to MH i2c: E2 08 00 DD 23 80 11 00 00 00 00 00 00 7A [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 17 00 DD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [07:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:15]wFMCommunicate OK [07:58:15]requested_item fd.num is exist - process it [07:58:15]SAM_PROTO_GetFieldsCounters [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 00 00 [07:58:15]Write to MH i2c: E2 08 00 DE 23 80 13 00 00 00 00 00 00 7D [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 62 00 DE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 73 00 00 0E 04 04 00 75 00 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 25 [07:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 73 00 00 0E 04 04 00 75 00 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:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetFieldsCounters done [07:58:15]requested_item shift.num is exist - process it [07:58:15]requested_item shift.opened is exist - process it [07:58:15]req_shift_opened [07:58:15]FM_GetShiftState [07:58:15]SAM_PROTO_GetShiftState [07:58:15]wFMCommunicate request_size=4 [07:58:15]MH_SAM_APDU [07:58:15]CAPDU: 80 13 01 00 [07:58:15]Write to MH i2c: E2 08 00 DF 23 80 13 01 00 00 00 00 00 7F [07:58:15]Write i2c OK [07:58:15]MH_I2C_Read... [07:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:15]Read from MH i2c: E2 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 [07:58:15]MH_I2C_Read... [07:58:15]Read from MH i2c: E2 0E 00 DF 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 73 [07:58:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:58:15]wFMCommunicate OK [07:58:15]SAM_PROTO_GetShiftState done [07:58:15]FM_GetShiftState done [07:58:15]req_shift_opened done [07:58:15]requested_item shift.open_date is exist - process it [07:58:15]req_shift_open_date [07:58:15]req_shift_open_date done [07:58:15]produce_requested_data done [07:58:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29447,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:58:15]process_action_free close_receipt [07:58:15]json_value_free [07:58:15]json_value_free done [07:58:15]process_json_proto returns [07:58:15]Send response to host [07:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29447,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:58:15]free response buf [07:58:15]execute_script done [07:58:15]execute_script returns [07:58:15]free content buf [07:58:15]Sock 9.Close socket [07:58:15]Sock 9.Thread stoped [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:46]accept exits with 8 [07:59:46]New connection [07:59:46]New thread 3066969444 created [07:59:46]Thread 3067112804 joined [07:59:46]Waiting for new connection... [07:59:46] Sock 8.Parse request [07:59:46]Sock 8.Check first char [07:59:46]Sock 8.First char is OK [07:59:46]request: POST /json_proto HTTP/1.0 [07:59:46]Method: POST [07:59:46]URL: /json_proto [07:59:46]Method is POST - this is cgi request [07:59:46]url: /json_proto [07:59:46]query_string will be loaded in cgi processing [07:59:46]execute_cgi json_proto POST (null) [07:59:46]execute_cgi path=json_proto method=POST [07:59:46]POST find Content-Length [07:59:46]Host: 172.17.33.3:8080 [07:59:46]Content-Length: 675 [07:59:46]Content-Type: application/json [07:59:46] [07:59:46]POST finish read [07:59:46]Found Content-Length = 675 [07:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:46]execute_script... [07:59: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)347852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:46]POST & json_proto [07:59:46]process_json_proto [07:59:46]json parsed OK: [07:59:46]protocol is kg_v1.0 [07:59:46]action value=close_receipt [07:59:46]process_action close_receipt [07:59:46]cmd_close_receipt [07:59:46]MH_GetDate [07:59:46]Write to MH i2c: F0 00 00 E0 23 F2 [07:59:46]Write i2c OK [07:59:46]MH_I2C_Read... [07:59:46]Read from MH i2c: F0 [07:59:46]MH_I2C_Read... [07:59:46]Read from MH i2c: F0 09 00 [07:59:46]MH_I2C_Read... [07:59:46]Read from MH i2c: F0 09 00 E0 23 00 75 DE 1C 66 23 5B 8F 65 42 [07:59:46]GetLastDocTimeStamp 1713167895 [07:59:46]current date 1713167989 [07:59:46]FM_GetShiftState [07:59:46]SAM_PROTO_GetShiftState [07:59:46]wFMCommunicate request_size=4 [07:59:46]MH_SAM_APDU [07:59:46]CAPDU: 80 13 01 00 [07:59:46]Write to MH i2c: E2 08 00 E1 23 80 13 01 00 00 00 00 00 81 [07:59:46]Write i2c OK [07:59:46]MH_I2C_Read... [07:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:46]Read from MH i2c: E2 [07:59:46]MH_I2C_Read... [07:59:46]Read from MH i2c: E2 0E 00 [07:59:46]MH_I2C_Read... [07:59:46]Read from MH i2c: E2 0E 00 E1 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [07:59:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:59:46]wFMCommunicate OK [07:59:46]SAM_PROTO_GetShiftState done [07:59:46]FM_GetShiftState done [07:59:46]opened in 1713140468 [07:59:46]opened+sec_in_day 1713226868 [07:59:46]quantity*price = 100016 [07:59:46]sum+1 = 100017 [07:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 15.04.2024 07:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29448 ФПД: 266986639395314 1/tax-web-control/client/api/v1/ticket?date=20240415T075949&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29448&fm=266986639395314&tin=02508201610067®Number=0000138879044617&sum=100000 [07:59:47]StoreToDocumentArchive [07:59:47]shift 117 fd 29448 [07:59:47]save to /storage/0117/doc_00029448 [07:59:47]save last doc name /storage/0117/doc_00029448 to /storage/kkm_last_doc_name [07:59:47]save OK [07:59:47]Clear old archive folders... [07:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:59:47]tlvbuf is B6ECF6B0 [07:59:47]SAM_PROTO_ClearQueue [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 09 00 00 [07:59:47]Write to MH i2c: E2 08 00 EE 23 80 09 00 00 00 00 00 00 83 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]SAM_PROTO_ClearQueue done [07:59:47]KKMCreateOFDPacket [07:59:47]OFDProtocolAddRootSTLVToBuf [07:59:47]FM_MakeSignedData [07:59:47]FM_MakeSignedData [07:59:47]SAM_PROTO_SignData [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 01 02 [07:59:47]Write to MH i2c: E2 08 00 EF 23 80 0D 01 02 00 00 00 00 8B [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=255 [07:59:47]MH_SAM_APDU [07:59:47]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 75 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 73 00 00 35 04 06 00 [07:59:47]Write to MH i2c: E2 02 01 F0 23 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 75 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 73 00 00 35 04 06 00 00 00 56 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=11 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 02 02 06 F2 D2 AB CD 09 F2 [07:59:47]Write to MH i2c: E2 0E 00 F1 23 80 0D 02 02 06 00 F2 D2 AB CD 09 F2 00 00 D1 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [07:59:47]RAPDU: 90 00 [07:59:47]wFMCommunicate OK [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 0D 03 02 [07:59:47]Write to MH i2c: E2 08 00 F2 23 80 0D 03 02 00 00 00 00 90 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 0B 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 0B 00 F2 23 00 BC 90 B5 81 B5 17 DD A7 90 00 63 [07:59:47]RAPDU: BC 90 B5 81 B5 17 DD A7 90 00 [07:59:47]wFMCommunicate OK [07:59:47]SAM_PROTO_SignData done [07:59:47]FM_MakeSignedData done [07:59:47]CreateOFDProtocolMessage [07:59:47]wFMCommunicate request_size=4 [07:59:47]MH_SAM_APDU [07:59:47]CAPDU: 80 11 00 00 [07:59:47]Write to MH i2c: E2 08 00 F3 23 80 11 00 00 00 00 00 00 90 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:47]Read from MH i2c: E2 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 17 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: E2 17 00 F3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [07:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:59:47]wFMCommunicate OK [07:59:47]CreateOFDProtocolMessage done [07:59:47]OFDSenderStorePacket 29448 [07:59:47]StoreOFDPacket docnum=29448 [07:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4F 56 08 01 80 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 75 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 73 00 00 35 04 06 00 F2 D2 AB CD 09 F2 BC 90 B5 81 B5 17 DD A7 [07:59:47]CheckFolder [07:59:47]dirname=/storage/ofd_packets [07:59:47]CheckFolder done [07:59:47]ProducePacketName [07:59:47]name=ofd_packets/00029448 [07:59:47]NVStorageSaveData ofd_packets/00029448 [07:59:47]File name is /storage/ofd_packets/00029448 [07:59:47]Write 302 bytes [07:59:47]NVStorageSaveData done [07:59:47]OFDSenderStorePacket done [07:59:47]KKMCreateOFDPacket done [07:59:47]NVStorageSaveData kkm_last_timestamp [07:59:47]File name is /storage/kkm_last_timestamp [07:59:47]Write 4 bytes [07:59:47]NVStorageSaveData done [07:59:47]ExternCall_PrintAddStr [07:59:47]wPrintStart [07:59:47]Write to MH i2c: 01 00 00 F4 23 17 [07:59:47]Write i2c OK [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 07 00 [07:59:47]MH_I2C_Read... [07:59:47]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [07:59:47]RasterBufferAndPrint [07:59:47]line Счет N : (1)347852 [07:59:47]line ИНН: 02508201610067 [07:59:47]line Контрольно-Кассовый Чек [07:59:47]line ПРОДАЖА [07:59:47]line ТРК (МРК, ГНК) : 41 [07:59:47]line Товар: 2710124130 [07:59:47]line SUPER-92-К-5 [07:59:47]line 15.200 * 65.80 [07:59:47]line = 1000.16 [07:59:47]line НДС 12% НСП 1% [07:59:47]line > о реализуемом товаре [07:59:47]line ОКРУГЛЕНИЕ: -0.16 [07:59:47]line ИТОГО: 1000.00 [07:59:47]line Внесено: 1000.00 [07:59:47]line СДАЧА: 0.00 [07:59:47]line НСП 1% : 8.85 [07:59:47]line НДС 12% : 106.21 [07:59:47]line Наличными: 1000.00 [07:59:47]line Безнал.: 0.00 [07:59:47]line Место: АЗС № 108 "Партнер Нефть" [07:59:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:59:47]line СНО: Общий режим [07:59:47]line Чек 42 15.04.2024 07:59 [07:59:47]line Смена: 117 ФФД: 1.0 [07:59:47]line ЗНМ: 0300000027 [07:59:47]line РНМ: 0000138879044617 [07:59:47]line Версия ККМ: 001 [07:59:47]line ФМ: 0000000000963154 [07:59:47]line ФД: 29448 [07:59:47]line ФПД: 266986639395314 [07:59:47]line 1/tax-web-control/client/api/v1/ticket?date=20240415T075949&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29448&fm=266986639395314&tin=02508201610067®Number=0000138879044617&sum=100000 [07:59:48]OFD Sender: Processing packet 29448 [packets to send 8, broken 7] [07:59:48]ProducePacketName [07:59:48]name=ofd_packets/00029448 [07:59:48]OFD Sender: To server: pG, [07:59:48]CommunicateWithHost lk.salyk.kg:30040 [07:59:48]ConnectInit lk.salyk.kg [07:59:48]written 0, free lines is 4095 [07:59:48]Connected sock=11 [07:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4F 56 08 01 80 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 75 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 73 00 00 35 04 06 00 F2 D2 AB CD 09 F2 BC 90 B5 81 B5 17 DD A7 [07:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD DB 47 00 10 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 73 00 00 F4 03 04 00 17 89 1C 66 B6 04 01 00 00 E6 6D 41 55 70 D5 5A E7 [07:59:48]CommunicateWithHost err = 0 [07:59:48]CheckOFDResponse [07:59:48]1017 (14) - 77093643461234 [07:59:48]1041 (16) - 0000000000963154 [07:59:48]1040 (4) - 29448 [07:59:48]1012 (4) - 15.04.2024 01:55 [07:59:48]1206 (1) - 0 [07:59:48]OFD Sender: Remove packet 29448 [07:59:48]ProducePacketName [07:59:48]name=ofd_packets/00029448 [07:59:48]NVStorageDeleteData [07:59:48]Write to MH i2c: 01 00 00 1E 24 42 [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 07 00 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: 01 07 00 1E 24 00 00 00 00 00 C5 0C 1A [07:59:48]RasterBufferAndPrint [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]line [07:59:48]written 0, free lines is 3274 [07:59:48]MH_Cut [07:59:48]Write to MH i2c: D1 01 00 25 24 01 1B [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 01 00 [07:59:48]MH_I2C_Read... [07:59:48]Read from MH i2c: D1 01 00 25 24 00 1A [07:59:48]Write to MH i2c: 01 00 00 26 24 4A [07:59:48]Write i2c OK [07:59:48]MH_I2C_Read... [07:59:48]OFD Sender: No OFD packet to send [07:59:49]*** Cut start [07:59:49]*** Partial cut [07:59:49]*** CUTSNS_PIN = 1 [07:59:49]*** CUTSNS_PIN = 0 [07:59:49]*** Brake cut motor [07:59:50]Read from MH i2c: 01 [07:59:50]MH_I2C_Read... [07:59:50]*** Stop cut motor [07:59:50]*** Cut end [07:59:50]Read from MH i2c: 01 07 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [07:59:50]process_action close_receipt done [07:59:50]requested_data is exist [07:59:50]produce_requested_data [07:59:50]requested_item fm.sn is exist - process it [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 11 00 00 [07:59:50]Write to MH i2c: E2 08 00 27 24 80 11 00 00 00 00 00 00 C5 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 17 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 17 00 27 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [07:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:59:50]wFMCommunicate OK [07:59:50]requested_item fd.num is exist - process it [07:59:50]SAM_PROTO_GetFieldsCounters [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 13 00 00 [07:59:50]Write to MH i2c: E2 08 00 28 24 80 13 00 00 00 00 00 00 C8 [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 62 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 62 00 28 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 73 00 00 0E 04 04 00 75 00 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 74 [07:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 73 00 00 0E 04 04 00 75 00 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:59:50]wFMCommunicate OK [07:59:50]SAM_PROTO_GetFieldsCounters done [07:59:50]requested_item shift.num is exist - process it [07:59:50]requested_item shift.opened is exist - process it [07:59:50]req_shift_opened [07:59:50]FM_GetShiftState [07:59:50]SAM_PROTO_GetShiftState [07:59:50]wFMCommunicate request_size=4 [07:59:50]MH_SAM_APDU [07:59:50]CAPDU: 80 13 01 00 [07:59:50]Write to MH i2c: E2 08 00 29 24 80 13 01 00 00 00 00 00 CA [07:59:50]Write i2c OK [07:59:50]MH_I2C_Read... [07:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:50]Read from MH i2c: E2 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 [07:59:50]MH_I2C_Read... [07:59:50]Read from MH i2c: E2 0E 00 29 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [07:59:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [07:59:50]wFMCommunicate OK [07:59:50]SAM_PROTO_GetShiftState done [07:59:50]FM_GetShiftState done [07:59:50]req_shift_opened done [07:59:50]requested_item shift.open_date is exist - process it [07:59:50]req_shift_open_date [07:59:50]req_shift_open_date done [07:59:50]produce_requested_data done [07:59:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29448,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [07:59:50]process_action_free close_receipt [07:59:50]json_value_free [07:59:50]json_value_free done [07:59:50]process_json_proto returns [07:59:50]Send response to host [07:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29448,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [07:59:50]free response buf [07:59:50]execute_script done [07:59:50]execute_script returns [07:59:50]free content buf [07:59:50]Sock 8.Close socket [07:59:50]Sock 8.Thread stoped [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:46]accept exits with 9 [08:00:46]New connection [08:00:46]New thread 3067112804 created [08:00:46]Thread 3066969444 joined [08:00:46]Waiting for new connection... [08:00:46] Sock 9.Parse request [08:00:46]Sock 9.Check first char [08:00:46]Sock 9.First char is OK [08:00:46]request: POST /json_proto HTTP/1.0 [08:00:46]Method: POST [08:00:46]URL: /json_proto [08:00:46]Method is POST - this is cgi request [08:00:46]url: /json_proto [08:00:46]query_string will be loaded in cgi processing [08:00:46]execute_cgi json_proto POST (null) [08:00:46]execute_cgi path=json_proto method=POST [08:00:46]POST find Content-Length [08:00:46]Host: 172.17.33.3:8080 [08:00:46]Content-Length: 685 [08:00:46]Content-Type: application/json [08:00:46] [08:00:46]POST finish read [08:00:46]Found Content-Length = 685 [08:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:00:46]execute_script... [08:00:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:00:46]POST & json_proto [08:00:46]process_json_proto [08:00:46]json parsed OK: [08:00:46]protocol is kg_v1.0 [08:00:46]action value=close_receipt [08:00:46]process_action close_receipt [08:00:46]cmd_close_receipt [08:00:46]MH_GetDate [08:00:46]Write to MH i2c: F0 00 00 2A 24 3D [08:00:46]Write i2c OK [08:00:46]MH_I2C_Read... [08:00:46]Read from MH i2c: F0 [08:00:46]MH_I2C_Read... [08:00:46]Read from MH i2c: F0 09 00 [08:00:46]MH_I2C_Read... [08:00:46]Read from MH i2c: F0 09 00 2A 24 00 B1 DE 1C 66 23 5B 8F 65 C9 [08:00:46]GetLastDocTimeStamp 1713167989 [08:00:46]current date 1713168049 [08:00:46]FM_GetShiftState [08:00:46]SAM_PROTO_GetShiftState [08:00:46]wFMCommunicate request_size=4 [08:00:46]MH_SAM_APDU [08:00:46]CAPDU: 80 13 01 00 [08:00:46]Write to MH i2c: E2 08 00 2B 24 80 13 01 00 00 00 00 00 CC [08:00:46]Write i2c OK [08:00:46]MH_I2C_Read... [08:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:46]Read from MH i2c: E2 [08:00:46]MH_I2C_Read... [08:00:46]Read from MH i2c: E2 0E 00 [08:00:46]MH_I2C_Read... [08:00:46]Read from MH i2c: E2 0E 00 2B 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [08:00:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:00:46]wFMCommunicate OK [08:00:46]SAM_PROTO_GetShiftState done [08:00:46]FM_GetShiftState done [08:00:46]opened in 1713140468 [08:00:46]opened+sec_in_day 1713226868 [08:00:46]quantity*price = 150032 [08:00:46]sum+1 = 150034 [08:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 15.04.2024 08:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29449 ФПД: 94371980030639 1/tax-web-control/client/api/v1/ticket?date=20240415T080049&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29449&fm=94371980030639&tin=02508201610067®Number=0000138879044617&sum=150000 [08:00:47]StoreToDocumentArchive [08:00:47]shift 117 fd 29449 [08:00:47]save to /storage/0117/doc_00029449 [08:00:47]save last doc name /storage/0117/doc_00029449 to /storage/kkm_last_doc_name [08:00:47]save OK [08:00:47]Clear old archive folders... [08:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:00:47]tlvbuf is B6F7C400 [08:00:47]SAM_PROTO_ClearQueue [08:00:47]wFMCommunicate request_size=4 [08:00:47]MH_SAM_APDU [08:00:47]CAPDU: 80 09 00 00 [08:00:47]Write to MH i2c: E2 08 00 38 24 80 09 00 00 00 00 00 00 CE [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:47]Read from MH i2c: E2 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 38 24 00 90 00 D0 [08:00:47]RAPDU: 90 00 [08:00:47]wFMCommunicate OK [08:00:47]SAM_PROTO_ClearQueue done [08:00:47]KKMCreateOFDPacket [08:00:47]OFDProtocolAddRootSTLVToBuf [08:00:47]FM_MakeSignedData [08:00:47]FM_MakeSignedData [08:00:47]SAM_PROTO_SignData [08:00:47]wFMCommunicate request_size=4 [08:00:47]MH_SAM_APDU [08:00:47]CAPDU: 80 0D 01 02 [08:00:47]Write to MH i2c: E2 08 00 39 24 80 0D 01 02 00 00 00 00 D6 [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:47]Read from MH i2c: E2 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [08:00:47]RAPDU: 90 00 [08:00:47]wFMCommunicate OK [08:00:47]wFMCommunicate request_size=255 [08:00:47]MH_SAM_APDU [08:00:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 2B 00 00 00 F4 03 04 00 B1 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 73 00 00 35 04 06 00 55 D4 [08:00:47]Write to MH i2c: E2 02 01 3A 24 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 2B 00 00 00 F4 03 04 00 B1 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 73 00 00 35 04 06 00 55 D4 00 00 C6 [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:47]Read from MH i2c: E2 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [08:00:47]RAPDU: 90 00 [08:00:47]wFMCommunicate OK [08:00:47]wFMCommunicate request_size=9 [08:00:47]MH_SAM_APDU [08:00:47]CAPDU: 80 0D 02 02 04 B0 58 B2 AF [08:00:47]Write to MH i2c: E2 0C 00 3B 24 80 0D 02 02 04 00 B0 58 B2 AF 00 00 4A [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [08:00:48]RAPDU: 90 00 [08:00:48]wFMCommunicate OK [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 0D 03 02 [08:00:48]Write to MH i2c: E2 08 00 3C 24 80 0D 03 02 00 00 00 00 DB [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 0B 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 0B 00 3C 24 00 BE A9 E1 5B 3C E5 D3 8C 90 00 FF [08:00:48]RAPDU: BE A9 E1 5B 3C E5 D3 8C 90 00 [08:00:48]wFMCommunicate OK [08:00:48]SAM_PROTO_SignData done [08:00:48]FM_MakeSignedData done [08:00:48]CreateOFDProtocolMessage [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 11 00 00 [08:00:48]Write to MH i2c: E2 08 00 3D 24 80 11 00 00 00 00 00 00 DB [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 17 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 17 00 3D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [08:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:00:48]wFMCommunicate OK [08:00:48]CreateOFDProtocolMessage done [08:00:48]OFDSenderStorePacket 29449 [08:00:48]StoreOFDPacket docnum=29449 [08:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 B9 06 01 70 82 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 2B 00 00 00 F4 03 04 00 B1 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 73 00 00 35 04 06 00 55 D4 B0 58 B2 AF BE A9 E1 5B 3C E5 D3 8C [08:00:48]CheckFolder [08:00:48]dirname=/storage/ofd_packets [08:00:48]CheckFolder done [08:00:48]ProducePacketName [08:00:48]name=ofd_packets/00029449 [08:00:48]NVStorageSaveData ofd_packets/00029449 [08:00:48]File name is /storage/ofd_packets/00029449 [08:00:48]Write 300 bytes [08:00:48]NVStorageSaveData done [08:00:48]OFDSenderStorePacket done [08:00:48]KKMCreateOFDPacket done [08:00:48]NVStorageSaveData kkm_last_timestamp [08:00:48]File name is /storage/kkm_last_timestamp [08:00:48]Write 4 bytes [08:00:48]NVStorageSaveData done [08:00:48]ExternCall_PrintAddStr [08:00:48]wPrintStart [08:00:48]Write to MH i2c: 01 00 00 3E 24 62 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 3E 24 00 00 00 00 00 FF 0F 77 [08:00:48]RasterBufferAndPrint [08:00:48]line Счет N : (1)347848 [08:00:48]line ИНН: 02508201610067 [08:00:48]line Контрольно-Кассовый Чек [08:00:48]line ПРОДАЖА [08:00:48]line ТРК (МРК, ГНК) : 71 [08:00:48]line Товар: 2711129700 [08:00:48]line ГАЗ-К-5 [08:00:48]line 44.920 * 33.40 [08:00:48]line = 1500.33 [08:00:48]line НДС 12% НСП 1% [08:00:48]line > о реализуемом товаре [08:00:48]line ОКРУГЛЕНИЕ: -0.33 [08:00:48]line ИТОГО: 1500.00 [08:00:48]line Внесено: 1500.00 [08:00:48]line СДАЧА: 0.00 [08:00:48]line НСП 1% : 13.28 [08:00:48]line НДС 12% : 159.33 [08:00:48]line Наличными: 1500.00 [08:00:48]line Безнал.: 0.00 [08:00:48]line Место: АЗС № 108 "Партнер Нефть" [08:00:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:00:48]line СНО: Общий режим [08:00:48]line Чек 43 15.04.2024 08:00 [08:00:48]line Смена: 117 ФФД: 1.0 [08:00:48]line ЗНМ: 0300000027 [08:00:48]line РНМ: 0000138879044617 [08:00:48]line Версия ККМ: 001 [08:00:48]line ФМ: 0000000000963154 [08:00:48]line ФД: 29449 [08:00:48]line ФПД: 94371980030639 [08:00:48]line 1/tax-web-control/client/api/v1/ticket?date=20240415T080049&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29449&fm=94371980030639&tin=02508201610067®Number=0000138879044617&sum=150000 [08:00:48]OFD Sender: Processing packet 29449 [packets to send 8, broken 7] [08:00:48]ProducePacketName [08:00:48]name=ofd_packets/00029449 [08:00:48]OFD Sender: To server: pG, [08:00:48]CommunicateWithHost lk.salyk.kg:30040 [08:00:48]ConnectInit lk.salyk.kg [08:00:48]written 0, free lines is 4095 [08:00:48]Connected sock=10 [08:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 B9 06 01 70 82 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 2B 00 00 00 F4 03 04 00 B1 DE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 73 00 00 35 04 06 00 55 D4 B0 58 B2 AF BE A9 E1 5B 3C E5 D3 8C [08:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 BE 47 00 5E 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 73 00 00 F4 03 04 00 53 89 1C 66 B6 04 01 00 00 35 AC BD 32 37 9F 30 33 [08:00:48]CommunicateWithHost err = 0 [08:00:48]CheckOFDResponse [08:00:48]1017 (14) - 77093643461234 [08:00:48]1041 (16) - 0000000000963154 [08:00:48]1040 (4) - 29449 [08:00:48]1012 (4) - 15.04.2024 01:56 [08:00:48]1206 (1) - 0 [08:00:48]OFD Sender: Remove packet 29449 [08:00:48]ProducePacketName [08:00:48]name=ofd_packets/00029449 [08:00:48]NVStorageDeleteData [08:00:48]Write to MH i2c: 01 00 00 68 24 8C [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 68 24 00 00 00 00 00 C9 0C 68 [08:00:48]RasterBufferAndPrint [08:00:48]line [08:00:48]line [08:00:48]line [08:00:48]line [08:00:48]line [08:00:48]written 0, free lines is 3278 [08:00:48]MH_Cut [08:00:48]Write to MH i2c: D1 01 00 6F 24 01 65 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: D1 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: D1 01 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: D1 01 00 6F 24 00 64 [08:00:48]Write to MH i2c: 01 00 00 70 24 94 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:49]OFD Sender: No OFD packet to send [08:00:49]*** Cut start [08:00:49]*** Partial cut [08:00:49]*** CUTSNS_PIN = 1 [08:00:49]*** CUTSNS_PIN = 0 [08:00:50]*** Brake cut motor [08:00:50]Read from MH i2c: 01 [08:00:50]MH_I2C_Read... [08:00:50]*** Stop cut motor [08:00:50]*** Cut end [08:00:50]Read from MH i2c: 01 07 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 FF 0F A9 [08:00:50]process_action close_receipt done [08:00:50]requested_data is exist [08:00:50]produce_requested_data [08:00:50]requested_item fm.sn is exist - process it [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 11 00 00 [08:00:50]Write to MH i2c: E2 08 00 71 24 80 11 00 00 00 00 00 00 0F [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 17 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 17 00 71 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [08:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:00:50]wFMCommunicate OK [08:00:50]requested_item fd.num is exist - process it [08:00:50]SAM_PROTO_GetFieldsCounters [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 13 00 00 [08:00:50]Write to MH i2c: E2 08 00 72 24 80 13 00 00 00 00 00 00 12 [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 62 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 62 00 72 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 73 00 00 0E 04 04 00 75 00 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 C2 [08:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:50]wFMCommunicate OK [08:00:50]SAM_PROTO_GetFieldsCounters done [08:00:50]requested_item shift.num is exist - process it [08:00:50]requested_item shift.opened is exist - process it [08:00:50]req_shift_opened [08:00:50]FM_GetShiftState [08:00:50]SAM_PROTO_GetShiftState [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 13 01 00 [08:00:50]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 0E 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 08 [08:00:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:00:50]wFMCommunicate OK [08:00:50]SAM_PROTO_GetShiftState done [08:00:50]FM_GetShiftState done [08:00:50]req_shift_opened done [08:00:50]requested_item shift.open_date is exist - process it [08:00:50]req_shift_open_date [08:00:50]req_shift_open_date done [08:00:50]produce_requested_data done [08:00:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29449,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:00:50]process_action_free close_receipt [08:00:50]json_value_free [08:00:50]json_value_free done [08:00:50]process_json_proto returns [08:00:50]Send response to host [08:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29449,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:00:50]free response buf [08:00:50]execute_script done [08:00:50]execute_script returns [08:00:50]free content buf [08:00:50]Sock 9.Close socket [08:00:50]Sock 9.Thread stoped [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:25]accept exits with 8 [08:11:25]New connection [08:11:25]New thread 3066969444 created [08:11:25]Thread 3067112804 joined [08:11:25]Waiting for new connection... [08:11:25] Sock 8.Parse request [08:11:25]Sock 8.Check first char [08:11:25]Sock 8.First char is OK [08:11:25]request: POST /json_proto HTTP/1.0 [08:11:25]Method: POST [08:11:25]URL: /json_proto [08:11:25]Method is POST - this is cgi request [08:11:25]url: /json_proto [08:11:25]query_string will be loaded in cgi processing [08:11:25]execute_cgi json_proto POST (null) [08:11:25]execute_cgi path=json_proto method=POST [08:11:25]POST find Content-Length [08:11:25]Host: 172.17.33.3:8080 [08:11:25]Content-Length: 682 [08:11:25]Content-Type: application/json [08:11:25] [08:11:25]POST finish read [08:11:25]Found Content-Length = 682 [08:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 22.910, "sum" : 1670.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1670.00, "total" : 1670.00, "payments": [ { "type": 0, "sum" : 1670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:25]execute_script... [08:11: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)347853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 22.910, "sum" : 1670.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1670.00, "total" : 1670.00, "payments": [ { "type": 0, "sum" : 1670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:25]POST & json_proto [08:11:25]process_json_proto [08:11:25]json parsed OK: [08:11:25]protocol is kg_v1.0 [08:11:25]action value=close_receipt [08:11:25]process_action close_receipt [08:11:25]cmd_close_receipt [08:11:25]MH_GetDate [08:11:25]Write to MH i2c: F0 00 00 74 24 87 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: F0 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: F0 09 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: F0 09 00 74 24 00 31 E1 1C 66 23 5B 8F 65 96 [08:11:25]GetLastDocTimeStamp 1713168049 [08:11:25]current date 1713168689 [08:11:25]FM_GetShiftState [08:11:25]SAM_PROTO_GetShiftState [08:11:25]wFMCommunicate request_size=4 [08:11:25]MH_SAM_APDU [08:11:25]CAPDU: 80 13 01 00 [08:11:25]Write to MH i2c: E2 08 00 75 24 80 13 01 00 00 00 00 00 16 [08:11:25]Write i2c OK [08:11:25]MH_I2C_Read... [08:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:25]Read from MH i2c: E2 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 0E 00 [08:11:25]MH_I2C_Read... [08:11:25]Read from MH i2c: E2 0E 00 75 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0A [08:11:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:11:25]wFMCommunicate OK [08:11:25]SAM_PROTO_GetShiftState done [08:11:25]FM_GetShiftState done [08:11:25]opened in 1713140468 [08:11:25]opened+sec_in_day 1713226868 [08:11:25]quantity*price = 167013 [08:11:25]sum+1 = 167015 [08:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1670.00 Внесено: 1670.00 СДАЧА: 0.00 НСП 1% : 14.78 НДС 12% : 177.36 Наличными: 1670.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 15.04.2024 08:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29450 ФПД: 45785496865503 1/tax-web-control/client/api/v1/ticket?date=20240415T081129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29450&fm=45785496865503&tin=02508201610067®Number=0000138879044617&sum=167000 [08:11:26]StoreToDocumentArchive [08:11:26]shift 117 fd 29450 [08:11:26]save to /storage/0117/doc_00029450 [08:11:26]save last doc name /storage/0117/doc_00029450 to /storage/kkm_last_doc_name [08:11:26]save OK [08:11:26]Clear old archive folders... [08:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:26]tlvbuf is B6ECF680 [08:11:26]SAM_PROTO_ClearQueue [08:11:26]wFMCommunicate request_size=4 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 09 00 00 [08:11:26]Write to MH i2c: E2 08 00 82 24 80 09 00 00 00 00 00 00 18 [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [08:11:26]RAPDU: 90 00 [08:11:26]wFMCommunicate OK [08:11:26]SAM_PROTO_ClearQueue done [08:11:26]KKMCreateOFDPacket [08:11:26]OFDProtocolAddRootSTLVToBuf [08:11:26]FM_MakeSignedData [08:11:26]FM_MakeSignedData [08:11:26]SAM_PROTO_SignData [08:11:26]wFMCommunicate request_size=4 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 0D 01 02 [08:11:26]Write to MH i2c: E2 08 00 83 24 80 0D 01 02 00 00 00 00 20 [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:26]Read from MH i2c: E2 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 [08:11:26]MH_I2C_Read... [08:11:26]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [08:11:26]RAPDU: 90 00 [08:11:26]wFMCommunicate OK [08:11:26]wFMCommunicate request_size=255 [08:11:26]MH_SAM_APDU [08:11:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 45 00 00 00 00 07 04 06 00 58 8C 02 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 31 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 73 00 00 35 04 06 00 29 [08:11:26]Write to MH i2c: E2 02 01 84 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 45 00 00 00 00 07 04 06 00 58 8C 02 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 31 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 73 00 00 35 04 06 00 29 00 00 AB [08:11:26]Write i2c OK [08:11:26]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 03 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [08:11:27]RAPDU: 90 00 [08:11:27]wFMCommunicate OK [08:11:27]wFMCommunicate request_size=10 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 0D 02 02 05 A4 44 46 CA DF [08:11:27]Write to MH i2c: E2 0D 00 85 24 80 0D 02 02 05 00 A4 44 46 CA DF 00 00 04 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 03 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [08:11:27]RAPDU: 90 00 [08:11:27]wFMCommunicate OK [08:11:27]wFMCommunicate request_size=4 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 0D 03 02 [08:11:27]Write to MH i2c: E2 08 00 86 24 80 0D 03 02 00 00 00 00 25 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 0B 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 0B 00 86 24 00 70 D2 0B 4B 85 2E 12 39 90 00 BC [08:11:27]RAPDU: 70 D2 0B 4B 85 2E 12 39 90 00 [08:11:27]wFMCommunicate OK [08:11:27]SAM_PROTO_SignData done [08:11:27]FM_MakeSignedData done [08:11:27]CreateOFDProtocolMessage [08:11:27]wFMCommunicate request_size=4 [08:11:27]MH_SAM_APDU [08:11:27]CAPDU: 80 11 00 00 [08:11:27]Write to MH i2c: E2 08 00 87 24 80 11 00 00 00 00 00 00 25 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:27]Read from MH i2c: E2 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 17 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: E2 17 00 87 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [08:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:11:27]wFMCommunicate OK [08:11:27]CreateOFDProtocolMessage done [08:11:27]OFDSenderStorePacket 29450 [08:11:27]StoreOFDPacket docnum=29450 [08:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AE 20 07 01 D8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 45 00 00 00 00 07 04 06 00 58 8C 02 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 31 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 73 00 00 35 04 06 00 29 A4 44 46 CA DF 70 D2 0B 4B 85 2E 12 39 [08:11:27]CheckFolder [08:11:27]dirname=/storage/ofd_packets [08:11:27]CheckFolder done [08:11:27]ProducePacketName [08:11:27]name=ofd_packets/00029450 [08:11:27]NVStorageSaveData ofd_packets/00029450 [08:11:27]File name is /storage/ofd_packets/00029450 [08:11:27]Write 301 bytes [08:11:27]NVStorageSaveData done [08:11:27]OFDSenderStorePacket done [08:11:27]KKMCreateOFDPacket done [08:11:27]NVStorageSaveData kkm_last_timestamp [08:11:27]File name is /storage/kkm_last_timestamp [08:11:27]Write 4 bytes [08:11:27]NVStorageSaveData done [08:11:27]ExternCall_PrintAddStr [08:11:27]wPrintStart [08:11:27]Write to MH i2c: 01 00 00 88 24 AC [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 88 24 00 00 00 00 00 FF 0F C1 [08:11:27]RasterBufferAndPrint [08:11:27]line Счет N : (1)347853 [08:11:27]line ИНН: 02508201610067 [08:11:27]line Контрольно-Кассовый Чек [08:11:27]line ПРОДАЖА [08:11:27]line ТРК (МРК, ГНК) : 43 [08:11:27]line Товар: 2710124500 [08:11:27]line Аи-95-К-5 [08:11:27]line 22.910 * 72.90 [08:11:27]line = 1670.14 [08:11:27]line НДС 12% НСП 1% [08:11:27]line > о реализуемом товаре [08:11:27]line ОКРУГЛЕНИЕ: -0.14 [08:11:27]line ИТОГО: 1670.00 [08:11:27]line Внесено: 1670.00 [08:11:27]line СДАЧА: 0.00 [08:11:27]line НСП 1% : 14.78 [08:11:27]line НДС 12% : 177.36 [08:11:27]line Наличными: 1670.00 [08:11:27]line Безнал.: 0.00 [08:11:27]line Место: АЗС № 108 "Партнер Нефть" [08:11:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:11:27]line СНО: Общий режим [08:11:27]line Чек 44 15.04.2024 08:11 [08:11:27]line Смена: 117 ФФД: 1.0 [08:11:27]line ЗНМ: 0300000027 [08:11:27]line РНМ: 0000138879044617 [08:11:27]line Версия ККМ: 001 [08:11:27]line ФМ: 0000000000963154 [08:11:27]line ФД: 29450 [08:11:27]line ФПД: 45785496865503 [08:11:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T081129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29450&fm=45785496865503&tin=02508201610067®Number=0000138879044617&sum=167000 [08:11:27]written 0, free lines is 4095 [08:11:27]OFD Sender: Processing packet 29450 [packets to send 8, broken 7] [08:11:27]ProducePacketName [08:11:27]name=ofd_packets/00029450 [08:11:27]OFD Sender: To server: pG, [08:11:27]CommunicateWithHost lk.salyk.kg:30040 [08:11:27]ConnectInit lk.salyk.kg [08:11:27]Connected sock=10 [08:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AE 20 07 01 D8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 59 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 8C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 8C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 45 00 00 00 00 07 04 06 00 58 8C 02 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 31 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 73 00 00 35 04 06 00 29 A4 44 46 CA DF 70 D2 0B 4B 85 2E 12 39 [08:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D 55 47 00 14 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 39 36 33 31 35 34 10 04 04 00 0A 73 00 00 F4 03 04 00 D2 8B 1C 66 B6 04 01 00 00 8C 1C 0A 8E 5D 05 3D 22 [08:11:27]CommunicateWithHost err = 0 [08:11:27]CheckOFDResponse [08:11:27]1017 (14) - 77093643461234 [08:11:27]1041 (16) - 0000000000963154 [08:11:27]1040 (4) - 29450 [08:11:27]1012 (4) - 15.04.2024 02:07 [08:11:27]1206 (1) - 0 [08:11:27]OFD Sender: Remove packet 29450 [08:11:27]ProducePacketName [08:11:27]name=ofd_packets/00029450 [08:11:27]NVStorageDeleteData [08:11:27]Write to MH i2c: 01 00 00 B2 24 D6 [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: 01 07 00 B2 24 00 00 00 00 00 B5 0C 9E [08:11:27]RasterBufferAndPrint [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]line [08:11:27]written 0, free lines is 3258 [08:11:27]MH_Cut [08:11:27]Write to MH i2c: D1 01 00 B9 24 01 AF [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 01 00 [08:11:27]MH_I2C_Read... [08:11:27]Read from MH i2c: D1 01 00 B9 24 00 AE [08:11:27]Write to MH i2c: 01 00 00 BA 24 DE [08:11:27]Write i2c OK [08:11:27]MH_I2C_Read... [08:11:28]OFD Sender: No OFD packet to send [08:11:28]*** Cut start [08:11:28]*** Partial cut [08:11:28]*** CUTSNS_PIN = 1 [08:11:28]*** CUTSNS_PIN = 0 [08:11:28]*** Brake cut motor [08:11:29]Read from MH i2c: 01 [08:11:29]MH_I2C_Read... [08:11:29]*** Stop cut motor [08:11:29]*** Cut end [08:11:29]Read from MH i2c: 01 07 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 FF 0F F3 [08:11:29]process_action close_receipt done [08:11:29]requested_data is exist [08:11:29]produce_requested_data [08:11:29]requested_item fm.sn is exist - process it [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 11 00 00 [08:11:29]Write to MH i2c: E2 08 00 BB 24 80 11 00 00 00 00 00 00 59 [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 17 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 17 00 BB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [08:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:11:29]wFMCommunicate OK [08:11:29]requested_item fd.num is exist - process it [08:11:29]SAM_PROTO_GetFieldsCounters [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 13 00 00 [08:11:29]Write to MH i2c: E2 08 00 BC 24 80 13 00 00 00 00 00 00 5C [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 62 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 62 00 BC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 73 00 00 0E 04 04 00 75 00 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 10 [08:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 73 00 00 0E 04 04 00 75 00 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 [08:11:29]wFMCommunicate OK [08:11:29]SAM_PROTO_GetFieldsCounters done [08:11:29]requested_item shift.num is exist - process it [08:11:29]requested_item shift.opened is exist - process it [08:11:29]req_shift_opened [08:11:29]FM_GetShiftState [08:11:29]SAM_PROTO_GetShiftState [08:11:29]wFMCommunicate request_size=4 [08:11:29]MH_SAM_APDU [08:11:29]CAPDU: 80 13 01 00 [08:11:29]Write to MH i2c: E2 08 00 BD 24 80 13 01 00 00 00 00 00 5E [08:11:29]Write i2c OK [08:11:29]MH_I2C_Read... [08:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:29]Read from MH i2c: E2 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 0E 00 [08:11:29]MH_I2C_Read... [08:11:29]Read from MH i2c: E2 0E 00 BD 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 52 [08:11:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:11:29]wFMCommunicate OK [08:11:29]SAM_PROTO_GetShiftState done [08:11:29]FM_GetShiftState done [08:11:29]req_shift_opened done [08:11:29]requested_item shift.open_date is exist - process it [08:11:29]req_shift_open_date [08:11:29]req_shift_open_date done [08:11:29]produce_requested_data done [08:11:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29450,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:11:29]process_action_free close_receipt [08:11:29]json_value_free [08:11:29]json_value_free done [08:11:29]process_json_proto returns [08:11:29]Send response to host [08:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29450,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:11:29]free response buf [08:11:29]execute_script done [08:11:29]execute_script returns [08:11:29]free content buf [08:11:29]Sock 8.Close socket [08:11:29]Sock 8.Thread stoped [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:52]accept exits with 9 [08:11:52]New connection [08:11:52]New thread 3067112804 created [08:11:52]Thread 3066969444 joined [08:11:52]Waiting for new connection... [08:11:52] Sock 9.Parse request [08:11:52]Sock 9.Check first char [08:11:52]Sock 9.First char is OK [08:11:52]request: POST /json_proto HTTP/1.0 [08:11:52]Method: POST [08:11:52]URL: /json_proto [08:11:52]Method is POST - this is cgi request [08:11:52]url: /json_proto [08:11:52]query_string will be loaded in cgi processing [08:11:52]execute_cgi json_proto POST (null) [08:11:52]execute_cgi path=json_proto method=POST [08:11:52]POST find Content-Length [08:11:52]Host: 172.17.33.3:8080 [08:11:52]Content-Length: 786 [08:11:52]Content-Type: application/json [08:11:52] [08:11:52]POST finish read [08:11:52]Found Content-Length = 786 [08:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:52]execute_script... [08:11:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:52]POST & json_proto [08:11:52]process_json_proto [08:11:52]json parsed OK: [08:11:52]protocol is kg_v1.0 [08:11:52]action value=close_receipt [08:11:52]process_action close_receipt [08:11:52]cmd_close_receipt [08:11:52]MH_GetDate [08:11:52]Write to MH i2c: F0 00 00 BE 24 D1 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: F0 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: F0 09 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: F0 09 00 BE 24 00 4B E1 1C 66 23 5B 8F 65 FA [08:11:52]GetLastDocTimeStamp 1713168689 [08:11:52]current date 1713168715 [08:11:52]FM_GetShiftState [08:11:52]SAM_PROTO_GetShiftState [08:11:52]wFMCommunicate request_size=4 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 13 01 00 [08:11:52]Write to MH i2c: E2 08 00 BF 24 80 13 01 00 00 00 00 00 60 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 0E 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 0E 00 BF 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 54 [08:11:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:11:52]wFMCommunicate OK [08:11:52]SAM_PROTO_GetShiftState done [08:11:52]FM_GetShiftState done [08:11:52]opened in 1713140468 [08:11:52]opened+sec_in_day 1713226868 [08:11:52]quantity*price = 100016 [08:11:52]sum+1 = 100017 [08:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 15.04.2024 08:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29451 ФПД: 231662931498553 1/tax-web-control/client/api/v1/ticket?date=20240415T081155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29451&fm=231662931498553&tin=02508201610067®Number=0000138879044617&sum=100016 [08:11:53]StoreToDocumentArchive [08:11:53]shift 117 fd 29451 [08:11:53]save to /storage/0117/doc_00029451 [08:11:53]save last doc name /storage/0117/doc_00029451 to /storage/kkm_last_doc_name [08:11:53]save OK [08:11:53]Clear old archive folders... [08:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:53]tlvbuf is 002A74D0 [08:11:53]SAM_PROTO_ClearQueue [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 09 00 00 [08:11:53]Write to MH i2c: E2 08 00 CC 24 80 09 00 00 00 00 00 00 62 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 CC 24 00 90 00 64 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]SAM_PROTO_ClearQueue done [08:11:53]KKMCreateOFDPacket [08:11:53]OFDProtocolAddRootSTLVToBuf [08:11:53]FM_MakeSignedData [08:11:53]FM_MakeSignedData [08:11:53]SAM_PROTO_SignData [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 0D 01 02 [08:11:53]Write to MH i2c: E2 08 00 CD 24 80 0D 01 02 00 00 00 00 6A [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 CD 24 00 90 00 65 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=255 [08:11:53]MH_SAM_APDU [08:11:53]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4B E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 73 00 00 35 04 06 00 [08:11:53]Write to MH i2c: E2 02 01 CE 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4B E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 73 00 00 35 04 06 00 00 00 34 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=11 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 0D 02 02 06 D2 B2 3A BD 56 39 [08:11:53]Write to MH i2c: E2 0E 00 CF 24 80 0D 02 02 06 00 D2 B2 3A BD 56 39 00 00 83 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [08:11:53]RAPDU: 90 00 [08:11:53]wFMCommunicate OK [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 0D 03 02 [08:11:53]Write to MH i2c: E2 08 00 D0 24 80 0D 03 02 00 00 00 00 6F [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0B 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0B 00 D0 24 00 EF 02 6A 2D 88 D3 51 2C 90 00 D0 [08:11:53]RAPDU: EF 02 6A 2D 88 D3 51 2C 90 00 [08:11:53]wFMCommunicate OK [08:11:53]SAM_PROTO_SignData done [08:11:53]FM_MakeSignedData done [08:11:53]CreateOFDProtocolMessage [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 11 00 00 [08:11:53]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 D1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [08:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:11:53]wFMCommunicate OK [08:11:53]CreateOFDProtocolMessage done [08:11:53]OFDSenderStorePacket 29451 [08:11:53]StoreOFDPacket docnum=29451 [08:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D4 10 08 01 B1 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4B E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 73 00 00 35 04 06 00 D2 B2 3A BD 56 39 EF 02 6A 2D 88 D3 51 2C [08:11:53]CheckFolder [08:11:53]dirname=/storage/ofd_packets [08:11:53]CheckFolder done [08:11:53]ProducePacketName [08:11:53]name=ofd_packets/00029451 [08:11:53]NVStorageSaveData ofd_packets/00029451 [08:11:53]File name is /storage/ofd_packets/00029451 [08:11:53]Write 302 bytes [08:11:53]NVStorageSaveData done [08:11:53]OFDSenderStorePacket done [08:11:53]KKMCreateOFDPacket done [08:11:53]NVStorageSaveData kkm_last_timestamp [08:11:53]File name is /storage/kkm_last_timestamp [08:11:53]Write 4 bytes [08:11:53]NVStorageSaveData done [08:11:53]ExternCall_PrintAddStr [08:11:53]wPrintStart [08:11:53]Write to MH i2c: 01 00 00 D2 24 F6 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 D2 24 00 00 00 00 00 FF 0F 0B [08:11:53]RasterBufferAndPrint [08:11:53]line Счет N : (1)347854 [08:11:53]line ИНН: 02508201610067 [08:11:53]line Контрольно-Кассовый Чек [08:11:53]line ПРОДАЖА [08:11:53]line ТРК (МРК, ГНК) : 31 [08:11:53]line Товар: 2710124130 [08:11:53]line SUPER-92-К-5 [08:11:53]line 15.200 * 65.80 [08:11:53]line = 1000.16 [08:11:53]line НДС 12% НСП 1% [08:11:53]line > о реализуемом товаре [08:11:53]line ИТОГО: 1000.16 [08:11:53]line НСП 1% : 8.85 [08:11:53]line НДС 12% : 106.21 [08:11:53]line Наличными: 0.00 [08:11:53]line Безнал.: 1000.16 [08:11:53]line Место: АЗС № 108 "Партнер Нефть" [08:11:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:11:53]line СНО: Общий режим [08:11:53]line Чек 45 15.04.2024 08:11 [08:11:53]line Смена: 117 ФФД: 1.0 [08:11:53]line ЗНМ: 0300000027 [08:11:53]line РНМ: 0000138879044617 [08:11:53]line Версия ККМ: 001 [08:11:53]line Платежная система: KICB Банк [08:11:53]line ФМ: 0000000000963154 [08:11:53]line ФД: 29451 [08:11:53]line ФПД: 231662931498553 [08:11:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T081155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29451&fm=231662931498553&tin=02508201610067®Number=0000138879044617&sum=100016 [08:11:54]OFD Sender: Processing packet 29451 [packets to send 8, broken 7] [08:11:54]ProducePacketName [08:11:54]name=ofd_packets/00029451 [08:11:54]OFD Sender: To server: pG, [08:11:54]CommunicateWithHost lk.salyk.kg:30040 [08:11:54]ConnectInit lk.salyk.kg [08:11:54]written 0, free lines is 4095 [08:11:54]Connected sock=8 [08:11:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D4 10 08 01 B1 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 4B E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 73 00 00 35 04 06 00 D2 B2 3A BD 56 39 EF 02 6A 2D 88 D3 51 2C [08:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 70 47 00 5E 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 39 36 33 31 35 34 10 04 04 00 0B 73 00 00 F4 03 04 00 ED 8B 1C 66 B6 04 01 00 00 68 19 32 47 06 11 D5 CA [08:11:54]CommunicateWithHost err = 0 [08:11:54]CheckOFDResponse [08:11:54]1017 (14) - 77093643461234 [08:11:54]1041 (16) - 0000000000963154 [08:11:54]1040 (4) - 29451 [08:11:54]1012 (4) - 15.04.2024 02:07 [08:11:54]1206 (1) - 0 [08:11:54]OFD Sender: Remove packet 29451 [08:11:54]ProducePacketName [08:11:54]name=ofd_packets/00029451 [08:11:54]NVStorageDeleteData [08:11:54]Write to MH i2c: 01 00 00 FB 24 1F [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: 01 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: 01 07 00 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: 01 07 00 FB 24 00 00 00 00 00 D1 0C 03 [08:11:54]RasterBufferAndPrint [08:11:54]line [08:11:54]line [08:11:54]line [08:11:54]line [08:11:54]line [08:11:54]written 0, free lines is 3287 [08:11:54]MH_Cut [08:11:54]Write to MH i2c: D1 01 00 02 25 01 F9 [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: D1 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: D1 01 00 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: D1 01 00 02 25 00 F8 [08:11:54]Write to MH i2c: 01 00 00 03 25 28 [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:54]OFD Sender: No OFD packet to send [08:11:55]*** Cut start [08:11:55]*** Partial cut [08:11:55]*** CUTSNS_PIN = 1 [08:11:55]*** CUTSNS_PIN = 0 [08:11:55]*** Brake cut motor [08:11:55]Read from MH i2c: 01 [08:11:55]MH_I2C_Read... [08:11:55]*** Stop cut motor [08:11:55]*** Cut end [08:11:55]Read from MH i2c: 01 07 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: 01 07 00 03 25 00 00 00 00 00 FF 0F 3D [08:11:55]process_action close_receipt done [08:11:55]requested_data is exist [08:11:55]produce_requested_data [08:11:55]requested_item fm.sn is exist - process it [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 11 00 00 [08:11:55]Write to MH i2c: E2 08 00 04 25 80 11 00 00 00 00 00 00 A3 [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:56]Read from MH i2c: E2 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 17 00 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 17 00 04 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [08:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:11:56]wFMCommunicate OK [08:11:56]requested_item fd.num is exist - process it [08:11:56]SAM_PROTO_GetFieldsCounters [08:11:56]wFMCommunicate request_size=4 [08:11:56]MH_SAM_APDU [08:11:56]CAPDU: 80 13 00 00 [08:11:56]Write to MH i2c: E2 08 00 05 25 80 13 00 00 00 00 00 00 A6 [08:11:56]Write i2c OK [08:11:56]MH_I2C_Read... [08:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:56]Read from MH i2c: E2 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 62 00 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 62 00 05 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 73 00 00 0E 04 04 00 75 00 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 5E [08:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 73 00 00 0E 04 04 00 75 00 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 [08:11:56]wFMCommunicate OK [08:11:56]SAM_PROTO_GetFieldsCounters done [08:11:56]requested_item shift.num is exist - process it [08:11:56]requested_item shift.opened is exist - process it [08:11:56]req_shift_opened [08:11:56]FM_GetShiftState [08:11:56]SAM_PROTO_GetShiftState [08:11:56]wFMCommunicate request_size=4 [08:11:56]MH_SAM_APDU [08:11:56]CAPDU: 80 13 01 00 [08:11:56]Write to MH i2c: E2 08 00 06 25 80 13 01 00 00 00 00 00 A8 [08:11:56]Write i2c OK [08:11:56]MH_I2C_Read... [08:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:56]Read from MH i2c: E2 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 0E 00 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: E2 0E 00 06 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9C [08:11:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:11:56]wFMCommunicate OK [08:11:56]SAM_PROTO_GetShiftState done [08:11:56]FM_GetShiftState done [08:11:56]req_shift_opened done [08:11:56]requested_item shift.open_date is exist - process it [08:11:56]req_shift_open_date [08:11:56]req_shift_open_date done [08:11:56]produce_requested_data done [08:11:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29451,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:11:56]process_action_free close_receipt [08:11:56]json_value_free [08:11:56]json_value_free done [08:11:56]process_json_proto returns [08:11:56]Send response to host [08:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29451,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:11:56]free response buf [08:11:56]execute_script done [08:11:56]execute_script returns [08:11:56]free content buf [08:11:56]Sock 9.Close socket [08:11:56]Sock 9.Thread stoped [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:30]accept exits with 10 [08:12:30]New connection [08:12:30]New thread 3066969444 created [08:12:30]Thread 3067112804 joined [08:12:30]Waiting for new connection... [08:12:30] Sock 10.Parse request [08:12:30]Sock 10.Check first char [08:12:30]Sock 10.First char is OK [08:12:30]request: POST /json_proto HTTP/1.0 [08:12:30]Method: POST [08:12:30]URL: /json_proto [08:12:30]Method is POST - this is cgi request [08:12:30]url: /json_proto [08:12:30]query_string will be loaded in cgi processing [08:12:30]execute_cgi json_proto POST (null) [08:12:30]execute_cgi path=json_proto method=POST [08:12:30]POST find Content-Length [08:12:30]Host: 172.17.33.3:8080 [08:12:30]Content-Length: 677 [08:12:30]Content-Type: application/json [08:12:30] [08:12:30]POST finish read [08:12:30]Found Content-Length = 677 [08:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:12:30]execute_script... [08:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:12:30]POST & json_proto [08:12:30]process_json_proto [08:12:30]json parsed OK: [08:12:30]protocol is kg_v1.0 [08:12:30]action value=close_receipt [08:12:30]process_action close_receipt [08:12:30]cmd_close_receipt [08:12:30]MH_GetDate [08:12:30]Write to MH i2c: F0 00 00 07 25 1B [08:12:30]Write i2c OK [08:12:30]MH_I2C_Read... [08:12:30]Read from MH i2c: F0 [08:12:30]MH_I2C_Read... [08:12:30]Read from MH i2c: F0 09 00 [08:12:30]MH_I2C_Read... [08:12:30]Read from MH i2c: F0 09 00 07 25 00 72 E1 1C 66 23 5B 8F 65 6B [08:12:30]GetLastDocTimeStamp 1713168715 [08:12:30]current date 1713168754 [08:12:30]FM_GetShiftState [08:12:30]SAM_PROTO_GetShiftState [08:12:30]wFMCommunicate request_size=4 [08:12:30]MH_SAM_APDU [08:12:30]CAPDU: 80 13 01 00 [08:12:30]Write to MH i2c: E2 08 00 08 25 80 13 01 00 00 00 00 00 AA [08:12:30]Write i2c OK [08:12:30]MH_I2C_Read... [08:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:30]Read from MH i2c: E2 [08:12:30]MH_I2C_Read... [08:12:30]Read from MH i2c: E2 0E 00 [08:12:30]MH_I2C_Read... [08:12:30]Read from MH i2c: E2 0E 00 08 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9E [08:12:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:12:30]wFMCommunicate OK [08:12:30]SAM_PROTO_GetShiftState done [08:12:30]FM_GetShiftState done [08:12:30]opened in 1713140468 [08:12:30]opened+sec_in_day 1713226868 [08:12:30]quantity*price = 60004 [08:12:30]sum+1 = 60006 [08:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 15.04.2024 08:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29452 ФПД: 173057625184950 1/tax-web-control/client/api/v1/ticket?date=20240415T081234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29452&fm=173057625184950&tin=02508201610067®Number=0000138879044617&sum=60000 [08:12:31]StoreToDocumentArchive [08:12:31]shift 117 fd 29452 [08:12:31]save to /storage/0117/doc_00029452 [08:12:31]save last doc name /storage/0117/doc_00029452 to /storage/kkm_last_doc_name [08:12:31]save OK [08:12:31]Clear old archive folders... [08:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:31]tlvbuf is B6F7C580 [08:12:31]SAM_PROTO_ClearQueue [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 09 00 00 [08:12:31]Write to MH i2c: E2 08 00 15 25 80 09 00 00 00 00 00 00 AC [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]SAM_PROTO_ClearQueue done [08:12:31]KKMCreateOFDPacket [08:12:31]OFDProtocolAddRootSTLVToBuf [08:12:31]FM_MakeSignedData [08:12:31]FM_MakeSignedData [08:12:31]SAM_PROTO_SignData [08:12:31]wFMCommunicate request_size=4 [08:12:31]MH_SAM_APDU [08:12:31]CAPDU: 80 0D 01 02 [08:12:31]Write to MH i2c: E2 08 00 16 25 80 0D 01 02 00 00 00 00 B4 [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:31]Read from MH i2c: E2 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 [08:12:31]MH_I2C_Read... [08:12:31]Read from MH i2c: E2 03 00 16 25 00 90 00 AF [08:12:31]RAPDU: 90 00 [08:12:31]wFMCommunicate OK [08:12:31]wFMCommunicate request_size=255 [08:12:31]MH_SAM_APDU [08:12: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 2E 00 00 00 F4 03 04 00 72 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 73 00 00 35 04 06 00 9D [08:12:31]Write to MH i2c: E2 02 01 17 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 2E 00 00 00 F4 03 04 00 72 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 73 00 00 35 04 06 00 9D 00 00 1C [08:12:31]Write i2c OK [08:12:31]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 03 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 03 00 17 25 00 90 00 B0 [08:12:32]RAPDU: 90 00 [08:12:32]wFMCommunicate OK [08:12:32]wFMCommunicate request_size=10 [08:12:32]MH_SAM_APDU [08:12:32]CAPDU: 80 0D 02 02 05 65 1E 46 5A B6 [08:12:32]Write to MH i2c: E2 0D 00 18 25 80 0D 02 02 05 00 65 1E 46 5A B6 00 00 9A [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 03 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 03 00 18 25 00 90 00 B1 [08:12:32]RAPDU: 90 00 [08:12:32]wFMCommunicate OK [08:12:32]wFMCommunicate request_size=4 [08:12:32]MH_SAM_APDU [08:12:32]CAPDU: 80 0D 03 02 [08:12:32]Write to MH i2c: E2 08 00 19 25 80 0D 03 02 00 00 00 00 B9 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0B 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 0B 00 19 25 00 16 03 6C BA F3 5D EE C4 90 00 FB [08:12:32]RAPDU: 16 03 6C BA F3 5D EE C4 90 00 [08:12:32]wFMCommunicate OK [08:12:32]SAM_PROTO_SignData done [08:12:32]FM_MakeSignedData done [08:12:32]CreateOFDProtocolMessage [08:12:32]wFMCommunicate request_size=4 [08:12:32]MH_SAM_APDU [08:12:32]CAPDU: 80 11 00 00 [08:12:32]Write to MH i2c: E2 08 00 1A 25 80 11 00 00 00 00 00 00 B9 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:32]Read from MH i2c: E2 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 17 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: E2 17 00 1A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [08:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:12:32]wFMCommunicate OK [08:12:32]CreateOFDProtocolMessage done [08:12:32]OFDSenderStorePacket 29452 [08:12:32]StoreOFDPacket docnum=29452 [08:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A4 3E 07 01 CD 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 2E 00 00 00 F4 03 04 00 72 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 73 00 00 35 04 06 00 9D 65 1E 46 5A B6 16 03 6C BA F3 5D EE C4 [08:12:32]CheckFolder [08:12:32]dirname=/storage/ofd_packets [08:12:32]CheckFolder done [08:12:32]ProducePacketName [08:12:32]name=ofd_packets/00029452 [08:12:32]NVStorageSaveData ofd_packets/00029452 [08:12:32]File name is /storage/ofd_packets/00029452 [08:12:32]Write 301 bytes [08:12:32]NVStorageSaveData done [08:12:32]OFDSenderStorePacket done [08:12:32]KKMCreateOFDPacket done [08:12:32]NVStorageSaveData kkm_last_timestamp [08:12:32]File name is /storage/kkm_last_timestamp [08:12:32]Write 4 bytes [08:12:32]NVStorageSaveData done [08:12:32]ExternCall_PrintAddStr [08:12:32]wPrintStart [08:12:32]Write to MH i2c: 01 00 00 1B 25 40 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 1B 25 00 00 00 00 00 FF 0F 55 [08:12:32]RasterBufferAndPrint [08:12:32]line Счет N : (1)347855 [08:12:32]line ИНН: 02508201610067 [08:12:32]line Контрольно-Кассовый Чек [08:12:32]line ПРОДАЖА [08:12:32]line ТРК (МРК, ГНК) : 23 [08:12:32]line Товар: 2710124130 [08:12:32]line Аи-92-К-5 [08:12:32]line 9.260 * 64.80 [08:12:32]line = 600.05 [08:12:32]line НДС 12% НСП 1% [08:12:32]line > о реализуемом товаре [08:12:32]line ОКРУГЛЕНИЕ: -0.05 [08:12:32]line ИТОГО: 600.00 [08:12:32]line Внесено: 600.00 [08:12:32]line СДАЧА: 0.00 [08:12:32]line НСП 1% : 5.31 [08:12:32]line НДС 12% : 63.72 [08:12:32]line Наличными: 600.00 [08:12:32]line Безнал.: 0.00 [08:12:32]line Место: АЗС № 108 "Партнер Нефть" [08:12:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:12:32]line СНО: Общий режим [08:12:32]line Чек 46 15.04.2024 08:12 [08:12:32]line Смена: 117 ФФД: 1.0 [08:12:32]line ЗНМ: 0300000027 [08:12:32]line РНМ: 0000138879044617 [08:12:32]line Версия ККМ: 001 [08:12:32]line ФМ: 0000000000963154 [08:12:32]line ФД: 29452 [08:12:32]line ФПД: 173057625184950 [08:12:32]line 1/tax-web-control/client/api/v1/ticket?date=20240415T081234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29452&fm=173057625184950&tin=02508201610067®Number=0000138879044617&sum=60000 [08:12:32]OFD Sender: Processing packet 29452 [packets to send 8, broken 7] [08:12:32]ProducePacketName [08:12:32]name=ofd_packets/00029452 [08:12:32]OFD Sender: To server: pG, [08:12:32]CommunicateWithHost lk.salyk.kg:30040 [08:12:32]ConnectInit lk.salyk.kg [08:12:32]written 0, free lines is 4095 [08:12:32]Connected sock=9 [08:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A4 3E 07 01 CD 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 2E 00 00 00 F4 03 04 00 72 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 73 00 00 35 04 06 00 9D 65 1E 46 5A B6 16 03 6C BA F3 5D EE C4 [08:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 76 47 00 4D 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 39 36 33 31 35 34 10 04 04 00 0C 73 00 00 F4 03 04 00 13 8C 1C 66 B6 04 01 00 00 74 D9 03 1C ED 48 67 06 [08:12:32]CommunicateWithHost err = 0 [08:12:32]CheckOFDResponse [08:12:32]1017 (14) - 77093643461234 [08:12:32]1041 (16) - 0000000000963154 [08:12:32]1040 (4) - 29452 [08:12:32]1012 (4) - 15.04.2024 02:08 [08:12:32]1206 (1) - 0 [08:12:32]OFD Sender: Remove packet 29452 [08:12:32]ProducePacketName [08:12:32]name=ofd_packets/00029452 [08:12:32]NVStorageDeleteData [08:12:32]Write to MH i2c: 01 00 00 45 25 6A [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: 01 07 00 45 25 00 00 00 00 00 B8 0C 35 [08:12:32]RasterBufferAndPrint [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]line [08:12:32]written 0, free lines is 3261 [08:12:32]MH_Cut [08:12:32]Write to MH i2c: D1 01 00 4C 25 01 43 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 01 00 [08:12:32]MH_I2C_Read... [08:12:32]Read from MH i2c: D1 01 00 4C 25 00 42 [08:12:32]Write to MH i2c: 01 00 00 4D 25 72 [08:12:32]Write i2c OK [08:12:32]MH_I2C_Read... [08:12:33]OFD Sender: No OFD packet to send [08:12:33]*** Cut start [08:12:33]*** Partial cut [08:12:33]*** CUTSNS_PIN = 1 [08:12:33]*** CUTSNS_PIN = 0 [08:12:34]*** Brake cut motor [08:12:34]Read from MH i2c: 01 [08:12:34]MH_I2C_Read... [08:12:34]*** Stop cut motor [08:12:34]*** Cut end [08:12:34]Read from MH i2c: 01 07 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 FF 0F 87 [08:12:34]process_action close_receipt done [08:12:34]requested_data is exist [08:12:34]produce_requested_data [08:12:34]requested_item fm.sn is exist - process it [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 11 00 00 [08:12:34]Write to MH i2c: E2 08 00 4E 25 80 11 00 00 00 00 00 00 ED [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 17 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 17 00 4E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [08:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:12:34]wFMCommunicate OK [08:12:34]requested_item fd.num is exist - process it [08:12:34]SAM_PROTO_GetFieldsCounters [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 13 00 00 [08:12:34]Write to MH i2c: E2 08 00 4F 25 80 13 00 00 00 00 00 00 F0 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 62 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 62 00 4F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 73 00 00 0E 04 04 00 75 00 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 AC [08:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 73 00 00 0E 04 04 00 75 00 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 [08:12:34]wFMCommunicate OK [08:12:34]SAM_PROTO_GetFieldsCounters done [08:12:34]requested_item shift.num is exist - process it [08:12:34]requested_item shift.opened is exist - process it [08:12:34]req_shift_opened [08:12:34]FM_GetShiftState [08:12:34]SAM_PROTO_GetShiftState [08:12:34]wFMCommunicate request_size=4 [08:12:34]MH_SAM_APDU [08:12:34]CAPDU: 80 13 01 00 [08:12:34]Write to MH i2c: E2 08 00 50 25 80 13 01 00 00 00 00 00 F2 [08:12:34]Write i2c OK [08:12:34]MH_I2C_Read... [08:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:34]Read from MH i2c: E2 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 0E 00 [08:12:34]MH_I2C_Read... [08:12:34]Read from MH i2c: E2 0E 00 50 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E6 [08:12:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:12:34]wFMCommunicate OK [08:12:34]SAM_PROTO_GetShiftState done [08:12:34]FM_GetShiftState done [08:12:34]req_shift_opened done [08:12:34]requested_item shift.open_date is exist - process it [08:12:34]req_shift_open_date [08:12:34]req_shift_open_date done [08:12:34]produce_requested_data done [08:12:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29452,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:12:34]process_action_free close_receipt [08:12:34]json_value_free [08:12:34]json_value_free done [08:12:34]process_json_proto returns [08:12:34]Send response to host [08:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29452,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:12:34]free response buf [08:12:34]execute_script done [08:12:34]execute_script returns [08:12:34]free content buf [08:12:34]Sock 10.Close socket [08:12:34]Sock 10.Thread stoped [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:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:49]accept exits with 8 [08:13:49]New connection [08:13:49]New thread 3067112804 created [08:13:49]Thread 3066969444 joined [08:13:49]Waiting for new connection... [08:13:49] Sock 8.Parse request [08:13:49]Sock 8.Check first char [08:13:49]Sock 8.First char is OK [08:13:49]request: POST /json_proto HTTP/1.0 [08:13:49]Method: POST [08:13:49]URL: /json_proto [08:13:49]Method is POST - this is cgi request [08:13:49]url: /json_proto [08:13:49]query_string will be loaded in cgi processing [08:13:49]execute_cgi json_proto POST (null) [08:13:49]execute_cgi path=json_proto method=POST [08:13:49]POST find Content-Length [08:13:49]Host: 172.17.33.3:8080 [08:13:49]Content-Length: 671 [08:13:49]Content-Type: application/json [08:13:49] [08:13:49]POST finish read [08:13:49]Found Content-Length = 671 [08:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [08:13:49]execute_script... [08:13: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)347856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [08:13:49]POST & json_proto [08:13:49]process_json_proto [08:13:49]json parsed OK: [08:13:49]protocol is kg_v1.0 [08:13:49]action value=close_receipt [08:13:49]process_action close_receipt [08:13:49]cmd_close_receipt [08:13:49]MH_GetDate [08:13:49]Write to MH i2c: F0 00 00 51 25 65 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 09 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: F0 09 00 51 25 00 C1 E1 1C 66 23 5B 8F 65 04 [08:13:49]GetLastDocTimeStamp 1713168754 [08:13:49]current date 1713168833 [08:13:49]FM_GetShiftState [08:13:49]SAM_PROTO_GetShiftState [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 13 01 00 [08:13:49]Write to MH i2c: E2 08 00 52 25 80 13 01 00 00 00 00 00 F4 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 52 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E8 [08:13:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetShiftState done [08:13:49]FM_GetShiftState done [08:13:49]opened in 1713140468 [08:13:49]opened+sec_in_day 1713226868 [08:13:49]quantity*price = 70011 [08:13:49]sum+1 = 70012 [08:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 15.04.2024 08:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29453 ФПД: 111597157754495 1/tax-web-control/client/api/v1/ticket?date=20240415T081353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29453&fm=111597157754495&tin=02508201610067®Number=0000138879044617&sum=70000 [08:13:50]StoreToDocumentArchive [08:13:50]shift 117 fd 29453 [08:13:50]save to /storage/0117/doc_00029453 [08:13:50]save last doc name /storage/0117/doc_00029453 to /storage/kkm_last_doc_name [08:13:50]save OK [08:13:50]Clear old archive folders... [08:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:13:50]tlvbuf is B6F7C470 [08:13:50]SAM_PROTO_ClearQueue [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 09 00 00 [08:13:50]Write to MH i2c: E2 08 00 5F 25 80 09 00 00 00 00 00 00 F6 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 5F 25 00 90 00 F8 [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_ClearQueue done [08:13:50]KKMCreateOFDPacket [08:13:50]OFDProtocolAddRootSTLVToBuf [08:13:50]FM_MakeSignedData [08:13:50]FM_MakeSignedData [08:13:50]SAM_PROTO_SignData [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 0D 01 02 [08:13:50]Write to MH i2c: E2 08 00 60 25 80 0D 01 02 00 00 00 00 FE [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 60 25 00 90 00 F9 [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]wFMCommunicate request_size=255 [08:13:50]MH_SAM_APDU [08:13: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 2F 00 00 00 F4 03 04 00 C1 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 73 00 00 35 04 06 00 [08:13:50]Write to MH i2c: E2 02 01 61 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 2F 00 00 00 F4 03 04 00 C1 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 73 00 00 35 04 06 00 00 00 C4 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 61 25 00 90 00 FA [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=11 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 02 02 06 65 7F 3C F2 26 7F [08:13:51]Write to MH i2c: E2 0E 00 62 25 80 0D 02 02 06 00 65 7F 3C F2 26 7F 00 00 C4 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [08:13:51]RAPDU: 90 00 [08:13:51]wFMCommunicate OK [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 0D 03 02 [08:13:51]Write to MH i2c: E2 08 00 63 25 80 0D 03 02 00 00 00 00 03 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 0B 00 63 25 00 5B F6 16 B5 DD BC 59 AB 90 00 BD [08:13:51]RAPDU: 5B F6 16 B5 DD BC 59 AB 90 00 [08:13:51]wFMCommunicate OK [08:13:51]SAM_PROTO_SignData done [08:13:51]FM_MakeSignedData done [08:13:51]CreateOFDProtocolMessage [08:13:51]wFMCommunicate request_size=4 [08:13:51]MH_SAM_APDU [08:13:51]CAPDU: 80 11 00 00 [08:13:51]Write to MH i2c: E2 08 00 64 25 80 11 00 00 00 00 00 00 03 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:51]Read from MH i2c: E2 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 17 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: E2 17 00 64 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [08:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:51]wFMCommunicate OK [08:13:51]CreateOFDProtocolMessage done [08:13:51]OFDSenderStorePacket 29453 [08:13:51]StoreOFDPacket docnum=29453 [08:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AC 45 08 01 4B 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 2F 00 00 00 F4 03 04 00 C1 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 73 00 00 35 04 06 00 65 7F 3C F2 26 7F 5B F6 16 B5 DD BC 59 AB [08:13:51]CheckFolder [08:13:51]dirname=/storage/ofd_packets [08:13:51]CheckFolder done [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00029453 [08:13:51]NVStorageSaveData ofd_packets/00029453 [08:13:51]File name is /storage/ofd_packets/00029453 [08:13:51]Write 302 bytes [08:13:51]NVStorageSaveData done [08:13:51]OFDSenderStorePacket done [08:13:51]KKMCreateOFDPacket done [08:13:51]NVStorageSaveData kkm_last_timestamp [08:13:51]File name is /storage/kkm_last_timestamp [08:13:51]Write 4 bytes [08:13:51]NVStorageSaveData done [08:13:51]ExternCall_PrintAddStr [08:13:51]wPrintStart [08:13:51]Write to MH i2c: 01 00 00 65 25 8A [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 65 25 00 00 00 00 00 FF 0F 9F [08:13:51]RasterBufferAndPrint [08:13:51]line Счет N : (1)347856 [08:13:51]line ИНН: 02508201610067 [08:13:51]line Контрольно-Кассовый Чек [08:13:51]line ПРОДАЖА [08:13:51]line ТРК (МРК, ГНК) : 31 [08:13:51]line Товар: 2710124130 [08:13:51]line SUPER-92-К-5 [08:13:51]line 10.640 * 65.80 [08:13:51]line = 700.11 [08:13:51]line НДС 12% НСП 1% [08:13:51]line > о реализуемом товаре [08:13:51]line ОКРУГЛЕНИЕ: -0.11 [08:13:51]line ИТОГО: 700.00 [08:13:51]line Внесено: 700.00 [08:13:51]line СДАЧА: 0.00 [08:13:51]line НСП 1% : 6.20 [08:13:51]line НДС 12% : 74.35 [08:13:51]line Наличными: 700.00 [08:13:51]line Безнал.: 0.00 [08:13:51]line Место: АЗС № 108 "Партнер Нефть" [08:13:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:13:51]line СНО: Общий режим [08:13:51]line Чек 47 15.04.2024 08:13 [08:13:51]line Смена: 117 ФФД: 1.0 [08:13:51]line ЗНМ: 0300000027 [08:13:51]line РНМ: 0000138879044617 [08:13:51]line Версия ККМ: 001 [08:13:51]line ФМ: 0000000000963154 [08:13:51]line ФД: 29453 [08:13:51]line ФПД: 111597157754495 [08:13:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T081353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29453&fm=111597157754495&tin=02508201610067®Number=0000138879044617&sum=70000 [08:13:51]OFD Sender: Processing packet 29453 [packets to send 8, broken 7] [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00029453 [08:13:51]OFD Sender: To server: pG, [08:13:51]CommunicateWithHost lk.salyk.kg:30040 [08:13:51]ConnectInit lk.salyk.kg [08:13:51]written 0, free lines is 4095 [08:13:51]Connected sock=10 [08:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AC 45 08 01 4B 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 2F 00 00 00 F4 03 04 00 C1 E1 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 73 00 00 35 04 06 00 65 7F 3C F2 26 7F 5B F6 16 B5 DD BC 59 AB [08:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 CF 47 00 CA 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 39 36 33 31 35 34 10 04 04 00 0D 73 00 00 F4 03 04 00 62 8C 1C 66 B6 04 01 00 00 9C 03 7C BE 35 97 D7 A9 [08:13:51]CommunicateWithHost err = 0 [08:13:51]CheckOFDResponse [08:13:51]1017 (14) - 77093643461234 [08:13:51]1041 (16) - 0000000000963154 [08:13:51]1040 (4) - 29453 [08:13:51]1012 (4) - 15.04.2024 02:09 [08:13:51]1206 (1) - 0 [08:13:51]OFD Sender: Remove packet 29453 [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00029453 [08:13:51]NVStorageDeleteData [08:13:52]Write to MH i2c: 01 00 00 8F 25 B4 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 8F 25 00 00 00 00 00 B1 0C 78 [08:13:52]RasterBufferAndPrint [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]line [08:13:52]written 0, free lines is 3255 [08:13:52]MH_Cut [08:13:52]Write to MH i2c: D1 01 00 96 25 01 8D [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: D1 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: D1 01 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: D1 01 00 96 25 00 8C [08:13:52]Write to MH i2c: 01 00 00 97 25 BC [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]OFD Sender: No OFD packet to send [08:13:52]*** Cut start [08:13:52]*** Partial cut [08:13:52]*** CUTSNS_PIN = 1 [08:13:53]*** CUTSNS_PIN = 0 [08:13:53]*** Brake cut motor [08:13:53]Read from MH i2c: 01 [08:13:53]MH_I2C_Read... [08:13:53]*** Stop cut motor [08:13:53]*** Cut end [08:13:53]Read from MH i2c: 01 07 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 97 25 00 00 00 00 00 FF 0F D1 [08:13:53]process_action close_receipt done [08:13:53]requested_data is exist [08:13:53]produce_requested_data [08:13:53]requested_item fm.sn is exist - process it [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 11 00 00 [08:13:53]Write to MH i2c: E2 08 00 98 25 80 11 00 00 00 00 00 00 37 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 98 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [08:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:53]wFMCommunicate OK [08:13:53]requested_item fd.num is exist - process it [08:13:53]SAM_PROTO_GetFieldsCounters [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 00 00 [08:13:53]Write to MH i2c: E2 08 00 99 25 80 13 00 00 00 00 00 00 3A [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 99 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 73 00 00 0E 04 04 00 75 00 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 FA [08:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 73 00 00 0E 04 04 00 75 00 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 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetFieldsCounters done [08:13:53]requested_item shift.num is exist - process it [08:13:53]requested_item shift.opened is exist - process it [08:13:53]req_shift_opened [08:13:53]FM_GetShiftState [08:13:53]SAM_PROTO_GetShiftState [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 01 00 [08:13:53]Write to MH i2c: E2 08 00 9A 25 80 13 01 00 00 00 00 00 3C [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 9A 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 30 [08:13:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetShiftState done [08:13:53]FM_GetShiftState done [08:13:53]req_shift_opened done [08:13:53]requested_item shift.open_date is exist - process it [08:13:53]req_shift_open_date [08:13:53]req_shift_open_date done [08:13:53]produce_requested_data done [08:13:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29453,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:13:53]process_action_free close_receipt [08:13:53]json_value_free [08:13:53]json_value_free done [08:13:53]process_json_proto returns [08:13:53]Send response to host [08:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29453,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:13:53]free response buf [08:13:53]execute_script done [08:13:53]execute_script returns [08:13:53]free content buf [08:13:53]Sock 8.Close socket [08:13:53]Sock 8.Thread stoped [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:10]accept exits with 9 [08:20:10]New connection [08:20:10]New thread 3066969444 created [08:20:10]Thread 3067112804 joined [08:20:10]Waiting for new connection... [08:20:10] Sock 9.Parse request [08:20:10]Sock 9.Check first char [08:20:10]Sock 9.First char is OK [08:20:10]request: POST /json_proto HTTP/1.0 [08:20:10]Method: POST [08:20:10]URL: /json_proto [08:20:10]Method is POST - this is cgi request [08:20:10]url: /json_proto [08:20:10]query_string will be loaded in cgi processing [08:20:10]execute_cgi json_proto POST (null) [08:20:10]execute_cgi path=json_proto method=POST [08:20:10]POST find Content-Length [08:20:10]Host: 172.17.33.3:8080 [08:20:10]Content-Length: 678 [08:20:10]Content-Type: application/json [08:20:10] [08:20:10]POST finish read [08:20:10]Found Content-Length = 678 [08:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:20:10]execute_script... [08: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)347857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:20:10]POST & json_proto [08:20:10]process_json_proto [08:20:10]json parsed OK: [08:20:10]protocol is kg_v1.0 [08:20:10]action value=close_receipt [08:20:10]process_action close_receipt [08:20:10]cmd_close_receipt [08:20:10]MH_GetDate [08:20:10]Write to MH i2c: F0 00 00 9B 25 AF [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 09 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 09 00 9B 25 00 3D E3 1C 66 23 5B 8F 65 CC [08:20:10]GetLastDocTimeStamp 1713168833 [08:20:10]current date 1713169213 [08:20:10]FM_GetShiftState [08:20:10]SAM_PROTO_GetShiftState [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 01 00 [08:20:10]Write to MH i2c: E2 08 00 9C 25 80 13 01 00 00 00 00 00 3E [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 9C 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 32 [08:20:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetShiftState done [08:20:10]FM_GetShiftState done [08:20:10]opened in 1713140468 [08:20:10]opened+sec_in_day 1713226868 [08:20:10]quantity*price = 70048 [08:20:10]sum+1 = 70050 [08:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 15.04.2024 08:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29454 ФПД: 197971209992918 1/tax-web-control/client/api/v1/ticket?date=20240415T082013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29454&fm=197971209992918&tin=02508201610067®Number=0000138879044617&sum=70000 [08:20:11]StoreToDocumentArchive [08:20:11]shift 117 fd 29454 [08:20:11]save to /storage/0117/doc_00029454 [08:20:11]save last doc name /storage/0117/doc_00029454 to /storage/kkm_last_doc_name [08:20:11]save OK [08:20:11]Clear old archive folders... [08:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:11]tlvbuf is B6F7F420 [08:20:11]SAM_PROTO_ClearQueue [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 09 00 00 [08:20:11]Write to MH i2c: E2 08 00 A9 25 80 09 00 00 00 00 00 00 40 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 A9 25 00 90 00 42 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_ClearQueue done [08:20:11]KKMCreateOFDPacket [08:20:11]OFDProtocolAddRootSTLVToBuf [08:20:11]FM_MakeSignedData [08:20:11]FM_MakeSignedData [08:20:11]SAM_PROTO_SignData [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 01 02 [08:20:11]Write to MH i2c: E2 08 00 AA 25 80 0D 01 02 00 00 00 00 48 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 AA 25 00 90 00 43 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=255 [08:20:11]MH_SAM_APDU [08:20: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 30 00 00 00 F4 03 04 00 3D E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 73 00 00 35 04 06 00 B4 [08:20:11]Write to MH i2c: E2 02 01 AB 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 30 00 00 00 F4 03 04 00 3D E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 73 00 00 35 04 06 00 B4 00 00 09 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=10 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 02 02 05 0D C3 A5 BA D6 [08:20:11]Write to MH i2c: E2 0D 00 AC 25 80 0D 02 02 05 00 0D C3 A5 BA D6 00 00 5A [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 03 02 [08:20:11]Write to MH i2c: E2 08 00 AD 25 80 0D 03 02 00 00 00 00 4D [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0B 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0B 00 AD 25 00 73 77 6A 9C A6 97 3F 2A 90 00 E4 [08:20:11]RAPDU: 73 77 6A 9C A6 97 3F 2A 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_SignData done [08:20:11]FM_MakeSignedData done [08:20:11]CreateOFDProtocolMessage [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 11 00 00 [08:20:11]Write to MH i2c: E2 08 00 AE 25 80 11 00 00 00 00 00 00 4D [08:20:11]Write i2c OK [08:20:11]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 AE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [08:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:12]wFMCommunicate OK [08:20:12]CreateOFDProtocolMessage done [08:20:12]OFDSenderStorePacket 29454 [08:20:12]StoreOFDPacket docnum=29454 [08:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8F 89 07 01 1D B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 30 00 00 00 F4 03 04 00 3D E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 73 00 00 35 04 06 00 B4 0D C3 A5 BA D6 73 77 6A 9C A6 97 3F 2A [08:20:12]CheckFolder [08:20:12]dirname=/storage/ofd_packets [08:20:12]CheckFolder done [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00029454 [08:20:12]NVStorageSaveData ofd_packets/00029454 [08:20:12]File name is /storage/ofd_packets/00029454 [08:20:12]Write 301 bytes [08:20:12]NVStorageSaveData done [08:20:12]OFDSenderStorePacket done [08:20:12]KKMCreateOFDPacket done [08:20:12]NVStorageSaveData kkm_last_timestamp [08:20:12]File name is /storage/kkm_last_timestamp [08:20:12]Write 4 bytes [08:20:12]NVStorageSaveData done [08:20:12]ExternCall_PrintAddStr [08:20:12]wPrintStart [08:20:12]Write to MH i2c: 01 00 00 AF 25 D4 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 [08:20:12]MH_I2C_Read... [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 AF 25 00 00 00 00 00 FF 0F E9 [08:20:12]RasterBufferAndPrint [08:20:12]line Счет N : (1)347857 [08:20:12]line ИНН: 02508201610067 [08:20:12]line Контрольно-Кассовый Чек [08:20:12]line ПРОДАЖА [08:20:12]line ТРК (МРК, ГНК) : 13 [08:20:12]line Товар: 2710124130 [08:20:12]line Аи-92-К-5 [08:20:12]line 10.810 * 64.80 [08:20:12]line = 700.49 [08:20:12]line НДС 12% НСП 1% [08:20:12]line > о реализуемом товаре [08:20:12]line ОКРУГЛЕНИЕ: -0.49 [08:20:12]line ИТОГО: 700.00 [08:20:12]line Внесено: 700.00 [08:20:12]line СДАЧА: 0.00 [08:20:12]line НСП 1% : 6.20 [08:20:12]line НДС 12% : 74.39 [08:20:12]line Наличными: 700.00 [08:20:12]line Безнал.: 0.00 [08:20:12]line Место: АЗС № 108 "Партнер Нефть" [08:20:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:20:12]line СНО: Общий режим [08:20:12]line Чек 48 15.04.2024 08:20 [08:20:12]line Смена: 117 ФФД: 1.0 [08:20:12]line ЗНМ: 0300000027 [08:20:12]line РНМ: 0000138879044617 [08:20:12]line Версия ККМ: 001 [08:20:12]line ФМ: 0000000000963154 [08:20:12]line ФД: 29454 [08:20:12]line ФПД: 197971209992918 [08:20:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T082013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29454&fm=197971209992918&tin=02508201610067®Number=0000138879044617&sum=70000 [08:20:12]OFD Sender: Processing packet 29454 [packets to send 8, broken 7] [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00029454 [08:20:12]OFD Sender: To server: pG, [08:20:12]CommunicateWithHost lk.salyk.kg:30040 [08:20:12]ConnectInit lk.salyk.kg [08:20:12]written 0, free lines is 4095 [08:20:12]Connected sock=10 [08:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8F 89 07 01 1D B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 30 00 00 00 F4 03 04 00 3D E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 73 00 00 35 04 06 00 B4 0D C3 A5 BA D6 73 77 6A 9C A6 97 3F 2A [08:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8D 6A 47 00 89 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 39 36 33 31 35 34 10 04 04 00 0E 73 00 00 F4 03 04 00 DF 8D 1C 66 B6 04 01 00 00 B5 E7 7D B5 9C 83 D7 BB [08:20:12]CommunicateWithHost err = 0 [08:20:12]CheckOFDResponse [08:20:12]1017 (14) - 77093643461234 [08:20:12]1041 (16) - 0000000000963154 [08:20:12]1040 (4) - 29454 [08:20:12]1012 (4) - 15.04.2024 02:15 [08:20:12]1206 (1) - 0 [08:20:12]OFD Sender: Remove packet 29454 [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00029454 [08:20:12]NVStorageDeleteData [08:20:12]Write to MH i2c: 01 00 00 D9 25 FE [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 [08:20:12]MH_I2C_Read... [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 D9 25 00 00 00 00 00 B9 0C CA [08:20:12]RasterBufferAndPrint [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]written 0, free lines is 3263 [08:20:12]MH_Cut [08:20:12]Write to MH i2c: D1 01 00 E0 25 01 D7 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 01 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 01 00 E0 25 00 D6 [08:20:12]Write to MH i2c: 01 00 00 E1 25 06 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:13]OFD Sender: No OFD packet to send [08:20:13]*** Cut start [08:20:13]*** Partial cut [08:20:13]*** CUTSNS_PIN = 1 [08:20:13]*** CUTSNS_PIN = 0 [08:20:13]*** Brake cut motor [08:20:14]Read from MH i2c: 01 [08:20:14]MH_I2C_Read... [08:20:14]*** Stop cut motor [08:20:14]*** Cut end [08:20:14]Read from MH i2c: 01 07 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: 01 07 00 E1 25 00 00 00 00 00 FF 0F 1B [08:20:14]process_action close_receipt done [08:20:14]requested_data is exist [08:20:14]produce_requested_data [08:20:14]requested_item fm.sn is exist - process it [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 11 00 00 [08:20:14]Write to MH i2c: E2 08 00 E2 25 80 11 00 00 00 00 00 00 81 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 17 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 17 00 E2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [08:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:14]wFMCommunicate OK [08:20:14]requested_item fd.num is exist - process it [08:20:14]SAM_PROTO_GetFieldsCounters [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 13 00 00 [08:20:14]Write to MH i2c: E2 08 00 E3 25 80 13 00 00 00 00 00 00 84 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 62 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 62 00 E3 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 73 00 00 0E 04 04 00 75 00 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 48 [08:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 73 00 00 0E 04 04 00 75 00 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:20:14]wFMCommunicate OK [08:20:14]SAM_PROTO_GetFieldsCounters done [08:20:14]requested_item shift.num is exist - process it [08:20:14]requested_item shift.opened is exist - process it [08:20:14]req_shift_opened [08:20:14]FM_GetShiftState [08:20:14]SAM_PROTO_GetShiftState [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 13 01 00 [08:20:14]Write to MH i2c: E2 08 00 E4 25 80 13 01 00 00 00 00 00 86 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 0E 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 0E 00 E4 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7A [08:20:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:20:14]wFMCommunicate OK [08:20:14]SAM_PROTO_GetShiftState done [08:20:14]FM_GetShiftState done [08:20:14]req_shift_opened done [08:20:14]requested_item shift.open_date is exist - process it [08:20:14]req_shift_open_date [08:20:14]req_shift_open_date done [08:20:14]produce_requested_data done [08:20:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29454,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:20:14]process_action_free close_receipt [08:20:14]json_value_free [08:20:14]json_value_free done [08:20:14]process_json_proto returns [08:20:14]Send response to host [08:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29454,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:20:14]free response buf [08:20:14]execute_script done [08:20:14]execute_script returns [08:20:14]free content buf [08:20:14]Sock 9.Close socket [08:20:14]Sock 9.Thread stoped [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:48]accept exits with 8 [08:22:48]New connection [08:22:48]New thread 3067112804 created [08:22:48]Thread 3066969444 joined [08:22:48]Waiting for new connection... [08:22:48] Sock 8.Parse request [08:22:48]Sock 8.Check first char [08:22:48]Sock 8.First char is OK [08:22:48]request: POST /json_proto HTTP/1.0 [08:22:48]Method: POST [08:22:48]URL: /json_proto [08:22:48]Method is POST - this is cgi request [08:22:48]url: /json_proto [08:22:48]query_string will be loaded in cgi processing [08:22:48]execute_cgi json_proto POST (null) [08:22:48]execute_cgi path=json_proto method=POST [08:22:48]POST find Content-Length [08:22:48]Host: 172.17.33.3:8080 [08:22:48]Content-Length: 681 [08:22:48]Content-Type: application/json [08:22:48] [08:22:48]POST finish read [08:22:48]Found Content-Length = 681 [08:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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:22:48]execute_script... [08:22: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)347858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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:22:48]POST & json_proto [08:22:48]process_json_proto [08:22:48]json parsed OK: [08:22:48]protocol is kg_v1.0 [08:22:48]action value=close_receipt [08:22:48]process_action close_receipt [08:22:48]cmd_close_receipt [08:22:48]MH_GetDate [08:22:48]Write to MH i2c: F0 00 00 E5 25 F9 [08:22:48]Write i2c OK [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 09 00 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 09 00 E5 25 00 DB E3 1C 66 23 5B 8F 65 B4 [08:22:48]GetLastDocTimeStamp 1713169213 [08:22:48]current date 1713169371 [08:22:48]FM_GetShiftState [08:22:48]SAM_PROTO_GetShiftState [08:22:48]wFMCommunicate request_size=4 [08:22:48]MH_SAM_APDU [08:22:48]CAPDU: 80 13 01 00 [08:22:48]Write to MH i2c: E2 08 00 E6 25 80 13 01 00 00 00 00 00 88 [08:22:48]Write i2c OK [08:22:48]MH_I2C_Read... [08:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:48]Read from MH i2c: E2 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: E2 0E 00 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: E2 0E 00 E6 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7C [08:22:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:22:48]wFMCommunicate OK [08:22:48]SAM_PROTO_GetShiftState done [08:22:48]FM_GetShiftState done [08:22:48]opened in 1713140468 [08:22:48]opened+sec_in_day 1713226868 [08:22:48]quantity*price = 50033 [08:22:48]sum+1 = 50034 [08:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 15.04.2024 08:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29455 ФПД: 214245149612764 1/tax-web-control/client/api/v1/ticket?date=20240415T082252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29455&fm=214245149612764&tin=02508201610067®Number=0000138879044617&sum=50000 [08:22:49]StoreToDocumentArchive [08:22:49]shift 117 fd 29455 [08:22:49]save to /storage/0117/doc_00029455 [08:22:49]save last doc name /storage/0117/doc_00029455 to /storage/kkm_last_doc_name [08:22:49]save OK [08:22:49]Clear old archive folders... [08:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:22:49]tlvbuf is B6DCF940 [08:22:49]SAM_PROTO_ClearQueue [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 09 00 00 [08:22:49]Write to MH i2c: E2 08 00 F3 25 80 09 00 00 00 00 00 00 8A [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 F3 25 00 90 00 8C [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]SAM_PROTO_ClearQueue done [08:22:49]KKMCreateOFDPacket [08:22:49]OFDProtocolAddRootSTLVToBuf [08:22:49]FM_MakeSignedData [08:22:49]FM_MakeSignedData [08:22:49]SAM_PROTO_SignData [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 01 02 [08:22:49]Write to MH i2c: E2 08 00 F4 25 80 0D 01 02 00 00 00 00 92 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 F4 25 00 90 00 8D [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=255 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 73 00 00 35 04 06 00 C2 DA [08:22:49]Write to MH i2c: E2 02 01 F5 25 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 73 00 00 35 04 06 00 C2 DA 00 00 30 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 F5 25 00 90 00 8E [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=9 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 02 02 04 D6 09 9A DC [08:22:49]Write to MH i2c: E2 0C 00 F6 25 80 0D 02 02 04 00 D6 09 9A DC 00 00 F2 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 F6 25 00 90 00 8F [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 03 02 [08:22:49]Write to MH i2c: E2 08 00 F7 25 80 0D 03 02 00 00 00 00 97 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:50]Read from MH i2c: E2 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 0B 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 0B 00 F7 25 00 27 3D B2 5C 7D 84 33 94 90 00 D2 [08:22:50]RAPDU: 27 3D B2 5C 7D 84 33 94 90 00 [08:22:50]wFMCommunicate OK [08:22:50]SAM_PROTO_SignData done [08:22:50]FM_MakeSignedData done [08:22:50]CreateOFDProtocolMessage [08:22:50]wFMCommunicate request_size=4 [08:22:50]MH_SAM_APDU [08:22:50]CAPDU: 80 11 00 00 [08:22:50]Write to MH i2c: E2 08 00 F8 25 80 11 00 00 00 00 00 00 97 [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:50]Read from MH i2c: E2 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 17 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 17 00 F8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [08:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:22:50]wFMCommunicate OK [08:22:50]CreateOFDProtocolMessage done [08:22:50]OFDSenderStorePacket 29455 [08:22:50]StoreOFDPacket docnum=29455 [08:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A3 BF 06 01 52 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 73 00 00 35 04 06 00 C2 DA D6 09 9A DC 27 3D B2 5C 7D 84 33 94 [08:22:50]CheckFolder [08:22:50]dirname=/storage/ofd_packets [08:22:50]CheckFolder done [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00029455 [08:22:50]NVStorageSaveData ofd_packets/00029455 [08:22:50]File name is /storage/ofd_packets/00029455 [08:22:50]Write 300 bytes [08:22:50]NVStorageSaveData done [08:22:50]OFDSenderStorePacket done [08:22:50]KKMCreateOFDPacket done [08:22:50]NVStorageSaveData kkm_last_timestamp [08:22:50]File name is /storage/kkm_last_timestamp [08:22:50]Write 4 bytes [08:22:50]NVStorageSaveData done [08:22:50]ExternCall_PrintAddStr [08:22:50]wPrintStart [08:22:50]Write to MH i2c: 01 00 00 F9 25 1E [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 F9 25 00 00 00 00 00 FF 0F 33 [08:22:50]RasterBufferAndPrint [08:22:50]line Счет N : (1)347858 [08:22:50]line ИНН: 02508201610067 [08:22:50]line Контрольно-Кассовый Чек [08:22:50]line ПРОДАЖА [08:22:50]line ТРК (МРК, ГНК) : 71 [08:22:50]line Товар: 2711129700 [08:22:50]line ГАЗ-К-5 [08:22:50]line 14.980 * 33.40 [08:22:50]line = 500.33 [08:22:50]line НДС 12% НСП 1% [08:22:50]line > о реализуемом товаре [08:22:50]line ОКРУГЛЕНИЕ: -0.33 [08:22:50]line ИТОГО: 500.00 [08:22:50]line Внесено: 500.00 [08:22:50]line СДАЧА: 0.00 [08:22:50]line НСП 1% : 4.43 [08:22:50]line НДС 12% : 53.13 [08:22:50]line Наличными: 500.00 [08:22:50]line Безнал.: 0.00 [08:22:50]line Место: АЗС № 108 "Партнер Нефть" [08:22:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:22:50]line СНО: Общий режим [08:22:50]line Чек 49 15.04.2024 08:22 [08:22:50]line Смена: 117 ФФД: 1.0 [08:22:50]line ЗНМ: 0300000027 [08:22:50]line РНМ: 0000138879044617 [08:22:50]line Версия ККМ: 001 [08:22:50]line ФМ: 0000000000963154 [08:22:50]line ФД: 29455 [08:22:50]line ФПД: 214245149612764 [08:22:50]line 1/tax-web-control/client/api/v1/ticket?date=20240415T082252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29455&fm=214245149612764&tin=02508201610067®Number=0000138879044617&sum=50000 [08:22:50]OFD Sender: Processing packet 29455 [packets to send 8, broken 7] [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00029455 [08:22:50]OFD Sender: To server: pG, [08:22:50]CommunicateWithHost lk.salyk.kg:30040 [08:22:50]ConnectInit lk.salyk.kg [08:22:50]written 0, free lines is 4095 [08:22:50]Connected sock=9 [08:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A3 BF 06 01 52 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC E3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 73 00 00 35 04 06 00 C2 DA D6 09 9A DC 27 3D B2 5C 7D 84 33 94 [08:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C 46 47 00 9C 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 73 00 00 F4 03 04 00 7D 8E 1C 66 B6 04 01 00 00 2B D3 FB 14 55 AA 8B B4 [08:22:50]CommunicateWithHost err = 0 [08:22:50]CheckOFDResponse [08:22:50]1017 (14) - 77093643461234 [08:22:50]1041 (16) - 0000000000963154 [08:22:50]1040 (4) - 29455 [08:22:50]1012 (4) - 15.04.2024 02:18 [08:22:50]1206 (1) - 0 [08:22:50]OFD Sender: Remove packet 29455 [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00029455 [08:22:50]NVStorageDeleteData [08:22:50]Write to MH i2c: 01 00 00 23 26 49 [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 23 26 00 00 00 00 00 B0 0C 0C [08:22:50]RasterBufferAndPrint [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]written 0, free lines is 3253 [08:22:50]MH_Cut [08:22:50]Write to MH i2c: D1 01 00 2A 26 01 22 [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 01 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 01 00 2A 26 00 21 [08:22:50]Write to MH i2c: 01 00 00 2B 26 51 [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:51]OFD Sender: No OFD packet to send [08:22:51]*** Cut start [08:22:51]*** Partial cut [08:22:51]*** CUTSNS_PIN = 1 [08:22:51]*** CUTSNS_PIN = 0 [08:22:51]*** Brake cut motor [08:22:52]Read from MH i2c: 01 [08:22:52]MH_I2C_Read... [08:22:52]*** Stop cut motor [08:22:52]*** Cut end [08:22:52]Read from MH i2c: 01 07 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: 01 07 00 2B 26 00 00 00 00 00 FF 0F 66 [08:22:52]process_action close_receipt done [08:22:52]requested_data is exist [08:22:52]produce_requested_data [08:22:52]requested_item fm.sn is exist - process it [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 11 00 00 [08:22:52]Write to MH i2c: E2 08 00 2C 26 80 11 00 00 00 00 00 00 CC [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 17 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 17 00 2C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [08:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:22:52]wFMCommunicate OK [08:22:52]requested_item fd.num is exist - process it [08:22:52]SAM_PROTO_GetFieldsCounters [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 13 00 00 [08:22:52]Write to MH i2c: E2 08 00 2D 26 80 13 00 00 00 00 00 00 CF [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 62 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 62 00 2D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 73 00 00 0E 04 04 00 75 00 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 97 [08:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 73 00 00 0E 04 04 00 75 00 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:22:52]wFMCommunicate OK [08:22:52]SAM_PROTO_GetFieldsCounters done [08:22:52]requested_item shift.num is exist - process it [08:22:52]requested_item shift.opened is exist - process it [08:22:52]req_shift_opened [08:22:52]FM_GetShiftState [08:22:52]SAM_PROTO_GetShiftState [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 13 01 00 [08:22:52]Write to MH i2c: E2 08 00 2E 26 80 13 01 00 00 00 00 00 D1 [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 2E 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C5 [08:22:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:22:52]wFMCommunicate OK [08:22:52]SAM_PROTO_GetShiftState done [08:22:52]FM_GetShiftState done [08:22:52]req_shift_opened done [08:22:52]requested_item shift.open_date is exist - process it [08:22:52]req_shift_open_date [08:22:52]req_shift_open_date done [08:22:52]produce_requested_data done [08:22:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29455,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:22:52]process_action_free close_receipt [08:22:52]json_value_free [08:22:52]json_value_free done [08:22:52]process_json_proto returns [08:22:52]Send response to host [08:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29455,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:22:52]free response buf [08:22:52]execute_script done [08:22:52]execute_script returns [08:22:52]free content buf [08:22:52]Sock 8.Close socket [08:22:52]Sock 8.Thread stoped [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:45]accept exits with 10 [08:26:45]New connection [08:26:45]New thread 3066969444 created [08:26:45]Thread 3067112804 joined [08:26:45]Waiting for new connection... [08:26:45] Sock 10.Parse request [08:26:45]Sock 10.Check first char [08:26:45]Sock 10.First char is OK [08:26:45]request: POST /json_proto HTTP/1.0 [08:26:45]Method: POST [08:26:45]URL: /json_proto [08:26:45]Method is POST - this is cgi request [08:26:45]url: /json_proto [08:26:45]query_string will be loaded in cgi processing [08:26:45]execute_cgi json_proto POST (null) [08:26:45]execute_cgi path=json_proto method=POST [08:26:45]POST find Content-Length [08:26:45]Host: 172.17.33.3:8080 [08:26:45]Content-Length: 840 [08:26:45]Content-Type: application/json [08:26:45] [08:26:45]POST finish read [08:26:45]Found Content-Length = 840 [08:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:45]execute_script... [08:26: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)347860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:45]POST & json_proto [08:26:45]process_json_proto [08:26:45]json parsed OK: [08:26:45]protocol is kg_v1.0 [08:26:45]action value=close_receipt [08:26:45]process_action close_receipt [08:26:45]cmd_close_receipt [08:26:45]MH_GetDate [08:26:45]Write to MH i2c: F0 00 00 2F 26 44 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: F0 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: F0 09 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: F0 09 00 2F 26 00 C8 E4 1C 66 23 5B 8F 65 ED [08:26:45]GetLastDocTimeStamp 1713169372 [08:26:45]current date 1713169608 [08:26:45]FM_GetShiftState [08:26:45]SAM_PROTO_GetShiftState [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 13 01 00 [08:26:45]Write to MH i2c: E2 08 00 30 26 80 13 01 00 00 00 00 00 D3 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0E 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0E 00 30 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C7 [08:26:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_GetShiftState done [08:26:45]FM_GetShiftState done [08:26:45]opened in 1713140468 [08:26:45]opened+sec_in_day 1713226868 [08:26:45]quantity*price = 50025 [08:26:45]sum+1 = 50027 [08:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 15.04.2024 08:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29456 ФПД: 221687582026663 1/tax-web-control/client/api/v1/ticket?date=20240415T082648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29456&fm=221687582026663&tin=02508201610067®Number=0000138879044617&sum=50026 [08:26:46]StoreToDocumentArchive [08:26:46]shift 117 fd 29456 [08:26:46]save to /storage/0117/doc_00029456 [08:26:46]save last doc name /storage/0117/doc_00029456 to /storage/kkm_last_doc_name [08:26:46]save OK [08:26:46]Clear old archive folders... [08:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:46]tlvbuf is 0028E040 [08:26:46]SAM_PROTO_ClearQueue [08:26:46]wFMCommunicate request_size=4 [08:26:46]MH_SAM_APDU [08:26:46]CAPDU: 80 09 00 00 [08:26:46]Write to MH i2c: E2 08 00 3D 26 80 09 00 00 00 00 00 00 D5 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 3D 26 00 90 00 D7 [08:26:46]RAPDU: 90 00 [08:26:46]wFMCommunicate OK [08:26:46]SAM_PROTO_ClearQueue done [08:26:46]KKMCreateOFDPacket [08:26:46]OFDProtocolAddRootSTLVToBuf [08:26:46]FM_MakeSignedData [08:26:46]FM_MakeSignedData [08:26:46]SAM_PROTO_SignData [08:26:46]wFMCommunicate request_size=4 [08:26:46]MH_SAM_APDU [08:26:46]CAPDU: 80 0D 01 02 [08:26:46]Write to MH i2c: E2 08 00 3E 26 80 0D 01 02 00 00 00 00 DD [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 3E 26 00 90 00 D8 [08:26:46]RAPDU: 90 00 [08:26:46]wFMCommunicate OK [08:26:46]wFMCommunicate request_size=255 [08:26:46]MH_SAM_APDU [08:26: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C8 E4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 73 00 00 35 04 06 00 C9 [08:26:46]Write to MH i2c: E2 02 01 3F 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C8 E4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 73 00 00 35 04 06 00 C9 00 00 EB [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 3F 26 00 90 00 D9 [08:26:46]RAPDU: 90 00 [08:26:46]wFMCommunicate OK [08:26:46]wFMCommunicate request_size=10 [08:26:46]MH_SAM_APDU [08:26:46]CAPDU: 80 0D 02 02 05 9F A9 93 EB A7 [08:26:46]Write to MH i2c: E2 0D 00 40 26 80 0D 02 02 05 00 9F A9 93 EB A7 00 00 57 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 03 00 40 26 00 90 00 DA [08:26:46]RAPDU: 90 00 [08:26:46]wFMCommunicate OK [08:26:46]wFMCommunicate request_size=4 [08:26:46]MH_SAM_APDU [08:26:46]CAPDU: 80 0D 03 02 [08:26:46]Write to MH i2c: E2 08 00 41 26 80 0D 03 02 00 00 00 00 E2 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 0B 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 0B 00 41 26 00 68 5E 0E 34 BE 5C CC AD 90 00 7E [08:26:46]RAPDU: 68 5E 0E 34 BE 5C CC AD 90 00 [08:26:46]wFMCommunicate OK [08:26:46]SAM_PROTO_SignData done [08:26:46]FM_MakeSignedData done [08:26:46]CreateOFDProtocolMessage [08:26:46]wFMCommunicate request_size=4 [08:26:46]MH_SAM_APDU [08:26:46]CAPDU: 80 11 00 00 [08:26:46]Write to MH i2c: E2 08 00 42 26 80 11 00 00 00 00 00 00 E2 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:46]Read from MH i2c: E2 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 17 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: E2 17 00 42 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [08:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:26:46]wFMCommunicate OK [08:26:46]CreateOFDProtocolMessage done [08:26:46]OFDSenderStorePacket 29456 [08:26:46]StoreOFDPacket docnum=29456 [08:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC A2 07 01 4A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C8 E4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 73 00 00 35 04 06 00 C9 9F A9 93 EB A7 68 5E 0E 34 BE 5C CC AD [08:26:46]CheckFolder [08:26:46]dirname=/storage/ofd_packets [08:26:46]CheckFolder done [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00029456 [08:26:46]NVStorageSaveData ofd_packets/00029456 [08:26:46]File name is /storage/ofd_packets/00029456 [08:26:46]Write 301 bytes [08:26:46]NVStorageSaveData done [08:26:46]OFDSenderStorePacket done [08:26:46]KKMCreateOFDPacket done [08:26:46]NVStorageSaveData kkm_last_timestamp [08:26:46]File name is /storage/kkm_last_timestamp [08:26:46]Write 4 bytes [08:26:46]NVStorageSaveData done [08:26:46]ExternCall_PrintAddStr [08:26:46]wPrintStart [08:26:46]Write to MH i2c: 01 00 00 43 26 69 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 43 26 00 00 00 00 00 FF 0F 7E [08:26:46]RasterBufferAndPrint [08:26:46]line Счет N : (1)347860 [08:26:46]line ИНН: 02508201610067 [08:26:46]line Контрольно-Кассовый Чек [08:26:46]line ПРОДАЖА [08:26:46]line ТРК (МРК, ГНК) : 23 [08:26:46]line Товар: 2710124130 [08:26:46]line Аи-92-К-5 [08:26:46]line 7.720 * 64.80 [08:26:46]line = 500.26 [08:26:46]line НДС 12% НСП 1% [08:26:46]line > о реализуемом товаре [08:26:46]line ИТОГО: 500.26 [08:26:46]line НСП 1% : 4.43 [08:26:46]line НДС 12% : 53.12 [08:26:46]line Наличными: 0.00 [08:26:46]line Безнал.: 500.26 [08:26:46]line Место: АЗС № 108 "Партнер Нефть" [08:26:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:26:46]line СНО: Общий режим [08:26:46]line Чек 50 15.04.2024 08:26 [08:26:46]line Смена: 117 ФФД: 1.0 [08:26:46]line ЗНМ: 0300000027 [08:26:46]line РНМ: 0000138879044617 [08:26:46]line Версия ККМ: 001 [08:26:46]line Платежная система: АКБ Кыргызстан [08:26:46]line ФМ: 0000000000963154 [08:26:46]line ФД: 29456 [08:26:46]line ФПД: 221687582026663 [08:26:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T082648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29456&fm=221687582026663&tin=02508201610067®Number=0000138879044617&sum=50026 [08:26:47]OFD Sender: Processing packet 29456 [packets to send 8, broken 7] [08:26:47]ProducePacketName [08:26:47]name=ofd_packets/00029456 [08:26:47]OFD Sender: To server: pG, [08:26:47]CommunicateWithHost lk.salyk.kg:30040 [08:26:47]ConnectInit lk.salyk.kg [08:26:47]written 0, free lines is 4095 [08:26:47]Connected sock=9 [08:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC A2 07 01 4A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C8 E4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 73 00 00 35 04 06 00 C9 9F A9 93 EB A7 68 5E 0E 34 BE 5C CC AD [08:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB 5B 47 00 74 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 39 36 33 31 35 34 10 04 04 00 10 73 00 00 F4 03 04 00 6A 8F 1C 66 B6 04 01 00 00 00 F2 2C EC 44 ED 3E D2 [08:26:47]CommunicateWithHost err = 0 [08:26:47]CheckOFDResponse [08:26:47]1017 (14) - 77093643461234 [08:26:47]1041 (16) - 0000000000963154 [08:26:47]1040 (4) - 29456 [08:26:47]1012 (4) - 15.04.2024 02:22 [08:26:47]1206 (1) - 0 [08:26:47]OFD Sender: Remove packet 29456 [08:26:47]ProducePacketName [08:26:47]name=ofd_packets/00029456 [08:26:47]NVStorageDeleteData [08:26:47]Write to MH i2c: 01 00 00 6C 26 92 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: 01 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: 01 07 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: 01 07 00 6C 26 00 00 00 00 00 D0 0C 75 [08:26:47]RasterBufferAndPrint [08:26:47]line [08:26:47]line [08:26:47]line [08:26:47]line [08:26:47]line [08:26:47]written 0, free lines is 3286 [08:26:47]MH_Cut [08:26:47]Write to MH i2c: D1 01 00 73 26 01 6B [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: D1 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: D1 01 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: D1 01 00 73 26 00 6A [08:26:47]Write to MH i2c: 01 00 00 74 26 9A [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:48]OFD Sender: No OFD packet to send [08:26:48]*** Cut start [08:26:48]*** Partial cut [08:26:48]*** CUTSNS_PIN = 1 [08:26:48]*** CUTSNS_PIN = 0 [08:26:48]*** Brake cut motor [08:26:49]Read from MH i2c: 01 [08:26:49]MH_I2C_Read... [08:26:49]*** Stop cut motor [08:26:49]*** Cut end [08:26:49]Read from MH i2c: 01 07 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 FF 0F AF [08:26:49]process_action close_receipt done [08:26:49]requested_data is exist [08:26:49]produce_requested_data [08:26:49]requested_item fm.sn is exist - process it [08:26:49]wFMCommunicate request_size=4 [08:26:49]MH_SAM_APDU [08:26:49]CAPDU: 80 11 00 00 [08:26:49]Write to MH i2c: E2 08 00 75 26 80 11 00 00 00 00 00 00 15 [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 [08:26:49]MH_I2C_Read... [08:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:49]Read from MH i2c: E2 17 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 17 00 75 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [08:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:26:49]wFMCommunicate OK [08:26:49]requested_item fd.num is exist - process it [08:26:49]SAM_PROTO_GetFieldsCounters [08:26:49]wFMCommunicate request_size=4 [08:26:49]MH_SAM_APDU [08:26:49]CAPDU: 80 13 00 00 [08:26:49]Write to MH i2c: E2 08 00 76 26 80 13 00 00 00 00 00 00 18 [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:49]Read from MH i2c: E2 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 62 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 62 00 76 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 73 00 00 0E 04 04 00 75 00 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 E4 [08:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 73 00 00 0E 04 04 00 75 00 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:26:49]wFMCommunicate OK [08:26:49]SAM_PROTO_GetFieldsCounters done [08:26:49]requested_item shift.num is exist - process it [08:26:49]requested_item shift.opened is exist - process it [08:26:49]req_shift_opened [08:26:49]FM_GetShiftState [08:26:49]SAM_PROTO_GetShiftState [08:26:49]wFMCommunicate request_size=4 [08:26:49]MH_SAM_APDU [08:26:49]CAPDU: 80 13 01 00 [08:26:49]Write to MH i2c: E2 08 00 77 26 80 13 01 00 00 00 00 00 1A [08:26:49]Write i2c OK [08:26:49]MH_I2C_Read... [08:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:49]Read from MH i2c: E2 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 0E 00 [08:26:49]MH_I2C_Read... [08:26:49]Read from MH i2c: E2 0E 00 77 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0E [08:26:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:26:49]wFMCommunicate OK [08:26:49]SAM_PROTO_GetShiftState done [08:26:49]FM_GetShiftState done [08:26:49]req_shift_opened done [08:26:49]requested_item shift.open_date is exist - process it [08:26:49]req_shift_open_date [08:26:49]req_shift_open_date done [08:26:49]produce_requested_data done [08:26:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29456,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:26:49]process_action_free close_receipt [08:26:49]json_value_free [08:26:49]json_value_free done [08:26:49]process_json_proto returns [08:26:49]Send response to host [08:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29456,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:26:49]free response buf [08:26:49]execute_script done [08:26:49]execute_script returns [08:26:49]free content buf [08:26:49]Sock 10.Close socket [08:26:49]Sock 10.Thread stoped [08:26:53]OFD Sender: No OFD packet to send [08:26:54]accept exits with 8 [08:26:54]New connection [08:26:54]New thread 3067112804 created [08:26:54]Thread 3066969444 joined [08:26:54]Waiting for new connection... [08:26:54] Sock 8.Parse request [08:26:54]Sock 8.Check first char [08:26:54]Sock 8.First char is OK [08:26:54]request: POST /json_proto HTTP/1.0 [08:26:54]Method: POST [08:26:54]URL: /json_proto [08:26:54]Method is POST - this is cgi request [08:26:54]url: /json_proto [08:26:54]query_string will be loaded in cgi processing [08:26:54]execute_cgi json_proto POST (null) [08:26:54]execute_cgi path=json_proto method=POST [08:26:54]POST find Content-Length [08:26:54]Host: 172.17.33.3:8080 [08:26:54]Content-Length: 1219 [08:26:54]Content-Type: application/json [08:26:54] [08:26:54]POST finish read [08:26:54]Found Content-Length = 1219 [08:26: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347859\u000A15.04.2024 08:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.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\u000A3859045;3859044;3859043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:54]execute_script... [08:26: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347859\u000A15.04.2024 08:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.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\u000A3859045;3859044;3859043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:54]POST & json_proto [08:26:54]process_json_proto [08:26:54]json parsed OK: [08:26:54]protocol is kg_v1.0 [08:26:54]action value=print_text [08:26:54]process_action print_text [08:26:54]cmd_print_text [08:26:54]ExternCall_PrintAddStr [08:26:54]wPrintStart [08:26:54]Write to MH i2c: 01 00 00 78 26 9E [08:26:54]Write i2c OK [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 07 00 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 FF 0F B3 [08:26:54]RasterBufferAndPrint [08:26:54]line *****ТОВАРНЫЙ ЧЕК***** [08:26:54]line АЗС 108 [08:26:54]line Партнер нефть [08:26:54]line 02508201610067 [08:26:54]line Кассир : Джумагулова Н. [08:26:54]line Счет N : (1)347859 [08:26:54]line 15.04.2024 08:08 [08:26:54]line ПРОДАЖА [08:26:54]line ТРК (МРК, ГНК): 32 [08:26:54]line Вид ГСМ : 2710124130 [08:26:54]line Аи-92-К-5 [08:26:54]line 30.000 x 64.80 [08:26:54]line ИТОГ: 1944.00 [08:26:54]line Тип оплаты: Талоны: Партнер нефть [08:26:54]line 3859045;3859044;3859043 [08:26:54]line ______________________ [08:26:54]line (подпись) [08:26:54]written 0, free lines is 4095 [08:26:54]Write to MH i2c: 01 00 00 8D 26 B3 [08:26:54]Write i2c OK [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 07 00 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 01 0E C9 [08:26:54]RasterBufferAndPrint [08:26:54]line [08:26:54]line [08:26:54]line [08:26:54]line [08:26:54]line [08:26:54]written 0, free lines is 3589 [08:26:54]MH_Cut [08:26:54]Write to MH i2c: D1 01 00 94 26 01 8C [08:26:54]Write i2c OK [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: D1 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: D1 01 00 [08:26:54]MH_I2C_Read... [08:26:54]Read from MH i2c: D1 01 00 94 26 00 8B [08:26:54]Write to MH i2c: 01 00 00 95 26 BB [08:26:54]Write i2c OK [08:26:54]MH_I2C_Read... [08:26:55]*** Cut start [08:26:55]*** Partial cut [08:26:55]*** CUTSNS_PIN = 1 [08:26:55]*** CUTSNS_PIN = 0 [08:26:55]*** Brake cut motor [08:26:55]Read from MH i2c: 01 [08:26:55]MH_I2C_Read... [08:26:55]*** Stop cut motor [08:26:55]*** Cut end [08:26:55]Read from MH i2c: 01 07 00 [08:26:55]MH_I2C_Read... [08:26:55]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [08:26:55]process_action print_text done [08:26:55]requested_data is exist [08:26:55]produce_requested_data [08:26:55]requested_item fm.sn is exist - process it [08:26:55]wFMCommunicate request_size=4 [08:26:55]MH_SAM_APDU [08:26:55]CAPDU: 80 11 00 00 [08:26:55]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [08:26:55]Write i2c OK [08:26:55]MH_I2C_Read... [08:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:55]Read from MH i2c: E2 [08:26:55]MH_I2C_Read... [08:26:55]Read from MH i2c: E2 17 00 [08:26:55]MH_I2C_Read... [08:26:55]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [08:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:26:55]wFMCommunicate OK [08:26:55]requested_item fd.num is exist - process it [08:26:55]SAM_PROTO_GetFieldsCounters [08:26:55]wFMCommunicate request_size=4 [08:26:55]MH_SAM_APDU [08:26:55]CAPDU: 80 13 00 00 [08:26:55]Write to MH i2c: E2 08 00 97 26 80 13 00 00 00 00 00 00 39 [08:26:55]Write i2c OK [08:26:55]MH_I2C_Read... [08:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:56]Read from MH i2c: E2 [08:26:56]MH_I2C_Read... [08:26:56]Read from MH i2c: E2 62 00 [08:26:56]MH_I2C_Read... [08:26:56]Read from MH i2c: E2 62 00 97 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [08:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 73 00 00 0E 04 04 00 75 00 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:26:56]wFMCommunicate OK [08:26:56]SAM_PROTO_GetFieldsCounters done [08:26:56]requested_item shift.num is exist - process it [08:26:56]requested_item shift.opened is exist - process it [08:26:56]req_shift_opened [08:26:56]FM_GetShiftState [08:26:56]SAM_PROTO_GetShiftState [08:26:56]wFMCommunicate request_size=4 [08:26:56]MH_SAM_APDU [08:26:56]CAPDU: 80 13 01 00 [08:26:56]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [08:26:56]Write i2c OK [08:26:56]MH_I2C_Read... [08:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:56]Read from MH i2c: E2 [08:26:56]MH_I2C_Read... [08:26:56]Read from MH i2c: E2 0E 00 [08:26:56]MH_I2C_Read... [08:26:56]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2F [08:26:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:26:56]wFMCommunicate OK [08:26:56]SAM_PROTO_GetShiftState done [08:26:56]FM_GetShiftState done [08:26:56]req_shift_opened done [08:26:56]requested_item shift.open_date is exist - process it [08:26:56]req_shift_open_date [08:26:56]req_shift_open_date done [08:26:56]produce_requested_data done [08:26:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29456,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:26:56]process_action_free print_text [08:26:56]json_value_free [08:26:56]json_value_free done [08:26:56]process_json_proto returns [08:26:56]Send response to host [08:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29456,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:26:56]free response buf [08:26:56]execute_script done [08:26:56]execute_script returns [08:26:56]free content buf [08:26:56]Sock 8.Close socket [08:26:56]Sock 8.Thread stoped [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:10]accept exits with 9 [08:28:10]New connection [08:28:10]New thread 3066969444 created [08:28:10]Thread 3067112804 joined [08:28:10]Waiting for new connection... [08:28:10] Sock 9.Parse request [08:28:10]Sock 9.Check first char [08:28:10]Sock 9.First char is OK [08:28:10]request: POST /json_proto HTTP/1.0 [08:28:10]Method: POST [08:28:10]URL: /json_proto [08:28:10]Method is POST - this is cgi request [08:28:10]url: /json_proto [08:28:10]query_string will be loaded in cgi processing [08:28:10]execute_cgi json_proto POST (null) [08:28:10]execute_cgi path=json_proto method=POST [08:28:10]POST find Content-Length [08:28:10]Host: 172.17.33.3:8080 [08:28:10]Content-Length: 682 [08:28:10]Content-Type: application/json [08:28:10] [08:28:10]POST finish read [08:28:10]Found Content-Length = 682 [08:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:28:10]execute_script... [08: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)347861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:28:10]POST & json_proto [08:28:10]process_json_proto [08:28:10]json parsed OK: [08:28:10]protocol is kg_v1.0 [08:28:10]action value=close_receipt [08:28:10]process_action close_receipt [08:28:10]cmd_close_receipt [08:28:10]MH_GetDate [08:28:10]Write to MH i2c: F0 00 00 99 26 AE [08:28:10]Write i2c OK [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 09 00 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: F0 09 00 99 26 00 1E E5 1C 66 23 5B 8F 65 AE [08:28:10]GetLastDocTimeStamp 1713169608 [08:28:10]current date 1713169694 [08:28:10]FM_GetShiftState [08:28:10]SAM_PROTO_GetShiftState [08:28:10]wFMCommunicate request_size=4 [08:28:10]MH_SAM_APDU [08:28:10]CAPDU: 80 13 01 00 [08:28:10]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [08:28:10]Write i2c OK [08:28:10]MH_I2C_Read... [08:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:10]Read from MH i2c: E2 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 0E 00 [08:28:10]MH_I2C_Read... [08:28:10]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [08:28:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:28:10]wFMCommunicate OK [08:28:10]SAM_PROTO_GetShiftState done [08:28:10]FM_GetShiftState done [08:28:10]opened in 1713140468 [08:28:10]opened+sec_in_day 1713226868 [08:28:10]quantity*price = 100018 [08:28:10]sum+1 = 100020 [08:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 15.04.2024 08:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29457 ФПД: 96480349848134 1/tax-web-control/client/api/v1/ticket?date=20240415T082814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29457&fm=96480349848134&tin=02508201610067®Number=0000138879044617&sum=100000 [08:28:11]StoreToDocumentArchive [08:28:11]shift 117 fd 29457 [08:28:11]save to /storage/0117/doc_00029457 [08:28:11]save last doc name /storage/0117/doc_00029457 to /storage/kkm_last_doc_name [08:28:11]save OK [08:28:11]Clear old archive folders... [08:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:11]tlvbuf is B6F7C6C0 [08:28:11]SAM_PROTO_ClearQueue [08:28:11]wFMCommunicate request_size=4 [08:28:11]MH_SAM_APDU [08:28:11]CAPDU: 80 09 00 00 [08:28:11]Write to MH i2c: E2 08 00 A7 26 80 09 00 00 00 00 00 00 3F [08:28:11]Write i2c OK [08:28:11]MH_I2C_Read... [08:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:11]Read from MH i2c: E2 [08:28:11]MH_I2C_Read... [08:28:11]Read from MH i2c: E2 03 00 [08:28:11]MH_I2C_Read... [08:28:11]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [08:28:11]RAPDU: 90 00 [08:28:11]wFMCommunicate OK [08:28:11]SAM_PROTO_ClearQueue done [08:28:11]KKMCreateOFDPacket [08:28:11]OFDProtocolAddRootSTLVToBuf [08:28:11]FM_MakeSignedData [08:28:11]FM_MakeSignedData [08:28:11]SAM_PROTO_SignData [08:28:11]wFMCommunicate request_size=4 [08:28:11]MH_SAM_APDU [08:28:11]CAPDU: 80 0D 01 02 [08:28:11]Write to MH i2c: E2 08 00 A8 26 80 0D 01 02 00 00 00 00 47 [08:28:11]Write i2c OK [08:28:11]MH_I2C_Read... [08:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:11]Read from MH i2c: E2 [08:28:11]MH_I2C_Read... [08:28:11]Read from MH i2c: E2 03 00 [08:28:11]MH_I2C_Read... [08:28:11]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [08:28:11]RAPDU: 90 00 [08:28:11]wFMCommunicate OK [08:28:11]wFMCommunicate request_size=255 [08:28:11]MH_SAM_APDU [08: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 73 00 00 35 04 06 00 57 [08:28:11]Write to MH i2c: E2 02 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 73 00 00 35 04 06 00 57 00 00 83 [08:28:11]Write i2c OK [08:28:11]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]wFMCommunicate request_size=10 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 02 02 05 BF 94 FB 02 46 [08:28:12]Write to MH i2c: E2 0D 00 AA 26 80 0D 02 02 05 00 BF 94 FB 02 46 00 00 EA [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [08:28:12]RAPDU: 90 00 [08:28:12]wFMCommunicate OK [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 0D 03 02 [08:28:12]Write to MH i2c: E2 08 00 AB 26 80 0D 03 02 00 00 00 00 4C [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 0B 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 0B 00 AB 26 00 BB 4D 44 FF 86 FC EC 6E 90 00 74 [08:28:12]RAPDU: BB 4D 44 FF 86 FC EC 6E 90 00 [08:28:12]wFMCommunicate OK [08:28:12]SAM_PROTO_SignData done [08:28:12]FM_MakeSignedData done [08:28:12]CreateOFDProtocolMessage [08:28:12]wFMCommunicate request_size=4 [08:28:12]MH_SAM_APDU [08:28:12]CAPDU: 80 11 00 00 [08:28:12]Write to MH i2c: E2 08 00 AC 26 80 11 00 00 00 00 00 00 4C [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:12]Read from MH i2c: E2 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 17 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: E2 17 00 AC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [08:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:28:12]wFMCommunicate OK [08:28:12]CreateOFDProtocolMessage done [08:28:12]OFDSenderStorePacket 29457 [08:28:12]StoreOFDPacket docnum=29457 [08:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 47 07 01 0B B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 73 00 00 35 04 06 00 57 BF 94 FB 02 46 BB 4D 44 FF 86 FC EC 6E [08:28:12]CheckFolder [08:28:12]dirname=/storage/ofd_packets [08:28:12]CheckFolder done [08:28:12]ProducePacketName [08:28:12]name=ofd_packets/00029457 [08:28:12]NVStorageSaveData ofd_packets/00029457 [08:28:12]File name is /storage/ofd_packets/00029457 [08:28:12]Write 301 bytes [08:28:12]NVStorageSaveData done [08:28:12]OFDSenderStorePacket done [08:28:12]KKMCreateOFDPacket done [08:28:12]NVStorageSaveData kkm_last_timestamp [08:28:12]File name is /storage/kkm_last_timestamp [08:28:12]Write 4 bytes [08:28:12]NVStorageSaveData done [08:28:12]ExternCall_PrintAddStr [08:28:12]wPrintStart [08:28:12]Write to MH i2c: 01 00 00 AD 26 D3 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [08:28:12]RasterBufferAndPrint [08:28:12]line Счет N : (1)347861 [08:28:12]line ИНН: 02508201610067 [08:28:12]line Контрольно-Кассовый Чек [08:28:12]line ПРОДАЖА [08:28:12]line ТРК (МРК, ГНК) : 33 [08:28:12]line Товар: 2710124500 [08:28:12]line Аи-95-К-5 [08:28:12]line 13.720 * 72.90 [08:28:12]line = 1000.19 [08:28:12]line НДС 12% НСП 1% [08:28:12]line > о реализуемом товаре [08:28:12]line ОКРУГЛЕНИЕ: -0.19 [08:28:12]line ИТОГО: 1000.00 [08:28:12]line Внесено: 1000.00 [08:28:12]line СДАЧА: 0.00 [08:28:12]line НСП 1% : 8.85 [08:28:12]line НДС 12% : 106.21 [08:28:12]line Наличными: 1000.00 [08:28:12]line Безнал.: 0.00 [08:28:12]line Место: АЗС № 108 "Партнер Нефть" [08:28:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:28:12]line СНО: Общий режим [08:28:12]line Чек 51 15.04.2024 08:28 [08:28:12]line Смена: 117 ФФД: 1.0 [08:28:12]line ЗНМ: 0300000027 [08:28:12]line РНМ: 0000138879044617 [08:28:12]line Версия ККМ: 001 [08:28:12]line ФМ: 0000000000963154 [08:28:12]line ФД: 29457 [08:28:12]line ФПД: 96480349848134 [08:28:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T082814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29457&fm=96480349848134&tin=02508201610067®Number=0000138879044617&sum=100000 [08:28:12]OFD Sender: Processing packet 29457 [packets to send 8, broken 7] [08:28:12]ProducePacketName [08:28:12]name=ofd_packets/00029457 [08:28:12]OFD Sender: To server: pG, [08:28:12]CommunicateWithHost lk.salyk.kg:30040 [08:28:12]ConnectInit lk.salyk.kg [08:28:12]written 0, free lines is 4095 [08:28:12]Connected sock=10 [08:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 47 07 01 0B B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 73 00 00 35 04 06 00 57 BF 94 FB 02 46 BB 4D 44 FF 86 FC EC 6E [08:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 E7 47 00 68 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 73 00 00 F4 03 04 00 BF 8F 1C 66 B6 04 01 00 00 2A E2 CE E8 06 C5 B8 C0 [08:28:12]CommunicateWithHost err = 0 [08:28:12]CheckOFDResponse [08:28:12]1017 (14) - 77093643461234 [08:28:12]1041 (16) - 0000000000963154 [08:28:12]1040 (4) - 29457 [08:28:12]1012 (4) - 15.04.2024 02:23 [08:28:12]1206 (1) - 0 [08:28:12]OFD Sender: Remove packet 29457 [08:28:12]ProducePacketName [08:28:12]name=ofd_packets/00029457 [08:28:12]NVStorageDeleteData [08:28:12]Write to MH i2c: 01 00 00 D7 26 FD [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: 01 07 00 D7 26 00 00 00 00 00 BB 0C CB [08:28:12]RasterBufferAndPrint [08:28:12]line [08:28:12]line [08:28:12]line [08:28:12]line [08:28:12]line [08:28:12]written 0, free lines is 3263 [08:28:12]MH_Cut [08:28:12]Write to MH i2c: D1 01 00 DE 26 01 D6 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: D1 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: D1 01 00 [08:28:12]MH_I2C_Read... [08:28:12]Read from MH i2c: D1 01 00 DE 26 00 D5 [08:28:12]Write to MH i2c: 01 00 00 DF 26 05 [08:28:12]Write i2c OK [08:28:12]MH_I2C_Read... [08:28:13]OFD Sender: No OFD packet to send [08:28:13]*** Cut start [08:28:13]*** Partial cut [08:28:13]*** CUTSNS_PIN = 1 [08:28:13]*** CUTSNS_PIN = 0 [08:28:14]*** Brake cut motor [08:28:14]Read from MH i2c: 01 [08:28:14]MH_I2C_Read... [08:28:14]*** Stop cut motor [08:28:14]*** Cut end [08:28:14]Read from MH i2c: 01 07 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [08:28:14]process_action close_receipt done [08:28:14]requested_data is exist [08:28:14]produce_requested_data [08:28:14]requested_item fm.sn is exist - process it [08:28:14]wFMCommunicate request_size=4 [08:28:14]MH_SAM_APDU [08:28:14]CAPDU: 80 11 00 00 [08:28:14]Write to MH i2c: E2 08 00 E0 26 80 11 00 00 00 00 00 00 80 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:14]Read from MH i2c: E2 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 17 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 17 00 E0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [08:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:28:14]wFMCommunicate OK [08:28:14]requested_item fd.num is exist - process it [08:28:14]SAM_PROTO_GetFieldsCounters [08:28:14]wFMCommunicate request_size=4 [08:28:14]MH_SAM_APDU [08:28:14]CAPDU: 80 13 00 00 [08:28:14]Write to MH i2c: E2 08 00 E1 26 80 13 00 00 00 00 00 00 83 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:14]Read from MH i2c: E2 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 62 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 62 00 E1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 73 00 00 0E 04 04 00 75 00 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 53 [08:28:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 73 00 00 0E 04 04 00 75 00 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:28:14]wFMCommunicate OK [08:28:14]SAM_PROTO_GetFieldsCounters done [08:28:14]requested_item shift.num is exist - process it [08:28:14]requested_item shift.opened is exist - process it [08:28:14]req_shift_opened [08:28:14]FM_GetShiftState [08:28:14]SAM_PROTO_GetShiftState [08:28:14]wFMCommunicate request_size=4 [08:28:14]MH_SAM_APDU [08:28:14]CAPDU: 80 13 01 00 [08:28:14]Write to MH i2c: E2 08 00 E2 26 80 13 01 00 00 00 00 00 85 [08:28:14]Write i2c OK [08:28:14]MH_I2C_Read... [08:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:14]Read from MH i2c: E2 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 0E 00 [08:28:14]MH_I2C_Read... [08:28:14]Read from MH i2c: E2 0E 00 E2 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 79 [08:28:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:28:14]wFMCommunicate OK [08:28:14]SAM_PROTO_GetShiftState done [08:28:14]FM_GetShiftState done [08:28:14]req_shift_opened done [08:28:14]requested_item shift.open_date is exist - process it [08:28:14]req_shift_open_date [08:28:14]req_shift_open_date done [08:28:14]produce_requested_data done [08:28:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29457,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:28:14]process_action_free close_receipt [08:28:14]json_value_free [08:28:14]json_value_free done [08:28:14]process_json_proto returns [08:28:14]Send response to host [08:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29457,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:28:14]free response buf [08:28:14]execute_script done [08:28:14]execute_script returns [08:28:14]free content buf [08:28:14]Sock 9.Close socket [08:28:14]Sock 9.Thread stoped [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:39]accept exits with 8 [08:31:39]New connection [08:31:39]New thread 3067112804 created [08:31:39]Thread 3066969444 joined [08:31:39]Waiting for new connection... [08:31:39] Sock 8.Parse request [08:31:39]Sock 8.Check first char [08:31:39]Sock 8.First char is OK [08:31:39]request: POST /json_proto HTTP/1.0 [08:31:39]Method: POST [08:31:39]URL: /json_proto [08:31:39]Method is POST - this is cgi request [08:31:39]url: /json_proto [08:31:39]query_string will be loaded in cgi processing [08:31:39]execute_cgi json_proto POST (null) [08:31:39]execute_cgi path=json_proto method=POST [08:31:39]POST find Content-Length [08:31:39]Host: 172.17.33.3:8080 [08:31:39]Content-Length: 682 [08:31:39]Content-Type: application/json [08:31:39] [08:31:39]POST finish read [08:31:39]Found Content-Length = 682 [08:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "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" ] } } [08:31:39]execute_script... [08:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "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" ] } } [08:31:39]POST & json_proto [08:31:39]process_json_proto [08:31:39]json parsed OK: [08:31:39]protocol is kg_v1.0 [08:31:39]action value=close_receipt [08:31:39]process_action close_receipt [08:31:39]cmd_close_receipt [08:31:39]MH_GetDate [08:31:39]Write to MH i2c: F0 00 00 E3 26 F8 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 E3 26 00 EE E5 1C 66 23 5B 8F 65 C8 [08:31:39]GetLastDocTimeStamp 1713169694 [08:31:39]current date 1713169902 [08:31:39]FM_GetShiftState [08:31:39]SAM_PROTO_GetShiftState [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 01 00 [08:31:39]Write to MH i2c: E2 08 00 E4 26 80 13 01 00 00 00 00 00 87 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 E4 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7B [08:31:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetShiftState done [08:31:39]FM_GetShiftState done [08:31:39]opened in 1713140468 [08:31:39]opened+sec_in_day 1713226868 [08:31:39]quantity*price = 150012 [08:31:39]sum+1 = 150013 [08:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 15.04.2024 08:31 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29458 ФПД: 140575588740710 1/tax-web-control/client/api/v1/ticket?date=20240415T083142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29458&fm=140575588740710&tin=02508201610067®Number=0000138879044617&sum=150000 [08:31:40]StoreToDocumentArchive [08:31:40]shift 117 fd 29458 [08:31:40]save to /storage/0117/doc_00029458 [08:31:40]save last doc name /storage/0117/doc_00029458 to /storage/kkm_last_doc_name [08:31:40]save OK [08:31:40]Clear old archive folders... [08:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:40]tlvbuf is B6DCF4A0 [08:31:40]SAM_PROTO_ClearQueue [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 09 00 00 [08:31:40]Write to MH i2c: E2 08 00 F1 26 80 09 00 00 00 00 00 00 89 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_ClearQueue done [08:31:40]KKMCreateOFDPacket [08:31:40]OFDProtocolAddRootSTLVToBuf [08:31:40]FM_MakeSignedData [08:31:40]FM_MakeSignedData [08:31:40]SAM_PROTO_SignData [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 01 02 [08:31:40]Write to MH i2c: E2 08 00 F2 26 80 0D 01 02 00 00 00 00 91 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=255 [08:31:40]MH_SAM_APDU [08:31: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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 34 00 00 00 F4 03 04 00 EE E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 73 00 00 35 04 06 00 7F [08:31:40]Write to MH i2c: E2 02 01 F3 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 34 00 00 00 F4 03 04 00 EE E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 73 00 00 35 04 06 00 7F 00 00 54 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=10 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 02 02 05 DA 4E 07 EE 66 [08:31:40]Write to MH i2c: E2 0D 00 F4 26 80 0D 02 02 05 00 DA 4E 07 EE 66 00 00 21 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 03 02 [08:31:40]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0B 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0B 00 F5 26 00 C2 44 AD 9A D9 70 BF 16 90 00 02 [08:31:40]RAPDU: C2 44 AD 9A D9 70 BF 16 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_SignData done [08:31:40]FM_MakeSignedData done [08:31:40]CreateOFDProtocolMessage [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 11 00 00 [08:31:40]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [08:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:40]wFMCommunicate OK [08:31:40]CreateOFDProtocolMessage done [08:31:40]OFDSenderStorePacket 29458 [08:31:40]StoreOFDPacket docnum=29458 [08:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D4 FC 07 01 FA 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 34 00 00 00 F4 03 04 00 EE E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 73 00 00 35 04 06 00 7F DA 4E 07 EE 66 C2 44 AD 9A D9 70 BF 16 [08:31:40]CheckFolder [08:31:40]dirname=/storage/ofd_packets [08:31:40]CheckFolder done [08:31:40]ProducePacketName [08:31:40]name=ofd_packets/00029458 [08:31:40]NVStorageSaveData ofd_packets/00029458 [08:31:40]File name is /storage/ofd_packets/00029458 [08:31:40]Write 301 bytes [08:31:40]NVStorageSaveData done [08:31:40]OFDSenderStorePacket done [08:31:40]KKMCreateOFDPacket done [08:31:40]NVStorageSaveData kkm_last_timestamp [08:31:40]File name is /storage/kkm_last_timestamp [08:31:40]Write 4 bytes [08:31:40]NVStorageSaveData done [08:31:40]ExternCall_PrintAddStr [08:31:40]wPrintStart [08:31:40]Write to MH i2c: 01 00 00 F7 26 1D [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: 01 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: 01 07 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [08:31:40]RasterBufferAndPrint [08:31:40]line Счет N : (1)347863 [08:31:40]line ИНН: 02508201610067 [08:31:40]line Контрольно-Кассовый Чек [08:31:40]line ПРОДАЖА [08:31:40]line ТРК (МРК, ГНК) : 42 [08:31:40]line Товар: 2710124130 [08:31:40]line Аи-92-К-5 [08:31:40]line 23.150 * 64.80 [08:31:40]line = 1500.12 [08:31:40]line НДС 12% НСП 1% [08:31:40]line > о реализуемом товаре [08:31:40]line ОКРУГЛЕНИЕ: -0.12 [08:31:40]line ИТОГО: 1500.00 [08:31:40]line Внесено: 1500.00 [08:31:40]line СДАЧА: 0.00 [08:31:40]line НСП 1% : 13.27 [08:31:40]line НДС 12% : 159.30 [08:31:40]line Наличными: 1500.00 [08:31:40]line Безнал.: 0.00 [08:31:40]line Место: АЗС № 108 "Партнер Нефть" [08:31:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:31:40]line СНО: Общий режим [08:31:40]line Чек 52 15.04.2024 08:31 [08:31:40]line Смена: 117 ФФД: 1.0 [08:31:40]line ЗНМ: 0300000027 [08:31:40]line РНМ: 0000138879044617 [08:31:40]line Версия ККМ: 001 [08:31:40]line ФМ: 0000000000963154 [08:31:40]line ФД: 29458 [08:31:40]line ФПД: 140575588740710 [08:31:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T083142&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29458&fm=140575588740710&tin=02508201610067®Number=0000138879044617&sum=150000 [08:31:41]OFD Sender: Processing packet 29458 [packets to send 8, broken 7] [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00029458 [08:31:41]OFD Sender: To server: pG, [08:31:41]CommunicateWithHost lk.salyk.kg:30040 [08:31:41]ConnectInit lk.salyk.kg [08:31:41]written 0, free lines is 4095 [08:31:41]Connected sock=10 [08:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D4 FC 07 01 FA 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 34 00 00 00 F4 03 04 00 EE E5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 73 00 00 35 04 06 00 7F DA 4E 07 EE 66 C2 44 AD 9A D9 70 BF 16 [08:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E3 A1 47 00 17 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 39 36 33 31 35 34 10 04 04 00 12 73 00 00 F4 03 04 00 90 90 1C 66 B6 04 01 00 00 71 C3 B6 32 EB 81 25 5E [08:31:41]CommunicateWithHost err = 0 [08:31:41]CheckOFDResponse [08:31:41]1017 (14) - 77093643461234 [08:31:41]1041 (16) - 0000000000963154 [08:31:41]1040 (4) - 29458 [08:31:41]1012 (4) - 15.04.2024 02:27 [08:31:41]1206 (1) - 0 [08:31:41]OFD Sender: Remove packet 29458 [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00029458 [08:31:41]NVStorageDeleteData [08:31:41]Write to MH i2c: 01 00 00 21 27 48 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 21 27 00 00 00 00 00 C8 0C 23 [08:31:41]RasterBufferAndPrint [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]written 0, free lines is 3277 [08:31:41]MH_Cut [08:31:41]Write to MH i2c: D1 01 00 28 27 01 21 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 28 27 00 20 [08:31:41]Write to MH i2c: 01 00 00 29 27 50 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:42]OFD Sender: No OFD packet to send [08:31:42]*** Cut start [08:31:42]*** Partial cut [08:31:42]*** CUTSNS_PIN = 1 [08:31:42]*** CUTSNS_PIN = 0 [08:31:42]*** Brake cut motor [08:31:43]Read from MH i2c: 01 [08:31:43]MH_I2C_Read... [08:31:43]*** Stop cut motor [08:31:43]*** Cut end [08:31:43]Read from MH i2c: 01 07 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: 01 07 00 29 27 00 00 00 00 00 FF 0F 65 [08:31:43]process_action close_receipt done [08:31:43]requested_data is exist [08:31:43]produce_requested_data [08:31:43]requested_item fm.sn is exist - process it [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 11 00 00 [08:31:43]Write to MH i2c: E2 08 00 2A 27 80 11 00 00 00 00 00 00 CB [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 2A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [08:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:43]wFMCommunicate OK [08:31:43]requested_item fd.num is exist - process it [08:31:43]SAM_PROTO_GetFieldsCounters [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 00 00 [08:31:43]Write to MH i2c: E2 08 00 2B 27 80 13 00 00 00 00 00 00 CE [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 2B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 73 00 00 0E 04 04 00 75 00 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 A2 [08:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 73 00 00 0E 04 04 00 75 00 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:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetFieldsCounters done [08:31:43]requested_item shift.num is exist - process it [08:31:43]requested_item shift.opened is exist - process it [08:31:43]req_shift_opened [08:31:43]FM_GetShiftState [08:31:43]SAM_PROTO_GetShiftState [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 01 00 [08:31:43]Write to MH i2c: E2 08 00 2C 27 80 13 01 00 00 00 00 00 D0 [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 2C 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C4 [08:31:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetShiftState done [08:31:43]FM_GetShiftState done [08:31:43]req_shift_opened done [08:31:43]requested_item shift.open_date is exist - process it [08:31:43]req_shift_open_date [08:31:43]req_shift_open_date done [08:31:43]produce_requested_data done [08:31:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29458,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:31:43]process_action_free close_receipt [08:31:43]json_value_free [08:31:43]json_value_free done [08:31:43]process_json_proto returns [08:31:43]Send response to host [08:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29458,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:31:43]free response buf [08:31:43]execute_script done [08:31:43]execute_script returns [08:31:43]free content buf [08:31:43]Sock 8.Close socket [08:31:43]Sock 8.Thread stoped [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:07]accept exits with 9 [08:32:07]New connection [08:32:07]New thread 3066969444 created [08:32:07]Thread 3067112804 joined [08:32:07]Waiting for new connection... [08:32:07] Sock 9.Parse request [08:32:07]Sock 9.Check first char [08:32:07]Sock 9.First char is OK [08:32:07]request: POST /json_proto HTTP/1.0 [08:32:07]Method: POST [08:32:07]URL: /json_proto [08:32:07]Method is POST - this is cgi request [08:32:07]url: /json_proto [08:32:07]query_string will be loaded in cgi processing [08:32:07]execute_cgi json_proto POST (null) [08:32:07]execute_cgi path=json_proto method=POST [08:32:07]POST find Content-Length [08:32:07]Host: 172.17.33.3:8080 [08:32:07]Content-Length: 840 [08:32:07]Content-Type: application/json [08:32:07] [08:32:07]POST finish read [08:32:07]Found Content-Length = 840 [08:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:07]execute_script... [08: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)347862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:07]POST & json_proto [08:32:07]process_json_proto [08:32:07]json parsed OK: [08:32:07]protocol is kg_v1.0 [08:32:07]action value=close_receipt [08:32:07]process_action close_receipt [08:32:07]cmd_close_receipt [08:32:07]MH_GetDate [08:32:07]Write to MH i2c: F0 00 00 2D 27 43 [08:32:07]Write i2c OK [08:32:07]MH_I2C_Read... [08:32:07]Read from MH i2c: F0 [08:32:07]MH_I2C_Read... [08:32:07]Read from MH i2c: F0 09 00 [08:32:07]MH_I2C_Read... [08:32:07]Read from MH i2c: F0 09 00 2D 27 00 0B E6 1C 66 23 5B 8F 65 31 [08:32:07]GetLastDocTimeStamp 1713169902 [08:32:07]current date 1713169931 [08:32:07]FM_GetShiftState [08:32:07]SAM_PROTO_GetShiftState [08:32:07]wFMCommunicate request_size=4 [08:32:07]MH_SAM_APDU [08:32:07]CAPDU: 80 13 01 00 [08:32:07]Write to MH i2c: E2 08 00 2E 27 80 13 01 00 00 00 00 00 D2 [08:32:07]Write i2c OK [08:32:07]MH_I2C_Read... [08:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:07]Read from MH i2c: E2 [08:32:07]MH_I2C_Read... [08:32:07]Read from MH i2c: E2 0E 00 [08:32:07]MH_I2C_Read... [08:32:07]Read from MH i2c: E2 0E 00 2E 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [08:32:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:32:07]wFMCommunicate OK [08:32:07]SAM_PROTO_GetShiftState done [08:32:07]FM_GetShiftState done [08:32:07]opened in 1713140468 [08:32:07]opened+sec_in_day 1713226868 [08:32:07]quantity*price = 50025 [08:32:07]sum+1 = 50027 [08:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 15.04.2024 08:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29459 ФПД: 260080210165574 1/tax-web-control/client/api/v1/ticket?date=20240415T083211&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29459&fm=260080210165574&tin=02508201610067®Number=0000138879044617&sum=50026 [08:32:08]StoreToDocumentArchive [08:32:08]shift 117 fd 29459 [08:32:08]save to /storage/0117/doc_00029459 [08:32:08]save last doc name /storage/0117/doc_00029459 to /storage/kkm_last_doc_name [08:32:08]save OK [08:32:08]Clear old archive folders... [08:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:08]tlvbuf is B6ECF6E0 [08:32:08]SAM_PROTO_ClearQueue [08:32:08]wFMCommunicate request_size=4 [08:32:08]MH_SAM_APDU [08:32:08]CAPDU: 80 09 00 00 [08:32:08]Write to MH i2c: E2 08 00 3B 27 80 09 00 00 00 00 00 00 D4 [08:32:08]Write i2c OK [08:32:08]MH_I2C_Read... [08:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:08]Read from MH i2c: E2 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 03 00 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [08:32:08]RAPDU: 90 00 [08:32:08]wFMCommunicate OK [08:32:08]SAM_PROTO_ClearQueue done [08:32:08]KKMCreateOFDPacket [08:32:08]OFDProtocolAddRootSTLVToBuf [08:32:08]FM_MakeSignedData [08:32:08]FM_MakeSignedData [08:32:08]SAM_PROTO_SignData [08:32:08]wFMCommunicate request_size=4 [08:32:08]MH_SAM_APDU [08:32:08]CAPDU: 80 0D 01 02 [08:32:08]Write to MH i2c: E2 08 00 3C 27 80 0D 01 02 00 00 00 00 DC [08:32:08]Write i2c OK [08:32:08]MH_I2C_Read... [08:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:08]Read from MH i2c: E2 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 03 00 [08:32:08]MH_I2C_Read... [08:32:08]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [08:32:08]RAPDU: 90 00 [08:32:08]wFMCommunicate OK [08:32:08]wFMCommunicate request_size=255 [08:32:08]MH_SAM_APDU [08: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 0B E6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 73 00 00 35 04 06 00 EC [08:32:08]Write to MH i2c: E2 02 01 3D 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 0B E6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 73 00 00 35 04 06 00 EC 00 00 58 [08:32:08]Write i2c OK [08:32:08]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]wFMCommunicate request_size=10 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 0D 02 02 05 8A A4 8A 3F 46 [08:32:09]Write to MH i2c: E2 0D 00 3E 27 80 0D 02 02 05 00 8A A4 8A 3F 46 00 00 26 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [08:32:09]RAPDU: 90 00 [08:32:09]wFMCommunicate OK [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 0D 03 02 [08:32:09]Write to MH i2c: E2 08 00 3F 27 80 0D 03 02 00 00 00 00 E1 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 0B 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 0B 00 3F 27 00 E6 5C 74 72 E5 5F D9 D6 90 00 FD [08:32:09]RAPDU: E6 5C 74 72 E5 5F D9 D6 90 00 [08:32:09]wFMCommunicate OK [08:32:09]SAM_PROTO_SignData done [08:32:09]FM_MakeSignedData done [08:32:09]CreateOFDProtocolMessage [08:32:09]wFMCommunicate request_size=4 [08:32:09]MH_SAM_APDU [08:32:09]CAPDU: 80 11 00 00 [08:32:09]Write to MH i2c: E2 08 00 40 27 80 11 00 00 00 00 00 00 E1 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:09]Read from MH i2c: E2 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 17 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: E2 17 00 40 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [08:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:32:09]wFMCommunicate OK [08:32:09]CreateOFDProtocolMessage done [08:32:09]OFDSenderStorePacket 29459 [08:32:09]StoreOFDPacket docnum=29459 [08:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BE 74 07 01 75 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 0B E6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 73 00 00 35 04 06 00 EC 8A A4 8A 3F 46 E6 5C 74 72 E5 5F D9 D6 [08:32:09]CheckFolder [08:32:09]dirname=/storage/ofd_packets [08:32:09]CheckFolder done [08:32:09]ProducePacketName [08:32:09]name=ofd_packets/00029459 [08:32:09]NVStorageSaveData ofd_packets/00029459 [08:32:09]File name is /storage/ofd_packets/00029459 [08:32:09]Write 301 bytes [08:32:09]NVStorageSaveData done [08:32:09]OFDSenderStorePacket done [08:32:09]KKMCreateOFDPacket done [08:32:09]NVStorageSaveData kkm_last_timestamp [08:32:09]File name is /storage/kkm_last_timestamp [08:32:09]Write 4 bytes [08:32:09]NVStorageSaveData done [08:32:09]ExternCall_PrintAddStr [08:32:09]wPrintStart [08:32:09]Write to MH i2c: 01 00 00 41 27 68 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 41 27 00 00 00 00 00 FF 0F 7D [08:32:09]RasterBufferAndPrint [08:32:09]line Счет N : (1)347862 [08:32:09]line ИНН: 02508201610067 [08:32:09]line Контрольно-Кассовый Чек [08:32:09]line ПРОДАЖА [08:32:09]line ТРК (МРК, ГНК) : 23 [08:32:09]line Товар: 2710124130 [08:32:09]line Аи-92-К-5 [08:32:09]line 7.720 * 64.80 [08:32:09]line = 500.26 [08:32:09]line НДС 12% НСП 1% [08:32:09]line > о реализуемом товаре [08:32:09]line ИТОГО: 500.26 [08:32:09]line НСП 1% : 4.43 [08:32:09]line НДС 12% : 53.12 [08:32:09]line Наличными: 0.00 [08:32:09]line Безнал.: 500.26 [08:32:09]line Место: АЗС № 108 "Партнер Нефть" [08:32:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:32:09]line СНО: Общий режим [08:32:09]line Чек 53 15.04.2024 08:32 [08:32:09]line Смена: 117 ФФД: 1.0 [08:32:09]line ЗНМ: 0300000027 [08:32:09]line РНМ: 0000138879044617 [08:32:09]line Версия ККМ: 001 [08:32:09]line Платежная система: АКБ Кыргызстан [08:32:09]line ФМ: 0000000000963154 [08:32:09]line ФД: 29459 [08:32:09]line ФПД: 260080210165574 [08:32:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T083211&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29459&fm=260080210165574&tin=02508201610067®Number=0000138879044617&sum=50026 [08:32:09]written 0, free lines is 4095 [08:32:09]OFD Sender: Processing packet 29459 [packets to send 8, broken 7] [08:32:09]ProducePacketName [08:32:09]name=ofd_packets/00029459 [08:32:09]OFD Sender: To server: pG, [08:32:09]CommunicateWithHost lk.salyk.kg:30040 [08:32:09]ConnectInit lk.salyk.kg [08:32:09]Connected sock=11 [08:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BE 74 07 01 75 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 0B E6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 73 00 00 35 04 06 00 EC 8A A4 8A 3F 46 E6 5C 74 72 E5 5F D9 D6 [08:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C B6 47 00 23 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 39 36 33 31 35 34 10 04 04 00 13 73 00 00 F4 03 04 00 AC 90 1C 66 B6 04 01 00 00 62 D0 06 05 1B 39 75 64 [08:32:09]CommunicateWithHost err = 0 [08:32:09]CheckOFDResponse [08:32:09]1017 (14) - 77093643461234 [08:32:09]1041 (16) - 0000000000963154 [08:32:09]1040 (4) - 29459 [08:32:09]1012 (4) - 15.04.2024 02:27 [08:32:09]1206 (1) - 0 [08:32:09]OFD Sender: Remove packet 29459 [08:32:09]ProducePacketName [08:32:09]name=ofd_packets/00029459 [08:32:09]NVStorageDeleteData [08:32:09]Write to MH i2c: 01 00 00 6A 27 91 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: 01 07 00 6A 27 00 00 00 00 00 F0 0C 94 [08:32:09]RasterBufferAndPrint [08:32:09]line [08:32:09]line [08:32:09]line [08:32:09]line [08:32:09]line [08:32:09]written 0, free lines is 3317 [08:32:09]MH_Cut [08:32:09]Write to MH i2c: D1 01 00 71 27 01 6A [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: D1 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: D1 01 00 [08:32:09]MH_I2C_Read... [08:32:09]Read from MH i2c: D1 01 00 71 27 00 69 [08:32:09]Write to MH i2c: 01 00 00 72 27 99 [08:32:09]Write i2c OK [08:32:09]MH_I2C_Read... [08:32:10]OFD Sender: No OFD packet to send [08:32:10]*** Cut start [08:32:10]*** Partial cut [08:32:10]*** CUTSNS_PIN = 1 [08:32:10]*** CUTSNS_PIN = 0 [08:32:10]*** Brake cut motor [08:32:11]Read from MH i2c: 01 [08:32:11]MH_I2C_Read... [08:32:11]*** Stop cut motor [08:32:11]*** Cut end [08:32:11]Read from MH i2c: 01 07 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: 01 07 00 72 27 00 00 00 00 00 FF 0F AE [08:32:11]process_action close_receipt done [08:32:11]requested_data is exist [08:32:11]produce_requested_data [08:32:11]requested_item fm.sn is exist - process it [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 11 00 00 [08:32:11]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 17 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 17 00 73 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [08:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:32:11]wFMCommunicate OK [08:32:11]requested_item fd.num is exist - process it [08:32:11]SAM_PROTO_GetFieldsCounters [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 13 00 00 [08:32:11]Write to MH i2c: E2 08 00 74 27 80 13 00 00 00 00 00 00 17 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 62 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 62 00 74 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 73 00 00 0E 04 04 00 75 00 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 EF [08:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 73 00 00 0E 04 04 00 75 00 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:32:11]wFMCommunicate OK [08:32:11]SAM_PROTO_GetFieldsCounters done [08:32:11]requested_item shift.num is exist - process it [08:32:11]requested_item shift.opened is exist - process it [08:32:11]req_shift_opened [08:32:11]FM_GetShiftState [08:32:11]SAM_PROTO_GetShiftState [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 13 01 00 [08:32:11]Write to MH i2c: E2 08 00 75 27 80 13 01 00 00 00 00 00 19 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 0E 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 0E 00 75 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0D [08:32:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:32:11]wFMCommunicate OK [08:32:11]SAM_PROTO_GetShiftState done [08:32:11]FM_GetShiftState done [08:32:11]req_shift_opened done [08:32:11]requested_item shift.open_date is exist - process it [08:32:11]req_shift_open_date [08:32:11]req_shift_open_date done [08:32:11]produce_requested_data done [08:32:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29459,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:32:11]process_action_free close_receipt [08:32:11]json_value_free [08:32:11]json_value_free done [08:32:11]process_json_proto returns [08:32:11]Send response to host [08:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29459,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:32:11]free response buf [08:32:11]execute_script done [08:32:11]execute_script returns [08:32:11]free content buf [08:32:11]Sock 9.Close socket [08:32:11]Sock 9.Thread stoped [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:50]int [08:34:50]Write to MH i2c: 01 00 00 76 27 9D [08:34:50]*** FLAG_PRN_KEY set [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 07 00 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: 01 07 00 76 27 00 08 00 00 00 FF 0F BA [08:34:50]state=0 [08:34:50]Key pressed [08:34:50]Feed [08:34:50]Write to MH i2c: D8 00 00 77 27 75 [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D8 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D8 01 00 [08:34:50]MH_I2C_Read... [08:34:50]Read from MH i2c: D8 01 00 77 27 00 76 [08:34:50]int [08:34:50]Write to MH i2c: 01 00 00 78 27 9F [08:34:50]Write i2c OK [08:34:50]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 78 27 00 48 00 00 00 3C 00 2A [08:34:51]state=2 [08:34:51]Key pressed [08:34:51]int [08:34:51]Write to MH i2c: 01 00 00 79 27 A0 [08:34:51]*** FLAG_PRN_KEY reset [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 79 27 00 00 00 00 00 F6 0F AC [08:34:51]state=2 [08:34:51]Stop feed [08:34:51]int [08:34:51]Write to MH i2c: 01 00 00 7A 27 A1 [08:34:51]*** FLAG_PRN_KEY set [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 7A 27 00 08 00 00 00 FF 0F BE [08:34:51]state=0 [08:34:51]Key pressed [08:34:51]Feed [08:34:51]Write to MH i2c: D8 00 00 7B 27 79 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: D8 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: D8 01 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: D8 01 00 7B 27 00 7A [08:34:51]int [08:34:51]Write to MH i2c: 01 00 00 7C 27 A3 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 7C 27 00 48 00 00 00 3C 00 2E [08:34:51]state=2 [08:34:51]Key pressed [08:34:51]int [08:34:51]Write to MH i2c: 01 00 00 7D 27 A4 [08:34:51]*** FLAG_PRN_KEY reset [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 F6 0F B0 [08:34:51]state=2 [08:34:51]Stop feed [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:20]accept exits with 8 [08:35:20]New connection [08:35:20]New thread 3067112804 created [08:35:20]Thread 3066969444 joined [08:35:20]Waiting for new connection... [08:35:20] Sock 8.Parse request [08:35:20]Sock 8.Check first char [08:35:20]Sock 8.First char is OK [08:35:20]request: POST /json_proto HTTP/1.0 [08:35:20]Method: POST [08:35:20]URL: /json_proto [08:35:20]Method is POST - this is cgi request [08:35:20]url: /json_proto [08:35:20]query_string will be loaded in cgi processing [08:35:20]execute_cgi json_proto POST (null) [08:35:20]execute_cgi path=json_proto method=POST [08:35:20]POST find Content-Length [08:35:20]Host: 172.17.33.3:8080 [08:35:20]Content-Length: 1212 [08:35:20]Content-Type: application/json [08:35:20] [08:35:20]POST finish read [08:35:20]Found Content-Length = 1212 [08:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347864\u000A15.04.2024 08:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.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\u000A74634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:20]execute_script... [08:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347864\u000A15.04.2024 08:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.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\u000A74634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:20]POST & json_proto [08:35:20]process_json_proto [08:35:20]json parsed OK: [08:35:20]protocol is kg_v1.0 [08:35:20]action value=print_text [08:35:20]process_action print_text [08:35:20]cmd_print_text [08:35:20]ExternCall_PrintAddStr [08:35:20]wPrintStart [08:35:20]Write to MH i2c: 01 00 00 7E 27 A5 [08:35:20]Write i2c OK [08:35:20]MH_I2C_Read... [08:35:20]Read from MH i2c: 01 [08:35:20]MH_I2C_Read... [08:35:20]Read from MH i2c: 01 07 00 [08:35:20]MH_I2C_Read... [08:35:20]Read from MH i2c: 01 07 00 7E 27 00 00 00 00 00 FF 0F BA [08:35:20]RasterBufferAndPrint [08:35:20]line *****ТОВАРНЫЙ ЧЕК***** [08:35:20]line АЗС 108 [08:35:20]line Партнер нефть [08:35:20]line 02508201610067 [08:35:20]line Кассир : Джумагулова Н. [08:35:20]line Счет N : (1)347864 [08:35:20]line 15.04.2024 08:17 [08:35:20]line ПРОДАЖА [08:35:20]line ТРК (МРК, ГНК): 32 [08:35:20]line Вид ГСМ : 2710124130 [08:35:20]line Аи-92-К-5 [08:35:20]line 10.000 x 64.80 [08:35:20]line ИТОГ: 648.00 [08:35:20]line Тип оплаты: Талоны: Топливная Карта [08:35:20]line 74634 [08:35:20]line ______________________ [08:35:20]line (подпись) [08:35:20]written 0, free lines is 4095 [08:35:21]Write to MH i2c: 01 00 00 93 27 BA [08:35:21]Write i2c OK [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: 01 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: 01 07 00 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: 01 07 00 93 27 00 00 00 00 00 FA 0D C8 [08:35:21]RasterBufferAndPrint [08:35:21]line [08:35:21]line [08:35:21]line [08:35:21]line [08:35:21]line [08:35:21]written 0, free lines is 3580 [08:35:21]MH_Cut [08:35:21]Write to MH i2c: D1 01 00 9A 27 01 93 [08:35:21]Write i2c OK [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: D1 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: D1 01 00 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: D1 01 00 9A 27 00 92 [08:35:21]Write to MH i2c: 01 00 00 9B 27 C2 [08:35:21]Write i2c OK [08:35:21]MH_I2C_Read... [08:35:21]*** Cut start [08:35:21]*** Partial cut [08:35:21]*** CUTSNS_PIN = 1 [08:35:21]*** CUTSNS_PIN = 0 [08:35:22]*** Brake cut motor [08:35:22]Read from MH i2c: 01 [08:35:22]MH_I2C_Read... [08:35:22]*** Stop cut motor [08:35:22]*** Cut end [08:35:22]Read from MH i2c: 01 07 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: 01 07 00 9B 27 00 00 00 00 00 FF 0F D7 [08:35:22]process_action print_text done [08:35:22]requested_data is exist [08:35:22]produce_requested_data [08:35:22]requested_item fm.sn is exist - process it [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 11 00 00 [08:35:22]Write to MH i2c: E2 08 00 9C 27 80 11 00 00 00 00 00 00 3D [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 17 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 17 00 9C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [08:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:35:22]wFMCommunicate OK [08:35:22]requested_item fd.num is exist - process it [08:35:22]SAM_PROTO_GetFieldsCounters [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 13 00 00 [08:35:22]Write to MH i2c: E2 08 00 9D 27 80 13 00 00 00 00 00 00 40 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 62 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 62 00 9D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 73 00 00 0E 04 04 00 75 00 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 18 [08:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 73 00 00 0E 04 04 00 75 00 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:35:22]wFMCommunicate OK [08:35:22]SAM_PROTO_GetFieldsCounters done [08:35:22]requested_item shift.num is exist - process it [08:35:22]requested_item shift.opened is exist - process it [08:35:22]req_shift_opened [08:35:22]FM_GetShiftState [08:35:22]SAM_PROTO_GetShiftState [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 13 01 00 [08:35:22]Write to MH i2c: E2 08 00 9E 27 80 13 01 00 00 00 00 00 42 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 0E 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 0E 00 9E 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 36 [08:35:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:35:22]wFMCommunicate OK [08:35:22]SAM_PROTO_GetShiftState done [08:35:22]FM_GetShiftState done [08:35:22]req_shift_opened done [08:35:22]requested_item shift.open_date is exist - process it [08:35:22]req_shift_open_date [08:35:22]req_shift_open_date done [08:35:22]produce_requested_data done [08:35:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29459,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:35:22]process_action_free print_text [08:35:22]json_value_free [08:35:22]json_value_free done [08:35:22]process_json_proto returns [08:35:22]Send response to host [08:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29459,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:35:22]free response buf [08:35:22]execute_script done [08:35:22]execute_script returns [08:35:22]free content buf [08:35:22]Sock 8.Close socket [08:35:22]Sock 8.Thread stoped [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:04]accept exits with 9 [08:37:04]New connection [08:37:04]New thread 3066969444 created [08:37:04]Thread 3067112804 joined [08:37:04]Waiting for new connection... [08:37:04] Sock 9.Parse request [08:37:04]Sock 9.Check first char [08:37:04]Sock 9.First char is OK [08:37:04]request: POST /json_proto HTTP/1.0 [08:37:04]Method: POST [08:37:04]URL: /json_proto [08:37:04]Method is POST - this is cgi request [08:37:04]url: /json_proto [08:37:04]query_string will be loaded in cgi processing [08:37:04]execute_cgi json_proto POST (null) [08:37:04]execute_cgi path=json_proto method=POST [08:37:04]POST find Content-Length [08:37:04]Host: 172.17.33.3:8080 [08:37:04]Content-Length: 805 [08:37:04]Content-Type: application/json [08:37:04] [08:37:04]POST finish read [08:37:04]Found Content-Length = 805 [08:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:04]execute_script... [08:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:04]POST & json_proto [08:37:04]process_json_proto [08:37:04]json parsed OK: [08:37:04]protocol is kg_v1.0 [08:37:04]action value=close_receipt [08:37:04]process_action close_receipt [08:37:04]cmd_close_receipt [08:37:04]MH_GetDate [08:37:04]Write to MH i2c: F0 00 00 9F 27 B5 [08:37:04]Write i2c OK [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: F0 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: F0 09 00 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: F0 09 00 9F 27 00 33 E7 1C 66 23 5B 8F 65 CC [08:37:04]GetLastDocTimeStamp 1713169931 [08:37:04]current date 1713170227 [08:37:04]FM_GetShiftState [08:37:04]SAM_PROTO_GetShiftState [08:37:04]wFMCommunicate request_size=4 [08:37:04]MH_SAM_APDU [08:37:04]CAPDU: 80 13 01 00 [08:37:04]Write to MH i2c: E2 08 00 A0 27 80 13 01 00 00 00 00 00 44 [08:37:04]Write i2c OK [08:37:04]MH_I2C_Read... [08:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:04]Read from MH i2c: E2 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 0E 00 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 0E 00 A0 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 38 [08:37:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:37:04]wFMCommunicate OK [08:37:04]SAM_PROTO_GetShiftState done [08:37:04]FM_GetShiftState done [08:37:04]opened in 1713140468 [08:37:04]opened+sec_in_day 1713226868 [08:37:04]quantity*price = 200037 [08:37:04]sum+1 = 200039 [08:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 15.04.2024 08:37 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29460 ФПД: 104535920596541 1/tax-web-control/client/api/v1/ticket?date=20240415T083707&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29460&fm=104535920596541&tin=02508201610067®Number=0000138879044617&sum=200038 [08:37:05]StoreToDocumentArchive [08:37:05]shift 117 fd 29460 [08:37:05]save to /storage/0117/doc_00029460 [08:37:05]save last doc name /storage/0117/doc_00029460 to /storage/kkm_last_doc_name [08:37:05]save OK [08:37:05]Clear old archive folders... [08:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:37:05]tlvbuf is B6F7C550 [08:37:05]SAM_PROTO_ClearQueue [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 09 00 00 [08:37:05]Write to MH i2c: E2 08 00 AD 27 80 09 00 00 00 00 00 00 46 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 AD 27 00 90 00 48 [08:37:05]RAPDU: 90 00 [08:37:05]wFMCommunicate OK [08:37:05]SAM_PROTO_ClearQueue done [08:37:05]KKMCreateOFDPacket [08:37:05]OFDProtocolAddRootSTLVToBuf [08:37:05]FM_MakeSignedData [08:37:05]FM_MakeSignedData [08:37:05]SAM_PROTO_SignData [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 0D 01 02 [08:37:05]Write to MH i2c: E2 08 00 AE 27 80 0D 01 02 00 00 00 00 4E [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 AE 27 00 90 00 49 [08:37:05]RAPDU: 90 00 [08:37:05]wFMCommunicate OK [08:37:05]wFMCommunicate request_size=255 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 33 E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 73 00 00 35 04 06 00 5F 13 2A 69 [08:37:05]Write to MH i2c: E2 02 01 AF 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 33 E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 73 00 00 35 04 06 00 5F 13 2A 69 00 00 6B [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 AF 27 00 90 00 4A [08:37:05]RAPDU: 90 00 [08:37:05]wFMCommunicate OK [08:37:05]wFMCommunicate request_size=7 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 0D 02 02 02 D6 3D [08:37:05]Write to MH i2c: E2 0A 00 B0 27 80 0D 02 02 02 00 D6 3D 00 00 68 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 03 00 B0 27 00 90 00 4B [08:37:05]RAPDU: 90 00 [08:37:05]wFMCommunicate OK [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 0D 03 02 [08:37:05]Write to MH i2c: E2 08 00 B1 27 80 0D 03 02 00 00 00 00 53 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0B 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0B 00 B1 27 00 43 28 46 A8 50 84 BD 04 90 00 42 [08:37:05]RAPDU: 43 28 46 A8 50 84 BD 04 90 00 [08:37:05]wFMCommunicate OK [08:37:05]SAM_PROTO_SignData done [08:37:05]FM_MakeSignedData done [08:37:05]CreateOFDProtocolMessage [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 11 00 00 [08:37:05]Write to MH i2c: E2 08 00 B2 27 80 11 00 00 00 00 00 00 53 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 17 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 17 00 B2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [08:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:37:05]wFMCommunicate OK [08:37:05]CreateOFDProtocolMessage done [08:37:05]OFDSenderStorePacket 29460 [08:37:05]StoreOFDPacket docnum=29460 [08:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 A7 04 01 15 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 33 E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 73 00 00 35 04 06 00 5F 13 2A 69 D6 3D 43 28 46 A8 50 84 BD 04 [08:37:05]CheckFolder [08:37:05]dirname=/storage/ofd_packets [08:37:05]CheckFolder done [08:37:05]ProducePacketName [08:37:05]name=ofd_packets/00029460 [08:37:05]NVStorageSaveData ofd_packets/00029460 [08:37:05]File name is /storage/ofd_packets/00029460 [08:37:05]Write 298 bytes [08:37:05]NVStorageSaveData done [08:37:05]OFDSenderStorePacket done [08:37:05]KKMCreateOFDPacket done [08:37:05]NVStorageSaveData kkm_last_timestamp [08:37:05]File name is /storage/kkm_last_timestamp [08:37:05]Write 4 bytes [08:37:05]NVStorageSaveData done [08:37:05]ExternCall_PrintAddStr [08:37:05]wPrintStart [08:37:05]Write to MH i2c: 01 00 00 B3 27 DA [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: 01 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: 01 07 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: 01 07 00 B3 27 00 00 00 00 00 FF 0F EF [08:37:05]RasterBufferAndPrint [08:37:05]line Счет N : (1)347865 [08:37:05]line ИНН: 02508201610067 [08:37:05]line Контрольно-Кассовый Чек [08:37:05]line ПРОДАЖА [08:37:05]line ТРК (МРК, ГНК) : 11 [08:37:05]line Товар: 2710194210 [08:37:05]line ДТ-К-5 [08:37:05]line 27.440 * 72.90 [08:37:05]line = 2000.38 [08:37:05]line НДС 12% НСП 1% [08:37:05]line > о реализуемом товаре [08:37:05]line ИТОГО: 2000.38 [08:37:05]line НСП 1% : 17.70 [08:37:05]line НДС 12% : 212.43 [08:37:05]line Наличными: 0.00 [08:37:05]line Безнал.: 2000.38 [08:37:05]line Место: АЗС № 108 "Партнер Нефть" [08:37:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:37:05]line СНО: Общий режим [08:37:05]line Чек 54 15.04.2024 08:37 [08:37:05]line Смена: 117 ФФД: 1.0 [08:37:05]line ЗНМ: 0300000027 [08:37:05]line РНМ: 0000138879044617 [08:37:05]line Версия ККМ: 001 [08:37:05]line Платежная система: О! деньги [08:37:05]line ФМ: 0000000000963154 [08:37:05]line ФД: 29460 [08:37:05]line ФПД: 104535920596541 [08:37:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T083707&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29460&fm=104535920596541&tin=02508201610067®Number=0000138879044617&sum=200038 [08:37:06]OFD Sender: Processing packet 29460 [packets to send 8, broken 7] [08:37:06]ProducePacketName [08:37:06]name=ofd_packets/00029460 [08:37:06]OFD Sender: To server: pG, [08:37:06]CommunicateWithHost lk.salyk.kg:30040 [08:37:06]ConnectInit lk.salyk.kg [08:37:06]written 0, free lines is 4095 [08:37:06]Connected sock=10 [08:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 37 A7 04 01 15 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 33 E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 73 00 00 35 04 06 00 5F 13 2A 69 D6 3D 43 28 46 A8 50 84 BD 04 [08:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 84 06 47 00 52 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 39 36 33 31 35 34 10 04 04 00 14 73 00 00 F4 03 04 00 D5 91 1C 66 B6 04 01 00 00 D0 19 81 1A 28 95 63 13 [08:37:06]CommunicateWithHost err = 0 [08:37:06]CheckOFDResponse [08:37:06]1017 (14) - 77093643461234 [08:37:06]1041 (16) - 0000000000963154 [08:37:06]1040 (4) - 29460 [08:37:06]1012 (4) - 15.04.2024 02:32 [08:37:06]1206 (1) - 0 [08:37:06]OFD Sender: Remove packet 29460 [08:37:06]ProducePacketName [08:37:06]name=ofd_packets/00029460 [08:37:06]NVStorageDeleteData [08:37:06]Write to MH i2c: 01 00 00 DC 27 03 [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: 01 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: 01 07 00 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: 01 07 00 DC 27 00 00 00 00 00 CE 0C E4 [08:37:06]RasterBufferAndPrint [08:37:06]line [08:37:06]line [08:37:06]line [08:37:06]line [08:37:06]line [08:37:06]written 0, free lines is 3283 [08:37:06]MH_Cut [08:37:06]Write to MH i2c: D1 01 00 E3 27 01 DC [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: D1 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: D1 01 00 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: D1 01 00 E3 27 00 DB [08:37:06]Write to MH i2c: 01 00 00 E4 27 0B [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:07]OFD Sender: No OFD packet to send [08:37:07]*** Cut start [08:37:07]*** Partial cut [08:37:07]*** CUTSNS_PIN = 1 [08:37:07]*** CUTSNS_PIN = 0 [08:37:07]*** Brake cut motor [08:37:08]Read from MH i2c: 01 [08:37:08]MH_I2C_Read... [08:37:08]*** Stop cut motor [08:37:08]*** Cut end [08:37:08]Read from MH i2c: 01 07 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: 01 07 00 E4 27 00 00 00 00 00 FF 0F 20 [08:37:08]process_action close_receipt done [08:37:08]requested_data is exist [08:37:08]produce_requested_data [08:37:08]requested_item fm.sn is exist - process it [08:37:08]wFMCommunicate request_size=4 [08:37:08]MH_SAM_APDU [08:37:08]CAPDU: 80 11 00 00 [08:37:08]Write to MH i2c: E2 08 00 E5 27 80 11 00 00 00 00 00 00 86 [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:08]Read from MH i2c: E2 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 17 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 17 00 E5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [08:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:37:08]wFMCommunicate OK [08:37:08]requested_item fd.num is exist - process it [08:37:08]SAM_PROTO_GetFieldsCounters [08:37:08]wFMCommunicate request_size=4 [08:37:08]MH_SAM_APDU [08:37:08]CAPDU: 80 13 00 00 [08:37:08]Write to MH i2c: E2 08 00 E6 27 80 13 00 00 00 00 00 00 89 [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 [08:37:08]MH_I2C_Read... [08:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:08]Read from MH i2c: E2 62 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 62 00 E6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 73 00 00 0E 04 04 00 75 00 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 65 [08:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 73 00 00 0E 04 04 00 75 00 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:37:08]wFMCommunicate OK [08:37:08]SAM_PROTO_GetFieldsCounters done [08:37:08]requested_item shift.num is exist - process it [08:37:08]requested_item shift.opened is exist - process it [08:37:08]req_shift_opened [08:37:08]FM_GetShiftState [08:37:08]SAM_PROTO_GetShiftState [08:37:08]wFMCommunicate request_size=4 [08:37:08]MH_SAM_APDU [08:37:08]CAPDU: 80 13 01 00 [08:37:08]Write to MH i2c: E2 08 00 E7 27 80 13 01 00 00 00 00 00 8B [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:08]Read from MH i2c: E2 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 0E 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: E2 0E 00 E7 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7F [08:37:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:37:08]wFMCommunicate OK [08:37:08]SAM_PROTO_GetShiftState done [08:37:08]FM_GetShiftState done [08:37:08]req_shift_opened done [08:37:08]requested_item shift.open_date is exist - process it [08:37:08]req_shift_open_date [08:37:08]req_shift_open_date done [08:37:08]produce_requested_data done [08:37:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29460,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:37:08]process_action_free close_receipt [08:37:08]json_value_free [08:37:08]json_value_free done [08:37:08]process_json_proto returns [08:37:08]Send response to host [08:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29460,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:37:08]free response buf [08:37:08]execute_script done [08:37:08]execute_script returns [08:37:08]free content buf [08:37:08]Sock 9.Close socket [08:37:08]Sock 9.Thread stoped [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:17]accept exits with 8 [08:38:17]New connection [08:38:17]New thread 3067112804 created [08:38:17]Thread 3066969444 joined [08:38:17]Waiting for new connection... [08:38:17] Sock 8.Parse request [08:38:17]Sock 8.Check first char [08:38:17]Sock 8.First char is OK [08:38:17]request: POST /json_proto HTTP/1.0 [08:38:17]Method: POST [08:38:17]URL: /json_proto [08:38:17]Method is POST - this is cgi request [08:38:17]url: /json_proto [08:38:17]query_string will be loaded in cgi processing [08:38:17]execute_cgi json_proto POST (null) [08:38:17]execute_cgi path=json_proto method=POST [08:38:17]POST find Content-Length [08:38:17]Host: 172.17.33.3:8080 [08:38:17]Content-Length: 841 [08:38:17]Content-Type: application/json [08:38:17] [08:38:17]POST finish read [08:38:17]Found Content-Length = 841 [08:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.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" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:17]execute_script... [08:38: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)347866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.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" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:17]POST & json_proto [08:38:17]process_json_proto [08:38:17]json parsed OK: [08:38:17]protocol is kg_v1.0 [08:38:17]action value=close_receipt [08:38:17]process_action close_receipt [08:38:17]cmd_close_receipt [08:38:17]MH_GetDate [08:38:17]Write to MH i2c: F0 00 00 E8 27 FE [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 09 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 09 00 E8 27 00 7C E7 1C 66 23 5B 8F 65 5E [08:38:17]GetLastDocTimeStamp 1713170227 [08:38:17]current date 1713170300 [08:38:17]FM_GetShiftState [08:38:17]SAM_PROTO_GetShiftState [08:38:17]wFMCommunicate request_size=4 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 13 01 00 [08:38:17]Write to MH i2c: E2 08 00 E9 27 80 13 01 00 00 00 00 00 8D [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:17]Read from MH i2c: E2 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 0E 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 0E 00 E9 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 81 [08:38:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:38:17]wFMCommunicate OK [08:38:17]SAM_PROTO_GetShiftState done [08:38:17]FM_GetShiftState done [08:38:17]opened in 1713140468 [08:38:17]opened+sec_in_day 1713226868 [08:38:17]quantity*price = 70048 [08:38:17]sum+1 = 70050 [08:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.49 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.49 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 15.04.2024 08:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29461 ФПД: 233181490224653 1/tax-web-control/client/api/v1/ticket?date=20240415T083820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29461&fm=233181490224653&tin=02508201610067®Number=0000138879044617&sum=70049 [08:38:18]StoreToDocumentArchive [08:38:18]shift 117 fd 29461 [08:38:18]save to /storage/0117/doc_00029461 [08:38:18]save last doc name /storage/0117/doc_00029461 to /storage/kkm_last_doc_name [08:38:18]save OK [08:38:18]Clear old archive folders... [08:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:18]tlvbuf is B6ECF8D0 [08:38:18]SAM_PROTO_ClearQueue [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 09 00 00 [08:38:18]Write to MH i2c: E2 08 00 F6 27 80 09 00 00 00 00 00 00 8F [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 F6 27 00 90 00 91 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_ClearQueue done [08:38:18]KKMCreateOFDPacket [08:38:18]OFDProtocolAddRootSTLVToBuf [08:38:18]FM_MakeSignedData [08:38:18]FM_MakeSignedData [08:38:18]SAM_PROTO_SignData [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 01 02 [08:38:18]Write to MH i2c: E2 08 00 F7 27 80 0D 01 02 00 00 00 00 97 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 F7 27 00 90 00 92 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=255 [08:38:18]MH_SAM_APDU [08:38: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7C E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 73 00 00 35 04 06 00 D4 [08:38:18]Write to MH i2c: E2 02 01 F8 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7C E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 73 00 00 35 04 06 00 D4 00 00 2B [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=10 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 05 13 CB E4 9E 0D [08:38:18]Write to MH i2c: E2 0D 00 F9 27 80 0D 02 02 05 00 13 CB E4 9E 0D 00 00 11 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 03 02 [08:38:18]Write to MH i2c: E2 08 00 FA 27 80 0D 03 02 00 00 00 00 9C [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 FA 27 00 4D 47 D1 2D 18 E8 D0 4A 90 00 49 [08:38:18]RAPDU: 4D 47 D1 2D 18 E8 D0 4A 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_SignData done [08:38:18]FM_MakeSignedData done [08:38:18]CreateOFDProtocolMessage [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 11 00 00 [08:38:18]Write to MH i2c: E2 08 00 FB 27 80 11 00 00 00 00 00 00 9C [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 FB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [08:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:18]wFMCommunicate OK [08:38:18]CreateOFDProtocolMessage done [08:38:18]OFDSenderStorePacket 29461 [08:38:18]StoreOFDPacket docnum=29461 [08:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 28 07 01 ED 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7C E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 73 00 00 35 04 06 00 D4 13 CB E4 9E 0D 4D 47 D1 2D 18 E8 D0 4A [08:38:18]CheckFolder [08:38:18]dirname=/storage/ofd_packets [08:38:18]CheckFolder done [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00029461 [08:38:18]NVStorageSaveData ofd_packets/00029461 [08:38:18]File name is /storage/ofd_packets/00029461 [08:38:18]Write 301 bytes [08:38:18]NVStorageSaveData done [08:38:18]OFDSenderStorePacket done [08:38:18]KKMCreateOFDPacket done [08:38:18]NVStorageSaveData kkm_last_timestamp [08:38:18]File name is /storage/kkm_last_timestamp [08:38:18]Write 4 bytes [08:38:18]NVStorageSaveData done [08:38:18]ExternCall_PrintAddStr [08:38:18]wPrintStart [08:38:18]Write to MH i2c: 01 00 00 FC 27 23 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 FF 0F 38 [08:38:18]RasterBufferAndPrint [08:38:18]line Счет N : (1)347866 [08:38:18]line ИНН: 02508201610067 [08:38:18]line Контрольно-Кассовый Чек [08:38:18]line ПРОДАЖА [08:38:18]line ТРК (МРК, ГНК) : 32 [08:38:18]line Товар: 2710124130 [08:38:18]line Аи-92-К-5 [08:38:18]line 10.810 * 64.80 [08:38:18]line = 700.49 [08:38:18]line НДС 12% НСП 1% [08:38:18]line > о реализуемом товаре [08:38:18]line ИТОГО: 700.49 [08:38:18]line НСП 1% : 6.20 [08:38:18]line НДС 12% : 74.39 [08:38:18]line Наличными: 0.00 [08:38:18]line Безнал.: 700.49 [08:38:18]line Место: АЗС № 108 "Партнер Нефть" [08:38:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:38:18]line СНО: Общий режим [08:38:18]line Чек 55 15.04.2024 08:38 [08:38:18]line Смена: 117 ФФД: 1.0 [08:38:18]line ЗНМ: 0300000027 [08:38:18]line РНМ: 0000138879044617 [08:38:18]line Версия ККМ: 001 [08:38:18]line Платежная система: АКБ Кыргызстан [08:38:18]line ФМ: 0000000000963154 [08:38:18]line ФД: 29461 [08:38:18]line ФПД: 233181490224653 [08:38:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T083820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29461&fm=233181490224653&tin=02508201610067®Number=0000138879044617&sum=70049 [08:38:19]OFD Sender: Processing packet 29461 [packets to send 8, broken 7] [08:38:19]ProducePacketName [08:38:19]name=ofd_packets/00029461 [08:38:19]OFD Sender: To server: pG, [08:38:19]CommunicateWithHost lk.salyk.kg:30040 [08:38:19]ConnectInit lk.salyk.kg [08:38:19]written 0, free lines is 4095 [08:38:19]Connected sock=10 [08:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 28 07 01 ED 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7C E7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 73 00 00 35 04 06 00 D4 13 CB E4 9E 0D 4D 47 D1 2D 18 E8 D0 4A [08:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C C9 47 00 64 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 39 36 33 31 35 34 10 04 04 00 15 73 00 00 F4 03 04 00 1E 92 1C 66 B6 04 01 00 00 E5 DD 62 84 43 9B 12 4C [08:38:19]CommunicateWithHost err = 0 [08:38:19]CheckOFDResponse [08:38:19]1017 (14) - 77093643461234 [08:38:19]1041 (16) - 0000000000963154 [08:38:19]1040 (4) - 29461 [08:38:19]1012 (4) - 15.04.2024 02:34 [08:38:19]1206 (1) - 0 [08:38:19]OFD Sender: Remove packet 29461 [08:38:19]ProducePacketName [08:38:19]name=ofd_packets/00029461 [08:38:19]NVStorageDeleteData [08:38:19]Write to MH i2c: 01 00 00 25 28 4D [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 25 28 00 00 00 00 00 E7 0C 47 [08:38:19]RasterBufferAndPrint [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]written 0, free lines is 3312 [08:38:19]MH_Cut [08:38:19]Write to MH i2c: D1 01 00 2C 28 01 26 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 2C 28 00 25 [08:38:19]Write to MH i2c: 01 00 00 2D 28 55 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]OFD Sender: No OFD packet to send [08:38:20]*** Cut start [08:38:20]*** Partial cut [08:38:20]*** CUTSNS_PIN = 1 [08:38:20]*** CUTSNS_PIN = 0 [08:38:20]*** Brake cut motor [08:38:21]Read from MH i2c: 01 [08:38:21]MH_I2C_Read... [08:38:21]*** Stop cut motor [08:38:21]*** Cut end [08:38:21]Read from MH i2c: 01 07 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 2D 28 00 00 00 00 00 FF 0F 6A [08:38:21]process_action close_receipt done [08:38:21]requested_data is exist [08:38:21]produce_requested_data [08:38:21]requested_item fm.sn is exist - process it [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 11 00 00 [08:38:21]Write to MH i2c: E2 08 00 2E 28 80 11 00 00 00 00 00 00 D0 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 17 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 17 00 2E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [08:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:38:21]wFMCommunicate OK [08:38:21]requested_item fd.num is exist - process it [08:38:21]SAM_PROTO_GetFieldsCounters [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 13 00 00 [08:38:21]Write to MH i2c: E2 08 00 2F 28 80 13 00 00 00 00 00 00 D3 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 62 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 62 00 2F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 73 00 00 0E 04 04 00 75 00 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 B3 [08:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 73 00 00 0E 04 04 00 75 00 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:38:21]wFMCommunicate OK [08:38:21]SAM_PROTO_GetFieldsCounters done [08:38:21]requested_item shift.num is exist - process it [08:38:21]requested_item shift.opened is exist - process it [08:38:21]req_shift_opened [08:38:21]FM_GetShiftState [08:38:21]SAM_PROTO_GetShiftState [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 13 01 00 [08:38:21]Write to MH i2c: E2 08 00 30 28 80 13 01 00 00 00 00 00 D5 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 30 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C9 [08:38:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:38:21]wFMCommunicate OK [08:38:21]SAM_PROTO_GetShiftState done [08:38:21]FM_GetShiftState done [08:38:21]req_shift_opened done [08:38:21]requested_item shift.open_date is exist - process it [08:38:21]req_shift_open_date [08:38:21]req_shift_open_date done [08:38:21]produce_requested_data done [08:38:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29461,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:38:21]process_action_free close_receipt [08:38:21]json_value_free [08:38:21]json_value_free done [08:38:21]process_json_proto returns [08:38:21]Send response to host [08:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29461,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:38:21]free response buf [08:38:21]execute_script done [08:38:21]execute_script returns [08:38:21]free content buf [08:38:21]Sock 8.Close socket [08:38:21]Sock 8.Thread stoped [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:02]accept exits with 9 [08:42:02]New connection [08:42:02]New thread 3066969444 created [08:42:02]Thread 3067112804 joined [08:42:02]Waiting for new connection... [08:42:02] Sock 9.Parse request [08:42:02]Sock 9.Check first char [08:42:02]Sock 9.First char is OK [08:42:02]request: POST /json_proto HTTP/1.0 [08:42:02]Method: POST [08:42:02]URL: /json_proto [08:42:02]Method is POST - this is cgi request [08:42:02]url: /json_proto [08:42:02]query_string will be loaded in cgi processing [08:42:02]execute_cgi json_proto POST (null) [08:42:02]execute_cgi path=json_proto method=POST [08:42:02]POST find Content-Length [08:42:02]Host: 172.17.33.3:8080 [08:42:02]Content-Length: 840 [08:42:02]Content-Type: application/json [08:42:02] [08:42:02]POST finish read [08:42:02]Found Content-Length = 840 [08:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:02]execute_script... [08:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:02]POST & json_proto [08:42:02]process_json_proto [08:42:02]json parsed OK: [08:42:02]protocol is kg_v1.0 [08:42:02]action value=close_receipt [08:42:02]process_action close_receipt [08:42:02]cmd_close_receipt [08:42:02]MH_GetDate [08:42:02]Write to MH i2c: F0 00 00 31 28 48 [08:42:02]Write i2c OK [08:42:02]MH_I2C_Read... [08:42:02]Read from MH i2c: F0 [08:42:02]MH_I2C_Read... [08:42:02]Read from MH i2c: F0 09 00 [08:42:02]MH_I2C_Read... [08:42:02]Read from MH i2c: F0 09 00 31 28 00 5D E8 1C 66 23 5B 8F 65 8A [08:42:02]GetLastDocTimeStamp 1713170300 [08:42:02]current date 1713170525 [08:42:02]FM_GetShiftState [08:42:02]SAM_PROTO_GetShiftState [08:42:02]wFMCommunicate request_size=4 [08:42:02]MH_SAM_APDU [08:42:02]CAPDU: 80 13 01 00 [08:42:02]Write to MH i2c: E2 08 00 32 28 80 13 01 00 00 00 00 00 D7 [08:42:02]Write i2c OK [08:42:02]MH_I2C_Read... [08:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:02]Read from MH i2c: E2 [08:42:02]MH_I2C_Read... [08:42:02]Read from MH i2c: E2 0E 00 [08:42:02]MH_I2C_Read... [08:42:02]Read from MH i2c: E2 0E 00 32 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CB [08:42:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:42:02]wFMCommunicate OK [08:42:02]SAM_PROTO_GetShiftState done [08:42:02]FM_GetShiftState done [08:42:02]opened in 1713140468 [08:42:02]opened+sec_in_day 1713226868 [08:42:02]quantity*price = 50025 [08:42:02]sum+1 = 50027 [08:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 15.04.2024 08:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29462 ФПД: 99013225964813 1/tax-web-control/client/api/v1/ticket?date=20240415T084205&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29462&fm=99013225964813&tin=02508201610067®Number=0000138879044617&sum=50026 [08:42:03]StoreToDocumentArchive [08:42:03]shift 117 fd 29462 [08:42:03]save to /storage/0117/doc_00029462 [08:42:03]save last doc name /storage/0117/doc_00029462 to /storage/kkm_last_doc_name [08:42:03]save OK [08:42:03]Clear old archive folders... [08:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:03]tlvbuf is 002A7460 [08:42:03]SAM_PROTO_ClearQueue [08:42:03]wFMCommunicate request_size=4 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 09 00 00 [08:42:03]Write to MH i2c: E2 08 00 3F 28 80 09 00 00 00 00 00 00 D9 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [08:42:03]RAPDU: 90 00 [08:42:03]wFMCommunicate OK [08:42:03]SAM_PROTO_ClearQueue done [08:42:03]KKMCreateOFDPacket [08:42:03]OFDProtocolAddRootSTLVToBuf [08:42:03]FM_MakeSignedData [08:42:03]FM_MakeSignedData [08:42:03]SAM_PROTO_SignData [08:42:03]wFMCommunicate request_size=4 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 0D 01 02 [08:42:03]Write to MH i2c: E2 08 00 40 28 80 0D 01 02 00 00 00 00 E1 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 40 28 00 90 00 DC [08:42:03]RAPDU: 90 00 [08:42:03]wFMCommunicate OK [08:42:03]wFMCommunicate request_size=255 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5D E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 73 00 00 35 04 06 00 5A [08:42:03]Write to MH i2c: E2 02 01 41 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5D E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 73 00 00 35 04 06 00 5A 00 00 25 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [08:42:03]RAPDU: 90 00 [08:42:03]wFMCommunicate OK [08:42:03]wFMCommunicate request_size=10 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 0D 02 02 05 0D 50 29 65 0D [08:42:03]Write to MH i2c: E2 0D 00 42 28 80 0D 02 02 05 00 0D 50 29 65 0D 00 00 E6 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [08:42:03]RAPDU: 90 00 [08:42:03]wFMCommunicate OK [08:42:03]wFMCommunicate request_size=4 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 0D 03 02 [08:42:03]Write to MH i2c: E2 08 00 43 28 80 0D 03 02 00 00 00 00 E6 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 0B 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 0B 00 43 28 00 BD D5 4C 50 76 7E 10 FC 90 00 15 [08:42:03]RAPDU: BD D5 4C 50 76 7E 10 FC 90 00 [08:42:03]wFMCommunicate OK [08:42:03]SAM_PROTO_SignData done [08:42:03]FM_MakeSignedData done [08:42:03]CreateOFDProtocolMessage [08:42:03]wFMCommunicate request_size=4 [08:42:03]MH_SAM_APDU [08:42:03]CAPDU: 80 11 00 00 [08:42:03]Write to MH i2c: E2 08 00 44 28 80 11 00 00 00 00 00 00 E6 [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:03]Read from MH i2c: E2 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 17 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: E2 17 00 44 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [08:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:42:03]wFMCommunicate OK [08:42:03]CreateOFDProtocolMessage done [08:42:03]OFDSenderStorePacket 29462 [08:42:03]StoreOFDPacket docnum=29462 [08:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CF E8 07 01 0F 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5D E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 73 00 00 35 04 06 00 5A 0D 50 29 65 0D BD D5 4C 50 76 7E 10 FC [08:42:03]CheckFolder [08:42:03]dirname=/storage/ofd_packets [08:42:03]CheckFolder done [08:42:03]ProducePacketName [08:42:03]name=ofd_packets/00029462 [08:42:03]NVStorageSaveData ofd_packets/00029462 [08:42:03]File name is /storage/ofd_packets/00029462 [08:42:03]Write 301 bytes [08:42:03]NVStorageSaveData done [08:42:03]OFDSenderStorePacket done [08:42:03]KKMCreateOFDPacket done [08:42:03]NVStorageSaveData kkm_last_timestamp [08:42:03]File name is /storage/kkm_last_timestamp [08:42:03]Write 4 bytes [08:42:03]NVStorageSaveData done [08:42:03]ExternCall_PrintAddStr [08:42:03]wPrintStart [08:42:03]Write to MH i2c: 01 00 00 45 28 6D [08:42:03]Write i2c OK [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: 01 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: 01 07 00 [08:42:03]MH_I2C_Read... [08:42:03]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FF 0F 82 [08:42:03]RasterBufferAndPrint [08:42:03]line Счет N : (1)347867 [08:42:03]line ИНН: 02508201610067 [08:42:03]line Контрольно-Кассовый Чек [08:42:03]line ПРОДАЖА [08:42:03]line ТРК (МРК, ГНК) : 23 [08:42:03]line Товар: 2710124130 [08:42:03]line Аи-92-К-5 [08:42:03]line 7.720 * 64.80 [08:42:03]line = 500.26 [08:42:03]line НДС 12% НСП 1% [08:42:03]line > о реализуемом товаре [08:42:03]line ИТОГО: 500.26 [08:42:03]line НСП 1% : 4.43 [08:42:03]line НДС 12% : 53.12 [08:42:03]line Наличными: 0.00 [08:42:03]line Безнал.: 500.26 [08:42:03]line Место: АЗС № 108 "Партнер Нефть" [08:42:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:42:03]line СНО: Общий режим [08:42:03]line Чек 56 15.04.2024 08:42 [08:42:03]line Смена: 117 ФФД: 1.0 [08:42:03]line ЗНМ: 0300000027 [08:42:03]line РНМ: 0000138879044617 [08:42:03]line Версия ККМ: 001 [08:42:03]line Платежная система: АКБ Кыргызстан [08:42:03]line ФМ: 0000000000963154 [08:42:03]line ФД: 29462 [08:42:03]line ФПД: 99013225964813 [08:42:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T084205&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29462&fm=99013225964813&tin=02508201610067®Number=0000138879044617&sum=50026 [08:42:04]OFD Sender: Processing packet 29462 [packets to send 8, broken 7] [08:42:04]ProducePacketName [08:42:04]name=ofd_packets/00029462 [08:42:04]OFD Sender: To server: pG, [08:42:04]CommunicateWithHost lk.salyk.kg:30040 [08:42:04]ConnectInit lk.salyk.kg [08:42:04]written 0, free lines is 4095 [08:42:04]Connected sock=10 [08:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CF E8 07 01 0F 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 5D E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 73 00 00 35 04 06 00 5A 0D 50 29 65 0D BD D5 4C 50 76 7E 10 FC [08:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF 76 47 00 EF 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 39 36 33 31 35 34 10 04 04 00 16 73 00 00 F4 03 04 00 FF 92 1C 66 B6 04 01 00 00 DD DC 1B 39 ED F9 92 32 [08:42:04]CommunicateWithHost err = 0 [08:42:04]CheckOFDResponse [08:42:04]1017 (14) - 77093643461234 [08:42:04]1041 (16) - 0000000000963154 [08:42:04]1040 (4) - 29462 [08:42:04]1012 (4) - 15.04.2024 02:37 [08:42:04]1206 (1) - 0 [08:42:04]OFD Sender: Remove packet 29462 [08:42:04]ProducePacketName [08:42:04]name=ofd_packets/00029462 [08:42:04]NVStorageDeleteData [08:42:04]Write to MH i2c: 01 00 00 6E 28 96 [08:42:04]Write i2c OK [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: 01 [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: 01 07 00 [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: 01 07 00 6E 28 00 00 00 00 00 E3 0C 8C [08:42:04]RasterBufferAndPrint [08:42:04]line [08:42:04]line [08:42:04]line [08:42:04]line [08:42:04]line [08:42:04]written 0, free lines is 3305 [08:42:04]MH_Cut [08:42:04]Write to MH i2c: D1 01 00 75 28 01 6F [08:42:04]Write i2c OK [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: D1 [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: D1 01 00 [08:42:04]MH_I2C_Read... [08:42:04]Read from MH i2c: D1 01 00 75 28 00 6E [08:42:04]Write to MH i2c: 01 00 00 76 28 9E [08:42:04]Write i2c OK [08:42:04]MH_I2C_Read... [08:42:04]OFD Sender: No OFD packet to send [08:42:05]*** Cut start [08:42:05]*** Partial cut [08:42:05]*** CUTSNS_PIN = 1 [08:42:05]*** CUTSNS_PIN = 0 [08:42:05]*** Brake cut motor [08:42:05]Read from MH i2c: 01 [08:42:05]MH_I2C_Read... [08:42:05]*** Stop cut motor [08:42:05]*** Cut end [08:42:05]Read from MH i2c: 01 07 00 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: 01 07 00 76 28 00 00 00 00 00 FF 0F B3 [08:42:05]process_action close_receipt done [08:42:05]requested_data is exist [08:42:05]produce_requested_data [08:42:05]requested_item fm.sn is exist - process it [08:42:05]wFMCommunicate request_size=4 [08:42:05]MH_SAM_APDU [08:42:05]CAPDU: 80 11 00 00 [08:42:05]Write to MH i2c: E2 08 00 77 28 80 11 00 00 00 00 00 00 19 [08:42:05]Write i2c OK [08:42:05]MH_I2C_Read... [08:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:05]Read from MH i2c: E2 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: E2 17 00 [08:42:05]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 17 00 77 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [08:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:42:06]wFMCommunicate OK [08:42:06]requested_item fd.num is exist - process it [08:42:06]SAM_PROTO_GetFieldsCounters [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 13 00 00 [08:42:06]Write to MH i2c: E2 08 00 78 28 80 13 00 00 00 00 00 00 1C [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 62 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 62 00 78 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 73 00 00 0E 04 04 00 75 00 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 00 [08:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 73 00 00 0E 04 04 00 75 00 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:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_GetFieldsCounters done [08:42:06]requested_item shift.num is exist - process it [08:42:06]requested_item shift.opened is exist - process it [08:42:06]req_shift_opened [08:42:06]FM_GetShiftState [08:42:06]SAM_PROTO_GetShiftState [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 13 01 00 [08:42:06]Write to MH i2c: E2 08 00 79 28 80 13 01 00 00 00 00 00 1E [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0E 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 0E 00 79 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 12 [08:42:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_GetShiftState done [08:42:06]FM_GetShiftState done [08:42:06]req_shift_opened done [08:42:06]requested_item shift.open_date is exist - process it [08:42:06]req_shift_open_date [08:42:06]req_shift_open_date done [08:42:06]produce_requested_data done [08:42:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29462,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:42:06]process_action_free close_receipt [08:42:06]json_value_free [08:42:06]json_value_free done [08:42:06]process_json_proto returns [08:42:06]Send response to host [08:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29462,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:42:06]free response buf [08:42:06]execute_script done [08:42:06]execute_script returns [08:42:06]free content buf [08:42:06]Sock 9.Close socket [08:42:06]Sock 9.Thread stoped [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:57]accept exits with 8 [08:42:57]New connection [08:42:57]New thread 3067112804 created [08:42:57]Thread 3066969444 joined [08:42:57]Waiting for new connection... [08:42:57] Sock 8.Parse request [08:42:57]Sock 8.Check first char [08:42:57]Sock 8.First char is OK [08:42:57]request: POST /json_proto HTTP/1.0 [08:42:57]Method: POST [08:42:57]URL: /json_proto [08:42:57]Method is POST - this is cgi request [08:42:57]url: /json_proto [08:42:57]query_string will be loaded in cgi processing [08:42:57]execute_cgi json_proto POST (null) [08:42:57]execute_cgi path=json_proto method=POST [08:42:57]POST find Content-Length [08:42:57]Host: 172.17.33.3:8080 [08:42:57]Content-Length: 677 [08:42:57]Content-Type: application/json [08:42:57] [08:42:57]POST finish read [08:42:57]Found Content-Length = 677 [08:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:57]execute_script... [08:42: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)347868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:57]POST & json_proto [08:42:57]process_json_proto [08:42:57]json parsed OK: [08:42:57]protocol is kg_v1.0 [08:42:57]action value=close_receipt [08:42:57]process_action close_receipt [08:42:57]cmd_close_receipt [08:42:57]MH_GetDate [08:42:57]Write to MH i2c: F0 00 00 7A 28 91 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 09 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 09 00 7A 28 00 95 E8 1C 66 23 5B 8F 65 0B [08:42:57]GetLastDocTimeStamp 1713170525 [08:42:57]current date 1713170581 [08:42:57]FM_GetShiftState [08:42:57]SAM_PROTO_GetShiftState [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 01 00 [08:42:57]Write to MH i2c: E2 08 00 7B 28 80 13 01 00 00 00 00 00 20 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 7B 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 14 [08:42:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetShiftState done [08:42:57]FM_GetShiftState done [08:42:57]opened in 1713140468 [08:42:57]opened+sec_in_day 1713226868 [08:42:57]quantity*price = 50025 [08:42:57]sum+1 = 50027 [08:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 15.04.2024 08:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29463 ФПД: 280136487766564 1/tax-web-control/client/api/v1/ticket?date=20240415T084301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29463&fm=280136487766564&tin=02508201610067®Number=0000138879044617&sum=50000 [08:42:58]StoreToDocumentArchive [08:42:58]shift 117 fd 29463 [08:42:58]save to /storage/0117/doc_00029463 [08:42:58]save last doc name /storage/0117/doc_00029463 to /storage/kkm_last_doc_name [08:42:58]save OK [08:42:58]Clear old archive folders... [08:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:58]tlvbuf is 002A72E0 [08:42:58]SAM_PROTO_ClearQueue [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 09 00 00 [08:42:58]Write to MH i2c: E2 08 00 88 28 80 09 00 00 00 00 00 00 22 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 88 28 00 90 00 24 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]SAM_PROTO_ClearQueue done [08:42:58]KKMCreateOFDPacket [08:42:58]OFDProtocolAddRootSTLVToBuf [08:42:58]FM_MakeSignedData [08:42:58]FM_MakeSignedData [08:42:58]SAM_PROTO_SignData [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 0D 01 02 [08:42:58]Write to MH i2c: E2 08 00 89 28 80 0D 01 02 00 00 00 00 2A [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 89 28 00 90 00 25 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]wFMCommunicate request_size=255 [08:42:58]MH_SAM_APDU [08:42: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 95 E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 73 00 00 35 04 06 00 FE [08:42:58]Write to MH i2c: E2 02 01 8A 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 95 E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 73 00 00 35 04 06 00 FE 00 00 18 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 03 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [08:42:59]RAPDU: 90 00 [08:42:59]wFMCommunicate OK [08:42:59]wFMCommunicate request_size=10 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 0D 02 02 05 C8 5B D7 8A 24 [08:42:59]Write to MH i2c: E2 0D 00 8B 28 80 0D 02 02 05 00 C8 5B D7 8A 24 00 00 DF [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 03 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 03 00 8B 28 00 90 00 27 [08:42:59]RAPDU: 90 00 [08:42:59]wFMCommunicate OK [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 0D 03 02 [08:42:59]Write to MH i2c: E2 08 00 8C 28 80 0D 03 02 00 00 00 00 2F [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0B 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0B 00 8C 28 00 D5 86 F0 15 06 E5 03 C3 90 00 41 [08:42:59]RAPDU: D5 86 F0 15 06 E5 03 C3 90 00 [08:42:59]wFMCommunicate OK [08:42:59]SAM_PROTO_SignData done [08:42:59]FM_MakeSignedData done [08:42:59]CreateOFDProtocolMessage [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 11 00 00 [08:42:59]Write to MH i2c: E2 08 00 8D 28 80 11 00 00 00 00 00 00 2F [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 8D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [08:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:42:59]wFMCommunicate OK [08:42:59]CreateOFDProtocolMessage done [08:42:59]OFDSenderStorePacket 29463 [08:42:59]StoreOFDPacket docnum=29463 [08:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 54 07 01 3A 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 95 E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 73 00 00 35 04 06 00 FE C8 5B D7 8A 24 D5 86 F0 15 06 E5 03 C3 [08:42:59]CheckFolder [08:42:59]dirname=/storage/ofd_packets [08:42:59]CheckFolder done [08:42:59]ProducePacketName [08:42:59]name=ofd_packets/00029463 [08:42:59]NVStorageSaveData ofd_packets/00029463 [08:42:59]File name is /storage/ofd_packets/00029463 [08:42:59]Write 301 bytes [08:42:59]NVStorageSaveData done [08:42:59]OFDSenderStorePacket done [08:42:59]KKMCreateOFDPacket done [08:42:59]NVStorageSaveData kkm_last_timestamp [08:42:59]File name is /storage/kkm_last_timestamp [08:42:59]Write 4 bytes [08:42:59]NVStorageSaveData done [08:42:59]ExternCall_PrintAddStr [08:42:59]wPrintStart [08:42:59]Write to MH i2c: 01 00 00 8E 28 B6 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 8E 28 00 00 00 00 00 FF 0F CB [08:42:59]RasterBufferAndPrint [08:42:59]line Счет N : (1)347868 [08:42:59]line ИНН: 02508201610067 [08:42:59]line Контрольно-Кассовый Чек [08:42:59]line ПРОДАЖА [08:42:59]line ТРК (МРК, ГНК) : 32 [08:42:59]line Товар: 2710124130 [08:42:59]line Аи-92-К-5 [08:42:59]line 7.720 * 64.80 [08:42:59]line = 500.26 [08:42:59]line НДС 12% НСП 1% [08:42:59]line > о реализуемом товаре [08:42:59]line ОКРУГЛЕНИЕ: -0.26 [08:42:59]line ИТОГО: 500.00 [08:42:59]line Внесено: 500.00 [08:42:59]line СДАЧА: 0.00 [08:42:59]line НСП 1% : 4.43 [08:42:59]line НДС 12% : 53.12 [08:42:59]line Наличными: 500.00 [08:42:59]line Безнал.: 0.00 [08:42:59]line Место: АЗС № 108 "Партнер Нефть" [08:42:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:42:59]line СНО: Общий режим [08:42:59]line Чек 57 15.04.2024 08:43 [08:42:59]line Смена: 117 ФФД: 1.0 [08:42:59]line ЗНМ: 0300000027 [08:42:59]line РНМ: 0000138879044617 [08:42:59]line Версия ККМ: 001 [08:42:59]line ФМ: 0000000000963154 [08:42:59]line ФД: 29463 [08:42:59]line ФПД: 280136487766564 [08:42:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T084301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29463&fm=280136487766564&tin=02508201610067®Number=0000138879044617&sum=50000 [08:42:59]OFD Sender: Processing packet 29463 [packets to send 8, broken 7] [08:42:59]ProducePacketName [08:42:59]name=ofd_packets/00029463 [08:42:59]OFD Sender: To server: pG, [08:42:59]CommunicateWithHost lk.salyk.kg:30040 [08:42:59]ConnectInit lk.salyk.kg [08:42:59]written 0, free lines is 4095 [08:42:59]Connected sock=10 [08:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 54 07 01 3A 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 95 E8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 73 00 00 35 04 06 00 FE C8 5B D7 8A 24 D5 86 F0 15 06 E5 03 C3 [08:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 52 47 00 29 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 73 00 00 F4 03 04 00 36 93 1C 66 B6 04 01 00 00 B3 97 75 68 E3 5A 7A 42 [08:43:00]CommunicateWithHost err = 0 [08:43:00]CheckOFDResponse [08:43:00]1017 (14) - 77093643461234 [08:43:00]1041 (16) - 0000000000963154 [08:43:00]1040 (4) - 29463 [08:43:00]1012 (4) - 15.04.2024 02:38 [08:43:00]1206 (1) - 0 [08:43:00]OFD Sender: Remove packet 29463 [08:43:00]ProducePacketName [08:43:00]name=ofd_packets/00029463 [08:43:00]NVStorageDeleteData [08:43:00]Write to MH i2c: 01 00 00 B8 28 E0 [08:43:00]Write i2c OK [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: 01 [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: 01 07 00 [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: 01 07 00 B8 28 00 00 00 00 00 CA 0C BD [08:43:00]RasterBufferAndPrint [08:43:00]line [08:43:00]line [08:43:00]line [08:43:00]line [08:43:00]line [08:43:00]written 0, free lines is 3278 [08:43:00]MH_Cut [08:43:00]Write to MH i2c: D1 01 00 BF 28 01 B9 [08:43:00]Write i2c OK [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: D1 [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: D1 01 00 [08:43:00]MH_I2C_Read... [08:43:00]Read from MH i2c: D1 01 00 BF 28 00 B8 [08:43:00]Write to MH i2c: 01 00 00 C0 28 E8 [08:43:00]Write i2c OK [08:43:00]MH_I2C_Read... [08:43:00]OFD Sender: No OFD packet to send [08:43:00]*** Cut start [08:43:00]*** Partial cut [08:43:00]*** CUTSNS_PIN = 1 [08:43:01]*** CUTSNS_PIN = 0 [08:43:01]*** Brake cut motor [08:43:01]Read from MH i2c: 01 [08:43:01]MH_I2C_Read... [08:43:01]*** Stop cut motor [08:43:01]*** Cut end [08:43:01]Read from MH i2c: 01 07 00 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: 01 07 00 C0 28 00 00 00 00 00 FF 0F FD [08:43:01]process_action close_receipt done [08:43:01]requested_data is exist [08:43:01]produce_requested_data [08:43:01]requested_item fm.sn is exist - process it [08:43:01]wFMCommunicate request_size=4 [08:43:01]MH_SAM_APDU [08:43:01]CAPDU: 80 11 00 00 [08:43:01]Write to MH i2c: E2 08 00 C1 28 80 11 00 00 00 00 00 00 63 [08:43:01]Write i2c OK [08:43:01]MH_I2C_Read... [08:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:01]Read from MH i2c: E2 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 17 00 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 17 00 C1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [08:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:43:01]wFMCommunicate OK [08:43:01]requested_item fd.num is exist - process it [08:43:01]SAM_PROTO_GetFieldsCounters [08:43:01]wFMCommunicate request_size=4 [08:43:01]MH_SAM_APDU [08:43:01]CAPDU: 80 13 00 00 [08:43:01]Write to MH i2c: E2 08 00 C2 28 80 13 00 00 00 00 00 00 66 [08:43:01]Write i2c OK [08:43:01]MH_I2C_Read... [08:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:01]Read from MH i2c: E2 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 62 00 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 62 00 C2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 73 00 00 0E 04 04 00 75 00 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 4E [08:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 73 00 00 0E 04 04 00 75 00 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:43:01]wFMCommunicate OK [08:43:01]SAM_PROTO_GetFieldsCounters done [08:43:01]requested_item shift.num is exist - process it [08:43:01]requested_item shift.opened is exist - process it [08:43:01]req_shift_opened [08:43:01]FM_GetShiftState [08:43:01]SAM_PROTO_GetShiftState [08:43:01]wFMCommunicate request_size=4 [08:43:01]MH_SAM_APDU [08:43:01]CAPDU: 80 13 01 00 [08:43:01]Write to MH i2c: E2 08 00 C3 28 80 13 01 00 00 00 00 00 68 [08:43:01]Write i2c OK [08:43:01]MH_I2C_Read... [08:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:01]Read from MH i2c: E2 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 0E 00 [08:43:01]MH_I2C_Read... [08:43:01]Read from MH i2c: E2 0E 00 C3 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [08:43:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:43:01]wFMCommunicate OK [08:43:01]SAM_PROTO_GetShiftState done [08:43:01]FM_GetShiftState done [08:43:01]req_shift_opened done [08:43:01]requested_item shift.open_date is exist - process it [08:43:01]req_shift_open_date [08:43:01]req_shift_open_date done [08:43:01]produce_requested_data done [08:43:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29463,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:43:01]process_action_free close_receipt [08:43:01]json_value_free [08:43:01]json_value_free done [08:43:01]process_json_proto returns [08:43:01]Send response to host [08:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29463,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:43:01]free response buf [08:43:01]execute_script done [08:43:01]execute_script returns [08:43:01]free content buf [08:43:01]Sock 8.Close socket [08:43:01]Sock 8.Thread stoped [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:22]accept exits with 9 [08:47:22]New connection [08:47:22]New thread 3066969444 created [08:47:22]Thread 3067112804 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.33.3:8080 [08:47:22]Content-Length: 677 [08:47:22]Content-Type: application/json [08:47:22] [08:47:22]POST finish read [08:47:22]Found Content-Length = 677 [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)347869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)347869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 C4 28 DB [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 C4 28 00 9E E9 1C 66 23 5B 8F 65 5F [08:47:22]GetLastDocTimeStamp 1713170581 [08:47:22]current date 1713170846 [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 C5 28 80 13 01 00 00 00 00 00 6A [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 C5 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5E [08:47:22]RAPDU: 09 00 01 F4 72 1C 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 1713140468 [08:47:22]opened+sec_in_day 1713226868 [08:47:22]quantity*price = 50025 [08:47:22]sum+1 = 50027 [08:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 15.04.2024 08:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29464 ФПД: 31366350572764 1/tax-web-control/client/api/v1/ticket?date=20240415T084726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29464&fm=31366350572764&tin=02508201610067®Number=0000138879044617&sum=50000 [08:47:23]StoreToDocumentArchive [08:47:23]shift 117 fd 29464 [08:47:23]save to /storage/0117/doc_00029464 [08:47:23]save last doc name /storage/0117/doc_00029464 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 00258E50 [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 D2 28 80 09 00 00 00 00 00 00 6C [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 D2 28 00 90 00 6E [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 D3 28 80 0D 01 02 00 00 00 00 74 [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 D3 28 00 90 00 6F [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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9E E9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 73 00 00 35 04 06 00 1C [08:47:23]Write to MH i2c: E2 02 01 D4 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9E E9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 73 00 00 35 04 06 00 1C 00 00 8C [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:24]Read from MH i2c: E2 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 03 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [08:47:24]RAPDU: 90 00 [08:47:24]wFMCommunicate OK [08:47:24]wFMCommunicate request_size=10 [08:47:24]MH_SAM_APDU [08:47:24]CAPDU: 80 0D 02 02 05 87 0C 2F 0C DC [08:47:24]Write to MH i2c: E2 0D 00 D5 28 80 0D 02 02 05 00 87 0C 2F 0C DC 00 00 2B [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:24]Read from MH i2c: E2 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 03 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 03 00 D5 28 00 90 00 71 [08:47:24]RAPDU: 90 00 [08:47:24]wFMCommunicate OK [08:47:24]wFMCommunicate request_size=4 [08:47:24]MH_SAM_APDU [08:47:24]CAPDU: 80 0D 03 02 [08:47:24]Write to MH i2c: E2 08 00 D6 28 80 0D 03 02 00 00 00 00 79 [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:24]Read from MH i2c: E2 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 0B 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 0B 00 D6 28 00 53 9E 8A 9A 52 6E EB 86 90 00 C0 [08:47:24]RAPDU: 53 9E 8A 9A 52 6E EB 86 90 00 [08:47:24]wFMCommunicate OK [08:47:24]SAM_PROTO_SignData done [08:47:24]FM_MakeSignedData done [08:47:24]CreateOFDProtocolMessage [08:47:24]wFMCommunicate request_size=4 [08:47:24]MH_SAM_APDU [08:47:24]CAPDU: 80 11 00 00 [08:47:24]Write to MH i2c: E2 08 00 D7 28 80 11 00 00 00 00 00 00 79 [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:24]Read from MH i2c: E2 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 17 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: E2 17 00 D7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [08:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:47:24]wFMCommunicate OK [08:47:24]CreateOFDProtocolMessage done [08:47:24]OFDSenderStorePacket 29464 [08:47:24]StoreOFDPacket docnum=29464 [08:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B DF 07 01 EC 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9E E9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 73 00 00 35 04 06 00 1C 87 0C 2F 0C DC 53 9E 8A 9A 52 6E EB 86 [08:47:24]CheckFolder [08:47:24]dirname=/storage/ofd_packets [08:47:24]CheckFolder done [08:47:24]ProducePacketName [08:47:24]name=ofd_packets/00029464 [08:47:24]NVStorageSaveData ofd_packets/00029464 [08:47:24]File name is /storage/ofd_packets/00029464 [08:47:24]Write 301 bytes [08:47:24]NVStorageSaveData done [08:47:24]OFDSenderStorePacket done [08:47:24]KKMCreateOFDPacket done [08:47:24]NVStorageSaveData kkm_last_timestamp [08:47:24]File name is /storage/kkm_last_timestamp [08:47:24]Write 4 bytes [08:47:24]NVStorageSaveData done [08:47:24]ExternCall_PrintAddStr [08:47:24]wPrintStart [08:47:24]Write to MH i2c: 01 00 00 D8 28 00 [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 D8 28 00 00 00 00 00 FF 0F 15 [08:47:24]RasterBufferAndPrint [08:47:24]line Счет N : (1)347869 [08:47:24]line ИНН: 02508201610067 [08:47:24]line Контрольно-Кассовый Чек [08:47:24]line ПРОДАЖА [08:47:24]line ТРК (МРК, ГНК) : 42 [08:47:24]line Товар: 2710124130 [08:47:24]line Аи-92-К-5 [08:47:24]line 7.720 * 64.80 [08:47:24]line = 500.26 [08:47:24]line НДС 12% НСП 1% [08:47:24]line > о реализуемом товаре [08:47:24]line ОКРУГЛЕНИЕ: -0.26 [08:47:24]line ИТОГО: 500.00 [08:47:24]line Внесено: 500.00 [08:47:24]line СДАЧА: 0.00 [08:47:24]line НСП 1% : 4.43 [08:47:24]line НДС 12% : 53.12 [08:47:24]line Наличными: 500.00 [08:47:24]line Безнал.: 0.00 [08:47:24]line Место: АЗС № 108 "Партнер Нефть" [08:47:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:47:24]line СНО: Общий режим [08:47:24]line Чек 58 15.04.2024 08:47 [08:47:24]line Смена: 117 ФФД: 1.0 [08:47:24]line ЗНМ: 0300000027 [08:47:24]line РНМ: 0000138879044617 [08:47:24]line Версия ККМ: 001 [08:47:24]line ФМ: 0000000000963154 [08:47:24]line ФД: 29464 [08:47:24]line ФПД: 31366350572764 [08:47:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T084726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29464&fm=31366350572764&tin=02508201610067®Number=0000138879044617&sum=50000 [08:47:24]OFD Sender: Processing packet 29464 [packets to send 8, broken 7] [08:47:24]ProducePacketName [08:47:24]name=ofd_packets/00029464 [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=8 [08:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B DF 07 01 EC 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 9E E9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 73 00 00 35 04 06 00 1C 87 0C 2F 0C DC 53 9E 8A 9A 52 6E EB 86 [08:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C B0 47 00 2E 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 39 36 33 31 35 34 10 04 04 00 18 73 00 00 F4 03 04 00 3F 94 1C 66 B6 04 01 00 00 17 2C DB 05 13 3E 10 17 [08:47:24]CommunicateWithHost err = 0 [08:47:24]CheckOFDResponse [08:47:24]1017 (14) - 77093643461234 [08:47:24]1041 (16) - 0000000000963154 [08:47:24]1040 (4) - 29464 [08:47:24]1012 (4) - 15.04.2024 02:43 [08:47:24]1206 (1) - 0 [08:47:24]OFD Sender: Remove packet 29464 [08:47:24]ProducePacketName [08:47:24]name=ofd_packets/00029464 [08:47:24]NVStorageDeleteData [08:47:25]Write to MH i2c: 01 00 00 02 29 2B [08:47:25]Write i2c OK [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: 01 [08:47:25]MH_I2C_Read... [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 02 29 00 00 00 00 00 C2 0C 00 [08:47:25]RasterBufferAndPrint [08:47:25]line [08:47:25]line [08:47:25]line [08:47:25]line [08:47:25]line [08:47:25]written 0, free lines is 3271 [08:47:25]MH_Cut [08:47:25]Write to MH i2c: D1 01 00 09 29 01 04 [08:47:25]Write i2c OK [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: D1 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: D1 01 00 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: D1 01 00 09 29 00 03 [08:47:25]Write to MH i2c: 01 00 00 0A 29 33 [08:47:25]Write i2c OK [08:47:25]MH_I2C_Read... [08:47:25]OFD Sender: No OFD packet to send [08:47:25]*** Cut start [08:47:25]*** Partial cut [08:47:25]*** CUTSNS_PIN = 1 [08:47:26]*** CUTSNS_PIN = 0 [08:47:26]*** Brake cut motor [08:47:26]Read from MH i2c: 01 [08:47:26]MH_I2C_Read... [08:47:26]*** Stop cut motor [08:47:26]*** Cut end [08:47:26]Read from MH i2c: 01 07 00 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: 01 07 00 0A 29 00 00 00 00 00 FF 0F 48 [08:47:26]process_action close_receipt done [08:47:26]requested_data is exist [08:47:26]produce_requested_data [08:47:26]requested_item fm.sn is exist - process it [08:47:26]wFMCommunicate request_size=4 [08:47:26]MH_SAM_APDU [08:47:26]CAPDU: 80 11 00 00 [08:47:26]Write to MH i2c: E2 08 00 0B 29 80 11 00 00 00 00 00 00 AE [08:47:26]Write i2c OK [08:47:26]MH_I2C_Read... [08:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:26]Read from MH i2c: E2 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 17 00 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 17 00 0B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [08:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:47:26]wFMCommunicate OK [08:47:26]requested_item fd.num is exist - process it [08:47:26]SAM_PROTO_GetFieldsCounters [08:47:26]wFMCommunicate request_size=4 [08:47:26]MH_SAM_APDU [08:47:26]CAPDU: 80 13 00 00 [08:47:26]Write to MH i2c: E2 08 00 0C 29 80 13 00 00 00 00 00 00 B1 [08:47:26]Write i2c OK [08:47:26]MH_I2C_Read... [08:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:26]Read from MH i2c: E2 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 62 00 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 62 00 0C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 73 00 00 0E 04 04 00 75 00 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 9D [08:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 73 00 00 0E 04 04 00 75 00 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:47:26]wFMCommunicate OK [08:47:26]SAM_PROTO_GetFieldsCounters done [08:47:26]requested_item shift.num is exist - process it [08:47:26]requested_item shift.opened is exist - process it [08:47:26]req_shift_opened [08:47:26]FM_GetShiftState [08:47:26]SAM_PROTO_GetShiftState [08:47:26]wFMCommunicate request_size=4 [08:47:26]MH_SAM_APDU [08:47:26]CAPDU: 80 13 01 00 [08:47:26]Write to MH i2c: E2 08 00 0D 29 80 13 01 00 00 00 00 00 B3 [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 0D 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A7 [08:47:26]RAPDU: 09 00 01 F4 72 1C 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":"0000000000963154","fd.num":29464,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [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":"0000000000963154","fd.num":29464,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [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:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:14]accept exits with 10 [08:49:14]New connection [08:49:14]New thread 3067112804 created [08:49:14]Thread 3066969444 joined [08:49:14]Waiting for new connection... [08:49:14] Sock 10.Parse request [08:49:14]Sock 10.Check first char [08:49:14]Sock 10.First char is OK [08:49:14]request: POST /json_proto HTTP/1.0 [08:49:14]Method: POST [08:49:14]URL: /json_proto [08:49:14]Method is POST - this is cgi request [08:49:14]url: /json_proto [08:49:14]query_string will be loaded in cgi processing [08:49:14]execute_cgi json_proto POST (null) [08:49:14]execute_cgi path=json_proto method=POST [08:49:14]POST find Content-Length [08:49:14]Host: 172.17.33.3:8080 [08:49:14]Content-Length: 675 [08:49:14]Content-Type: application/json [08:49:14] [08:49:14]POST finish read [08:49:14]Found Content-Length = 675 [08:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 34.960, "sum" : 2300.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:14]execute_script... [08:49: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)347870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 34.960, "sum" : 2300.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:14]POST & json_proto [08:49:14]process_json_proto [08:49:14]json parsed OK: [08:49:14]protocol is kg_v1.0 [08:49:14]action value=close_receipt [08:49:14]process_action close_receipt [08:49:14]cmd_close_receipt [08:49:14]MH_GetDate [08:49:14]Write to MH i2c: F0 00 00 0E 29 26 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 09 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: F0 09 00 0E 29 00 0D EA 1C 66 23 5B 8F 65 1A [08:49:14]GetLastDocTimeStamp 1713170846 [08:49:14]current date 1713170957 [08:49:14]FM_GetShiftState [08:49:14]SAM_PROTO_GetShiftState [08:49:14]wFMCommunicate request_size=4 [08:49:14]MH_SAM_APDU [08:49:14]CAPDU: 80 13 01 00 [08:49:14]Write to MH i2c: E2 08 00 0F 29 80 13 01 00 00 00 00 00 B5 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:14]Read from MH i2c: E2 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 0E 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 0E 00 0F 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A9 [08:49:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:49:14]wFMCommunicate OK [08:49:14]SAM_PROTO_GetShiftState done [08:49:14]FM_GetShiftState done [08:49:14]opened in 1713140468 [08:49:14]opened+sec_in_day 1713226868 [08:49:14]quantity*price = 230036 [08:49:14]sum+1 = 230038 [08:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.36 НДС 12% : 244.29 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 15.04.2024 08:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29465 ФПД: 4236916666928 1/tax-web-control/client/api/v1/ticket?date=20240415T084917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29465&fm=4236916666928&tin=02508201610067®Number=0000138879044617&sum=230000 [08:49:15]StoreToDocumentArchive [08:49:15]shift 117 fd 29465 [08:49:15]save to /storage/0117/doc_00029465 [08:49:15]save last doc name /storage/0117/doc_00029465 to /storage/kkm_last_doc_name [08:49:15]save OK [08:49:15]Clear old archive folders... [08:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:49:15]tlvbuf is B6DCF1D0 [08:49:15]SAM_PROTO_ClearQueue [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 09 00 00 [08:49:15]Write to MH i2c: E2 08 00 1C 29 80 09 00 00 00 00 00 00 B7 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 1C 29 00 90 00 B9 [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_ClearQueue done [08:49:15]KKMCreateOFDPacket [08:49:15]OFDProtocolAddRootSTLVToBuf [08:49:15]FM_MakeSignedData [08:49:15]FM_MakeSignedData [08:49:15]SAM_PROTO_SignData [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 01 02 [08:49:15]Write to MH i2c: E2 08 00 1D 29 80 0D 01 02 00 00 00 00 BF [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 1D 29 00 90 00 BA [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=255 [08:49:15]MH_SAM_APDU [08:49: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 88 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 95 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 5F 00 00 00 00 07 04 06 00 70 82 03 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 0D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 73 00 00 35 04 06 00 [08:49:15]Write to MH i2c: E2 02 01 1E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 88 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 95 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 5F 00 00 00 00 07 04 06 00 70 82 03 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 0D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 73 00 00 35 04 06 00 00 00 F5 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]OFD Sender: No OFD packet to send [08:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 1E 29 00 90 00 BB [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=11 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 02 02 06 03 DA 7B E9 B2 30 [08:49:15]Write to MH i2c: E2 0E 00 1F 29 80 0D 02 02 06 00 03 DA 7B E9 B2 30 00 00 F1 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 03 00 1F 29 00 90 00 BC [08:49:15]RAPDU: 90 00 [08:49:15]wFMCommunicate OK [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 0D 03 02 [08:49:15]Write to MH i2c: E2 08 00 20 29 80 0D 03 02 00 00 00 00 C4 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0B 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0B 00 20 29 00 1D 8C 0B F6 07 75 A8 B5 90 00 48 [08:49:15]RAPDU: 1D 8C 0B F6 07 75 A8 B5 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_SignData done [08:49:15]FM_MakeSignedData done [08:49:15]CreateOFDProtocolMessage [08:49:15]wFMCommunicate request_size=4 [08:49:15]MH_SAM_APDU [08:49:15]CAPDU: 80 11 00 00 [08:49:15]Write to MH i2c: E2 08 00 21 29 80 11 00 00 00 00 00 00 C4 [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 17 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 17 00 21 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [08:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:49:15]wFMCommunicate OK [08:49:15]CreateOFDProtocolMessage done [08:49:15]OFDSenderStorePacket 29465 [08:49:15]StoreOFDPacket docnum=29465 [08:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 02 0F 08 01 EB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 88 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 95 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 5F 00 00 00 00 07 04 06 00 70 82 03 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 0D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 73 00 00 35 04 06 00 03 DA 7B E9 B2 30 1D 8C 0B F6 07 75 A8 B5 [08:49:15]CheckFolder [08:49:15]dirname=/storage/ofd_packets [08:49:15]CheckFolder done [08:49:15]ProducePacketName [08:49:15]name=ofd_packets/00029465 [08:49:15]NVStorageSaveData ofd_packets/00029465 [08:49:15]File name is /storage/ofd_packets/00029465 [08:49:15]Write 302 bytes [08:49:15]NVStorageSaveData done [08:49:15]OFDSenderStorePacket done [08:49:15]KKMCreateOFDPacket done [08:49:15]NVStorageSaveData kkm_last_timestamp [08:49:15]File name is /storage/kkm_last_timestamp [08:49:15]Write 4 bytes [08:49:15]NVStorageSaveData done [08:49:15]ExternCall_PrintAddStr [08:49:15]wPrintStart [08:49:15]Write to MH i2c: 01 00 00 22 29 4B [08:49:15]Write i2c OK [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 07 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 FF 0F 60 [08:49:15]RasterBufferAndPrint [08:49:15]line Счет N : (1)347870 [08:49:15]line ИНН: 02508201610067 [08:49:15]line Контрольно-Кассовый Чек [08:49:15]line ПРОДАЖА [08:49:15]line ТРК (МРК, ГНК) : 31 [08:49:15]line Товар: 2710124130 [08:49:15]line SUPER-92-К-5 [08:49:15]line 34.960 * 65.80 [08:49:15]line = 2300.37 [08:49:15]line НДС 12% НСП 1% [08:49:15]line > о реализуемом товаре [08:49:15]line ОКРУГЛЕНИЕ: -0.37 [08:49:15]line ИТОГО: 2300.00 [08:49:15]line Внесено: 2300.00 [08:49:15]line СДАЧА: 0.00 [08:49:15]line НСП 1% : 20.36 [08:49:15]line НДС 12% : 244.29 [08:49:15]line Наличными: 2300.00 [08:49:15]line Безнал.: 0.00 [08:49:15]line Место: АЗС № 108 "Партнер Нефть" [08:49:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:49:15]line СНО: Общий режим [08:49:15]line Чек 59 15.04.2024 08:49 [08:49:15]line Смена: 117 ФФД: 1.0 [08:49:15]line ЗНМ: 0300000027 [08:49:15]line РНМ: 0000138879044617 [08:49:15]line Версия ККМ: 001 [08:49:15]line ФМ: 0000000000963154 [08:49:15]line ФД: 29465 [08:49:15]line ФПД: 4236916666928 [08:49:16]line 1/tax-web-control/client/api/v1/ticket?date=20240415T084917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29465&fm=4236916666928&tin=02508201610067®Number=0000138879044617&sum=230000 [08:49:16]OFD Sender: Processing packet 29465 [packets to send 8, broken 7] [08:49:16]ProducePacketName [08:49:16]name=ofd_packets/00029465 [08:49:16]OFD Sender: To server: pG, [08:49:16]CommunicateWithHost lk.salyk.kg:30040 [08:49:16]ConnectInit lk.salyk.kg [08:49:16]written 0, free lines is 4095 [08:49:16]Connected sock=9 [08:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 02 0F 08 01 EB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 88 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 95 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 5F 00 00 00 00 07 04 06 00 70 82 03 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 0D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 73 00 00 35 04 06 00 03 DA 7B E9 B2 30 1D 8C 0B F6 07 75 A8 B5 [08:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E4 4B 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 39 36 33 31 35 34 10 04 04 00 19 73 00 00 F4 03 04 00 AF 94 1C 66 B6 04 01 00 00 FF 06 88 DE 97 62 F0 52 [08:49:16]CommunicateWithHost err = 0 [08:49:16]CheckOFDResponse [08:49:16]1017 (14) - 77093643461234 [08:49:16]1041 (16) - 0000000000963154 [08:49:16]1040 (4) - 29465 [08:49:16]1012 (4) - 15.04.2024 02:45 [08:49:16]1206 (1) - 0 [08:49:16]OFD Sender: Remove packet 29465 [08:49:16]ProducePacketName [08:49:16]name=ofd_packets/00029465 [08:49:16]NVStorageDeleteData [08:49:16]Write to MH i2c: 01 00 00 4C 29 75 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 07 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: 01 07 00 4C 29 00 00 00 00 00 C4 0C 4C [08:49:16]RasterBufferAndPrint [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]line [08:49:16]written 0, free lines is 3274 [08:49:16]MH_Cut [08:49:16]Write to MH i2c: D1 01 00 53 29 01 4E [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 01 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: D1 01 00 53 29 00 4D [08:49:16]Write to MH i2c: 01 00 00 54 29 7D [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]OFD Sender: No OFD packet to send [08:49:17]*** Cut start [08:49:17]*** Partial cut [08:49:17]*** CUTSNS_PIN = 1 [08:49:17]*** CUTSNS_PIN = 0 [08:49:17]*** Brake cut motor [08:49:18]Read from MH i2c: 01 [08:49:18]MH_I2C_Read... [08:49:18]*** Stop cut motor [08:49:18]*** Cut end [08:49:18]Read from MH i2c: 01 07 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 54 29 00 00 00 00 00 FF 0F 92 [08:49:18]process_action close_receipt done [08:49:18]requested_data is exist [08:49:18]produce_requested_data [08:49:18]requested_item fm.sn is exist - process it [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 11 00 00 [08:49:18]Write to MH i2c: E2 08 00 55 29 80 11 00 00 00 00 00 00 F8 [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 55 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [08:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:49:18]wFMCommunicate OK [08:49:18]requested_item fd.num is exist - process it [08:49:18]SAM_PROTO_GetFieldsCounters [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 13 00 00 [08:49:18]Write to MH i2c: E2 08 00 56 29 80 13 00 00 00 00 00 00 FB [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 62 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 62 00 56 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 73 00 00 0E 04 04 00 75 00 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 EB [08:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 73 00 00 0E 04 04 00 75 00 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:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_GetFieldsCounters done [08:49:18]requested_item shift.num is exist - process it [08:49:18]requested_item shift.opened is exist - process it [08:49:18]req_shift_opened [08:49:18]FM_GetShiftState [08:49:18]SAM_PROTO_GetShiftState [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 13 01 00 [08:49:18]Write to MH i2c: E2 08 00 57 29 80 13 01 00 00 00 00 00 FD [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 57 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F1 [08:49:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_GetShiftState done [08:49:18]FM_GetShiftState done [08:49:18]req_shift_opened done [08:49:18]requested_item shift.open_date is exist - process it [08:49:18]req_shift_open_date [08:49:18]req_shift_open_date done [08:49:18]produce_requested_data done [08:49:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29465,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:49:18]process_action_free close_receipt [08:49:18]json_value_free [08:49:18]json_value_free done [08:49:18]process_json_proto returns [08:49:18]Send response to host [08:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29465,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:49:18]free response buf [08:49:18]execute_script done [08:49:18]execute_script returns [08:49:18]free content buf [08:49:18]Sock 10.Close socket [08:49:18]Sock 10.Thread stoped [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:27]accept exits with 8 [08:50:27]New connection [08:50:27]New thread 3066969444 created [08:50:27]Thread 3067112804 joined [08:50:27]Waiting for new connection... [08:50:27] Sock 8.Parse request [08:50:27]Sock 8.Check first char [08:50:27]Sock 8.First char is OK [08:50:27]request: POST /json_proto HTTP/1.0 [08:50:27]Method: POST [08:50:27]URL: /json_proto [08:50:27]Method is POST - this is cgi request [08:50:27]url: /json_proto [08:50:27]query_string will be loaded in cgi processing [08:50:27]execute_cgi json_proto POST (null) [08:50:27]execute_cgi path=json_proto method=POST [08:50:27]POST find Content-Length [08:50:27]Host: 172.17.33.3:8080 [08:50:27]Content-Length: 670 [08:50:27]Content-Type: application/json [08:50:27] [08:50:27]POST finish read [08:50:27]Found Content-Length = 670 [08:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:50:27]execute_script... [08:50: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)347872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:50:27]POST & json_proto [08:50:27]process_json_proto [08:50:27]json parsed OK: [08:50:27]protocol is kg_v1.0 [08:50:27]action value=close_receipt [08:50:27]process_action close_receipt [08:50:27]cmd_close_receipt [08:50:27]MH_GetDate [08:50:27]Write to MH i2c: F0 00 00 58 29 70 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 58 29 00 56 EA 1C 66 23 5B 8F 65 AD [08:50:27]GetLastDocTimeStamp 1713170957 [08:50:27]current date 1713171030 [08:50:27]FM_GetShiftState [08:50:27]SAM_PROTO_GetShiftState [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 01 00 [08:50:27]Write to MH i2c: E2 08 00 59 29 80 13 01 00 00 00 00 00 FF [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 59 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F3 [08:50:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetShiftState done [08:50:27]FM_GetShiftState done [08:50:27]opened in 1713140468 [08:50:27]opened+sec_in_day 1713226868 [08:50:27]quantity*price = 60009 [08:50:27]sum+1 = 60011 [08:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 15.04.2024 08:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29466 ФПД: 141824165020361 1/tax-web-control/client/api/v1/ticket?date=20240415T085030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29466&fm=141824165020361&tin=02508201610067®Number=0000138879044617&sum=60000 [08:50:28]StoreToDocumentArchive [08:50:28]shift 117 fd 29466 [08:50:28]save to /storage/0117/doc_00029466 [08:50:28]save last doc name /storage/0117/doc_00029466 to /storage/kkm_last_doc_name [08:50:28]save OK [08:50:28]Clear old archive folders... [08:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:50:28]tlvbuf is 00258D00 [08:50:28]SAM_PROTO_ClearQueue [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 09 00 00 [08:50:28]Write to MH i2c: E2 08 00 66 29 80 09 00 00 00 00 00 00 01 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 66 29 00 90 00 03 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]SAM_PROTO_ClearQueue done [08:50:28]KKMCreateOFDPacket [08:50:28]OFDProtocolAddRootSTLVToBuf [08:50:28]FM_MakeSignedData [08:50:28]FM_MakeSignedData [08:50:28]SAM_PROTO_SignData [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 01 02 [08:50:28]Write to MH i2c: E2 08 00 67 29 80 0D 01 02 00 00 00 00 09 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 67 29 00 90 00 04 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=255 [08:50:28]MH_SAM_APDU [08:50: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 56 EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 73 00 00 35 04 06 00 [08:50:28]Write to MH i2c: E2 02 01 68 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 56 EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 73 00 00 35 04 06 00 00 00 64 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 68 29 00 90 00 05 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=11 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 02 02 06 80 FD 02 FA 02 C9 [08:50:28]Write to MH i2c: E2 0E 00 69 29 80 0D 02 02 06 00 80 FD 02 FA 02 C9 00 00 5C [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 03 00 69 29 00 90 00 06 [08:50:28]RAPDU: 90 00 [08:50:28]wFMCommunicate OK [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 0D 03 02 [08:50:28]Write to MH i2c: E2 08 00 6A 29 80 0D 03 02 00 00 00 00 0E [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0B 00 6A 29 00 AF B5 29 75 FB E6 36 1A 90 00 42 [08:50:28]RAPDU: AF B5 29 75 FB E6 36 1A 90 00 [08:50:28]wFMCommunicate OK [08:50:28]SAM_PROTO_SignData done [08:50:28]FM_MakeSignedData done [08:50:28]CreateOFDProtocolMessage [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 11 00 00 [08:50:28]Write to MH i2c: E2 08 00 6B 29 80 11 00 00 00 00 00 00 0E [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 17 00 6B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [08:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:50:28]wFMCommunicate OK [08:50:28]CreateOFDProtocolMessage done [08:50:28]OFDSenderStorePacket 29466 [08:50:28]StoreOFDPacket docnum=29466 [08:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 34 D4 08 01 8F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 56 EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 73 00 00 35 04 06 00 80 FD 02 FA 02 C9 AF B5 29 75 FB E6 36 1A [08:50:28]CheckFolder [08:50:28]dirname=/storage/ofd_packets [08:50:28]CheckFolder done [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00029466 [08:50:28]NVStorageSaveData ofd_packets/00029466 [08:50:28]File name is /storage/ofd_packets/00029466 [08:50:28]Write 302 bytes [08:50:28]NVStorageSaveData done [08:50:28]OFDSenderStorePacket done [08:50:28]KKMCreateOFDPacket done [08:50:28]NVStorageSaveData kkm_last_timestamp [08:50:28]File name is /storage/kkm_last_timestamp [08:50:28]Write 4 bytes [08:50:28]NVStorageSaveData done [08:50:28]ExternCall_PrintAddStr [08:50:28]wPrintStart [08:50:28]Write to MH i2c: 01 00 00 6C 29 95 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 6C 29 00 00 00 00 00 FF 0F AA [08:50:28]RasterBufferAndPrint [08:50:28]line Счет N : (1)347872 [08:50:28]line ИНН: 02508201610067 [08:50:28]line Контрольно-Кассовый Чек [08:50:28]line ПРОДАЖА [08:50:28]line ТРК (МРК, ГНК) : 22 [08:50:28]line Товар: 2710124130 [08:50:28]line SUPER-92-К-5 [08:50:28]line 9.120 * 65.80 [08:50:28]line = 600.10 [08:50:28]line НДС 12% НСП 1% [08:50:28]line > о реализуемом товаре [08:50:28]line ОКРУГЛЕНИЕ: -0.10 [08:50:28]line ИТОГО: 600.00 [08:50:28]line Внесено: 600.00 [08:50:28]line СДАЧА: 0.00 [08:50:28]line НСП 1% : 5.31 [08:50:28]line НДС 12% : 63.73 [08:50:28]line Наличными: 600.00 [08:50:28]line Безнал.: 0.00 [08:50:28]line Место: АЗС № 108 "Партнер Нефть" [08:50:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:50:28]line СНО: Общий режим [08:50:28]line Чек 60 15.04.2024 08:50 [08:50:28]line Смена: 117 ФФД: 1.0 [08:50:28]line ЗНМ: 0300000027 [08:50:28]line РНМ: 0000138879044617 [08:50:28]line Версия ККМ: 001 [08:50:28]line ФМ: 0000000000963154 [08:50:28]line ФД: 29466 [08:50:28]line ФПД: 141824165020361 [08:50:28]line 1/tax-web-control/client/api/v1/ticket?date=20240415T085030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29466&fm=141824165020361&tin=02508201610067®Number=0000138879044617&sum=60000 [08:50:29]OFD Sender: Processing packet 29466 [packets to send 8, broken 7] [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00029466 [08:50:29]OFD Sender: To server: pG, [08:50:29]CommunicateWithHost lk.salyk.kg:30040 [08:50:29]ConnectInit lk.salyk.kg [08:50:29]written 0, free lines is 4095 [08:50:29]Connected sock=10 [08:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 34 D4 08 01 8F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 56 EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 73 00 00 35 04 06 00 80 FD 02 FA 02 C9 AF B5 29 75 FB E6 36 1A [08:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CD E5 47 00 52 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 39 36 33 31 35 34 10 04 04 00 1A 73 00 00 F4 03 04 00 F8 94 1C 66 B6 04 01 00 00 4E 7B D2 2A 24 5A AF 85 [08:50:29]CommunicateWithHost err = 0 [08:50:29]CheckOFDResponse [08:50:29]1017 (14) - 77093643461234 [08:50:29]1041 (16) - 0000000000963154 [08:50:29]1040 (4) - 29466 [08:50:29]1012 (4) - 15.04.2024 02:46 [08:50:29]1206 (1) - 0 [08:50:29]OFD Sender: Remove packet 29466 [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00029466 [08:50:29]NVStorageDeleteData [08:50:29]Write to MH i2c: 01 00 00 96 29 BF [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 96 29 00 00 00 00 00 C1 0C 93 [08:50:29]RasterBufferAndPrint [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]line [08:50:29]written 0, free lines is 3269 [08:50:29]MH_Cut [08:50:29]Write to MH i2c: D1 01 00 9D 29 01 98 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: D1 01 00 9D 29 00 97 [08:50:29]Write to MH i2c: 01 00 00 9E 29 C7 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]OFD Sender: No OFD packet to send [08:50:30]*** Cut start [08:50:30]*** Partial cut [08:50:30]*** CUTSNS_PIN = 1 [08:50:30]*** CUTSNS_PIN = 0 [08:50:30]*** Brake cut motor [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]*** Stop cut motor [08:50:30]*** Cut end [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 9E 29 00 00 00 00 00 FF 0F DC [08:50:30]process_action close_receipt done [08:50:30]requested_data is exist [08:50:30]produce_requested_data [08:50:30]requested_item fm.sn is exist - process it [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 11 00 00 [08:50:30]Write to MH i2c: E2 08 00 9F 29 80 11 00 00 00 00 00 00 42 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:31]Read from MH i2c: E2 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 17 00 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 17 00 9F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [08:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:50:31]wFMCommunicate OK [08:50:31]requested_item fd.num is exist - process it [08:50:31]SAM_PROTO_GetFieldsCounters [08:50:31]wFMCommunicate request_size=4 [08:50:31]MH_SAM_APDU [08:50:31]CAPDU: 80 13 00 00 [08:50:31]Write to MH i2c: E2 08 00 A0 29 80 13 00 00 00 00 00 00 45 [08:50:31]Write i2c OK [08:50:31]MH_I2C_Read... [08:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:31]Read from MH i2c: E2 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 62 00 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 62 00 A0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 73 00 00 0E 04 04 00 75 00 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 39 [08:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 73 00 00 0E 04 04 00 75 00 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:50:31]wFMCommunicate OK [08:50:31]SAM_PROTO_GetFieldsCounters done [08:50:31]requested_item shift.num is exist - process it [08:50:31]requested_item shift.opened is exist - process it [08:50:31]req_shift_opened [08:50:31]FM_GetShiftState [08:50:31]SAM_PROTO_GetShiftState [08:50:31]wFMCommunicate request_size=4 [08:50:31]MH_SAM_APDU [08:50:31]CAPDU: 80 13 01 00 [08:50:31]Write to MH i2c: E2 08 00 A1 29 80 13 01 00 00 00 00 00 47 [08:50:31]Write i2c OK [08:50:31]MH_I2C_Read... [08:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:31]Read from MH i2c: E2 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 0E 00 [08:50:31]MH_I2C_Read... [08:50:31]Read from MH i2c: E2 0E 00 A1 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3B [08:50:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:50:31]wFMCommunicate OK [08:50:31]SAM_PROTO_GetShiftState done [08:50:31]FM_GetShiftState done [08:50:31]req_shift_opened done [08:50:31]requested_item shift.open_date is exist - process it [08:50:31]req_shift_open_date [08:50:31]req_shift_open_date done [08:50:31]produce_requested_data done [08:50:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29466,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:50:31]process_action_free close_receipt [08:50:31]json_value_free [08:50:31]json_value_free done [08:50:31]process_json_proto returns [08:50:31]Send response to host [08:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29466,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:50:31]free response buf [08:50:31]execute_script done [08:50:31]execute_script returns [08:50:31]free content buf [08:50:31]Sock 8.Close socket [08:50:31]Sock 8.Thread stoped [08:50:33]accept exits with 9 [08:50:33]New connection [08:50:33]New thread 3067112804 created [08:50:33]Thread 3066969444 joined [08:50:33]Waiting for new connection... [08:50:33] Sock 9.Parse request [08:50:33]Sock 9.Check first char [08:50:33]Sock 9.First char is OK [08:50:33]request: POST /json_proto HTTP/1.0 [08:50:33]Method: POST [08:50:33]URL: /json_proto [08:50:33]Method is POST - this is cgi request [08:50:33]url: /json_proto [08:50:33]query_string will be loaded in cgi processing [08:50:33]execute_cgi json_proto POST (null) [08:50:33]execute_cgi path=json_proto method=POST [08:50:33]POST find Content-Length [08:50:33]Host: 172.17.33.3:8080 [08:50:33]Content-Length: 681 [08:50:33]Content-Type: application/json [08:50:33] [08:50:33]POST finish read [08:50:33]Found Content-Length = 681 [08:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "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" ] } } [08:50:33]execute_script... [08:50: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)347871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "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" ] } } [08:50:33]POST & json_proto [08:50:33]process_json_proto [08:50:33]json parsed OK: [08:50:33]protocol is kg_v1.0 [08:50:33]action value=close_receipt [08:50:33]process_action close_receipt [08:50:33]cmd_close_receipt [08:50:33]MH_GetDate [08:50:33]Write to MH i2c: F0 00 00 A2 29 BA [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 09 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: F0 09 00 A2 29 00 5D EA 1C 66 23 5B 8F 65 FE [08:50:33]GetLastDocTimeStamp 1713171030 [08:50:33]current date 1713171037 [08:50:33]FM_GetShiftState [08:50:33]SAM_PROTO_GetShiftState [08:50:33]wFMCommunicate request_size=4 [08:50:33]MH_SAM_APDU [08:50:33]CAPDU: 80 13 01 00 [08:50:33]Write to MH i2c: E2 08 00 A3 29 80 13 01 00 00 00 00 00 49 [08:50:33]Write i2c OK [08:50:33]MH_I2C_Read... [08:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:33]Read from MH i2c: E2 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0E 00 [08:50:33]MH_I2C_Read... [08:50:33]Read from MH i2c: E2 0E 00 A3 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3D [08:50:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:50:33]wFMCommunicate OK [08:50:33]SAM_PROTO_GetShiftState done [08:50:33]FM_GetShiftState done [08:50:33]opened in 1713140468 [08:50:33]opened+sec_in_day 1713226868 [08:50:33]quantity*price = 70006 [08:50:33]sum+1 = 70007 [08:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 15.04.2024 08:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29467 ФПД: 20451790041209 1/tax-web-control/client/api/v1/ticket?date=20240415T085037&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29467&fm=20451790041209&tin=02508201610067®Number=0000138879044617&sum=70000 [08:50:34]StoreToDocumentArchive [08:50:34]shift 117 fd 29467 [08:50:34]save to /storage/0117/doc_00029467 [08:50:34]save last doc name /storage/0117/doc_00029467 to /storage/kkm_last_doc_name [08:50:34]save OK [08:50:34]Clear old archive folders... [08:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:50:34]tlvbuf is 002A6E50 [08:50:34]SAM_PROTO_ClearQueue [08:50:34]wFMCommunicate request_size=4 [08:50:34]MH_SAM_APDU [08:50:34]CAPDU: 80 09 00 00 [08:50:34]Write to MH i2c: E2 08 00 B0 29 80 09 00 00 00 00 00 00 4B [08:50:34]Write i2c OK [08:50:34]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 B0 29 00 90 00 4D [08:50:35]RAPDU: 90 00 [08:50:35]wFMCommunicate OK [08:50:35]SAM_PROTO_ClearQueue done [08:50:35]KKMCreateOFDPacket [08:50:35]OFDProtocolAddRootSTLVToBuf [08:50:35]FM_MakeSignedData [08:50:35]FM_MakeSignedData [08:50:35]SAM_PROTO_SignData [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 0D 01 02 [08:50:35]Write to MH i2c: E2 08 00 B1 29 80 0D 01 02 00 00 00 00 53 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 B1 29 00 90 00 4E [08:50:35]RAPDU: 90 00 [08:50:35]wFMCommunicate OK [08:50:35]wFMCommunicate request_size=255 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3D 00 00 00 F4 03 04 00 5D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 73 00 00 35 04 06 00 12 99 [08:50:35]Write to MH i2c: E2 02 01 B2 29 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3D 00 00 00 F4 03 04 00 5D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 73 00 00 35 04 06 00 12 99 00 00 48 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 B2 29 00 90 00 4F [08:50:35]RAPDU: 90 00 [08:50:35]wFMCommunicate OK [08:50:35]wFMCommunicate request_size=9 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 0D 02 02 04 CD AE 30 79 [08:50:35]Write to MH i2c: E2 0C 00 B3 29 80 0D 02 02 04 00 CD AE 30 79 00 00 82 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 03 00 B3 29 00 90 00 50 [08:50:35]RAPDU: 90 00 [08:50:35]wFMCommunicate OK [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 0D 03 02 [08:50:35]Write to MH i2c: E2 08 00 B4 29 80 0D 03 02 00 00 00 00 58 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0B 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 0B 00 B4 29 00 91 19 1F 77 38 66 BE 2A 90 00 1F [08:50:35]RAPDU: 91 19 1F 77 38 66 BE 2A 90 00 [08:50:35]wFMCommunicate OK [08:50:35]SAM_PROTO_SignData done [08:50:35]FM_MakeSignedData done [08:50:35]CreateOFDProtocolMessage [08:50:35]wFMCommunicate request_size=4 [08:50:35]MH_SAM_APDU [08:50:35]CAPDU: 80 11 00 00 [08:50:35]Write to MH i2c: E2 08 00 B5 29 80 11 00 00 00 00 00 00 58 [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:35]Read from MH i2c: E2 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 17 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: E2 17 00 B5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [08:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:50:35]wFMCommunicate OK [08:50:35]CreateOFDProtocolMessage done [08:50:35]OFDSenderStorePacket 29467 [08:50:35]StoreOFDPacket docnum=29467 [08:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA E7 06 01 2D 14 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3D 00 00 00 F4 03 04 00 5D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 73 00 00 35 04 06 00 12 99 CD AE 30 79 91 19 1F 77 38 66 BE 2A [08:50:35]CheckFolder [08:50:35]dirname=/storage/ofd_packets [08:50:35]CheckFolder done [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00029467 [08:50:35]NVStorageSaveData ofd_packets/00029467 [08:50:35]File name is /storage/ofd_packets/00029467 [08:50:35]Write 300 bytes [08:50:35]NVStorageSaveData done [08:50:35]OFDSenderStorePacket done [08:50:35]KKMCreateOFDPacket done [08:50:35]NVStorageSaveData kkm_last_timestamp [08:50:35]File name is /storage/kkm_last_timestamp [08:50:35]Write 4 bytes [08:50:35]NVStorageSaveData done [08:50:35]ExternCall_PrintAddStr [08:50:35]wPrintStart [08:50:35]Write to MH i2c: 01 00 00 B6 29 DF [08:50:35]Write i2c OK [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 [08:50:35]MH_I2C_Read... [08:50:35]Read from MH i2c: 01 07 00 B6 29 00 00 00 00 00 FF 0F F4 [08:50:35]RasterBufferAndPrint [08:50:35]line Счет N : (1)347871 [08:50:35]line ИНН: 02508201610067 [08:50:35]line Контрольно-Кассовый Чек [08:50:35]line ПРОДАЖА [08:50:35]line ТРК (МРК, ГНК) : 71 [08:50:35]line Товар: 2711129700 [08:50:35]line ГАЗ-К-5 [08:50:35]line 20.960 * 33.40 [08:50:35]line = 700.06 [08:50:35]line НДС 12% НСП 1% [08:50:35]line > о реализуемом товаре [08:50:35]line ОКРУГЛЕНИЕ: -0.06 [08:50:35]line ИТОГО: 700.00 [08:50:35]line Внесено: 700.00 [08:50:35]line СДАЧА: 0.00 [08:50:35]line НСП 1% : 6.19 [08:50:35]line НДС 12% : 74.34 [08:50:35]line Наличными: 700.00 [08:50:35]line Безнал.: 0.00 [08:50:35]line Место: АЗС № 108 "Партнер Нефть" [08:50:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:50:35]line СНО: Общий режим [08:50:35]line Чек 61 15.04.2024 08:50 [08:50:35]line Смена: 117 ФФД: 1.0 [08:50:35]line ЗНМ: 0300000027 [08:50:35]line РНМ: 0000138879044617 [08:50:35]line Версия ККМ: 001 [08:50:35]line ФМ: 0000000000963154 [08:50:35]line ФД: 29467 [08:50:35]line ФПД: 20451790041209 [08:50:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T085037&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29467&fm=20451790041209&tin=02508201610067®Number=0000138879044617&sum=70000 [08:50:35]written 0, free lines is 4095 [08:50:35]OFD Sender: Processing packet 29467 [packets to send 8, broken 7] [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00029467 [08:50:35]OFD Sender: To server: pG, [08:50:35]CommunicateWithHost lk.salyk.kg:30040 [08:50:35]ConnectInit lk.salyk.kg [08:50:35]Connected sock=10 [08:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA E7 06 01 2D 14 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 3D 00 00 00 F4 03 04 00 5D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 73 00 00 35 04 06 00 12 99 CD AE 30 79 91 19 1F 77 38 66 BE 2A [08:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 7C 47 00 C0 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 39 36 33 31 35 34 10 04 04 00 1B 73 00 00 F4 03 04 00 FE 94 1C 66 B6 04 01 00 00 E5 4C 88 45 BC 48 3C 1D [08:50:35]CommunicateWithHost err = 0 [08:50:35]CheckOFDResponse [08:50:35]1017 (14) - 77093643461234 [08:50:35]1041 (16) - 0000000000963154 [08:50:35]1040 (4) - 29467 [08:50:35]1012 (4) - 15.04.2024 02:46 [08:50:35]1206 (1) - 0 [08:50:35]OFD Sender: Remove packet 29467 [08:50:35]ProducePacketName [08:50:35]name=ofd_packets/00029467 [08:50:35]NVStorageDeleteData [08:50:36]Write to MH i2c: 01 00 00 E0 29 09 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 07 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: 01 07 00 E0 29 00 00 00 00 00 CD 0C E9 [08:50:36]RasterBufferAndPrint [08:50:36]line [08:50:36]line [08:50:36]line [08:50:36]line [08:50:36]line [08:50:36]written 0, free lines is 3293 [08:50:36]MH_Cut [08:50:36]Write to MH i2c: D1 01 00 E7 29 01 E2 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: D1 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: D1 01 00 [08:50:36]MH_I2C_Read... [08:50:36]Read from MH i2c: D1 01 00 E7 29 00 E1 [08:50:36]Write to MH i2c: 01 00 00 E8 29 11 [08:50:36]Write i2c OK [08:50:36]MH_I2C_Read... [08:50:36]OFD Sender: No OFD packet to send [08:50:36]*** Cut start [08:50:36]*** Partial cut [08:50:36]*** CUTSNS_PIN = 1 [08:50:36]*** CUTSNS_PIN = 0 [08:50:37]*** Brake cut motor [08:50:37]Read from MH i2c: 01 [08:50:37]MH_I2C_Read... [08:50:37]*** Stop cut motor [08:50:37]*** Cut end [08:50:37]Read from MH i2c: 01 07 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: 01 07 00 E8 29 00 00 00 00 00 FF 0F 26 [08:50:37]process_action close_receipt done [08:50:37]requested_data is exist [08:50:37]produce_requested_data [08:50:37]requested_item fm.sn is exist - process it [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 11 00 00 [08:50:37]Write to MH i2c: E2 08 00 E9 29 80 11 00 00 00 00 00 00 8C [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 17 00 E9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [08:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:50:37]wFMCommunicate OK [08:50:37]requested_item fd.num is exist - process it [08:50:37]SAM_PROTO_GetFieldsCounters [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 00 00 [08:50:37]Write to MH i2c: E2 08 00 EA 29 80 13 00 00 00 00 00 00 8F [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 62 00 EA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 73 00 00 0E 04 04 00 75 00 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 87 [08:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 73 00 00 0E 04 04 00 75 00 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:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetFieldsCounters done [08:50:37]requested_item shift.num is exist - process it [08:50:37]requested_item shift.opened is exist - process it [08:50:37]req_shift_opened [08:50:37]FM_GetShiftState [08:50:37]SAM_PROTO_GetShiftState [08:50:37]wFMCommunicate request_size=4 [08:50:37]MH_SAM_APDU [08:50:37]CAPDU: 80 13 01 00 [08:50:37]Write to MH i2c: E2 08 00 EB 29 80 13 01 00 00 00 00 00 91 [08:50:37]Write i2c OK [08:50:37]MH_I2C_Read... [08:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:37]Read from MH i2c: E2 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 [08:50:37]MH_I2C_Read... [08:50:37]Read from MH i2c: E2 0E 00 EB 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [08:50:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:50:37]wFMCommunicate OK [08:50:37]SAM_PROTO_GetShiftState done [08:50:37]FM_GetShiftState done [08:50:37]req_shift_opened done [08:50:37]requested_item shift.open_date is exist - process it [08:50:37]req_shift_open_date [08:50:37]req_shift_open_date done [08:50:37]produce_requested_data done [08:50:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29467,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:50:37]process_action_free close_receipt [08:50:37]json_value_free [08:50:37]json_value_free done [08:50:37]process_json_proto returns [08:50:37]Send response to host [08:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29467,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:50:37]free response buf [08:50:37]execute_script done [08:50:37]execute_script returns [08:50:37]free content buf [08:50:37]Sock 9.Close socket [08:50:37]Sock 9.Thread stoped [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]accept exits with 8 [08:51:21]New connection [08:51:21]New thread 3066969444 created [08:51:21]Thread 3067112804 joined [08:51:21]Waiting for new connection... [08:51:21] Sock 8.Parse request [08:51:21]Sock 8.Check first char [08:51:21]Sock 8.First char is OK [08:51:21]request: POST /json_proto HTTP/1.0 [08:51:21]Method: POST [08:51:21]URL: /json_proto [08:51:21]Method is POST - this is cgi request [08:51:21]url: /json_proto [08:51:21]query_string will be loaded in cgi processing [08:51:21]execute_cgi json_proto POST (null) [08:51:21]execute_cgi path=json_proto method=POST [08:51:21]POST find Content-Length [08:51:21]Host: 172.17.33.3:8080 [08:51:21]Content-Length: 670 [08:51:21]Content-Type: application/json [08:51:21] [08:51:21]POST finish read [08:51:21]Found Content-Length = 670 [08:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:21]execute_script... [08: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)347873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:21]POST & json_proto [08:51:21]process_json_proto [08:51:21]json parsed OK: [08:51:21]protocol is kg_v1.0 [08:51:21]action value=close_receipt [08:51:21]process_action close_receipt [08:51:21]cmd_close_receipt [08:51:21]MH_GetDate [08:51:21]Write to MH i2c: F0 00 00 EC 29 04 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: F0 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: F0 09 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: F0 09 00 EC 29 00 8D EA 1C 66 23 5B 8F 65 78 [08:51:21]GetLastDocTimeStamp 1713171037 [08:51:21]current date 1713171085 [08:51:21]FM_GetShiftState [08:51:21]SAM_PROTO_GetShiftState [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 13 01 00 [08:51:21]Write to MH i2c: E2 08 00 ED 29 80 13 01 00 00 00 00 00 93 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 0E 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 0E 00 ED 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 87 [08:51:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:51:21]wFMCommunicate OK [08:51:21]SAM_PROTO_GetShiftState done [08:51:21]FM_GetShiftState done [08:51:21]opened in 1713140468 [08:51:21]opened+sec_in_day 1713226868 [08:51:21]quantity*price = 35005 [08:51:21]sum+1 = 35007 [08:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 15.04.2024 08:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29468 ФПД: 223672688841273 1/tax-web-control/client/api/v1/ticket?date=20240415T085125&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29468&fm=223672688841273&tin=02508201610067®Number=0000138879044617&sum=35000 [08:51:22]StoreToDocumentArchive [08:51:22]shift 117 fd 29468 [08:51:22]save to /storage/0117/doc_00029468 [08:51:22]save last doc name /storage/0117/doc_00029468 to /storage/kkm_last_doc_name [08:51:22]save OK [08:51:22]Clear old archive folders... [08:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:51:22]tlvbuf is B6F7F630 [08:51:22]SAM_PROTO_ClearQueue [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 09 00 00 [08:51:22]Write to MH i2c: E2 08 00 FA 29 80 09 00 00 00 00 00 00 95 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 FA 29 00 90 00 97 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_ClearQueue done [08:51:22]KKMCreateOFDPacket [08:51:22]OFDProtocolAddRootSTLVToBuf [08:51:22]FM_MakeSignedData [08:51:22]FM_MakeSignedData [08:51:22]SAM_PROTO_SignData [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 01 02 [08:51:22]Write to MH i2c: E2 08 00 FB 29 80 0D 01 02 00 00 00 00 9D [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 FB 29 00 90 00 98 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=255 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 73 00 00 35 04 06 00 [08:51:22]Write to MH i2c: E2 02 01 FC 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 73 00 00 35 04 06 00 00 00 E2 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 FC 29 00 90 00 99 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=11 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 02 02 06 CB 6D DB 2A 12 39 [08:51:22]Write to MH i2c: E2 0E 00 FD 29 80 0D 02 02 06 00 CB 6D DB 2A 12 39 00 00 34 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 FD 29 00 90 00 9A [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 03 02 [08:51:22]Write to MH i2c: E2 08 00 FE 29 80 0D 03 02 00 00 00 00 A2 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 0B 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 0B 00 FE 29 00 0A 85 22 06 34 08 FA 55 90 00 E5 [08:51:23]RAPDU: 0A 85 22 06 34 08 FA 55 90 00 [08:51:23]wFMCommunicate OK [08:51:23]SAM_PROTO_SignData done [08:51:23]FM_MakeSignedData done [08:51:23]CreateOFDProtocolMessage [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 11 00 00 [08:51:23]Write to MH i2c: E2 08 00 FF 29 80 11 00 00 00 00 00 00 A2 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 17 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 17 00 FF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [08:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:23]wFMCommunicate OK [08:51:23]CreateOFDProtocolMessage done [08:51:23]OFDSenderStorePacket 29468 [08:51:23]StoreOFDPacket docnum=29468 [08:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D6 06 08 01 A4 F6 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 73 00 00 35 04 06 00 CB 6D DB 2A 12 39 0A 85 22 06 34 08 FA 55 [08:51:23]CheckFolder [08:51:23]dirname=/storage/ofd_packets [08:51:23]CheckFolder done [08:51:23]ProducePacketName [08:51:23]name=ofd_packets/00029468 [08:51:23]NVStorageSaveData ofd_packets/00029468 [08:51:23]File name is /storage/ofd_packets/00029468 [08:51:23]Write 302 bytes [08:51:23]NVStorageSaveData done [08:51:23]OFDSenderStorePacket done [08:51:23]KKMCreateOFDPacket done [08:51:23]NVStorageSaveData kkm_last_timestamp [08:51:23]File name is /storage/kkm_last_timestamp [08:51:23]Write 4 bytes [08:51:23]NVStorageSaveData done [08:51:23]ExternCall_PrintAddStr [08:51:23]wPrintStart [08:51:23]Write to MH i2c: 01 00 00 00 2A 2A [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 00 2A 00 00 00 00 00 FF 0F 3F [08:51:23]RasterBufferAndPrint [08:51:23]line Счет N : (1)347873 [08:51:23]line ИНН: 02508201610067 [08:51:23]line Контрольно-Кассовый Чек [08:51:23]line ПРОДАЖА [08:51:23]line ТРК (МРК, ГНК) : 12 [08:51:23]line Товар: 2710124130 [08:51:23]line SUPER-92-К-5 [08:51:23]line 5.320 * 65.80 [08:51:23]line = 350.06 [08:51:23]line НДС 12% НСП 1% [08:51:23]line > о реализуемом товаре [08:51:23]line ОКРУГЛЕНИЕ: -0.06 [08:51:23]line ИТОГО: 350.00 [08:51:23]line Внесено: 350.00 [08:51:23]line СДАЧА: 0.00 [08:51:23]line НСП 1% : 3.10 [08:51:23]line НДС 12% : 37.17 [08:51:23]line Наличными: 350.00 [08:51:23]line Безнал.: 0.00 [08:51:23]line Место: АЗС № 108 "Партнер Нефть" [08:51:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:51:23]line СНО: Общий режим [08:51:23]line Чек 62 15.04.2024 08:51 [08:51:23]line Смена: 117 ФФД: 1.0 [08:51:23]line ЗНМ: 0300000027 [08:51:23]line РНМ: 0000138879044617 [08:51:23]line Версия ККМ: 001 [08:51:23]line ФМ: 0000000000963154 [08:51:23]line ФД: 29468 [08:51:23]line ФПД: 223672688841273 [08:51:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T085125&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29468&fm=223672688841273&tin=02508201610067®Number=0000138879044617&sum=35000 [08:51:23]OFD Sender: Processing packet 29468 [packets to send 8, broken 7] [08:51:23]ProducePacketName [08:51:23]name=ofd_packets/00029468 [08:51:23]OFD Sender: To server: pG, [08:51:23]CommunicateWithHost lk.salyk.kg:30040 [08:51:23]ConnectInit lk.salyk.kg [08:51:23]written 0, free lines is 4095 [08:51:23]Connected sock=10 [08:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D6 06 08 01 A4 F6 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 8D EA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 73 00 00 35 04 06 00 CB 6D DB 2A 12 39 0A 85 22 06 34 08 FA 55 [08:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 9F 47 00 B0 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 39 36 33 31 35 34 10 04 04 00 1C 73 00 00 F4 03 04 00 2E 95 1C 66 B6 04 01 00 00 F0 86 11 44 EF CD EB 30 [08:51:23]CommunicateWithHost err = 0 [08:51:23]CheckOFDResponse [08:51:23]1017 (14) - 77093643461234 [08:51:23]1041 (16) - 0000000000963154 [08:51:23]1040 (4) - 29468 [08:51:23]1012 (4) - 15.04.2024 02:47 [08:51:23]1206 (1) - 0 [08:51:23]OFD Sender: Remove packet 29468 [08:51:23]ProducePacketName [08:51:23]name=ofd_packets/00029468 [08:51:23]NVStorageDeleteData [08:51:23]Write to MH i2c: 01 00 00 2A 2A 54 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 2A 2A 00 00 00 00 00 CA 0C 31 [08:51:23]RasterBufferAndPrint [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]written 0, free lines is 3279 [08:51:23]MH_Cut [08:51:23]Write to MH i2c: D1 01 00 31 2A 01 2D [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 01 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 01 00 31 2A 00 2C [08:51:23]Write to MH i2c: 01 00 00 32 2A 5C [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:24]OFD Sender: No OFD packet to send [08:51:24]*** Cut start [08:51:24]*** Partial cut [08:51:24]*** CUTSNS_PIN = 1 [08:51:24]*** CUTSNS_PIN = 0 [08:51:25]*** Brake cut motor [08:51:25]Read from MH i2c: 01 [08:51:25]MH_I2C_Read... [08:51:25]*** Stop cut motor [08:51:25]*** Cut end [08:51:25]Read from MH i2c: 01 07 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 FF 0F 71 [08:51:25]process_action close_receipt done [08:51:25]requested_data is exist [08:51:25]produce_requested_data [08:51:25]requested_item fm.sn is exist - process it [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 11 00 00 [08:51:25]Write to MH i2c: E2 08 00 33 2A 80 11 00 00 00 00 00 00 D7 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 17 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 17 00 33 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [08:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:25]wFMCommunicate OK [08:51:25]requested_item fd.num is exist - process it [08:51:25]SAM_PROTO_GetFieldsCounters [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 13 00 00 [08:51:25]Write to MH i2c: E2 08 00 34 2A 80 13 00 00 00 00 00 00 DA [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 62 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 62 00 34 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 73 00 00 0E 04 04 00 75 00 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 D6 [08:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 73 00 00 0E 04 04 00 75 00 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:51:25]wFMCommunicate OK [08:51:25]SAM_PROTO_GetFieldsCounters done [08:51:25]requested_item shift.num is exist - process it [08:51:25]requested_item shift.opened is exist - process it [08:51:25]req_shift_opened [08:51:25]FM_GetShiftState [08:51:25]SAM_PROTO_GetShiftState [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 13 01 00 [08:51:25]Write to MH i2c: E2 08 00 35 2A 80 13 01 00 00 00 00 00 DC [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 0E 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 0E 00 35 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D0 [08:51:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:51:25]wFMCommunicate OK [08:51:25]SAM_PROTO_GetShiftState done [08:51:25]FM_GetShiftState done [08:51:25]req_shift_opened done [08:51:25]requested_item shift.open_date is exist - process it [08:51:25]req_shift_open_date [08:51:25]req_shift_open_date done [08:51:25]produce_requested_data done [08:51:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29468,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:51:25]process_action_free close_receipt [08:51:25]json_value_free [08:51:25]json_value_free done [08:51:25]process_json_proto returns [08:51:25]Send response to host [08:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29468,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:51:25]free response buf [08:51:25]execute_script done [08:51:25]execute_script returns [08:51:25]free content buf [08:51:25]Sock 8.Close socket [08:51:25]Sock 8.Thread stoped [08:51:29]OFD Sender: No OFD packet to send [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 36 2A 60 [08:51:30]*** FLAG_PRN_KEY set [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 36 2A 00 08 00 00 00 FF 0F 7D [08:51:30]state=0 [08:51:30]Key pressed [08:51:30]Feed [08:51:30]Write to MH i2c: D8 00 00 37 2A 38 [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 01 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 01 00 37 2A 00 39 [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 38 2A 62 [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 38 2A 00 48 00 00 00 3C 00 ED [08:51:30]state=2 [08:51:30]Key pressed [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 39 2A 63 [08:51:30]*** FLAG_PRN_KEY reset [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 39 2A 00 00 00 00 00 FA 0F 73 [08:51:30]state=2 [08:51:30]Stop feed [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 3A 2A 64 [08:51:30]*** FLAG_PRN_KEY set [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 3A 2A 00 08 00 00 00 FF 0F 81 [08:51:30]state=0 [08:51:30]Key pressed [08:51:30]Feed [08:51:30]Write to MH i2c: D8 00 00 3B 2A 3C [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 01 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: D8 01 00 3B 2A 00 3D [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 3C 2A 66 [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 3C 2A 00 48 00 00 00 3C 00 F1 [08:51:30]state=2 [08:51:30]Key pressed [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 3D 2A 67 [08:51:30]*** FLAG_PRN_KEY reset [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 3D 2A 00 00 00 00 00 F5 0F 72 [08:51:30]state=2 [08:51:30]Stop feed [08:51:30]int [08:51:30]Write to MH i2c: 01 00 00 3E 2A 68 [08:51:30]*** FLAG_PRN_PAP1 set [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: 01 07 00 3E 2A 00 01 00 00 00 FF 0F 7E [08:51:30]state=0 [08:51:30]No paper [08:51:31]int [08:51:31]Write to MH i2c: 01 00 00 3F 2A 69 [08:51:31]*** FLAG_PRN_PAP2 set [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: 01 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: 01 07 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: 01 07 00 3F 2A 00 03 00 00 00 FF 0F 81 [08:51:31]state=0 [08:51:31]No paper [08:51:31]Cover opened [08:51:33]int [08:51:33]Write to MH i2c: 01 00 00 40 2A 6A [08:51:33]*** FLAG_PRN_PAP2 reset [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 40 2A 00 01 00 00 00 FF 0F 80 [08:51:33]state=3 [08:51:33]No paper [08:51:33]Cover closed [08:51:33]int [08:51:33]Write to MH i2c: 01 00 00 41 2A 6B [08:51:33]*** FLAG_PRN_PAP1 reset [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 41 2A 00 00 00 00 00 FF 0F 80 [08:51:33]state=0 [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:45]int [08:51:45]Write to MH i2c: 01 00 00 42 2A 6C [08:51:45]*** FLAG_PRN_KEY set [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 42 2A 00 08 00 00 00 FF 0F 89 [08:51:45]state=0 [08:51:45]Key pressed [08:51:45]Feed [08:51:45]Write to MH i2c: D8 00 00 43 2A 44 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: D8 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: D8 01 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: D8 01 00 43 2A 00 45 [08:51:45]int [08:51:45]Write to MH i2c: 01 00 00 44 2A 6E [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: 01 07 00 44 2A 00 48 00 00 00 3D 00 FA [08:51:45]state=2 [08:51:45]Key pressed [08:51:46]int [08:51:46]Write to MH i2c: 01 00 00 45 2A 6F [08:51:46]*** FLAG_PRN_KEY reset [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 45 2A 00 00 00 00 00 FE 0F 83 [08:51:46]state=2 [08:51:46]Stop feed [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:14]int [08:57:14]Write to MH i2c: 01 00 00 46 2A 70 [08:57:14]*** FLAG_PRN_KEY set [08:57:14]Write i2c OK [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 46 2A 00 08 00 00 00 FF 0F 8D [08:57:14]state=0 [08:57:14]Key pressed [08:57:14]Feed [08:57:14]Write to MH i2c: D8 00 00 47 2A 48 [08:57:14]Write i2c OK [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: D8 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: D8 01 00 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: D8 01 00 47 2A 00 49 [08:57:14]int [08:57:14]Write to MH i2c: 01 00 00 48 2A 72 [08:57:14]Write i2c OK [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 48 2A 00 48 00 00 00 3D 00 FE [08:57:14]state=2 [08:57:14]Key pressed [08:57:14]int [08:57:14]Write to MH i2c: 01 00 00 49 2A 73 [08:57:14]*** FLAG_PRN_KEY reset [08:57:14]Write i2c OK [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 F6 0F 7F [08:57:14]state=2 [08:57:14]Stop feed [08:57:15]int [08:57:15]Write to MH i2c: 01 00 00 4A 2A 74 [08:57:15]*** FLAG_PRN_KEY set [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 4A 2A 00 08 00 00 00 FF 0F 91 [08:57:15]state=0 [08:57:15]Key pressed [08:57:15]Feed [08:57:15]Write to MH i2c: D8 00 00 4B 2A 4C [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: D8 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: D8 01 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: D8 01 00 4B 2A 00 4D [08:57:15]int [08:57:15]Write to MH i2c: 01 00 00 4C 2A 76 [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 4C 2A 00 48 00 00 00 3C 00 01 [08:57:15]state=2 [08:57:15]Key pressed [08:57:15]int [08:57:15]Write to MH i2c: 01 00 00 4D 2A 77 [08:57:15]*** FLAG_PRN_KEY reset [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: 01 07 00 4D 2A 00 00 00 00 00 F6 0F 83 [08:57:15]state=2 [08:57:15]Stop feed [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:05]int [08:58:05]Write to MH i2c: 01 00 00 4E 2A 78 [08:58:05]*** FLAG_PRN_KEY set [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 4E 2A 00 08 00 00 00 FF 0F 95 [08:58:05]state=0 [08:58:05]Key pressed [08:58:05]Feed [08:58:05]Write to MH i2c: D8 00 00 4F 2A 50 [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 01 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 01 00 4F 2A 00 51 [08:58:05]int [08:58:05]Write to MH i2c: 01 00 00 50 2A 7A [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 50 2A 00 48 00 00 00 3D 00 06 [08:58:05]state=2 [08:58:05]Key pressed [08:58:05]int [08:58:05]Write to MH i2c: 01 00 00 51 2A 7B [08:58:05]*** FLAG_PRN_KEY reset [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 F9 0F 8A [08:58:05]state=2 [08:58:05]Stop feed [08:58:05]int [08:58:05]Write to MH i2c: 01 00 00 52 2A 7C [08:58:05]*** FLAG_PRN_KEY set [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 52 2A 00 08 00 00 00 FF 0F 99 [08:58:05]state=0 [08:58:05]Key pressed [08:58:05]Feed [08:58:05]Write to MH i2c: D8 00 00 53 2A 54 [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 01 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: D8 01 00 53 2A 00 55 [08:58:05]int [08:58:05]Write to MH i2c: 01 00 00 54 2A 7E [08:58:05]Write i2c OK [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 [08:58:05]MH_I2C_Read... [08:58:05]Read from MH i2c: 01 07 00 54 2A 00 48 00 00 00 3C 00 09 [08:58:05]state=2 [08:58:05]Key pressed [08:58:06]int [08:58:06]Write to MH i2c: 01 00 00 55 2A 7F [08:58:06]*** FLAG_PRN_KEY reset [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: 01 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: 01 07 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: 01 07 00 55 2A 00 00 00 00 00 F6 0F 8B [08:58:06]state=2 [08:58:06]Stop feed [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:36]accept exits with 9 [08:58:36]New connection [08:58:36]New thread 3067112804 created [08:58:36]Thread 3066969444 joined [08:58:36]Waiting for new connection... [08:58:36] Sock 9.Parse request [08:58:36]Sock 9.Check first char [08:58:36]Sock 9.First char is OK [08:58:36]request: POST /json_proto HTTP/1.0 [08:58:36]Method: POST [08:58:36]URL: /json_proto [08:58:36]Method is POST - this is cgi request [08:58:36]url: /json_proto [08:58:36]query_string will be loaded in cgi processing [08:58:36]execute_cgi json_proto POST (null) [08:58:36]execute_cgi path=json_proto method=POST [08:58:36]POST find Content-Length [08:58:36]Host: 172.17.33.3:8080 [08:58:36]Content-Length: 1210 [08:58:36]Content-Type: application/json [08:58:36] [08:58:36]POST finish read [08:58:36]Found Content-Length = 1210 [08:58: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347874\u000A15.04.2024 08:40\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:36]execute_script... [08:58: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347874\u000A15.04.2024 08:40\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:36]POST & json_proto [08:58:36]process_json_proto [08:58:36]json parsed OK: [08:58:36]protocol is kg_v1.0 [08:58:36]action value=print_text [08:58:36]process_action print_text [08:58:36]cmd_print_text [08:58:36]ExternCall_PrintAddStr [08:58:36]wPrintStart [08:58:36]Write to MH i2c: 01 00 00 56 2A 80 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 56 2A 00 00 00 00 00 FF 0F 95 [08:58:36]RasterBufferAndPrint [08:58:36]line *****ТОВАРНЫЙ ЧЕК***** [08:58:36]line АЗС 108 [08:58:36]line Партнер нефть [08:58:36]line 02508201610067 [08:58:36]line Кассир : Джумагулова Н. [08:58:36]line Счет N : (1)347874 [08:58:36]line 15.04.2024 08:40 [08:58:36]line ПРОДАЖА [08:58:36]line ТРК (МРК, ГНК): 51 [08:58:36]line Вид ГСМ : 2710194210 [08:58:36]line ДТ-К-5 [08:58:36]line 20.580 x 72.90 [08:58:36]line ИТОГ: 1500.28 [08:58:36]line Тип оплаты: Талоны: Топливная Карта [08:58:36]line 65563 [08:58:36]line ______________________ [08:58:36]line (подпись) [08:58:36]written 0, free lines is 4095 [08:58:36]Write to MH i2c: 01 00 00 6B 2A 95 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: 01 07 00 6B 2A 00 00 00 00 00 F8 0D A1 [08:58:36]RasterBufferAndPrint [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]line [08:58:36]written 0, free lines is 3578 [08:58:36]MH_Cut [08:58:36]Write to MH i2c: D1 01 00 72 2A 01 6E [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 01 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: D1 01 00 72 2A 00 6D [08:58:36]Write to MH i2c: 01 00 00 73 2A 9D [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:37]*** Cut start [08:58:37]*** Partial cut [08:58:37]*** CUTSNS_PIN = 1 [08:58:37]*** CUTSNS_PIN = 0 [08:58:37]*** Brake cut motor [08:58:38]Read from MH i2c: 01 [08:58:38]MH_I2C_Read... [08:58:38]*** Stop cut motor [08:58:38]*** Cut end [08:58:38]Read from MH i2c: 01 07 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 73 2A 00 00 00 00 00 FF 0F B2 [08:58:38]process_action print_text done [08:58:38]requested_data is exist [08:58:38]produce_requested_data [08:58:38]requested_item fm.sn is exist - process it [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 11 00 00 [08:58:38]Write to MH i2c: E2 08 00 74 2A 80 11 00 00 00 00 00 00 18 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 17 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 17 00 74 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [08:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:58:38]wFMCommunicate OK [08:58:38]requested_item fd.num is exist - process it [08:58:38]SAM_PROTO_GetFieldsCounters [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 00 00 [08:58:38]Write to MH i2c: E2 08 00 75 2A 80 13 00 00 00 00 00 00 1B [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 62 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 62 00 75 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 73 00 00 0E 04 04 00 75 00 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 17 [08:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 73 00 00 0E 04 04 00 75 00 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:58:38]wFMCommunicate OK [08:58:38]SAM_PROTO_GetFieldsCounters done [08:58:38]requested_item shift.num is exist - process it [08:58:38]requested_item shift.opened is exist - process it [08:58:38]req_shift_opened [08:58:38]FM_GetShiftState [08:58:38]SAM_PROTO_GetShiftState [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 01 00 [08:58:38]Write to MH i2c: E2 08 00 76 2A 80 13 01 00 00 00 00 00 1D [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 76 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 11 [08:58:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:58:38]wFMCommunicate OK [08:58:38]SAM_PROTO_GetShiftState done [08:58:38]FM_GetShiftState done [08:58:38]req_shift_opened done [08:58:38]requested_item shift.open_date is exist - process it [08:58:38]req_shift_open_date [08:58:38]req_shift_open_date done [08:58:38]produce_requested_data done [08:58:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29468,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:58:38]process_action_free print_text [08:58:38]json_value_free [08:58:38]json_value_free done [08:58:38]process_json_proto returns [08:58:38]Send response to host [08:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29468,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:58:38]free response buf [08:58:38]execute_script done [08:58:38]execute_script returns [08:58:38]free content buf [08:58:38]Sock 9.Close socket [08:58:38]Sock 9.Thread stoped [08:58:38]accept exits with 8 [08:58:38]New connection [08:58:38]New thread 3066969444 created [08:58:38]Thread 3067112804 joined [08:58:38]Waiting for new connection... [08:58:38] Sock 8.Parse request [08:58:38]Sock 8.Check first char [08:58:38]Sock 8.First char is OK [08:58:38]request: POST /json_proto HTTP/1.0 [08:58:38]Method: POST [08:58:38]URL: /json_proto [08:58:38]Method is POST - this is cgi request [08:58:38]url: /json_proto [08:58:38]query_string will be loaded in cgi processing [08:58:38]execute_cgi json_proto POST (null) [08:58:38]execute_cgi path=json_proto method=POST [08:58:38]POST find Content-Length [08:58:38]Host: 172.17.33.3:8080 [08:58:38]Content-Length: 678 [08:58:38]Content-Type: application/json [08:58:38] [08:58:38]POST finish read [08:58:38]Found Content-Length = 678 [08:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:58:38]execute_script... [08:58: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)347875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:58:38]POST & json_proto [08:58:38]process_json_proto [08:58:38]json parsed OK: [08:58:38]protocol is kg_v1.0 [08:58:38]action value=close_receipt [08:58:38]process_action close_receipt [08:58:38]cmd_close_receipt [08:58:38]MH_GetDate [08:58:38]Write to MH i2c: F0 00 00 77 2A 90 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 77 2A 00 42 EC 1C 66 23 5B 8F 65 BB [08:58:38]GetLastDocTimeStamp 1713171085 [08:58:38]current date 1713171522 [08:58:38]FM_GetShiftState [08:58:38]SAM_PROTO_GetShiftState [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 01 00 [08:58:38]Write to MH i2c: E2 08 00 78 2A 80 13 01 00 00 00 00 00 1F [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 78 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 13 [08:58:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:58:38]wFMCommunicate OK [08:58:38]SAM_PROTO_GetShiftState done [08:58:38]FM_GetShiftState done [08:58:38]opened in 1713140468 [08:58:38]opened+sec_in_day 1713226868 [08:58:38]quantity*price = 70048 [08:58:38]sum+1 = 70050 [08:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 15.04.2024 08:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29469 ФПД: 24227026360599 1/tax-web-control/client/api/v1/ticket?date=20240415T085842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29469&fm=24227026360599&tin=02508201610067®Number=0000138879044617&sum=70000 [08:58:40]StoreToDocumentArchive [08:58:40]shift 117 fd 29469 [08:58:40]save to /storage/0117/doc_00029469 [08:58:40]save last doc name /storage/0117/doc_00029469 to /storage/kkm_last_doc_name [08:58:40]save OK [08:58:40]Clear old archive folders... [08:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:40]tlvbuf is B6F7F230 [08:58:40]SAM_PROTO_ClearQueue [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 09 00 00 [08:58:40]Write to MH i2c: E2 08 00 85 2A 80 09 00 00 00 00 00 00 21 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_ClearQueue done [08:58:40]KKMCreateOFDPacket [08:58:40]OFDProtocolAddRootSTLVToBuf [08:58:40]FM_MakeSignedData [08:58:40]FM_MakeSignedData [08:58:40]SAM_PROTO_SignData [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 01 02 [08:58:40]Write to MH i2c: E2 08 00 86 2A 80 0D 01 02 00 00 00 00 29 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 86 2A 00 90 00 24 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=255 [08:58:40]MH_SAM_APDU [08:58: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3F 00 00 00 F4 03 04 00 42 EC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 73 00 00 35 04 06 00 16 [08:58:40]Write to MH i2c: E2 02 01 87 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3F 00 00 00 F4 03 04 00 42 EC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 73 00 00 35 04 06 00 16 00 00 78 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 87 2A 00 90 00 25 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=10 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 02 02 05 08 CB 4C D9 17 [08:58:40]Write to MH i2c: E2 0D 00 88 2A 80 0D 02 02 05 00 08 CB 4C D9 17 00 00 45 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 88 2A 00 90 00 26 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 03 02 [08:58:40]Write to MH i2c: E2 08 00 89 2A 80 0D 03 02 00 00 00 00 2E [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 89 2A 00 C0 AD 1C 97 F4 58 AA D3 90 00 18 [08:58:40]RAPDU: C0 AD 1C 97 F4 58 AA D3 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_SignData done [08:58:40]FM_MakeSignedData done [08:58:40]CreateOFDProtocolMessage [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 11 00 00 [08:58:40]Write to MH i2c: E2 08 00 8A 2A 80 11 00 00 00 00 00 00 2E [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 8A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [08:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:58:40]wFMCommunicate OK [08:58:40]CreateOFDProtocolMessage done [08:58:40]OFDSenderStorePacket 29469 [08:58:40]StoreOFDPacket docnum=29469 [08:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 45 07 01 30 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3F 00 00 00 F4 03 04 00 42 EC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 73 00 00 35 04 06 00 16 08 CB 4C D9 17 C0 AD 1C 97 F4 58 AA D3 [08:58:40]CheckFolder [08:58:40]dirname=/storage/ofd_packets [08:58:40]CheckFolder done [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00029469 [08:58:40]NVStorageSaveData ofd_packets/00029469 [08:58:40]File name is /storage/ofd_packets/00029469 [08:58:40]Write 301 bytes [08:58:40]NVStorageSaveData done [08:58:40]OFDSenderStorePacket done [08:58:40]KKMCreateOFDPacket done [08:58:40]NVStorageSaveData kkm_last_timestamp [08:58:40]File name is /storage/kkm_last_timestamp [08:58:40]Write 4 bytes [08:58:40]NVStorageSaveData done [08:58:40]ExternCall_PrintAddStr [08:58:40]wPrintStart [08:58:40]Write to MH i2c: 01 00 00 8B 2A B5 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 FF 0F CA [08:58:40]RasterBufferAndPrint [08:58:41]line Счет N : (1)347875 [08:58:41]line ИНН: 02508201610067 [08:58:41]line Контрольно-Кассовый Чек [08:58:41]line ПРОДАЖА [08:58:41]line ТРК (МРК, ГНК) : 13 [08:58:41]line Товар: 2710124130 [08:58:41]line Аи-92-К-5 [08:58:41]line 10.810 * 64.80 [08:58:41]line = 700.49 [08:58:41]line НДС 12% НСП 1% [08:58:41]line > о реализуемом товаре [08:58:41]line ОКРУГЛЕНИЕ: -0.49 [08:58:41]line ИТОГО: 700.00 [08:58:41]line Внесено: 700.00 [08:58:41]line СДАЧА: 0.00 [08:58:41]line НСП 1% : 6.20 [08:58:41]line НДС 12% : 74.39 [08:58:41]line Наличными: 700.00 [08:58:41]line Безнал.: 0.00 [08:58:41]line Место: АЗС № 108 "Партнер Нефть" [08:58:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:58:41]line СНО: Общий режим [08:58:41]line Чек 63 15.04.2024 08:58 [08:58:41]line Смена: 117 ФФД: 1.0 [08:58:41]line ЗНМ: 0300000027 [08:58:41]line РНМ: 0000138879044617 [08:58:41]line Версия ККМ: 001 [08:58:41]line ФМ: 0000000000963154 [08:58:41]line ФД: 29469 [08:58:41]line ФПД: 24227026360599 [08:58:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T085842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29469&fm=24227026360599&tin=02508201610067®Number=0000138879044617&sum=70000 [08:58:41]OFD Sender: Processing packet 29469 [packets to send 8, broken 7] [08:58:41]ProducePacketName [08:58:41]name=ofd_packets/00029469 [08:58:41]OFD Sender: To server: pG, [08:58:41]CommunicateWithHost lk.salyk.kg:30040 [08:58:41]ConnectInit lk.salyk.kg [08:58:41]written 0, free lines is 4095 [08:58:41]Connected sock=10 [08:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 02 45 07 01 30 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3F 00 00 00 F4 03 04 00 42 EC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 73 00 00 35 04 06 00 16 08 CB 4C D9 17 C0 AD 1C 97 F4 58 AA D3 [08:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 1D 47 00 B2 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 39 36 33 31 35 34 10 04 04 00 1D 73 00 00 F4 03 04 00 E4 96 1C 66 B6 04 01 00 00 62 1E 29 7B 95 DA 49 AE [08:58:41]CommunicateWithHost err = 0 [08:58:41]CheckOFDResponse [08:58:41]1017 (14) - 77093643461234 [08:58:41]1041 (16) - 0000000000963154 [08:58:41]1040 (4) - 29469 [08:58:41]1012 (4) - 15.04.2024 02:54 [08:58:41]1206 (1) - 0 [08:58:41]OFD Sender: Remove packet 29469 [08:58:41]ProducePacketName [08:58:41]name=ofd_packets/00029469 [08:58:41]NVStorageDeleteData [08:58:41]Write to MH i2c: 01 00 00 B5 2A DF [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 B5 2A 00 00 00 00 00 D2 0C C4 [08:58:41]RasterBufferAndPrint [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]written 0, free lines is 3289 [08:58:41]MH_Cut [08:58:41]Write to MH i2c: D1 01 00 BC 2A 01 B8 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 01 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 01 00 BC 2A 00 B7 [08:58:41]Write to MH i2c: 01 00 00 BD 2A E7 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]OFD Sender: No OFD packet to send [08:58:42]*** Cut start [08:58:42]*** Partial cut [08:58:42]*** CUTSNS_PIN = 1 [08:58:42]*** CUTSNS_PIN = 0 [08:58:42]*** Brake cut motor [08:58:43]Read from MH i2c: 01 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 07 00 [08:58:43]MH_I2C_Read... [08:58:43]int [08:58:43]*** Stop cut motor [08:58:43]*** Cut end [08:58:43]*** FLAG_PRN_PAP1 set [08:58:43]Read from MH i2c: 01 07 00 BD 2A 00 00 00 00 00 FF 0F FC [08:58:43]process_action close_receipt done [08:58:43]requested_data is exist [08:58:43]produce_requested_data [08:58:43]requested_item fm.sn is exist - process it [08:58:43]wFMCommunicate request_size=4 [08:58:43]MH_SAM_APDU [08:58:43]CAPDU: 80 11 00 00 [08:58:43]Write to MH i2c: E2 08 00 BE 2A 80 11 00 00 00 00 00 00 62 [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 17 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 17 00 BE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [08:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:58:43]wFMCommunicate OK [08:58:43]requested_item fd.num is exist - process it [08:58:43]SAM_PROTO_GetFieldsCounters [08:58:43]wFMCommunicate request_size=4 [08:58:43]MH_SAM_APDU [08:58:43]CAPDU: 80 13 00 00 [08:58:43]Write to MH i2c: E2 08 00 BF 2A 80 13 00 00 00 00 00 00 65 [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 62 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 62 00 BF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 73 00 00 0E 04 04 00 75 00 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 65 [08:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 73 00 00 0E 04 04 00 75 00 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:58:43]wFMCommunicate OK [08:58:43]SAM_PROTO_GetFieldsCounters done [08:58:43]requested_item shift.num is exist - process it [08:58:43]requested_item shift.opened is exist - process it [08:58:43]req_shift_opened [08:58:43]FM_GetShiftState [08:58:43]SAM_PROTO_GetShiftState [08:58:43]wFMCommunicate request_size=4 [08:58:43]MH_SAM_APDU [08:58:43]CAPDU: 80 13 01 00 [08:58:43]Write to MH i2c: 01 00 00 C0 2A EA [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 07 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: 01 07 00 C0 2A 00 01 00 00 00 FF 0F 00 [08:58:43]state=0 [08:58:43]No paper [08:58:43]Write to MH i2c: E2 08 00 C1 2A 80 13 01 00 00 00 00 00 68 [08:58:43]Write i2c OK [08:58:43]MH_I2C_Read... [08:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:43]Read from MH i2c: E2 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 0E 00 [08:58:43]MH_I2C_Read... [08:58:43]Read from MH i2c: E2 0E 00 C1 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [08:58:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [08:58:43]wFMCommunicate OK [08:58:43]SAM_PROTO_GetShiftState done [08:58:43]FM_GetShiftState done [08:58:43]req_shift_opened done [08:58:43]requested_item shift.open_date is exist - process it [08:58:43]req_shift_open_date [08:58:43]req_shift_open_date done [08:58:43]produce_requested_data done [08:58:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29469,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [08:58:43]process_action_free close_receipt [08:58:43]json_value_free [08:58:43]json_value_free done [08:58:43]process_json_proto returns [08:58:43]Send response to host [08:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29469,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [08:58:43]free response buf [08:58:43]execute_script done [08:58:43]execute_script returns [08:58:43]free content buf [08:58:43]Sock 8.Close socket [08:58:43]Sock 8.Thread stoped [08:58:44]int [08:58:44]Write to MH i2c: 01 00 00 C2 2A EC [08:58:44]*** FLAG_PRN_PAP2 set [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: 01 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: 01 07 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: 01 07 00 C2 2A 00 03 00 00 00 FF 0F 04 [08:58:44]state=0 [08:58:44]No paper [08:58:44]Cover opened [08:58:46]OFD Sender: No OFD packet to send [08:58:48]int [08:58:48]Write to MH i2c: 01 00 00 C3 2A ED [08:58:48]*** FLAG_PRN_PAP2 reset [08:58:48]Write i2c OK [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 07 00 [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 07 00 C3 2A 00 01 00 00 00 FF 0F 03 [08:58:48]state=3 [08:58:48]No paper [08:58:48]Cover closed [08:58:48]int [08:58:48]Write to MH i2c: 01 00 00 C4 2A EE [08:58:48]*** FLAG_PRN_PAP1 reset [08:58:48]Write i2c OK [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 07 00 [08:58:48]MH_I2C_Read... [08:58:48]Read from MH i2c: 01 07 00 C4 2A 00 00 00 00 00 FF 0F 03 [08:58:48]state=0 [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:42]int [09:00:42]Write to MH i2c: 01 00 00 C5 2A EF [09:00:42]*** FLAG_PRN_KEY set [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 C5 2A 00 08 00 00 00 FF 0F 0C [09:00:42]state=0 [09:00:42]Key pressed [09:00:42]Feed [09:00:42]Write to MH i2c: D8 00 00 C6 2A C7 [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D8 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D8 01 00 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D8 01 00 C6 2A 00 C8 [09:00:42]int [09:00:42]Write to MH i2c: 01 00 00 C7 2A F1 [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 C7 2A 00 48 00 00 00 3C 00 7C [09:00:42]state=2 [09:00:42]Key pressed [09:00:42]int [09:00:42]Write to MH i2c: 01 00 00 C8 2A F2 [09:00:42]*** FLAG_PRN_KEY reset [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: 01 07 00 C8 2A 00 00 00 00 00 F5 0F FD [09:00:42]state=2 [09:00:42]Stop feed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 C9 2A F3 [09:00:43]*** FLAG_PRN_KEY set [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 C9 2A 00 08 00 00 00 FF 0F 10 [09:00:43]state=0 [09:00:43]Key pressed [09:00:43]Feed [09:00:43]Write to MH i2c: D8 00 00 CA 2A CB [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 CA 2A 00 CC [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 CB 2A F5 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 CB 2A 00 48 00 00 00 3C 00 80 [09:00:43]state=2 [09:00:43]Key pressed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 CC 2A F6 [09:00:43]*** FLAG_PRN_KEY reset [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 CC 2A 00 00 00 00 00 F5 0F 01 [09:00:43]state=2 [09:00:43]Stop feed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 CD 2A F7 [09:00:43]*** FLAG_PRN_KEY set [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 CD 2A 00 08 00 00 00 FF 0F 14 [09:00:43]state=0 [09:00:43]Key pressed [09:00:43]Feed [09:00:43]Write to MH i2c: D8 00 00 CE 2A CF [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 CE 2A 00 D0 [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 CF 2A F9 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 CF 2A 00 48 00 00 00 3C 00 84 [09:00:43]state=2 [09:00:43]Key pressed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 D0 2A FA [09:00:43]*** FLAG_PRN_KEY reset [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 F5 0F 05 [09:00:43]state=2 [09:00:43]Stop feed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 D1 2A FB [09:00:43]*** FLAG_PRN_KEY set [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 D1 2A 00 08 00 00 00 FF 0F 18 [09:00:43]state=0 [09:00:43]Key pressed [09:00:43]Feed [09:00:43]Write to MH i2c: D8 00 00 D2 2A D3 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: D8 01 00 D2 2A 00 D4 [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 D3 2A FD [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 D3 2A 00 48 00 00 00 3C 00 88 [09:00:43]state=2 [09:00:43]Key pressed [09:00:43]int [09:00:43]Write to MH i2c: 01 00 00 D4 2A FE [09:00:43]*** FLAG_PRN_KEY reset [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 F6 0F 0A [09:00:43]state=2 [09:00:43]Stop feed [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [09:01:52]New connection [09:01:52]New thread 3067112804 created [09:01:52]Thread 3066969444 joined [09:01:52]Waiting for new connection... [09:01:52] Sock 9.Parse request [09:01:52]Sock 9.Check first char [09:01:52]Sock 9.First char is OK [09:01:52]request: POST /json_proto HTTP/1.0 [09:01:52]Method: POST [09:01:52]URL: /json_proto [09:01:52]Method is POST - this is cgi request [09:01:52]url: /json_proto [09:01:52]query_string will be loaded in cgi processing [09:01:52]execute_cgi json_proto POST (null) [09:01:52]execute_cgi path=json_proto method=POST [09:01:52]POST find Content-Length [09:01:52]Host: 172.17.33.3:8080 [09:01:52]Content-Length: 1210 [09:01:52]Content-Type: application/json [09:01:52] [09:01:52]POST finish read [09:01:52]Found Content-Length = 1210 [09:01: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347876\u000A15.04.2024 08:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:52]execute_script... [09:01: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347876\u000A15.04.2024 08:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:52]POST & json_proto [09:01:52]process_json_proto [09:01:52]json parsed OK: [09:01:52]protocol is kg_v1.0 [09:01:52]action value=print_text [09:01:52]process_action print_text [09:01:52]cmd_print_text [09:01:52]ExternCall_PrintAddStr [09:01:52]wPrintStart [09:01:52]Write to MH i2c: 01 00 00 D5 2A FF [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 07 00 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 07 00 D5 2A 00 00 00 00 00 FF 0F 14 [09:01:52]RasterBufferAndPrint [09:01:52]line *****ТОВАРНЫЙ ЧЕК***** [09:01:52]line АЗС 108 [09:01:52]line Партнер нефть [09:01:52]line 02508201610067 [09:01:52]line Кассир : Джумагулова Н. [09:01:52]line Счет N : (1)347876 [09:01:52]line 15.04.2024 08:43 [09:01:52]line ПРОДАЖА [09:01:52]line ТРК (МРК, ГНК): 61 [09:01:52]line Вид ГСМ : 2710194210 [09:01:52]line ДТ-К-5 [09:01:52]line 54.870 x 72.90 [09:01:52]line ИТОГ: 4000.02 [09:01:52]line Тип оплаты: Талоны: Топливная Карта [09:01:52]line 65563 [09:01:52]line ______________________ [09:01:52]line (подпись) [09:01:52]written 0, free lines is 4095 [09:01:52]Write to MH i2c: 01 00 00 EA 2A 14 [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 07 00 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: 01 07 00 EA 2A 00 00 00 00 00 F9 0D 21 [09:01:52]RasterBufferAndPrint [09:01:52]line [09:01:52]line [09:01:52]line [09:01:52]line [09:01:52]line [09:01:52]written 0, free lines is 3579 [09:01:52]MH_Cut [09:01:52]Write to MH i2c: D1 01 00 F1 2A 01 ED [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: D1 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: D1 01 00 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: D1 01 00 F1 2A 00 EC [09:01:52]Write to MH i2c: 01 00 00 F2 2A 1C [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:53]*** Cut start [09:01:53]*** Partial cut [09:01:53]*** CUTSNS_PIN = 1 [09:01:53]*** CUTSNS_PIN = 0 [09:01:53]*** Brake cut motor [09:01:53]Read from MH i2c: 01 [09:01:53]MH_I2C_Read... [09:01:53]*** Stop cut motor [09:01:53]*** Cut end [09:01:53]Read from MH i2c: 01 07 00 [09:01:53]MH_I2C_Read... [09:01:53]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 FF 0F 31 [09:01:53]process_action print_text done [09:01:53]requested_data is exist [09:01:53]produce_requested_data [09:01:53]requested_item fm.sn is exist - process it [09:01:53]wFMCommunicate request_size=4 [09:01:53]MH_SAM_APDU [09:01:53]CAPDU: 80 11 00 00 [09:01:53]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [09:01:53]Write i2c OK [09:01:53]MH_I2C_Read... [09:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:53]Read from MH i2c: E2 [09:01:53]MH_I2C_Read... [09:01:53]Read from MH i2c: E2 17 00 [09:01:53]MH_I2C_Read... [09:01:53]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [09:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:01:53]wFMCommunicate OK [09:01:53]requested_item fd.num is exist - process it [09:01:53]SAM_PROTO_GetFieldsCounters [09:01:53]wFMCommunicate request_size=4 [09:01:53]MH_SAM_APDU [09:01:53]CAPDU: 80 13 00 00 [09:01:53]Write to MH i2c: E2 08 00 F4 2A 80 13 00 00 00 00 00 00 9A [09:01:53]Write i2c OK [09:01:53]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 62 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 62 00 F4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 73 00 00 0E 04 04 00 75 00 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 9A [09:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 73 00 00 0E 04 04 00 75 00 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 [09:01:54]wFMCommunicate OK [09:01:54]SAM_PROTO_GetFieldsCounters done [09:01:54]requested_item shift.num is exist - process it [09:01:54]requested_item shift.opened is exist - process it [09:01:54]req_shift_opened [09:01:54]FM_GetShiftState [09:01:54]SAM_PROTO_GetShiftState [09:01:54]wFMCommunicate request_size=4 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 13 01 00 [09:01:54]Write to MH i2c: E2 08 00 F5 2A 80 13 01 00 00 00 00 00 9C [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0E 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0E 00 F5 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 90 [09:01:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:01:54]wFMCommunicate OK [09:01:54]SAM_PROTO_GetShiftState done [09:01:54]FM_GetShiftState done [09:01:54]req_shift_opened done [09:01:54]requested_item shift.open_date is exist - process it [09:01:54]req_shift_open_date [09:01:54]req_shift_open_date done [09:01:54]produce_requested_data done [09:01:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29469,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:01:54]process_action_free print_text [09:01:54]json_value_free [09:01:54]json_value_free done [09:01:54]process_json_proto returns [09:01:54]Send response to host [09:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29469,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:01:54]free response buf [09:01:54]execute_script done [09:01:54]execute_script returns [09:01:54]free content buf [09:01:54]Sock 9.Close socket [09:01:54]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:21]accept exits with 8 [09:03:21]New connection [09:03:21]New thread 3066969444 created [09:03:21]Thread 3067112804 joined [09:03:21]Waiting for new connection... [09:03:21] Sock 8.Parse request [09:03:21]Sock 8.Check first char [09:03:21]Sock 8.First char is OK [09:03:21]request: POST /json_proto HTTP/1.0 [09:03:21]Method: POST [09:03:21]URL: /json_proto [09:03:21]Method is POST - this is cgi request [09:03:21]url: /json_proto [09:03:21]query_string will be loaded in cgi processing [09:03:21]execute_cgi json_proto POST (null) [09:03:21]execute_cgi path=json_proto method=POST [09:03:21]POST find Content-Length [09:03:21]Host: 172.17.33.3:8080 [09:03:21]Content-Length: 677 [09:03:21]Content-Type: application/json [09:03:21] [09:03:21]POST finish read [09:03:21]Found Content-Length = 677 [09:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [09:03:21]execute_script... [09:03: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)347877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [09:03:21]POST & json_proto [09:03:21]process_json_proto [09:03:21]json parsed OK: [09:03:21]protocol is kg_v1.0 [09:03:21]action value=close_receipt [09:03:21]process_action close_receipt [09:03:21]cmd_close_receipt [09:03:21]MH_GetDate [09:03:21]Write to MH i2c: F0 00 00 F6 2A 0F [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 F6 2A 00 5D ED 1C 66 23 5B 8F 65 56 [09:03:21]GetLastDocTimeStamp 1713171522 [09:03:21]current date 1713171805 [09:03:21]FM_GetShiftState [09:03:21]SAM_PROTO_GetShiftState [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 13 01 00 [09:03:21]Write to MH i2c: E2 08 00 F7 2A 80 13 01 00 00 00 00 00 9E [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 F7 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 92 [09:03:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:03:21]wFMCommunicate OK [09:03:21]SAM_PROTO_GetShiftState done [09:03:21]FM_GetShiftState done [09:03:21]opened in 1713140468 [09:03:21]opened+sec_in_day 1713226868 [09:03:21]quantity*price = 20023 [09:03:21]sum+1 = 20024 [09:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 15.04.2024 09:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29470 ФПД: 51945176803980 1/tax-web-control/client/api/v1/ticket?date=20240415T090325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29470&fm=51945176803980&tin=02508201610067®Number=0000138879044617&sum=20000 [09:03:23]StoreToDocumentArchive [09:03:23]shift 117 fd 29470 [09:03:23]save to /storage/0117/doc_00029470 [09:03:23]save last doc name /storage/0117/doc_00029470 to /storage/kkm_last_doc_name [09:03:23]save OK [09:03:23]Clear old archive folders... [09:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:23]tlvbuf is 00258B70 [09:03:23]SAM_PROTO_ClearQueue [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 09 00 00 [09:03:23]Write to MH i2c: E2 08 00 04 2B 80 09 00 00 00 00 00 00 A1 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 04 2B 00 90 00 A3 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]SAM_PROTO_ClearQueue done [09:03:23]KKMCreateOFDPacket [09:03:23]OFDProtocolAddRootSTLVToBuf [09:03:23]FM_MakeSignedData [09:03:23]FM_MakeSignedData [09:03:23]SAM_PROTO_SignData [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 01 02 [09:03:23]Write to MH i2c: E2 08 00 05 2B 80 0D 01 02 00 00 00 00 A9 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 05 2B 00 90 00 A4 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=255 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 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 40 00 00 00 F4 03 04 00 5D ED 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 73 00 00 35 04 06 00 2F [09:03:23]Write to MH i2c: E2 02 01 06 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 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 40 00 00 00 F4 03 04 00 5D ED 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 73 00 00 35 04 06 00 2F 00 00 00 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=10 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 02 02 05 3E 6D CF AA 8C [09:03:23]Write to MH i2c: E2 0D 00 07 2B 80 0D 02 02 05 00 3E 6D CF AA 8C 00 00 66 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 07 2B 00 90 00 A6 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 03 02 [09:03:23]Write to MH i2c: E2 08 00 08 2B 80 0D 03 02 00 00 00 00 AE [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 0B 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 0B 00 08 2B 00 4A 0C 02 9C C8 D8 06 A9 90 00 F2 [09:03:23]RAPDU: 4A 0C 02 9C C8 D8 06 A9 90 00 [09:03:23]wFMCommunicate OK [09:03:23]SAM_PROTO_SignData done [09:03:23]FM_MakeSignedData done [09:03:23]CreateOFDProtocolMessage [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 11 00 00 [09:03:23]Write to MH i2c: E2 08 00 09 2B 80 11 00 00 00 00 00 00 AE [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 17 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 17 00 09 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [09:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:03:23]wFMCommunicate OK [09:03:23]CreateOFDProtocolMessage done [09:03:23]OFDSenderStorePacket 29470 [09:03:23]StoreOFDPacket docnum=29470 [09:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 32 75 07 01 03 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 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 40 00 00 00 F4 03 04 00 5D ED 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 73 00 00 35 04 06 00 2F 3E 6D CF AA 8C 4A 0C 02 9C C8 D8 06 A9 [09:03:23]CheckFolder [09:03:23]dirname=/storage/ofd_packets [09:03:23]CheckFolder done [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00029470 [09:03:23]NVStorageSaveData ofd_packets/00029470 [09:03:23]File name is /storage/ofd_packets/00029470 [09:03:23]Write 301 bytes [09:03:23]NVStorageSaveData done [09:03:23]OFDSenderStorePacket done [09:03:23]KKMCreateOFDPacket done [09:03:23]NVStorageSaveData kkm_last_timestamp [09:03:23]File name is /storage/kkm_last_timestamp [09:03:23]Write 4 bytes [09:03:23]NVStorageSaveData done [09:03:23]ExternCall_PrintAddStr [09:03:23]wPrintStart [09:03:23]Write to MH i2c: 01 00 00 0A 2B 35 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 0A 2B 00 00 00 00 00 FF 0F 4A [09:03:23]RasterBufferAndPrint [09:03:23]line Счет N : (1)347877 [09:03:23]line ИНН: 02508201610067 [09:03:23]line Контрольно-Кассовый Чек [09:03:23]line ПРОДАЖА [09:03:23]line ТРК (МРК, ГНК) : 13 [09:03:23]line Товар: 2710124130 [09:03:23]line Аи-92-К-5 [09:03:23]line 3.090 * 64.80 [09:03:23]line = 200.23 [09:03:23]line НДС 12% НСП 1% [09:03:23]line > о реализуемом товаре [09:03:23]line ОКРУГЛЕНИЕ: -0.23 [09:03:23]line ИТОГО: 200.00 [09:03:23]line Внесено: 200.00 [09:03:23]line СДАЧА: 0.00 [09:03:23]line НСП 1% : 1.77 [09:03:23]line НДС 12% : 21.26 [09:03:23]line Наличными: 200.00 [09:03:23]line Безнал.: 0.00 [09:03:23]line Место: АЗС № 108 "Партнер Нефть" [09:03:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:03:23]line СНО: Общий режим [09:03:23]line Чек 64 15.04.2024 09:03 [09:03:23]line Смена: 117 ФФД: 1.0 [09:03:23]line ЗНМ: 0300000027 [09:03:23]line РНМ: 0000138879044617 [09:03:23]line Версия ККМ: 001 [09:03:23]line ФМ: 0000000000963154 [09:03:23]line ФД: 29470 [09:03:23]line ФПД: 51945176803980 [09:03:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T090325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29470&fm=51945176803980&tin=02508201610067®Number=0000138879044617&sum=20000 [09:03:23]OFD Sender: Processing packet 29470 [packets to send 8, broken 7] [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00029470 [09:03:23]OFD Sender: To server: pG, [09:03:23]CommunicateWithHost lk.salyk.kg:30040 [09:03:23]ConnectInit lk.salyk.kg [09:03:23]written 0, free lines is 4095 [09:03:23]Connected sock=10 [09:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 32 75 07 01 03 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 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 40 00 00 00 F4 03 04 00 5D ED 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 73 00 00 35 04 06 00 2F 3E 6D CF AA 8C 4A 0C 02 9C C8 D8 06 A9 [09:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F0 E8 47 00 D3 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 73 00 00 F4 03 04 00 FF 97 1C 66 B6 04 01 00 00 64 85 9E A2 4C 74 1A D7 [09:03:24]CommunicateWithHost err = 0 [09:03:24]CheckOFDResponse [09:03:24]1017 (14) - 77093643461234 [09:03:24]1041 (16) - 0000000000963154 [09:03:24]1040 (4) - 29470 [09:03:24]1012 (4) - 15.04.2024 02:59 [09:03:24]1206 (1) - 0 [09:03:24]OFD Sender: Remove packet 29470 [09:03:24]ProducePacketName [09:03:24]name=ofd_packets/00029470 [09:03:24]NVStorageDeleteData [09:03:24]Write to MH i2c: 01 00 00 34 2B 5F [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 34 2B 00 00 00 00 00 C1 0C 33 [09:03:24]RasterBufferAndPrint [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]written 0, free lines is 3269 [09:03:24]MH_Cut [09:03:24]Write to MH i2c: D1 01 00 3B 2B 01 38 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 01 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 01 00 3B 2B 00 37 [09:03:24]Write to MH i2c: 01 00 00 3C 2B 67 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]OFD Sender: No OFD packet to send [09:03:25]*** Cut start [09:03:25]*** Partial cut [09:03:25]*** CUTSNS_PIN = 1 [09:03:25]*** CUTSNS_PIN = 0 [09:03:25]*** Brake cut motor [09:03:25]Read from MH i2c: 01 [09:03:25]MH_I2C_Read... [09:03:25]*** Stop cut motor [09:03:25]*** Cut end [09:03:25]Read from MH i2c: 01 07 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 07 00 3C 2B 00 00 00 00 00 FF 0F 7C [09:03:25]process_action close_receipt done [09:03:25]requested_data is exist [09:03:25]produce_requested_data [09:03:25]requested_item fm.sn is exist - process it [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 11 00 00 [09:03:25]Write to MH i2c: E2 08 00 3D 2B 80 11 00 00 00 00 00 00 E2 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 3D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [09:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:03:25]wFMCommunicate OK [09:03:25]requested_item fd.num is exist - process it [09:03:25]SAM_PROTO_GetFieldsCounters [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 00 00 [09:03:25]Write to MH i2c: E2 08 00 3E 2B 80 13 00 00 00 00 00 00 E5 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 62 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 62 00 3E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 73 00 00 0E 04 04 00 75 00 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 E9 [09:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 73 00 00 0E 04 04 00 75 00 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 [09:03:26]wFMCommunicate OK [09:03:26]SAM_PROTO_GetFieldsCounters done [09:03:26]requested_item shift.num is exist - process it [09:03:26]requested_item shift.opened is exist - process it [09:03:26]req_shift_opened [09:03:26]FM_GetShiftState [09:03:26]SAM_PROTO_GetShiftState [09:03:26]wFMCommunicate request_size=4 [09:03:26]MH_SAM_APDU [09:03:26]CAPDU: 80 13 01 00 [09:03:26]Write to MH i2c: E2 08 00 3F 2B 80 13 01 00 00 00 00 00 E7 [09:03:26]Write i2c OK [09:03:26]MH_I2C_Read... [09:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:26]Read from MH i2c: E2 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 0E 00 [09:03:26]MH_I2C_Read... [09:03:26]Read from MH i2c: E2 0E 00 3F 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DB [09:03:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:03:26]wFMCommunicate OK [09:03:26]SAM_PROTO_GetShiftState done [09:03:26]FM_GetShiftState done [09:03:26]req_shift_opened done [09:03:26]requested_item shift.open_date is exist - process it [09:03:26]req_shift_open_date [09:03:26]req_shift_open_date done [09:03:26]produce_requested_data done [09:03:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29470,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:03:26]process_action_free close_receipt [09:03:26]json_value_free [09:03:26]json_value_free done [09:03:26]process_json_proto returns [09:03:26]Send response to host [09:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29470,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:03:26]free response buf [09:03:26]execute_script done [09:03:26]execute_script returns [09:03:26]free content buf [09:03:26]Sock 8.Close socket [09:03:26]Sock 8.Thread stoped [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:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:05]accept exits with 9 [09:07:05]New connection [09:07:05]New thread 3067112804 created [09:07:05]Thread 3066969444 joined [09:07:05]Waiting for new connection... [09:07:05] Sock 9.Parse request [09:07:05]Sock 9.Check first char [09:07:05]Sock 9.First char is OK [09:07:05]request: POST /json_proto HTTP/1.0 [09:07:05]Method: POST [09:07:05]URL: /json_proto [09:07:05]Method is POST - this is cgi request [09:07:05]url: /json_proto [09:07:05]query_string will be loaded in cgi processing [09:07:05]execute_cgi json_proto POST (null) [09:07:05]execute_cgi path=json_proto method=POST [09:07:05]POST find Content-Length [09:07:05]Host: 172.17.33.3:8080 [09:07:05]Content-Length: 1172 [09:07:05]Content-Type: application/json [09:07:05] [09:07:05]POST finish read [09:07:05]Found Content-Length = 1172 [09:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347878\u000A15.04.2024 08:48\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-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:05]execute_script... [09:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347878\u000A15.04.2024 08:48\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-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:05]POST & json_proto [09:07:05]process_json_proto [09:07:05]json parsed OK: [09:07:05]protocol is kg_v1.0 [09:07:05]action value=print_text [09:07:05]process_action print_text [09:07:05]cmd_print_text [09:07:05]ExternCall_PrintAddStr [09:07:05]wPrintStart [09:07:05]Write to MH i2c: 01 00 00 40 2B 6B [09:07:05]Write i2c OK [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 07 00 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 07 00 40 2B 00 00 00 00 00 FF 0F 80 [09:07:05]RasterBufferAndPrint [09:07:05]line *****ТОВАРНЫЙ ЧЕК***** [09:07:05]line АЗС 108 [09:07:05]line Партнер нефть [09:07:05]line 02508201610067 [09:07:05]line Кассир : Джумагулова Н. [09:07:05]line Счет N : (1)347878 [09:07:05]line 15.04.2024 08:48 [09:07:05]line ПРОДАЖА [09:07:05]line ТРК (МРК, ГНК): 51 [09:07:05]line Вид ГСМ : 2710194210 [09:07:05]line ДТ-К-5 [09:07:05]line 80.000 x 72.90 [09:07:05]line ИТОГ: 5832.00 [09:07:05]line Тип оплаты: Талоны: ТК ГПНА Online [09:07:05]line 30131330 [09:07:05]line ______________________ [09:07:05]line (подпись) [09:07:05]written 0, free lines is 4095 [09:07:05]Write to MH i2c: 01 00 00 55 2B 80 [09:07:05]Write i2c OK [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 07 00 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: 01 07 00 55 2B 00 00 00 00 00 F5 0D 89 [09:07:05]RasterBufferAndPrint [09:07:05]line [09:07:05]line [09:07:05]line [09:07:05]line [09:07:05]line [09:07:05]written 0, free lines is 3575 [09:07:05]MH_Cut [09:07:05]Write to MH i2c: D1 01 00 5C 2B 01 59 [09:07:05]Write i2c OK [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: D1 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: D1 01 00 [09:07:05]MH_I2C_Read... [09:07:05]Read from MH i2c: D1 01 00 5C 2B 00 58 [09:07:05]Write to MH i2c: 01 00 00 5D 2B 88 [09:07:05]Write i2c OK [09:07:05]MH_I2C_Read... [09:07:05]*** Cut start [09:07:05]*** Partial cut [09:07:05]*** CUTSNS_PIN = 1 [09:07:05]*** CUTSNS_PIN = 0 [09:07:06]*** Brake cut motor [09:07:06]Read from MH i2c: 01 [09:07:06]MH_I2C_Read... [09:07:06]*** Stop cut motor [09:07:06]*** Cut end [09:07:06]Read from MH i2c: 01 07 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: 01 07 00 5D 2B 00 00 00 00 00 FF 0F 9D [09:07:06]process_action print_text done [09:07:06]requested_data is exist [09:07:06]produce_requested_data [09:07:06]requested_item fm.sn is exist - process it [09:07:06]wFMCommunicate request_size=4 [09:07:06]MH_SAM_APDU [09:07:06]CAPDU: 80 11 00 00 [09:07:06]Write to MH i2c: E2 08 00 5E 2B 80 11 00 00 00 00 00 00 03 [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:06]Read from MH i2c: E2 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 17 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 17 00 5E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [09:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:07:06]wFMCommunicate OK [09:07:06]requested_item fd.num is exist - process it [09:07:06]SAM_PROTO_GetFieldsCounters [09:07:06]wFMCommunicate request_size=4 [09:07:06]MH_SAM_APDU [09:07:06]CAPDU: 80 13 00 00 [09:07:06]Write to MH i2c: E2 08 00 5F 2B 80 13 00 00 00 00 00 00 06 [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:06]Read from MH i2c: E2 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 62 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 62 00 5F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 73 00 00 0E 04 04 00 75 00 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 0A [09:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 73 00 00 0E 04 04 00 75 00 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 [09:07:06]wFMCommunicate OK [09:07:06]SAM_PROTO_GetFieldsCounters done [09:07:06]requested_item shift.num is exist - process it [09:07:06]requested_item shift.opened is exist - process it [09:07:06]req_shift_opened [09:07:06]FM_GetShiftState [09:07:06]SAM_PROTO_GetShiftState [09:07:06]wFMCommunicate request_size=4 [09:07:06]MH_SAM_APDU [09:07:06]CAPDU: 80 13 01 00 [09:07:06]Write to MH i2c: E2 08 00 60 2B 80 13 01 00 00 00 00 00 08 [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:06]Read from MH i2c: E2 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 60 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [09:07:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:07:06]wFMCommunicate OK [09:07:06]SAM_PROTO_GetShiftState done [09:07:06]FM_GetShiftState done [09:07:06]req_shift_opened done [09:07:06]requested_item shift.open_date is exist - process it [09:07:06]req_shift_open_date [09:07:06]req_shift_open_date done [09:07:06]produce_requested_data done [09:07:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29470,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:07:06]process_action_free print_text [09:07:06]json_value_free [09:07:06]json_value_free done [09:07:06]process_json_proto returns [09:07:06]Send response to host [09:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29470,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:07:06]free response buf [09:07:06]execute_script done [09:07:06]execute_script returns [09:07:06]free content buf [09:07:06]Sock 9.Close socket [09:07:06]Sock 9.Thread stoped [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10: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:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:43]accept exits with 8 [09:11:43]New connection [09:11:43]New thread 3066969444 created [09:11:43]Thread 3067112804 joined [09:11:43]Waiting for new connection... [09:11:43] Sock 8.Parse request [09:11:43]Sock 8.Check first char [09:11:43]Sock 8.First char is OK [09:11:43]request: POST /json_proto HTTP/1.0 [09:11:43]Method: POST [09:11:43]URL: /json_proto [09:11:43]Method is POST - this is cgi request [09:11:43]url: /json_proto [09:11:43]query_string will be loaded in cgi processing [09:11:43]execute_cgi json_proto POST (null) [09:11:43]execute_cgi path=json_proto method=POST [09:11:43]POST find Content-Length [09:11:43]Host: 172.17.33.3:8080 [09:11:43]Content-Length: 805 [09:11:43]Content-Type: application/json [09:11:43] [09:11:43]POST finish read [09:11:43]Found Content-Length = 805 [09:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:43]execute_script... [09:11: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)347879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:43]POST & json_proto [09:11:43]process_json_proto [09:11:43]json parsed OK: [09:11:43]protocol is kg_v1.0 [09:11:43]action value=close_receipt [09:11:43]process_action close_receipt [09:11:43]cmd_close_receipt [09:11:43]MH_GetDate [09:11:43]Write to MH i2c: F0 00 00 61 2B 7B [09:11:43]Write i2c OK [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: F0 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: F0 09 00 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: F0 09 00 61 2B 00 53 EF 1C 66 23 5B 8F 65 BA [09:11:43]GetLastDocTimeStamp 1713171805 [09:11:43]current date 1713172307 [09:11:43]FM_GetShiftState [09:11:43]SAM_PROTO_GetShiftState [09:11:43]wFMCommunicate request_size=4 [09:11:43]MH_SAM_APDU [09:11:43]CAPDU: 80 13 01 00 [09:11:43]Write to MH i2c: E2 08 00 62 2B 80 13 01 00 00 00 00 00 0A [09:11:43]Write i2c OK [09:11:43]MH_I2C_Read... [09:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:43]Read from MH i2c: E2 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: E2 0E 00 [09:11:43]MH_I2C_Read... [09:11:43]Read from MH i2c: E2 0E 00 62 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FE [09:11:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:11:43]wFMCommunicate OK [09:11:43]SAM_PROTO_GetShiftState done [09:11:43]FM_GetShiftState done [09:11:43]opened in 1713140468 [09:11:43]opened+sec_in_day 1713226868 [09:11:43]quantity*price = 500021 [09:11:43]sum+1 = 500022 [09:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.21 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.21 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 15.04.2024 09:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29471 ФПД: 45327265492357 1/tax-web-control/client/api/v1/ticket?date=20240415T091147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29471&fm=45327265492357&tin=02508201610067®Number=0000138879044617&sum=500021 [09:11:44]StoreToDocumentArchive [09:11:44]shift 117 fd 29471 [09:11:44]save to /storage/0117/doc_00029471 [09:11:44]save last doc name /storage/0117/doc_00029471 to /storage/kkm_last_doc_name [09:11:44]save OK [09:11:44]Clear old archive folders... [09:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:44]tlvbuf is 0023CF80 [09:11:44]SAM_PROTO_ClearQueue [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 09 00 00 [09:11:44]Write to MH i2c: E2 08 00 6F 2B 80 09 00 00 00 00 00 00 0C [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 6F 2B 00 90 00 0E [09:11:45]RAPDU: 90 00 [09:11:45]wFMCommunicate OK [09:11:45]SAM_PROTO_ClearQueue done [09:11:45]KKMCreateOFDPacket [09:11:45]OFDProtocolAddRootSTLVToBuf [09:11:45]FM_MakeSignedData [09:11:45]FM_MakeSignedData [09:11:45]SAM_PROTO_SignData [09:11:45]wFMCommunicate request_size=4 [09:11:45]MH_SAM_APDU [09:11:45]CAPDU: 80 0D 01 02 [09:11:45]Write to MH i2c: E2 08 00 70 2B 80 0D 01 02 00 00 00 00 14 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 70 2B 00 90 00 0F [09:11:45]RAPDU: 90 00 [09:11:45]wFMCommunicate OK [09:11:45]wFMCommunicate request_size=255 [09:11:45]MH_SAM_APDU [09:11:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 53 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 73 00 00 35 04 06 00 29 39 93 8E [09:11:45]Write to MH i2c: E2 02 01 71 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 53 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 73 00 00 35 04 06 00 29 39 93 8E 00 00 D9 [09:11:45]OFD Sender: No OFD packet to send [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 71 2B 00 90 00 10 [09:11:45]RAPDU: 90 00 [09:11:45]wFMCommunicate OK [09:11:45]wFMCommunicate request_size=7 [09:11:45]MH_SAM_APDU [09:11:45]CAPDU: 80 0D 02 02 02 ED 85 [09:11:45]Write to MH i2c: E2 0A 00 72 2B 80 0D 02 02 02 00 ED 85 00 00 8D [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 03 00 72 2B 00 90 00 11 [09:11:45]RAPDU: 90 00 [09:11:45]wFMCommunicate OK [09:11:45]wFMCommunicate request_size=4 [09:11:45]MH_SAM_APDU [09:11:45]CAPDU: 80 0D 03 02 [09:11:45]Write to MH i2c: E2 08 00 73 2B 80 0D 03 02 00 00 00 00 19 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 0B 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 0B 00 73 2B 00 2A A3 C8 5C DB CE 78 54 90 00 80 [09:11:45]RAPDU: 2A A3 C8 5C DB CE 78 54 90 00 [09:11:45]wFMCommunicate OK [09:11:45]SAM_PROTO_SignData done [09:11:45]FM_MakeSignedData done [09:11:45]CreateOFDProtocolMessage [09:11:45]wFMCommunicate request_size=4 [09:11:45]MH_SAM_APDU [09:11:45]CAPDU: 80 11 00 00 [09:11:45]Write to MH i2c: E2 08 00 74 2B 80 11 00 00 00 00 00 00 19 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:45]Read from MH i2c: E2 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 17 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: E2 17 00 74 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [09:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:45]wFMCommunicate OK [09:11:45]CreateOFDProtocolMessage done [09:11:45]OFDSenderStorePacket 29471 [09:11:45]StoreOFDPacket docnum=29471 [09:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DE 8E 04 01 2E 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 53 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 73 00 00 35 04 06 00 29 39 93 8E ED 85 2A A3 C8 5C DB CE 78 54 [09:11:45]CheckFolder [09:11:45]dirname=/storage/ofd_packets [09:11:45]CheckFolder done [09:11:45]ProducePacketName [09:11:45]name=ofd_packets/00029471 [09:11:45]NVStorageSaveData ofd_packets/00029471 [09:11:45]File name is /storage/ofd_packets/00029471 [09:11:45]Write 298 bytes [09:11:45]NVStorageSaveData done [09:11:45]OFDSenderStorePacket done [09:11:45]KKMCreateOFDPacket done [09:11:45]NVStorageSaveData kkm_last_timestamp [09:11:45]File name is /storage/kkm_last_timestamp [09:11:45]Write 4 bytes [09:11:45]NVStorageSaveData done [09:11:45]ExternCall_PrintAddStr [09:11:45]wPrintStart [09:11:45]Write to MH i2c: 01 00 00 75 2B A0 [09:11:45]Write i2c OK [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 07 00 [09:11:45]MH_I2C_Read... [09:11:45]Read from MH i2c: 01 07 00 75 2B 00 00 00 00 00 FF 0F B5 [09:11:45]RasterBufferAndPrint [09:11:45]line Счет N : (1)347879 [09:11:45]line ИНН: 02508201610067 [09:11:45]line Контрольно-Кассовый Чек [09:11:45]line ПРОДАЖА [09:11:45]line ТРК (МРК, ГНК) : 21 [09:11:45]line Товар: 2710194210 [09:11:45]line ДТ-К-5 [09:11:45]line 68.590 * 72.90 [09:11:45]line = 5000.21 [09:11:45]line НДС 12% НСП 1% [09:11:45]line > о реализуемом товаре [09:11:45]line ИТОГО: 5000.21 [09:11:45]line НСП 1% : 44.25 [09:11:45]line НДС 12% : 531.00 [09:11:45]line Наличными: 0.00 [09:11:45]line Безнал.: 5000.21 [09:11:45]line Место: АЗС № 108 "Партнер Нефть" [09:11:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:11:45]line СНО: Общий режим [09:11:45]line Чек 65 15.04.2024 09:11 [09:11:45]line Смена: 117 ФФД: 1.0 [09:11:45]line ЗНМ: 0300000027 [09:11:45]line РНМ: 0000138879044617 [09:11:45]line Версия ККМ: 001 [09:11:45]line Платежная система: О! деньги [09:11:45]line ФМ: 0000000000963154 [09:11:45]line ФД: 29471 [09:11:45]line ФПД: 45327265492357 [09:11:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T091147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29471&fm=45327265492357&tin=02508201610067®Number=0000138879044617&sum=500021 [09:11:45]OFD Sender: Processing packet 29471 [packets to send 8, broken 7] [09:11:45]ProducePacketName [09:11:45]name=ofd_packets/00029471 [09:11:45]OFD Sender: To server: pG, [09:11:45]CommunicateWithHost lk.salyk.kg:30040 [09:11:45]ConnectInit lk.salyk.kg [09:11:45]written 0, free lines is 4095 [09:11:45]Connected sock=10 [09:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DE 8E 04 01 2E 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 53 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 73 00 00 35 04 06 00 29 39 93 8E ED 85 2A A3 C8 5C DB CE 78 54 [09:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 09 47 00 0F 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 39 36 33 31 35 34 10 04 04 00 1F 73 00 00 F4 03 04 00 F5 99 1C 66 B6 04 01 00 00 91 E0 6B C8 62 73 EA 95 [09:11:46]CommunicateWithHost err = 0 [09:11:46]CheckOFDResponse [09:11:46]1017 (14) - 77093643461234 [09:11:46]1041 (16) - 0000000000963154 [09:11:46]1040 (4) - 29471 [09:11:46]1012 (4) - 15.04.2024 03:07 [09:11:46]1206 (1) - 0 [09:11:46]OFD Sender: Remove packet 29471 [09:11:46]ProducePacketName [09:11:46]name=ofd_packets/00029471 [09:11:46]NVStorageDeleteData [09:11:46]Write to MH i2c: 01 00 00 9E 2B C9 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: 01 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: 01 07 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: 01 07 00 9E 2B 00 00 00 00 00 DB 0C B7 [09:11:46]RasterBufferAndPrint [09:11:46]line [09:11:46]line [09:11:46]line [09:11:46]line [09:11:46]line [09:11:46]written 0, free lines is 3297 [09:11:46]MH_Cut [09:11:46]Write to MH i2c: D1 01 00 A5 2B 01 A2 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: D1 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: D1 01 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: D1 01 00 A5 2B 00 A1 [09:11:46]Write to MH i2c: 01 00 00 A6 2B D1 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]OFD Sender: No OFD packet to send [09:11:47]*** Cut start [09:11:47]*** Partial cut [09:11:47]*** CUTSNS_PIN = 1 [09:11:47]*** CUTSNS_PIN = 0 [09:11:47]*** Brake cut motor [09:11:47]Read from MH i2c: 01 [09:11:47]MH_I2C_Read... [09:11:47]*** Stop cut motor [09:11:47]*** Cut end [09:11:47]Read from MH i2c: 01 07 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: 01 07 00 A6 2B 00 00 00 00 00 FF 0F E6 [09:11:47]process_action close_receipt done [09:11:47]requested_data is exist [09:11:47]produce_requested_data [09:11:47]requested_item fm.sn is exist - process it [09:11:47]wFMCommunicate request_size=4 [09:11:47]MH_SAM_APDU [09:11:47]CAPDU: 80 11 00 00 [09:11:47]Write to MH i2c: E2 08 00 A7 2B 80 11 00 00 00 00 00 00 4C [09:11:47]Write i2c OK [09:11:47]MH_I2C_Read... [09:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:47]Read from MH i2c: E2 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 17 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 17 00 A7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [09:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:47]wFMCommunicate OK [09:11:47]requested_item fd.num is exist - process it [09:11:47]SAM_PROTO_GetFieldsCounters [09:11:47]wFMCommunicate request_size=4 [09:11:47]MH_SAM_APDU [09:11:47]CAPDU: 80 13 00 00 [09:11:47]Write to MH i2c: E2 08 00 A8 2B 80 13 00 00 00 00 00 00 4F [09:11:47]Write i2c OK [09:11:47]MH_I2C_Read... [09:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:47]Read from MH i2c: E2 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 62 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 62 00 A8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 73 00 00 0E 04 04 00 75 00 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 57 [09:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 73 00 00 0E 04 04 00 75 00 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 [09:11:47]wFMCommunicate OK [09:11:47]SAM_PROTO_GetFieldsCounters done [09:11:47]requested_item shift.num is exist - process it [09:11:47]requested_item shift.opened is exist - process it [09:11:47]req_shift_opened [09:11:47]FM_GetShiftState [09:11:47]SAM_PROTO_GetShiftState [09:11:47]wFMCommunicate request_size=4 [09:11:47]MH_SAM_APDU [09:11:47]CAPDU: 80 13 01 00 [09:11:47]Write to MH i2c: E2 08 00 A9 2B 80 13 01 00 00 00 00 00 51 [09:11:47]Write i2c OK [09:11:47]MH_I2C_Read... [09:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:47]Read from MH i2c: E2 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 0E 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 0E 00 A9 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 45 [09:11:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:11:47]wFMCommunicate OK [09:11:47]SAM_PROTO_GetShiftState done [09:11:47]FM_GetShiftState done [09:11:47]req_shift_opened done [09:11:47]requested_item shift.open_date is exist - process it [09:11:47]req_shift_open_date [09:11:47]req_shift_open_date done [09:11:47]produce_requested_data done [09:11:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29471,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:11:47]process_action_free close_receipt [09:11:47]json_value_free [09:11:47]json_value_free done [09:11:47]process_json_proto returns [09:11:47]Send response to host [09:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29471,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:11:47]free response buf [09:11:47]execute_script done [09:11:47]execute_script returns [09:11:47]free content buf [09:11:47]Sock 8.Close socket [09:11:47]Sock 8.Thread stoped [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:14]accept exits with 9 [09:14:14]New connection [09:14:14]New thread 3067112804 created [09:14:14]Thread 3066969444 joined [09:14:14]Waiting for new connection... [09:14:14] Sock 9.Parse request [09:14:14]Sock 9.Check first char [09:14:14]Sock 9.First char is OK [09:14:14]request: POST /json_proto HTTP/1.0 [09:14:14]Method: POST [09:14:14]URL: /json_proto [09:14:14]Method is POST - this is cgi request [09:14:14]url: /json_proto [09:14:14]query_string will be loaded in cgi processing [09:14:14]execute_cgi json_proto POST (null) [09:14:14]execute_cgi path=json_proto method=POST [09:14:14]POST find Content-Length [09:14:14]Host: 172.17.33.3:8080 [09:14:14]Content-Length: 1175 [09:14:14]Content-Type: application/json [09:14:14] [09:14:14]POST finish read [09:14:14]Found Content-Length = 1175 [09:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347880\u000A15.04.2024 08:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30041612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:14]execute_script... [09:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347880\u000A15.04.2024 08:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30041612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:14]POST & json_proto [09:14:14]process_json_proto [09:14:14]json parsed OK: [09:14:14]protocol is kg_v1.0 [09:14:14]action value=print_text [09:14:14]process_action print_text [09:14:14]cmd_print_text [09:14:14]ExternCall_PrintAddStr [09:14:14]wPrintStart [09:14:14]Write to MH i2c: 01 00 00 AA 2B D5 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 AA 2B 00 00 00 00 00 FF 0F EA [09:14:14]RasterBufferAndPrint [09:14:14]line *****ТОВАРНЫЙ ЧЕК***** [09:14:14]line АЗС 108 [09:14:14]line Партнер нефть [09:14:14]line 02508201610067 [09:14:14]line Кассир : Джумагулова Н. [09:14:14]line Счет N : (1)347880 [09:14:14]line 15.04.2024 08:55 [09:14:14]line ПРОДАЖА [09:14:14]line ТРК (МРК, ГНК): 32 [09:14:14]line Вид ГСМ : 2710124130 [09:14:14]line Аи-92-К-5 [09:14:14]line 20.000 x 64.80 [09:14:14]line ИТОГ: 1296.00 [09:14:14]line Тип оплаты: Талоны: ТК ГПНА Online [09:14:14]line 30041612 [09:14:14]line ______________________ [09:14:14]line (подпись) [09:14:14]written 0, free lines is 4095 [09:14:14]Write to MH i2c: 01 00 00 BF 2B EA [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 BF 2B 00 00 00 00 00 F7 0D F5 [09:14:14]RasterBufferAndPrint [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]line [09:14:14]written 0, free lines is 3577 [09:14:14]MH_Cut [09:14:14]Write to MH i2c: D1 01 00 C6 2B 01 C3 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 01 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: D1 01 00 C6 2B 00 C2 [09:14:14]Write to MH i2c: 01 00 00 C7 2B F2 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:15]*** Cut start [09:14:15]*** Partial cut [09:14:15]*** CUTSNS_PIN = 1 [09:14:15]*** CUTSNS_PIN = 0 [09:14:15]*** Brake cut motor [09:14:15]Read from MH i2c: 01 [09:14:15]MH_I2C_Read... [09:14:15]*** Stop cut motor [09:14:15]*** Cut end [09:14:15]Read from MH i2c: 01 07 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 07 00 C7 2B 00 00 00 00 00 FF 0F 07 [09:14:15]process_action print_text done [09:14:15]requested_data is exist [09:14:15]produce_requested_data [09:14:15]requested_item fm.sn is exist - process it [09:14:15]wFMCommunicate request_size=4 [09:14:15]MH_SAM_APDU [09:14:15]CAPDU: 80 11 00 00 [09:14:15]Write to MH i2c: E2 08 00 C8 2B 80 11 00 00 00 00 00 00 6D [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 17 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 17 00 C8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [09:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:16]wFMCommunicate OK [09:14:16]requested_item fd.num is exist - process it [09:14:16]SAM_PROTO_GetFieldsCounters [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 13 00 00 [09:14:16]Write to MH i2c: E2 08 00 C9 2B 80 13 00 00 00 00 00 00 70 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 62 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 62 00 C9 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 73 00 00 0E 04 04 00 75 00 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 78 [09:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 73 00 00 0E 04 04 00 75 00 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 [09:14:16]wFMCommunicate OK [09:14:16]SAM_PROTO_GetFieldsCounters done [09:14:16]requested_item shift.num is exist - process it [09:14:16]requested_item shift.opened is exist - process it [09:14:16]req_shift_opened [09:14:16]FM_GetShiftState [09:14:16]SAM_PROTO_GetShiftState [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 13 01 00 [09:14:16]Write to MH i2c: E2 08 00 CA 2B 80 13 01 00 00 00 00 00 72 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 CA 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [09:14:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:14:16]wFMCommunicate OK [09:14:16]SAM_PROTO_GetShiftState done [09:14:16]FM_GetShiftState done [09:14:16]req_shift_opened done [09:14:16]requested_item shift.open_date is exist - process it [09:14:16]req_shift_open_date [09:14:16]req_shift_open_date done [09:14:16]produce_requested_data done [09:14:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29471,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:14:16]process_action_free print_text [09:14:16]json_value_free [09:14:16]json_value_free done [09:14:16]process_json_proto returns [09:14:16]Send response to host [09:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29471,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:14:16]free response buf [09:14:16]execute_script done [09:14:16]execute_script returns [09:14:16]free content buf [09:14:16]Sock 9.Close socket [09:14:16]Sock 9.Thread stoped [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:29]accept exits with 8 [09:14:29]New connection [09:14:29]New thread 3066969444 created [09:14:29]Thread 3067112804 joined [09:14:29]Waiting for new connection... [09:14:29] Sock 8.Parse request [09:14:29]Sock 8.Check first char [09:14:29]Sock 8.First char is OK [09:14:29]request: POST /json_proto HTTP/1.0 [09:14:29]Method: POST [09:14:29]URL: /json_proto [09:14:29]Method is POST - this is cgi request [09:14:29]url: /json_proto [09:14:29]query_string will be loaded in cgi processing [09:14:29]execute_cgi json_proto POST (null) [09:14:29]execute_cgi path=json_proto method=POST [09:14:29]POST find Content-Length [09:14:29]Host: 172.17.33.3:8080 [09:14:29]Content-Length: 677 [09:14:29]Content-Type: application/json [09:14:29] [09:14:29]POST finish read [09:14:29]Found Content-Length = 677 [09:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:14:29]execute_script... [09:14: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)347881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:14:29]POST & json_proto [09:14:29]process_json_proto [09:14:29]json parsed OK: [09:14:29]protocol is kg_v1.0 [09:14:29]action value=close_receipt [09:14:29]process_action close_receipt [09:14:29]cmd_close_receipt [09:14:29]MH_GetDate [09:14:29]Write to MH i2c: F0 00 00 CB 2B E5 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 CB 2B 00 F9 EF 1C 66 23 5B 8F 65 CA [09:14:29]GetLastDocTimeStamp 1713172307 [09:14:29]current date 1713172473 [09:14:29]FM_GetShiftState [09:14:29]SAM_PROTO_GetShiftState [09:14:29]wFMCommunicate request_size=4 [09:14:29]MH_SAM_APDU [09:14:29]CAPDU: 80 13 01 00 [09:14:29]Write to MH i2c: E2 08 00 CC 2B 80 13 01 00 00 00 00 00 74 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:29]Read from MH i2c: E2 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 CC 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 68 [09:14:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:14:29]wFMCommunicate OK [09:14:29]SAM_PROTO_GetShiftState done [09:14:29]FM_GetShiftState done [09:14:29]opened in 1713140468 [09:14:29]opened+sec_in_day 1713226868 [09:14:29]quantity*price = 60004 [09:14:29]sum+1 = 60006 [09:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 66 15.04.2024 09:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29472 ФПД: 20177456619914 1/tax-web-control/client/api/v1/ticket?date=20240415T091433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29472&fm=20177456619914&tin=02508201610067®Number=0000138879044617&sum=60000 [09:14:31]StoreToDocumentArchive [09:14:31]shift 117 fd 29472 [09:14:31]save to /storage/0117/doc_00029472 [09:14:31]save last doc name /storage/0117/doc_00029472 to /storage/kkm_last_doc_name [09:14:31]save OK [09:14:31]Clear old archive folders... [09:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:31]tlvbuf is 00214400 [09:14:31]SAM_PROTO_ClearQueue [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 09 00 00 [09:14:31]Write to MH i2c: E2 08 00 D9 2B 80 09 00 00 00 00 00 00 76 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_ClearQueue done [09:14:31]KKMCreateOFDPacket [09:14:31]OFDProtocolAddRootSTLVToBuf [09:14:31]FM_MakeSignedData [09:14:31]FM_MakeSignedData [09:14:31]SAM_PROTO_SignData [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 01 02 [09:14:31]Write to MH i2c: E2 08 00 DA 2B 80 0D 01 02 00 00 00 00 7E [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 DA 2B 00 90 00 79 [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=255 [09:14:31]MH_SAM_APDU [09:14: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 42 00 00 00 F4 03 04 00 F9 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 73 00 00 35 04 06 00 12 [09:14:31]Write to MH i2c: E2 02 01 DB 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 42 00 00 00 F4 03 04 00 F9 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 73 00 00 35 04 06 00 12 00 00 18 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 DB 2B 00 90 00 7A [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=10 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 02 02 05 59 EE 22 61 8A [09:14:31]Write to MH i2c: E2 0D 00 DC 2B 80 0D 02 02 05 00 59 EE 22 61 8A 00 00 DF [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 DC 2B 00 90 00 7B [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 03 02 [09:14:31]Write to MH i2c: E2 08 00 DD 2B 80 0D 03 02 00 00 00 00 83 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0B 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0B 00 DD 2B 00 11 B5 FD 61 F5 18 35 65 90 00 4F [09:14:31]RAPDU: 11 B5 FD 61 F5 18 35 65 90 00 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_SignData done [09:14:31]FM_MakeSignedData done [09:14:31]CreateOFDProtocolMessage [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 11 00 00 [09:14:31]Write to MH i2c: E2 08 00 DE 2B 80 11 00 00 00 00 00 00 83 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 DE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [09:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:31]wFMCommunicate OK [09:14:31]CreateOFDProtocolMessage done [09:14:31]OFDSenderStorePacket 29472 [09:14:31]StoreOFDPacket docnum=29472 [09:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 EF 07 01 56 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 42 00 00 00 F4 03 04 00 F9 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 73 00 00 35 04 06 00 12 59 EE 22 61 8A 11 B5 FD 61 F5 18 35 65 [09:14:31]CheckFolder [09:14:31]dirname=/storage/ofd_packets [09:14:31]CheckFolder done [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00029472 [09:14:31]NVStorageSaveData ofd_packets/00029472 [09:14:31]File name is /storage/ofd_packets/00029472 [09:14:31]Write 301 bytes [09:14:31]NVStorageSaveData done [09:14:31]OFDSenderStorePacket done [09:14:31]KKMCreateOFDPacket done [09:14:31]NVStorageSaveData kkm_last_timestamp [09:14:31]File name is /storage/kkm_last_timestamp [09:14:31]Write 4 bytes [09:14:31]NVStorageSaveData done [09:14:31]ExternCall_PrintAddStr [09:14:31]wPrintStart [09:14:31]Write to MH i2c: 01 00 00 DF 2B 0A [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 DF 2B 00 00 00 00 00 FF 0F 1F [09:14:31]RasterBufferAndPrint [09:14:31]line Счет N : (1)347881 [09:14:31]line ИНН: 02508201610067 [09:14:31]line Контрольно-Кассовый Чек [09:14:31]line ПРОДАЖА [09:14:31]line ТРК (МРК, ГНК) : 13 [09:14:31]line Товар: 2710124130 [09:14:31]line Аи-92-К-5 [09:14:31]line 9.260 * 64.80 [09:14:31]line = 600.05 [09:14:31]line НДС 12% НСП 1% [09:14:31]line > о реализуемом товаре [09:14:31]line ОКРУГЛЕНИЕ: -0.05 [09:14:31]line ИТОГО: 600.00 [09:14:31]line Внесено: 600.00 [09:14:31]line СДАЧА: 0.00 [09:14:31]line НСП 1% : 5.31 [09:14:31]line НДС 12% : 63.72 [09:14:31]line Наличными: 600.00 [09:14:31]line Безнал.: 0.00 [09:14:31]line Место: АЗС № 108 "Партнер Нефть" [09:14:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:14:31]line СНО: Общий режим [09:14:31]line Чек 66 15.04.2024 09:14 [09:14:31]line Смена: 117 ФФД: 1.0 [09:14:31]line ЗНМ: 0300000027 [09:14:31]line РНМ: 0000138879044617 [09:14:31]line Версия ККМ: 001 [09:14:31]line ФМ: 0000000000963154 [09:14:31]line ФД: 29472 [09:14:31]line ФПД: 20177456619914 [09:14:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T091433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29472&fm=20177456619914&tin=02508201610067®Number=0000138879044617&sum=60000 [09:14:31]OFD Sender: Processing packet 29472 [packets to send 8, broken 7] [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00029472 [09:14:31]OFD Sender: To server: pG, [09:14:31]CommunicateWithHost lk.salyk.kg:30040 [09:14:31]ConnectInit lk.salyk.kg [09:14:31]written 0, free lines is 4095 [09:14:32]Connected sock=10 [09:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 EF 07 01 56 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 42 00 00 00 F4 03 04 00 F9 EF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 73 00 00 35 04 06 00 12 59 EE 22 61 8A 11 B5 FD 61 F5 18 35 65 [09:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 11 44 47 00 74 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 39 36 33 31 35 34 10 04 04 00 20 73 00 00 F4 03 04 00 9B 9A 1C 66 B6 04 01 00 00 8A 47 96 56 6C 97 78 D1 [09:14:32]CommunicateWithHost err = 0 [09:14:32]CheckOFDResponse [09:14:32]1017 (14) - 77093643461234 [09:14:32]1041 (16) - 0000000000963154 [09:14:32]1040 (4) - 29472 [09:14:32]1012 (4) - 15.04.2024 03:10 [09:14:32]1206 (1) - 0 [09:14:32]OFD Sender: Remove packet 29472 [09:14:32]ProducePacketName [09:14:32]name=ofd_packets/00029472 [09:14:32]NVStorageDeleteData [09:14:32]Write to MH i2c: 01 00 00 09 2C 35 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 07 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 07 00 09 2C 00 00 00 00 00 D0 0C 18 [09:14:32]RasterBufferAndPrint [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]written 0, free lines is 3285 [09:14:32]MH_Cut [09:14:32]Write to MH i2c: D1 01 00 10 2C 01 0E [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 01 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 01 00 10 2C 00 0D [09:14:32]Write to MH i2c: 01 00 00 11 2C 3D [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]OFD Sender: No OFD packet to send [09:14:33]*** Cut start [09:14:33]*** Partial cut [09:14:33]*** CUTSNS_PIN = 1 [09:14:33]*** CUTSNS_PIN = 0 [09:14:33]*** Brake cut motor [09:14:33]Read from MH i2c: 01 [09:14:33]MH_I2C_Read... [09:14:33]*** Stop cut motor [09:14:33]*** Cut end [09:14:33]Read from MH i2c: 01 07 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 07 00 11 2C 00 00 00 00 00 FF 0F 52 [09:14:33]process_action close_receipt done [09:14:33]requested_data is exist [09:14:33]produce_requested_data [09:14:33]requested_item fm.sn is exist - process it [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 11 00 00 [09:14:33]Write to MH i2c: E2 08 00 12 2C 80 11 00 00 00 00 00 00 B8 [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 12 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [09:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:14:33]wFMCommunicate OK [09:14:33]requested_item fd.num is exist - process it [09:14:33]SAM_PROTO_GetFieldsCounters [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 13 00 00 [09:14:33]Write to MH i2c: E2 08 00 13 2C 80 13 00 00 00 00 00 00 BB [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 13 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 C7 [09:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_GetFieldsCounters done [09:14:34]requested_item shift.num is exist - process it [09:14:34]requested_item shift.opened is exist - process it [09:14:34]req_shift_opened [09:14:34]FM_GetShiftState [09:14:34]SAM_PROTO_GetShiftState [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 13 01 00 [09:14:34]Write to MH i2c: E2 08 00 14 2C 80 13 01 00 00 00 00 00 BD [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0E 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0E 00 14 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [09:14:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_GetShiftState done [09:14:34]FM_GetShiftState done [09:14:34]req_shift_opened done [09:14:34]requested_item shift.open_date is exist - process it [09:14:34]req_shift_open_date [09:14:34]req_shift_open_date done [09:14:34]produce_requested_data done [09:14:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:14:34]process_action_free close_receipt [09:14:34]json_value_free [09:14:34]json_value_free done [09:14:34]process_json_proto returns [09:14:34]Send response to host [09:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:14:34]free response buf [09:14:34]execute_script done [09:14:34]execute_script returns [09:14:34]free content buf [09:14:34]Sock 8.Close socket [09:14:34]Sock 8.Thread stoped [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:22]accept exits with 9 [09:20:22]New connection [09:20:22]New thread 3067112804 created [09:20:22]Thread 3066969444 joined [09:20:22]Waiting for new connection... [09:20:22] Sock 9.Parse request [09:20:22]Sock 9.Check first char [09:20:22]Sock 9.First char is OK [09:20:22]request: POST /json_proto HTTP/1.0 [09:20:22]Method: POST [09:20:22]URL: /json_proto [09:20:22]Method is POST - this is cgi request [09:20:22]url: /json_proto [09:20:22]query_string will be loaded in cgi processing [09:20:22]execute_cgi json_proto POST (null) [09:20:22]execute_cgi path=json_proto method=POST [09:20:22]POST find Content-Length [09:20:22]Host: 172.17.33.3:8080 [09:20:22]Content-Length: 1216 [09:20:22]Content-Type: application/json [09:20:22] [09:20:22]POST finish read [09:20:22]Found Content-Length = 1216 [09:20:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347882\u000A15.04.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 57.380 x 33.40\u000A\u0418\u0422\u041E\u0413: 1916.49\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\u000A43177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:22]execute_script... [09:20:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347882\u000A15.04.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 57.380 x 33.40\u000A\u0418\u0422\u041E\u0413: 1916.49\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\u000A43177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:22]POST & json_proto [09:20:22]process_json_proto [09:20:22]json parsed OK: [09:20:22]protocol is kg_v1.0 [09:20:22]action value=print_text [09:20:22]process_action print_text [09:20:22]cmd_print_text [09:20:22]ExternCall_PrintAddStr [09:20:22]wPrintStart [09:20:22]Write to MH i2c: 01 00 00 15 2C 41 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 15 2C 00 00 00 00 00 FF 0F 56 [09:20:22]RasterBufferAndPrint [09:20:22]line *****ТОВАРНЫЙ ЧЕК***** [09:20:22]line АЗС 108 [09:20:22]line Партнер нефть [09:20:22]line 02508201610067 [09:20:22]line Кассир : Джумагулова Н. [09:20:22]line Счет N : (1)347882 [09:20:22]line 15.04.2024 09:02 [09:20:22]line ПРОДАЖА [09:20:22]line ТРК (МРК, ГНК): 71 [09:20:22]line Вид ГСМ : 2711129700 [09:20:22]line ГАЗ-К-5 [09:20:22]line 57.380 x 33.40 [09:20:22]line ИТОГ: 1916.49 [09:20:22]line Тип оплаты: Талоны: Топливная Карта [09:20:22]line 43177 [09:20:22]line ______________________ [09:20:22]line (подпись) [09:20:22]written 0, free lines is 4095 [09:20:22]Write to MH i2c: 01 00 00 2A 2C 56 [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: 01 07 00 2A 2C 00 00 00 00 00 F5 0D 5F [09:20:22]RasterBufferAndPrint [09:20:22]line [09:20:22]line [09:20:22]line [09:20:22]line [09:20:22]line [09:20:22]written 0, free lines is 3575 [09:20:22]MH_Cut [09:20:22]Write to MH i2c: D1 01 00 31 2C 01 2F [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: D1 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: D1 01 00 [09:20:22]MH_I2C_Read... [09:20:22]Read from MH i2c: D1 01 00 31 2C 00 2E [09:20:22]Write to MH i2c: 01 00 00 32 2C 5E [09:20:22]Write i2c OK [09:20:22]MH_I2C_Read... [09:20:22]*** Cut start [09:20:22]*** Partial cut [09:20:22]*** CUTSNS_PIN = 1 [09:20:22]*** CUTSNS_PIN = 0 [09:20:23]OFD Sender: No OFD packet to send [09:20:23]*** Brake cut motor [09:20:23]Read from MH i2c: 01 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 [09:20:23]MH_I2C_Read... [09:20:23]*** Stop cut motor [09:20:23]*** Cut end [09:20:23]Read from MH i2c: 01 07 00 32 2C 00 00 00 00 00 FF 0F 73 [09:20:23]process_action print_text done [09:20:23]requested_data is exist [09:20:23]produce_requested_data [09:20:23]requested_item fm.sn is exist - process it [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 11 00 00 [09:20:23]Write to MH i2c: E2 08 00 33 2C 80 11 00 00 00 00 00 00 D9 [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 33 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [09:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:20:23]wFMCommunicate OK [09:20:23]requested_item fd.num is exist - process it [09:20:23]SAM_PROTO_GetFieldsCounters [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 13 00 00 [09:20:23]Write to MH i2c: E2 08 00 34 2C 80 13 00 00 00 00 00 00 DC [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 62 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 62 00 34 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 E8 [09:20:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 [09:20:23]wFMCommunicate OK [09:20:23]SAM_PROTO_GetFieldsCounters done [09:20:23]requested_item shift.num is exist - process it [09:20:23]requested_item shift.opened is exist - process it [09:20:23]req_shift_opened [09:20:23]FM_GetShiftState [09:20:23]SAM_PROTO_GetShiftState [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 13 01 00 [09:20:23]Write to MH i2c: E2 08 00 35 2C 80 13 01 00 00 00 00 00 DE [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0E 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 0E 00 35 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D2 [09:20:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:20:23]wFMCommunicate OK [09:20:23]SAM_PROTO_GetShiftState done [09:20:23]FM_GetShiftState done [09:20:23]req_shift_opened done [09:20:23]requested_item shift.open_date is exist - process it [09:20:23]req_shift_open_date [09:20:23]req_shift_open_date done [09:20:23]produce_requested_data done [09:20:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:20:23]process_action_free print_text [09:20:23]json_value_free [09:20:23]json_value_free done [09:20:23]process_json_proto returns [09:20:23]Send response to host [09:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:20:23]free response buf [09:20:23]execute_script done [09:20:23]execute_script returns [09:20:23]free content buf [09:20:23]Sock 9.Close socket [09:20:23]Sock 9.Thread stoped [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:45]accept exits with 8 [09:24:45]New connection [09:24:45]New thread 3066969444 created [09:24:45]Thread 3067112804 joined [09:24:45]Waiting for new connection... [09:24:45] Sock 8.Parse request [09:24:45]Sock 8.Check first char [09:24:45]Sock 8.First char is OK [09:24:45]request: POST /json_proto HTTP/1.0 [09:24:45]Method: POST [09:24:45]URL: /json_proto [09:24:45]Method is POST - this is cgi request [09:24:45]url: /json_proto [09:24:45]query_string will be loaded in cgi processing [09:24:45]execute_cgi json_proto POST (null) [09:24:45]execute_cgi path=json_proto method=POST [09:24:45]POST find Content-Length [09:24:45]Host: 172.17.33.3:8080 [09:24:45]Content-Length: 1210 [09:24:45]Content-Type: application/json [09:24:45] [09:24:45]POST finish read [09:24:45]Found Content-Length = 1210 [09:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347883\u000A15.04.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A43339\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:45]execute_script... [09:24:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347883\u000A15.04.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A43339\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:45]POST & json_proto [09:24:45]process_json_proto [09:24:45]json parsed OK: [09:24:45]protocol is kg_v1.0 [09:24:45]action value=print_text [09:24:45]process_action print_text [09:24:45]cmd_print_text [09:24:45]ExternCall_PrintAddStr [09:24:45]wPrintStart [09:24:45]Write to MH i2c: 01 00 00 36 2C 62 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 07 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 07 00 36 2C 00 00 00 00 00 FF 0F 77 [09:24:45]RasterBufferAndPrint [09:24:45]line *****ТОВАРНЫЙ ЧЕК***** [09:24:45]line АЗС 108 [09:24:45]line Партнер нефть [09:24:45]line 02508201610067 [09:24:45]line Кассир : Джумагулова Н. [09:24:45]line Счет N : (1)347883 [09:24:45]line 15.04.2024 09:06 [09:24:45]line ПРОДАЖА [09:24:45]line ТРК (МРК, ГНК): 61 [09:24:45]line Вид ГСМ : 2710194210 [09:24:45]line ДТ-К-5 [09:24:45]line 60.000 x 72.90 [09:24:45]line ИТОГ: 4374.00 [09:24:45]line Тип оплаты: Талоны: Топливная Карта [09:24:45]line 43339 [09:24:45]line ______________________ [09:24:45]line (подпись) [09:24:45]written 0, free lines is 4095 [09:24:45]Write to MH i2c: 01 00 00 4B 2C 77 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 07 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 07 00 4B 2C 00 00 00 00 00 F5 0D 80 [09:24:45]RasterBufferAndPrint [09:24:45]line [09:24:45]line [09:24:45]line [09:24:45]line [09:24:45]line [09:24:45]written 0, free lines is 3575 [09:24:45]MH_Cut [09:24:45]Write to MH i2c: D1 01 00 52 2C 01 50 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: D1 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: D1 01 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: D1 01 00 52 2C 00 4F [09:24:45]Write to MH i2c: 01 00 00 53 2C 7F [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:46]*** Cut start [09:24:46]*** Partial cut [09:24:46]*** CUTSNS_PIN = 1 [09:24:46]*** CUTSNS_PIN = 0 [09:24:46]*** Brake cut motor [09:24:47]Read from MH i2c: 01 [09:24:47]MH_I2C_Read... [09:24:47]*** Stop cut motor [09:24:47]*** Cut end [09:24:47]Read from MH i2c: 01 07 00 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: 01 07 00 53 2C 00 00 00 00 00 FF 0F 94 [09:24:47]process_action print_text done [09:24:47]requested_data is exist [09:24:47]produce_requested_data [09:24:47]requested_item fm.sn is exist - process it [09:24:47]wFMCommunicate request_size=4 [09:24:47]MH_SAM_APDU [09:24:47]CAPDU: 80 11 00 00 [09:24:47]Write to MH i2c: E2 08 00 54 2C 80 11 00 00 00 00 00 00 FA [09:24:47]Write i2c OK [09:24:47]MH_I2C_Read... [09:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:47]Read from MH i2c: E2 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 17 00 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 17 00 54 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [09:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:24:47]wFMCommunicate OK [09:24:47]requested_item fd.num is exist - process it [09:24:47]SAM_PROTO_GetFieldsCounters [09:24:47]wFMCommunicate request_size=4 [09:24:47]MH_SAM_APDU [09:24:47]CAPDU: 80 13 00 00 [09:24:47]Write to MH i2c: E2 08 00 55 2C 80 13 00 00 00 00 00 00 FD [09:24:47]Write i2c OK [09:24:47]MH_I2C_Read... [09:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:47]Read from MH i2c: E2 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 62 00 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 62 00 55 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 09 [09:24:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 73 00 00 0E 04 04 00 75 00 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 [09:24:47]wFMCommunicate OK [09:24:47]SAM_PROTO_GetFieldsCounters done [09:24:47]requested_item shift.num is exist - process it [09:24:47]requested_item shift.opened is exist - process it [09:24:47]req_shift_opened [09:24:47]FM_GetShiftState [09:24:47]SAM_PROTO_GetShiftState [09:24:47]wFMCommunicate request_size=4 [09:24:47]MH_SAM_APDU [09:24:47]CAPDU: 80 13 01 00 [09:24:47]Write to MH i2c: E2 08 00 56 2C 80 13 01 00 00 00 00 00 FF [09:24:47]Write i2c OK [09:24:47]MH_I2C_Read... [09:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:47]Read from MH i2c: E2 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 0E 00 [09:24:47]MH_I2C_Read... [09:24:47]Read from MH i2c: E2 0E 00 56 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F3 [09:24:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:24:47]wFMCommunicate OK [09:24:47]SAM_PROTO_GetShiftState done [09:24:47]FM_GetShiftState done [09:24:47]req_shift_opened done [09:24:47]requested_item shift.open_date is exist - process it [09:24:47]req_shift_open_date [09:24:47]req_shift_open_date done [09:24:47]produce_requested_data done [09:24:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:24:47]process_action_free print_text [09:24:47]json_value_free [09:24:47]json_value_free done [09:24:47]process_json_proto returns [09:24:47]Send response to host [09:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29472,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:24:47]free response buf [09:24:47]execute_script done [09:24:47]execute_script returns [09:24:47]free content buf [09:24:47]Sock 8.Close socket [09:24:47]Sock 8.Thread stoped [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:42]accept exits with 9 [09:25:42]New connection [09:25:42]New thread 3067112804 created [09:25:42]Thread 3066969444 joined [09:25:42]Waiting for new connection... [09:25:42] Sock 9.Parse request [09:25:42]Sock 9.Check first char [09:25:42]Sock 9.First char is OK [09:25:42]request: POST /json_proto HTTP/1.0 [09:25:42]Method: POST [09:25:42]URL: /json_proto [09:25:42]Method is POST - this is cgi request [09:25:42]url: /json_proto [09:25:42]query_string will be loaded in cgi processing [09:25:42]execute_cgi json_proto POST (null) [09:25:42]execute_cgi path=json_proto method=POST [09:25:42]POST find Content-Length [09:25:42]Host: 172.17.33.3:8080 [09:25:42]Content-Length: 677 [09:25:42]Content-Type: application/json [09:25:42] [09:25:42]POST finish read [09:25:42]Found Content-Length = 677 [09:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:42]execute_script... [09:25: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)347885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:42]POST & json_proto [09:25:42]process_json_proto [09:25:42]json parsed OK: [09:25:42]protocol is kg_v1.0 [09:25:42]action value=close_receipt [09:25:42]process_action close_receipt [09:25:42]cmd_close_receipt [09:25:42]MH_GetDate [09:25:42]Write to MH i2c: F0 00 00 57 2C 72 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: F0 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: F0 09 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: F0 09 00 57 2C 00 9A F2 1C 66 23 5B 8F 65 FB [09:25:42]GetLastDocTimeStamp 1713172473 [09:25:42]current date 1713173146 [09:25:42]FM_GetShiftState [09:25:42]SAM_PROTO_GetShiftState [09:25:42]wFMCommunicate request_size=4 [09:25:42]MH_SAM_APDU [09:25:42]CAPDU: 80 13 01 00 [09:25:42]Write to MH i2c: E2 08 00 58 2C 80 13 01 00 00 00 00 00 01 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:42]Read from MH i2c: E2 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: E2 0E 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: E2 0E 00 58 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F5 [09:25:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:25:42]wFMCommunicate OK [09:25:42]SAM_PROTO_GetShiftState done [09:25:42]FM_GetShiftState done [09:25:42]opened in 1713140468 [09:25:42]opened+sec_in_day 1713226868 [09:25:42]quantity*price = 50025 [09:25:42]sum+1 = 50027 [09:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 67 15.04.2024 09:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29473 ФПД: 123512578995032 1/tax-web-control/client/api/v1/ticket?date=20240415T092546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29473&fm=123512578995032&tin=02508201610067®Number=0000138879044617&sum=50000 [09:25:43]StoreToDocumentArchive [09:25:43]shift 117 fd 29473 [09:25:43]save to /storage/0117/doc_00029473 [09:25:43]save last doc name /storage/0117/doc_00029473 to /storage/kkm_last_doc_name [09:25:43]save OK [09:25:43]Clear old archive folders... [09:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:43]tlvbuf is 00213FA0 [09:25:43]SAM_PROTO_ClearQueue [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 09 00 00 [09:25:43]Write to MH i2c: E2 08 00 65 2C 80 09 00 00 00 00 00 00 03 [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]SAM_PROTO_ClearQueue done [09:25:43]KKMCreateOFDPacket [09:25:43]OFDProtocolAddRootSTLVToBuf [09:25:43]FM_MakeSignedData [09:25:43]FM_MakeSignedData [09:25:43]SAM_PROTO_SignData [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 0D 01 02 [09:25:43]Write to MH i2c: E2 08 00 66 2C 80 0D 01 02 00 00 00 00 0B [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [09:25:43]RAPDU: 90 00 [09:25:43]wFMCommunicate OK [09:25:43]wFMCommunicate request_size=255 [09:25:43]MH_SAM_APDU [09:25: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 73 00 00 35 04 06 00 70 [09:25:43]Write to MH i2c: E2 02 01 67 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 73 00 00 35 04 06 00 70 00 00 8E [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:44]Read from MH i2c: E2 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 03 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [09:25:44]RAPDU: 90 00 [09:25:44]wFMCommunicate OK [09:25:44]wFMCommunicate request_size=10 [09:25:44]MH_SAM_APDU [09:25:44]CAPDU: 80 0D 02 02 05 55 83 65 73 58 [09:25:44]Write to MH i2c: E2 0D 00 68 2C 80 0D 02 02 05 00 55 83 65 73 58 00 00 20 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:44]Read from MH i2c: E2 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 03 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 03 00 68 2C 00 90 00 08 [09:25:44]RAPDU: 90 00 [09:25:44]wFMCommunicate OK [09:25:44]wFMCommunicate request_size=4 [09:25:44]MH_SAM_APDU [09:25:44]CAPDU: 80 0D 03 02 [09:25:44]Write to MH i2c: E2 08 00 69 2C 80 0D 03 02 00 00 00 00 10 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:44]Read from MH i2c: E2 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 0B 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 0B 00 69 2C 00 F0 1E 45 00 18 CC 9D C6 90 00 AB [09:25:44]RAPDU: F0 1E 45 00 18 CC 9D C6 90 00 [09:25:44]wFMCommunicate OK [09:25:44]SAM_PROTO_SignData done [09:25:44]FM_MakeSignedData done [09:25:44]CreateOFDProtocolMessage [09:25:44]wFMCommunicate request_size=4 [09:25:44]MH_SAM_APDU [09:25:44]CAPDU: 80 11 00 00 [09:25:44]Write to MH i2c: E2 08 00 6A 2C 80 11 00 00 00 00 00 00 10 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:44]Read from MH i2c: E2 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 17 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: E2 17 00 6A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [09:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:25:44]wFMCommunicate OK [09:25:44]CreateOFDProtocolMessage done [09:25:44]OFDSenderStorePacket 29473 [09:25:44]StoreOFDPacket docnum=29473 [09:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 58 BA 07 01 D4 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 73 00 00 35 04 06 00 70 55 83 65 73 58 F0 1E 45 00 18 CC 9D C6 [09:25:44]CheckFolder [09:25:44]dirname=/storage/ofd_packets [09:25:44]CheckFolder done [09:25:44]ProducePacketName [09:25:44]name=ofd_packets/00029473 [09:25:44]NVStorageSaveData ofd_packets/00029473 [09:25:44]File name is /storage/ofd_packets/00029473 [09:25:44]Write 301 bytes [09:25:44]NVStorageSaveData done [09:25:44]OFDSenderStorePacket done [09:25:44]KKMCreateOFDPacket done [09:25:44]NVStorageSaveData kkm_last_timestamp [09:25:44]File name is /storage/kkm_last_timestamp [09:25:44]Write 4 bytes [09:25:44]NVStorageSaveData done [09:25:44]ExternCall_PrintAddStr [09:25:44]wPrintStart [09:25:44]Write to MH i2c: 01 00 00 6B 2C 97 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 6B 2C 00 00 00 00 00 FF 0F AC [09:25:44]RasterBufferAndPrint [09:25:44]line Счет N : (1)347885 [09:25:44]line ИНН: 02508201610067 [09:25:44]line Контрольно-Кассовый Чек [09:25:44]line ПРОДАЖА [09:25:44]line ТРК (МРК, ГНК) : 42 [09:25:44]line Товар: 2710124130 [09:25:44]line Аи-92-К-5 [09:25:44]line 7.720 * 64.80 [09:25:44]line = 500.26 [09:25:44]line НДС 12% НСП 1% [09:25:44]line > о реализуемом товаре [09:25:44]line ОКРУГЛЕНИЕ: -0.26 [09:25:44]line ИТОГО: 500.00 [09:25:44]line Внесено: 500.00 [09:25:44]line СДАЧА: 0.00 [09:25:44]line НСП 1% : 4.43 [09:25:44]line НДС 12% : 53.12 [09:25:44]line Наличными: 500.00 [09:25:44]line Безнал.: 0.00 [09:25:44]line Место: АЗС № 108 "Партнер Нефть" [09:25:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:25:44]line СНО: Общий режим [09:25:44]line Чек 67 15.04.2024 09:25 [09:25:44]line Смена: 117 ФФД: 1.0 [09:25:44]line ЗНМ: 0300000027 [09:25:44]line РНМ: 0000138879044617 [09:25:44]line Версия ККМ: 001 [09:25:44]line ФМ: 0000000000963154 [09:25:44]line ФД: 29473 [09:25:44]line ФПД: 123512578995032 [09:25:44]line 1/tax-web-control/client/api/v1/ticket?date=20240415T092546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29473&fm=123512578995032&tin=02508201610067®Number=0000138879044617&sum=50000 [09:25:44]OFD Sender: Processing packet 29473 [packets to send 8, broken 7] [09:25:44]ProducePacketName [09:25:44]name=ofd_packets/00029473 [09:25:44]OFD Sender: To server: pG, [09:25:44]CommunicateWithHost lk.salyk.kg:30040 [09:25:44]ConnectInit lk.salyk.kg [09:25:44]written 0, free lines is 4095 [09:25:44]Connected sock=10 [09:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 58 BA 07 01 D4 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9A F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 73 00 00 35 04 06 00 70 55 83 65 73 58 F0 1E 45 00 18 CC 9D C6 [09:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 4B 47 00 66 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 73 00 00 F4 03 04 00 3B 9D 1C 66 B6 04 01 00 00 FA 5C DF 92 29 B0 10 9E [09:25:44]CommunicateWithHost err = 0 [09:25:44]CheckOFDResponse [09:25:44]1017 (14) - 77093643461234 [09:25:44]1041 (16) - 0000000000963154 [09:25:44]1040 (4) - 29473 [09:25:44]1012 (4) - 15.04.2024 03:21 [09:25:44]1206 (1) - 0 [09:25:44]OFD Sender: Remove packet 29473 [09:25:44]ProducePacketName [09:25:44]name=ofd_packets/00029473 [09:25:44]NVStorageDeleteData [09:25:44]Write to MH i2c: 01 00 00 95 2C C1 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 CA 0C 9E [09:25:44]RasterBufferAndPrint [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]line [09:25:44]written 0, free lines is 3282 [09:25:44]MH_Cut [09:25:44]Write to MH i2c: D1 01 00 9C 2C 01 9A [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 01 00 [09:25:44]MH_I2C_Read... [09:25:44]Read from MH i2c: D1 01 00 9C 2C 00 99 [09:25:44]Write to MH i2c: 01 00 00 9D 2C C9 [09:25:44]Write i2c OK [09:25:44]MH_I2C_Read... [09:25:45]OFD Sender: No OFD packet to send [09:25:45]*** Cut start [09:25:45]*** Partial cut [09:25:45]*** CUTSNS_PIN = 1 [09:25:45]*** CUTSNS_PIN = 0 [09:25:46]*** Brake cut motor [09:25:46]Read from MH i2c: 01 [09:25:46]MH_I2C_Read... [09:25:46]*** Stop cut motor [09:25:46]*** Cut end [09:25:46]Read from MH i2c: 01 07 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: 01 07 00 9D 2C 00 00 00 00 00 FF 0F DE [09:25:46]process_action close_receipt done [09:25:46]requested_data is exist [09:25:46]produce_requested_data [09:25:46]requested_item fm.sn is exist - process it [09:25:46]wFMCommunicate request_size=4 [09:25:46]MH_SAM_APDU [09:25:46]CAPDU: 80 11 00 00 [09:25:46]Write to MH i2c: E2 08 00 9E 2C 80 11 00 00 00 00 00 00 44 [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 17 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 17 00 9E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [09:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:25:46]wFMCommunicate OK [09:25:46]requested_item fd.num is exist - process it [09:25:46]SAM_PROTO_GetFieldsCounters [09:25:46]wFMCommunicate request_size=4 [09:25:46]MH_SAM_APDU [09:25:46]CAPDU: 80 13 00 00 [09:25:46]Write to MH i2c: E2 08 00 9F 2C 80 13 00 00 00 00 00 00 47 [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 62 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 62 00 9F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 73 00 00 0E 04 04 00 75 00 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 57 [09:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 73 00 00 0E 04 04 00 75 00 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 [09:25:46]wFMCommunicate OK [09:25:46]SAM_PROTO_GetFieldsCounters done [09:25:46]requested_item shift.num is exist - process it [09:25:46]requested_item shift.opened is exist - process it [09:25:46]req_shift_opened [09:25:46]FM_GetShiftState [09:25:46]SAM_PROTO_GetShiftState [09:25:46]wFMCommunicate request_size=4 [09:25:46]MH_SAM_APDU [09:25:46]CAPDU: 80 13 01 00 [09:25:46]Write to MH i2c: E2 08 00 A0 2C 80 13 01 00 00 00 00 00 49 [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 A0 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3D [09:25:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:25:46]wFMCommunicate OK [09:25:46]SAM_PROTO_GetShiftState done [09:25:46]FM_GetShiftState done [09:25:46]req_shift_opened done [09:25:46]requested_item shift.open_date is exist - process it [09:25:46]req_shift_open_date [09:25:46]req_shift_open_date done [09:25:46]produce_requested_data done [09:25:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29473,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:25:46]process_action_free close_receipt [09:25:46]json_value_free [09:25:46]json_value_free done [09:25:46]process_json_proto returns [09:25:46]Send response to host [09:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29473,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:25:46]free response buf [09:25:46]execute_script done [09:25:46]execute_script returns [09:25:46]free content buf [09:25:46]Sock 9.Close socket [09:25:46]Sock 9.Thread stoped [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:35]accept exits with 8 [09:26:35]New connection [09:26:35]New thread 3066969444 created [09:26:35]Thread 3067112804 joined [09:26:35]Waiting for new connection... [09:26:35] Sock 8.Parse request [09:26:35]Sock 8.Check first char [09:26:35]Sock 8.First char is OK [09:26:35]request: POST /json_proto HTTP/1.0 [09:26:35]Method: POST [09:26:35]URL: /json_proto [09:26:35]Method is POST - this is cgi request [09:26:35]url: /json_proto [09:26:35]query_string will be loaded in cgi processing [09:26:35]execute_cgi json_proto POST (null) [09:26:35]execute_cgi path=json_proto method=POST [09:26:35]POST find Content-Length [09:26:35]Host: 172.17.33.3:8080 [09:26:35]Content-Length: 844 [09:26:35]Content-Type: application/json [09:26:35] [09:26:35]POST finish read [09:26:35]Found Content-Length = 844 [09:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 17.970, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 600.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:35]execute_script... [09: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)347884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 17.970, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 600.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:35]POST & json_proto [09:26:35]process_json_proto [09:26:35]json parsed OK: [09:26:35]protocol is kg_v1.0 [09:26:35]action value=close_receipt [09:26:35]process_action close_receipt [09:26:35]cmd_close_receipt [09:26:35]MH_GetDate [09:26:35]Write to MH i2c: F0 00 00 A1 2C BC [09:26:35]Write i2c OK [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: F0 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: F0 09 00 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: F0 09 00 A1 2C 00 CF F2 1C 66 23 5B 8F 65 7A [09:26:35]GetLastDocTimeStamp 1713173146 [09:26:35]current date 1713173199 [09:26:35]FM_GetShiftState [09:26:35]SAM_PROTO_GetShiftState [09:26:35]wFMCommunicate request_size=4 [09:26:35]MH_SAM_APDU [09:26:35]CAPDU: 80 13 01 00 [09:26:35]Write to MH i2c: E2 08 00 A2 2C 80 13 01 00 00 00 00 00 4B [09:26:35]Write i2c OK [09:26:35]MH_I2C_Read... [09:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:35]Read from MH i2c: E2 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: E2 0E 00 [09:26:35]MH_I2C_Read... [09:26:35]Read from MH i2c: E2 0E 00 A2 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3F [09:26:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:26:35]wFMCommunicate OK [09:26:35]SAM_PROTO_GetShiftState done [09:26:35]FM_GetShiftState done [09:26:35]opened in 1713140468 [09:26:35]opened+sec_in_day 1713226868 [09:26:35]quantity*price = 60019 [09:26:35]sum+1 = 60021 [09:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.20 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.20 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 68 15.04.2024 09:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29474 ФПД: 339632240821 1/tax-web-control/client/api/v1/ticket?date=20240415T092639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29474&fm=339632240821&tin=02508201610067®Number=0000138879044617&sum=60020 [09:26:36]StoreToDocumentArchive [09:26:36]shift 117 fd 29474 [09:26:36]save to /storage/0117/doc_00029474 [09:26:36]save last doc name /storage/0117/doc_00029474 to /storage/kkm_last_doc_name [09:26:36]save OK [09:26:36]Clear old archive folders... [09:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:26:36]tlvbuf is 002A6CB0 [09:26:36]SAM_PROTO_ClearQueue [09:26:36]wFMCommunicate request_size=4 [09:26:36]MH_SAM_APDU [09:26:36]CAPDU: 80 09 00 00 [09:26:36]Write to MH i2c: E2 08 00 AF 2C 80 09 00 00 00 00 00 00 4D [09:26:36]Write i2c OK [09:26:36]MH_I2C_Read... [09:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:36]Read from MH i2c: E2 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 03 00 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [09:26:36]RAPDU: 90 00 [09:26:36]wFMCommunicate OK [09:26:36]SAM_PROTO_ClearQueue done [09:26:36]KKMCreateOFDPacket [09:26:36]OFDProtocolAddRootSTLVToBuf [09:26:36]FM_MakeSignedData [09:26:36]FM_MakeSignedData [09:26:36]SAM_PROTO_SignData [09:26:36]wFMCommunicate request_size=4 [09:26:36]MH_SAM_APDU [09:26:36]CAPDU: 80 0D 01 02 [09:26:36]Write to MH i2c: E2 08 00 B0 2C 80 0D 01 02 00 00 00 00 55 [09:26:36]Write i2c OK [09:26:36]MH_I2C_Read... [09:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:36]Read from MH i2c: E2 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 03 00 [09:26:36]MH_I2C_Read... [09:26:36]Read from MH i2c: E2 03 00 B0 2C 00 90 00 50 [09:26:36]RAPDU: 90 00 [09:26:36]wFMCommunicate OK [09:26:36]wFMCommunicate request_size=255 [09:26:36]MH_SAM_APDU [09:26:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 73 00 00 35 04 06 00 00 4F [09:26:36]Write to MH i2c: E2 02 01 B1 2C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 73 00 00 35 04 06 00 00 4F 00 00 CA [09:26:36]Write i2c OK [09:26:36]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 03 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 03 00 B1 2C 00 90 00 51 [09:26:37]RAPDU: 90 00 [09:26:37]wFMCommunicate OK [09:26:37]wFMCommunicate request_size=9 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 0D 02 02 04 13 A8 B8 B5 [09:26:37]Write to MH i2c: E2 0C 00 B2 2C 80 0D 02 02 04 00 13 A8 B8 B5 00 00 88 [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 03 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 03 00 B2 2C 00 90 00 52 [09:26:37]RAPDU: 90 00 [09:26:37]wFMCommunicate OK [09:26:37]wFMCommunicate request_size=4 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 0D 03 02 [09:26:37]Write to MH i2c: E2 08 00 B3 2C 80 0D 03 02 00 00 00 00 5A [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0B 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0B 00 B3 2C 00 66 BB ED 4C D1 31 7F F4 90 00 2A [09:26:37]RAPDU: 66 BB ED 4C D1 31 7F F4 90 00 [09:26:37]wFMCommunicate OK [09:26:37]SAM_PROTO_SignData done [09:26:37]FM_MakeSignedData done [09:26:37]CreateOFDProtocolMessage [09:26:37]wFMCommunicate request_size=4 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 11 00 00 [09:26:37]Write to MH i2c: E2 08 00 B4 2C 80 11 00 00 00 00 00 00 5A [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 17 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 17 00 B4 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [09:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:37]wFMCommunicate OK [09:26:37]CreateOFDProtocolMessage done [09:26:37]OFDSenderStorePacket 29474 [09:26:37]StoreOFDPacket docnum=29474 [09:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A0 C7 06 01 85 2C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 73 00 00 35 04 06 00 00 4F 13 A8 B8 B5 66 BB ED 4C D1 31 7F F4 [09:26:37]CheckFolder [09:26:37]dirname=/storage/ofd_packets [09:26:37]CheckFolder done [09:26:37]ProducePacketName [09:26:37]name=ofd_packets/00029474 [09:26:37]NVStorageSaveData ofd_packets/00029474 [09:26:37]File name is /storage/ofd_packets/00029474 [09:26:37]Write 300 bytes [09:26:37]NVStorageSaveData done [09:26:37]OFDSenderStorePacket done [09:26:37]KKMCreateOFDPacket done [09:26:37]NVStorageSaveData kkm_last_timestamp [09:26:37]File name is /storage/kkm_last_timestamp [09:26:37]Write 4 bytes [09:26:37]NVStorageSaveData done [09:26:37]ExternCall_PrintAddStr [09:26:37]wPrintStart [09:26:37]Write to MH i2c: 01 00 00 B5 2C E1 [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: 01 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: 01 07 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: 01 07 00 B5 2C 00 00 00 00 00 FF 0F F6 [09:26:37]RasterBufferAndPrint [09:26:37]line Счет N : (1)347884 [09:26:37]line ИНН: 02508201610067 [09:26:37]line Контрольно-Кассовый Чек [09:26:37]line ПРОДАЖА [09:26:37]line ТРК (МРК, ГНК) : 71 [09:26:37]line Товар: 2711129700 [09:26:37]line ГАЗ-К-5 [09:26:37]line 17.970 * 33.40 [09:26:37]line = 600.20 [09:26:37]line НДС 12% НСП 1% [09:26:37]line > о реализуемом товаре [09:26:37]line ИТОГО: 600.20 [09:26:37]line НСП 1% : 5.31 [09:26:37]line НДС 12% : 63.74 [09:26:37]line Наличными: 0.00 [09:26:37]line Безнал.: 600.20 [09:26:37]line Место: АЗС № 108 "Партнер Нефть" [09:26:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:26:37]line СНО: Общий режим [09:26:37]line Чек 68 15.04.2024 09:26 [09:26:37]line Смена: 117 ФФД: 1.0 [09:26:37]line ЗНМ: 0300000027 [09:26:37]line РНМ: 0000138879044617 [09:26:37]line Версия ККМ: 001 [09:26:37]line Платежная система: АКБ Кыргызстан [09:26:37]line ФМ: 0000000000963154 [09:26:37]line ФД: 29474 [09:26:37]line ФПД: 339632240821 [09:26:37]line 1/tax-web-control/client/api/v1/ticket?date=20240415T092639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29474&fm=339632240821&tin=02508201610067®Number=0000138879044617&sum=60020 [09:26:37]OFD Sender: Processing packet 29474 [packets to send 8, broken 7] [09:26:37]ProducePacketName [09:26:37]name=ofd_packets/00029474 [09:26:37]OFD Sender: To server: pG, [09:26:37]CommunicateWithHost lk.salyk.kg:30040 [09:26:37]ConnectInit lk.salyk.kg [09:26:37]written 0, free lines is 4095 [09:26:37]Connected sock=10 [09:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A0 C7 06 01 85 2C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 32 46 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 73 00 00 35 04 06 00 00 4F 13 A8 B8 B5 66 BB ED 4C D1 31 7F F4 [09:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 76 47 00 A5 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 39 36 33 31 35 34 10 04 04 00 22 73 00 00 F4 03 04 00 70 9D 1C 66 B6 04 01 00 00 EA C3 A0 E9 14 BA FC 57 [09:26:37]CommunicateWithHost err = 0 [09:26:37]CheckOFDResponse [09:26:37]1017 (14) - 77093643461234 [09:26:37]1041 (16) - 0000000000963154 [09:26:37]1040 (4) - 29474 [09:26:37]1012 (4) - 15.04.2024 03:22 [09:26:37]1206 (1) - 0 [09:26:37]OFD Sender: Remove packet 29474 [09:26:37]ProducePacketName [09:26:37]name=ofd_packets/00029474 [09:26:37]NVStorageDeleteData [09:26:38]Write to MH i2c: 01 00 00 DE 2C 0A [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: 01 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: 01 07 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: 01 07 00 DE 2C 00 00 00 00 00 DA 0C F7 [09:26:38]RasterBufferAndPrint [09:26:38]line [09:26:38]line [09:26:38]line [09:26:38]line [09:26:38]line [09:26:38]written 0, free lines is 3298 [09:26:38]MH_Cut [09:26:38]Write to MH i2c: D1 01 00 E5 2C 01 E3 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: D1 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: D1 01 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: D1 01 00 E5 2C 00 E2 [09:26:38]Write to MH i2c: 01 00 00 E6 2C 12 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]OFD Sender: No OFD packet to send [09:26:38]*** Cut start [09:26:38]*** Partial cut [09:26:38]*** CUTSNS_PIN = 1 [09:26:38]*** CUTSNS_PIN = 0 [09:26:39]*** Brake cut motor [09:26:39]Read from MH i2c: 01 [09:26:39]MH_I2C_Read... [09:26:39]*** Stop cut motor [09:26:39]*** Cut end [09:26:39]Read from MH i2c: 01 07 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 FF 0F 27 [09:26:39]process_action close_receipt done [09:26:39]requested_data is exist [09:26:39]produce_requested_data [09:26:39]requested_item fm.sn is exist - process it [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 11 00 00 [09:26:39]Write to MH i2c: E2 08 00 E7 2C 80 11 00 00 00 00 00 00 8D [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 E7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [09:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:26:39]wFMCommunicate OK [09:26:39]requested_item fd.num is exist - process it [09:26:39]SAM_PROTO_GetFieldsCounters [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 13 00 00 [09:26:39]Write to MH i2c: E2 08 00 E8 2C 80 13 00 00 00 00 00 00 90 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 62 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 62 00 E8 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 73 00 00 0E 04 04 00 75 00 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 A4 [09:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 73 00 00 0E 04 04 00 75 00 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:26:39]wFMCommunicate OK [09:26:39]SAM_PROTO_GetFieldsCounters done [09:26:39]requested_item shift.num is exist - process it [09:26:39]requested_item shift.opened is exist - process it [09:26:39]req_shift_opened [09:26:39]FM_GetShiftState [09:26:39]SAM_PROTO_GetShiftState [09:26:39]wFMCommunicate request_size=4 [09:26:39]MH_SAM_APDU [09:26:39]CAPDU: 80 13 01 00 [09:26:39]Write to MH i2c: E2 08 00 E9 2C 80 13 01 00 00 00 00 00 92 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 0E 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 0E 00 E9 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 86 [09:26:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:26:39]wFMCommunicate OK [09:26:39]SAM_PROTO_GetShiftState done [09:26:39]FM_GetShiftState done [09:26:39]req_shift_opened done [09:26:39]requested_item shift.open_date is exist - process it [09:26:39]req_shift_open_date [09:26:39]req_shift_open_date done [09:26:39]produce_requested_data done [09:26:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29474,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:26:39]process_action_free close_receipt [09:26:39]json_value_free [09:26:39]json_value_free done [09:26:39]process_json_proto returns [09:26:39]Send response to host [09:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29474,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:26:39]free response buf [09:26:39]execute_script done [09:26:39]execute_script returns [09:26:39]free content buf [09:26:39]Sock 8.Close socket [09:26:39]Sock 8.Thread stoped [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:06]accept exits with 9 [09:27:06]New connection [09:27:06]New thread 3067112804 created [09:27:06]Thread 3066969444 joined [09:27:06]Waiting for new connection... [09:27:06] Sock 9.Parse request [09:27:06]Sock 9.Check first char [09:27:06]Sock 9.First char is OK [09:27:06]request: POST /json_proto HTTP/1.0 [09:27:06]Method: POST [09:27:06]URL: /json_proto [09:27:06]Method is POST - this is cgi request [09:27:06]url: /json_proto [09:27:06]query_string will be loaded in cgi processing [09:27:06]execute_cgi json_proto POST (null) [09:27:06]execute_cgi path=json_proto method=POST [09:27:06]POST find Content-Length [09:27:06]Host: 172.17.33.3:8080 [09:27:06]Content-Length: 679 [09:27:06]Content-Type: application/json [09:27:06] [09:27:06]POST finish read [09:27:06]Found Content-Length = 679 [09:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 26.750, "sum" : 1950.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:06]execute_script... [09:27: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)347886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 26.750, "sum" : 1950.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:06]POST & json_proto [09:27:06]process_json_proto [09:27:06]json parsed OK: [09:27:06]protocol is kg_v1.0 [09:27:06]action value=close_receipt [09:27:06]process_action close_receipt [09:27:06]cmd_close_receipt [09:27:06]MH_GetDate [09:27:06]Write to MH i2c: F0 00 00 EA 2C 05 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 09 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 09 00 EA 2C 00 EE F2 1C 66 23 5B 8F 65 E2 [09:27:06]GetLastDocTimeStamp 1713173199 [09:27:06]current date 1713173230 [09:27:06]FM_GetShiftState [09:27:06]SAM_PROTO_GetShiftState [09:27:06]wFMCommunicate request_size=4 [09:27:06]MH_SAM_APDU [09:27:06]CAPDU: 80 13 01 00 [09:27:06]Write to MH i2c: E2 08 00 EB 2C 80 13 01 00 00 00 00 00 94 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:06]Read from MH i2c: E2 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 EB 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 88 [09:27:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:27:06]wFMCommunicate OK [09:27:06]SAM_PROTO_GetShiftState done [09:27:06]FM_GetShiftState done [09:27:06]opened in 1713140468 [09:27:06]opened+sec_in_day 1713226868 [09:27:06]quantity*price = 195007 [09:27:06]sum+1 = 195009 [09:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1950.00 Внесено: 1950.00 СДАЧА: 0.00 НСП 1% : 17.26 НДС 12% : 207.09 Наличными: 1950.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 69 15.04.2024 09:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29475 ФПД: 178748363770302 1/tax-web-control/client/api/v1/ticket?date=20240415T092710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29475&fm=178748363770302&tin=02508201610067®Number=0000138879044617&sum=195000 [09:27:07]StoreToDocumentArchive [09:27:07]shift 117 fd 29475 [09:27:07]save to /storage/0117/doc_00029475 [09:27:07]save last doc name /storage/0117/doc_00029475 to /storage/kkm_last_doc_name [09:27:07]save OK [09:27:07]Clear old archive folders... [09:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:07]tlvbuf is B6EE8250 [09:27:07]SAM_PROTO_ClearQueue [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 09 00 00 [09:27:07]Write to MH i2c: E2 08 00 F8 2C 80 09 00 00 00 00 00 00 96 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [09:27:07]RAPDU: 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_ClearQueue done [09:27:07]KKMCreateOFDPacket [09:27:07]OFDProtocolAddRootSTLVToBuf [09:27:07]FM_MakeSignedData [09:27:07]FM_MakeSignedData [09:27:07]SAM_PROTO_SignData [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 0D 01 02 [09:27:07]Write to MH i2c: E2 08 00 F9 2C 80 0D 01 02 00 00 00 00 9E [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 F9 2C 00 90 00 99 [09:27:07]RAPDU: 90 00 [09:27:07]wFMCommunicate OK [09:27:07]wFMCommunicate request_size=255 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C0 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EE F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 73 00 00 35 04 06 00 A2 92 18 BA [09:27:07]Write to MH i2c: E2 02 01 FA 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C0 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EE F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 73 00 00 35 04 06 00 A2 92 18 BA 00 00 66 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 FA 2C 00 90 00 9A [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=7 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 02 09 BE [09:27:08]Write to MH i2c: E2 0A 00 FB 2C 80 0D 02 02 02 00 09 BE 00 00 6C [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 FB 2C 00 90 00 9B [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 03 02 [09:27:08]Write to MH i2c: E2 08 00 FC 2C 80 0D 03 02 00 00 00 00 A3 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 FC 2C 00 89 08 2C DC 5D BC E3 C4 90 00 FD [09:27:08]RAPDU: 89 08 2C DC 5D BC E3 C4 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_SignData done [09:27:08]FM_MakeSignedData done [09:27:08]CreateOFDProtocolMessage [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 11 00 00 [09:27:08]Write to MH i2c: E2 08 00 FD 2C 80 11 00 00 00 00 00 00 A3 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 FD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [09:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:08]wFMCommunicate OK [09:27:08]CreateOFDProtocolMessage done [09:27:08]OFDSenderStorePacket 29475 [09:27:08]StoreOFDPacket docnum=29475 [09:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C0 03 04 01 38 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C0 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EE F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 73 00 00 35 04 06 00 A2 92 18 BA 09 BE 89 08 2C DC 5D BC E3 C4 [09:27:08]CheckFolder [09:27:08]dirname=/storage/ofd_packets [09:27:08]CheckFolder done [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00029475 [09:27:08]NVStorageSaveData ofd_packets/00029475 [09:27:08]File name is /storage/ofd_packets/00029475 [09:27:08]Write 298 bytes [09:27:08]NVStorageSaveData done [09:27:08]OFDSenderStorePacket done [09:27:08]KKMCreateOFDPacket done [09:27:08]NVStorageSaveData kkm_last_timestamp [09:27:08]File name is /storage/kkm_last_timestamp [09:27:08]Write 4 bytes [09:27:08]NVStorageSaveData done [09:27:08]ExternCall_PrintAddStr [09:27:08]wPrintStart [09:27:08]Write to MH i2c: 01 00 00 FE 2C 2A [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 FF 0F 3F [09:27:08]RasterBufferAndPrint [09:27:08]line Счет N : (1)347886 [09:27:08]line ИНН: 02508201610067 [09:27:08]line Контрольно-Кассовый Чек [09:27:08]line ПРОДАЖА [09:27:08]line ТРК (МРК, ГНК) : 51 [09:27:08]line Товар: 2710194210 [09:27:08]line ДТ-К-5 [09:27:08]line 26.750 * 72.90 [09:27:08]line = 1950.08 [09:27:08]line НДС 12% НСП 1% [09:27:08]line > о реализуемом товаре [09:27:08]line ОКРУГЛЕНИЕ: -0.08 [09:27:08]line ИТОГО: 1950.00 [09:27:08]line Внесено: 1950.00 [09:27:08]line СДАЧА: 0.00 [09:27:08]line НСП 1% : 17.26 [09:27:08]line НДС 12% : 207.09 [09:27:08]line Наличными: 1950.00 [09:27:08]line Безнал.: 0.00 [09:27:08]line Место: АЗС № 108 "Партнер Нефть" [09:27:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:27:08]line СНО: Общий режим [09:27:08]line Чек 69 15.04.2024 09:27 [09:27:08]line Смена: 117 ФФД: 1.0 [09:27:08]line ЗНМ: 0300000027 [09:27:08]line РНМ: 0000138879044617 [09:27:08]line Версия ККМ: 001 [09:27:08]line ФМ: 0000000000963154 [09:27:08]line ФД: 29475 [09:27:08]line ФПД: 178748363770302 [09:27:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T092710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29475&fm=178748363770302&tin=02508201610067®Number=0000138879044617&sum=195000 [09:27:08]OFD Sender: Processing packet 29475 [packets to send 8, broken 7] [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00029475 [09:27:08]OFD Sender: To server: pG, [09:27:08]CommunicateWithHost lk.salyk.kg:30040 [09:27:08]ConnectInit lk.salyk.kg [09:27:08]written 0, free lines is 4095 [09:27:08]Connected sock=10 [09:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C0 03 04 01 38 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C0 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 EE F2 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 73 00 00 35 04 06 00 A2 92 18 BA 09 BE 89 08 2C DC 5D BC E3 C4 [09:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 52 E3 47 00 17 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 73 00 00 F4 03 04 00 8F 9D 1C 66 B6 04 01 00 00 D7 72 C6 14 50 6D 3D FE [09:27:08]CommunicateWithHost err = 0 [09:27:08]CheckOFDResponse [09:27:08]1017 (14) - 77093643461234 [09:27:08]1041 (16) - 0000000000963154 [09:27:08]1040 (4) - 29475 [09:27:08]1012 (4) - 15.04.2024 03:22 [09:27:08]1206 (1) - 0 [09:27:08]OFD Sender: Remove packet 29475 [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00029475 [09:27:08]NVStorageDeleteData [09:27:08]Write to MH i2c: 01 00 00 28 2D 55 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 28 2D 00 00 00 00 00 C1 0C 29 [09:27:08]RasterBufferAndPrint [09:27:08]line [09:27:08]line [09:27:08]line [09:27:08]line [09:27:08]line [09:27:08]written 0, free lines is 3270 [09:27:08]MH_Cut [09:27:08]Write to MH i2c: D1 01 00 2F 2D 01 2E [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: D1 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: D1 01 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: D1 01 00 2F 2D 00 2D [09:27:08]Write to MH i2c: 01 00 00 30 2D 5D [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:09]OFD Sender: No OFD packet to send [09:27:09]*** Cut start [09:27:09]*** Partial cut [09:27:09]*** CUTSNS_PIN = 1 [09:27:09]*** CUTSNS_PIN = 0 [09:27:10]*** Brake cut motor [09:27:10]Read from MH i2c: 01 [09:27:10]MH_I2C_Read... [09:27:10]*** Stop cut motor [09:27:10]*** Cut end [09:27:10]Read from MH i2c: 01 07 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 30 2D 00 00 00 00 00 FF 0F 72 [09:27:10]process_action close_receipt done [09:27:10]requested_data is exist [09:27:10]produce_requested_data [09:27:10]requested_item fm.sn is exist - process it [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 11 00 00 [09:27:10]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [09:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:10]wFMCommunicate OK [09:27:10]requested_item fd.num is exist - process it [09:27:10]SAM_PROTO_GetFieldsCounters [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 13 00 00 [09:27:10]Write to MH i2c: E2 08 00 32 2D 80 13 00 00 00 00 00 00 DB [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 62 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 62 00 32 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 73 00 00 0E 04 04 00 75 00 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 F3 [09:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 73 00 00 0E 04 04 00 75 00 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:27:10]wFMCommunicate OK [09:27:10]SAM_PROTO_GetFieldsCounters done [09:27:10]requested_item shift.num is exist - process it [09:27:10]requested_item shift.opened is exist - process it [09:27:10]req_shift_opened [09:27:10]FM_GetShiftState [09:27:10]SAM_PROTO_GetShiftState [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 13 01 00 [09:27:10]Write to MH i2c: E2 08 00 33 2D 80 13 01 00 00 00 00 00 DD [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0E 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0E 00 33 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D1 [09:27:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:27:10]wFMCommunicate OK [09:27:10]SAM_PROTO_GetShiftState done [09:27:10]FM_GetShiftState done [09:27:10]req_shift_opened done [09:27:10]requested_item shift.open_date is exist - process it [09:27:10]req_shift_open_date [09:27:10]req_shift_open_date done [09:27:10]produce_requested_data done [09:27:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29475,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:27:10]process_action_free close_receipt [09:27:10]json_value_free [09:27:10]json_value_free done [09:27:10]process_json_proto returns [09:27:10]Send response to host [09:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29475,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:27:10]free response buf [09:27:10]execute_script done [09:27:10]execute_script returns [09:27:10]free content buf [09:27:10]Sock 9.Close socket [09:27:10]Sock 9.Thread stoped [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:46]accept exits with 8 [09:27:46]New connection [09:27:46]New thread 3066969444 created [09:27:46]Thread 3067112804 joined [09:27:46]Waiting for new connection... [09:27:46] Sock 8.Parse request [09:27:46]Sock 8.Check first char [09:27:46]Sock 8.First char is OK [09:27:46]request: POST /json_proto HTTP/1.0 [09:27:46]Method: POST [09:27:46]URL: /json_proto [09:27:46]Method is POST - this is cgi request [09:27:46]url: /json_proto [09:27:46]query_string will be loaded in cgi processing [09:27:46]execute_cgi json_proto POST (null) [09:27:46]execute_cgi path=json_proto method=POST [09:27:46]POST find Content-Length [09:27:46]Host: 172.17.33.3:8080 [09:27:46]Content-Length: 682 [09:27:46]Content-Type: application/json [09:27:46] [09:27:46]POST finish read [09:27:46]Found Content-Length = 682 [09:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:46]execute_script... [09: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)347887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:46]POST & json_proto [09:27:46]process_json_proto [09:27:46]json parsed OK: [09:27:46]protocol is kg_v1.0 [09:27:46]action value=close_receipt [09:27:46]process_action close_receipt [09:27:46]cmd_close_receipt [09:27:46]MH_GetDate [09:27:46]Write to MH i2c: F0 00 00 34 2D 50 [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: F0 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: F0 09 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: F0 09 00 34 2D 00 16 F3 1C 66 23 5B 8F 65 56 [09:27:46]GetLastDocTimeStamp 1713173230 [09:27:46]current date 1713173270 [09:27:46]FM_GetShiftState [09:27:46]SAM_PROTO_GetShiftState [09:27:46]wFMCommunicate request_size=4 [09:27:46]MH_SAM_APDU [09:27:46]CAPDU: 80 13 01 00 [09:27:46]Write to MH i2c: E2 08 00 35 2D 80 13 01 00 00 00 00 00 DF [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:46]Read from MH i2c: E2 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: E2 0E 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: E2 0E 00 35 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D3 [09:27:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:27:46]wFMCommunicate OK [09:27:46]SAM_PROTO_GetShiftState done [09:27:46]FM_GetShiftState done [09:27:46]opened in 1713140468 [09:27:46]opened+sec_in_day 1713226868 [09:27:46]quantity*price = 100051 [09:27:46]sum+1 = 100052 [09:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 70 15.04.2024 09:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29476 ФПД: 185281973978332 1/tax-web-control/client/api/v1/ticket?date=20240415T092750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29476&fm=185281973978332&tin=02508201610067®Number=0000138879044617&sum=100000 [09:27:47]StoreToDocumentArchive [09:27:47]shift 117 fd 29476 [09:27:47]save to /storage/0117/doc_00029476 [09:27:47]save last doc name /storage/0117/doc_00029476 to /storage/kkm_last_doc_name [09:27:47]save OK [09:27:47]Clear old archive folders... [09:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:47]tlvbuf is 0028D9F0 [09:27:47]SAM_PROTO_ClearQueue [09:27:47]wFMCommunicate request_size=4 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 09 00 00 [09:27:47]Write to MH i2c: E2 08 00 42 2D 80 09 00 00 00 00 00 00 E1 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [09:27:47]RAPDU: 90 00 [09:27:47]wFMCommunicate OK [09:27:47]SAM_PROTO_ClearQueue done [09:27:47]KKMCreateOFDPacket [09:27:47]OFDProtocolAddRootSTLVToBuf [09:27:47]FM_MakeSignedData [09:27:47]FM_MakeSignedData [09:27:47]SAM_PROTO_SignData [09:27:47]wFMCommunicate request_size=4 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 0D 01 02 [09:27:47]Write to MH i2c: E2 08 00 43 2D 80 0D 01 02 00 00 00 00 E9 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [09:27:47]RAPDU: 90 00 [09:27:47]wFMCommunicate OK [09:27:47]wFMCommunicate request_size=255 [09:27:47]MH_SAM_APDU [09: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 F3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 73 00 00 35 04 06 00 A8 [09:27:47]Write to MH i2c: E2 02 01 44 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 F3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 73 00 00 35 04 06 00 A8 00 00 54 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 03 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 03 00 44 2D 00 90 00 E5 [09:27:48]RAPDU: 90 00 [09:27:48]wFMCommunicate OK [09:27:48]wFMCommunicate request_size=10 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 0D 02 02 05 83 52 3E 04 DC [09:27:48]Write to MH i2c: E2 0D 00 45 2D 80 0D 02 02 05 00 83 52 3E 04 DC 00 00 E9 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 03 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 03 00 45 2D 00 90 00 E6 [09:27:48]RAPDU: 90 00 [09:27:48]wFMCommunicate OK [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 0D 03 02 [09:27:48]Write to MH i2c: E2 08 00 46 2D 80 0D 03 02 00 00 00 00 EE [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 0B 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 0B 00 46 2D 00 B8 EF 1C ED A4 9B 55 F2 90 00 25 [09:27:48]RAPDU: B8 EF 1C ED A4 9B 55 F2 90 00 [09:27:48]wFMCommunicate OK [09:27:48]SAM_PROTO_SignData done [09:27:48]FM_MakeSignedData done [09:27:48]CreateOFDProtocolMessage [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 11 00 00 [09:27:48]Write to MH i2c: E2 08 00 47 2D 80 11 00 00 00 00 00 00 EE [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 17 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 17 00 47 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [09:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:48]wFMCommunicate OK [09:27:48]CreateOFDProtocolMessage done [09:27:48]OFDSenderStorePacket 29476 [09:27:48]StoreOFDPacket docnum=29476 [09:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 67 08 07 01 2A 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 F3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 73 00 00 35 04 06 00 A8 83 52 3E 04 DC B8 EF 1C ED A4 9B 55 F2 [09:27:48]CheckFolder [09:27:48]dirname=/storage/ofd_packets [09:27:48]CheckFolder done [09:27:48]ProducePacketName [09:27:48]name=ofd_packets/00029476 [09:27:48]NVStorageSaveData ofd_packets/00029476 [09:27:48]File name is /storage/ofd_packets/00029476 [09:27:48]Write 301 bytes [09:27:48]NVStorageSaveData done [09:27:48]OFDSenderStorePacket done [09:27:48]KKMCreateOFDPacket done [09:27:48]NVStorageSaveData kkm_last_timestamp [09:27:48]File name is /storage/kkm_last_timestamp [09:27:48]Write 4 bytes [09:27:48]NVStorageSaveData done [09:27:48]ExternCall_PrintAddStr [09:27:48]wPrintStart [09:27:48]Write to MH i2c: 01 00 00 48 2D 75 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 48 2D 00 00 00 00 00 FF 0F 8A [09:27:48]RasterBufferAndPrint [09:27:48]line Счет N : (1)347887 [09:27:48]line ИНН: 02508201610067 [09:27:48]line Контрольно-Кассовый Чек [09:27:48]line ПРОДАЖА [09:27:48]line ТРК (МРК, ГНК) : 13 [09:27:48]line Товар: 2710124130 [09:27:48]line Аи-92-К-5 [09:27:48]line 15.440 * 64.80 [09:27:48]line = 1000.51 [09:27:48]line НДС 12% НСП 1% [09:27:48]line > о реализуемом товаре [09:27:48]line ОКРУГЛЕНИЕ: -0.51 [09:27:48]line ИТОГО: 1000.00 [09:27:48]line Внесено: 1000.00 [09:27:48]line СДАЧА: 0.00 [09:27:48]line НСП 1% : 8.85 [09:27:48]line НДС 12% : 106.25 [09:27:48]line Наличными: 1000.00 [09:27:48]line Безнал.: 0.00 [09:27:48]line Место: АЗС № 108 "Партнер Нефть" [09:27:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:27:48]line СНО: Общий режим [09:27:48]line Чек 70 15.04.2024 09:27 [09:27:48]line Смена: 117 ФФД: 1.0 [09:27:48]line ЗНМ: 0300000027 [09:27:48]line РНМ: 0000138879044617 [09:27:48]line Версия ККМ: 001 [09:27:48]line ФМ: 0000000000963154 [09:27:48]line ФД: 29476 [09:27:48]line ФПД: 185281973978332 [09:27:48]line 1/tax-web-control/client/api/v1/ticket?date=20240415T092750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29476&fm=185281973978332&tin=02508201610067®Number=0000138879044617&sum=100000 [09:27:48]written 0, free lines is 4095 [09:27:48]OFD Sender: Processing packet 29476 [packets to send 8, broken 7] [09:27:48]ProducePacketName [09:27:48]name=ofd_packets/00029476 [09:27:48]OFD Sender: To server: pG, [09:27:48]CommunicateWithHost lk.salyk.kg:30040 [09:27:48]ConnectInit lk.salyk.kg [09:27:48]Connected sock=10 [09:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 67 08 07 01 2A 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 16 F3 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 73 00 00 35 04 06 00 A8 83 52 3E 04 DC B8 EF 1C ED A4 9B 55 F2 [09:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 F6 47 00 24 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 39 36 33 31 35 34 10 04 04 00 24 73 00 00 F4 03 04 00 B7 9D 1C 66 B6 04 01 00 00 4C A5 DB 85 F9 7E BF B3 [09:27:48]CommunicateWithHost err = 0 [09:27:48]CheckOFDResponse [09:27:48]1017 (14) - 77093643461234 [09:27:48]1041 (16) - 0000000000963154 [09:27:48]1040 (4) - 29476 [09:27:48]1012 (4) - 15.04.2024 03:23 [09:27:48]1206 (1) - 0 [09:27:48]OFD Sender: Remove packet 29476 [09:27:48]ProducePacketName [09:27:48]name=ofd_packets/00029476 [09:27:48]NVStorageDeleteData [09:27:48]Write to MH i2c: 01 00 00 72 2D 9F [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 C5 0C 77 [09:27:48]RasterBufferAndPrint [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]written 0, free lines is 3274 [09:27:48]MH_Cut [09:27:48]Write to MH i2c: D1 01 00 79 2D 01 78 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 79 2D 00 77 [09:27:48]Write to MH i2c: 01 00 00 7A 2D A7 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:49]OFD Sender: No OFD packet to send [09:27:49]*** Cut start [09:27:49]*** Partial cut [09:27:49]*** CUTSNS_PIN = 1 [09:27:49]*** CUTSNS_PIN = 0 [09:27:49]*** Brake cut motor [09:27:50]Read from MH i2c: 01 [09:27:50]MH_I2C_Read... [09:27:50]*** Stop cut motor [09:27:50]*** Cut end [09:27:50]Read from MH i2c: 01 07 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 FF 0F BC [09:27:50]process_action close_receipt done [09:27:50]requested_data is exist [09:27:50]produce_requested_data [09:27:50]requested_item fm.sn is exist - process it [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 11 00 00 [09:27:50]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 17 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [09:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:27:50]wFMCommunicate OK [09:27:50]requested_item fd.num is exist - process it [09:27:50]SAM_PROTO_GetFieldsCounters [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 13 00 00 [09:27:50]Write to MH i2c: E2 08 00 7C 2D 80 13 00 00 00 00 00 00 25 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 62 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 62 00 7C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 73 00 00 0E 04 04 00 75 00 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 41 [09:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 73 00 00 0E 04 04 00 75 00 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:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_GetFieldsCounters done [09:27:50]requested_item shift.num is exist - process it [09:27:50]requested_item shift.opened is exist - process it [09:27:50]req_shift_opened [09:27:50]FM_GetShiftState [09:27:50]SAM_PROTO_GetShiftState [09:27:50]wFMCommunicate request_size=4 [09:27:50]MH_SAM_APDU [09:27:50]CAPDU: 80 13 01 00 [09:27:50]Write to MH i2c: E2 08 00 7D 2D 80 13 01 00 00 00 00 00 27 [09:27:50]Write i2c OK [09:27:50]MH_I2C_Read... [09:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:50]Read from MH i2c: E2 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0E 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0E 00 7D 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1B [09:27:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_GetShiftState done [09:27:50]FM_GetShiftState done [09:27:50]req_shift_opened done [09:27:50]requested_item shift.open_date is exist - process it [09:27:50]req_shift_open_date [09:27:50]req_shift_open_date done [09:27:50]produce_requested_data done [09:27:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29476,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:27:50]process_action_free close_receipt [09:27:50]json_value_free [09:27:50]json_value_free done [09:27:50]process_json_proto returns [09:27:50]Send response to host [09:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29476,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:27:50]free response buf [09:27:50]execute_script done [09:27:50]execute_script returns [09:27:50]free content buf [09:27:50]Sock 8.Close socket [09:27:50]Sock 8.Thread stoped [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:22]accept exits with 9 [09:34:22]New connection [09:34:22]New thread 3067112804 created [09:34:22]Thread 3066969444 joined [09:34:22]Waiting for new connection... [09:34:22] Sock 9.Parse request [09:34:22]Sock 9.Check first char [09:34:22]Sock 9.First char is OK [09:34:22]request: POST /json_proto HTTP/1.0 [09:34:22]Method: POST [09:34:22]URL: /json_proto [09:34:22]Method is POST - this is cgi request [09:34:22]url: /json_proto [09:34:22]query_string will be loaded in cgi processing [09:34:22]execute_cgi json_proto POST (null) [09:34:22]execute_cgi path=json_proto method=POST [09:34:22]POST find Content-Length [09:34:22]Host: 172.17.33.3:8080 [09:34:22]Content-Length: 678 [09:34:22]Content-Type: application/json [09:34:22] [09:34:22]POST finish read [09:34:22]Found Content-Length = 678 [09:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [09:34:22]execute_script... [09:34: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)347890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [09:34:22]POST & json_proto [09:34:22]process_json_proto [09:34:22]json parsed OK: [09:34:22]protocol is kg_v1.0 [09:34:22]action value=close_receipt [09:34:22]process_action close_receipt [09:34:22]cmd_close_receipt [09:34:22]MH_GetDate [09:34:22]Write to MH i2c: F0 00 00 7E 2D 9A [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 09 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 09 00 7E 2D 00 A2 F4 1C 66 23 5B 8F 65 2D [09:34:22]GetLastDocTimeStamp 1713173270 [09:34:22]current date 1713173666 [09:34:22]FM_GetShiftState [09:34:22]SAM_PROTO_GetShiftState [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 13 01 00 [09:34:22]Write to MH i2c: E2 08 00 7F 2D 80 13 01 00 00 00 00 00 29 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 7F 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1D [09:34:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_GetShiftState done [09:34:22]FM_GetShiftState done [09:34:22]opened in 1713140468 [09:34:22]opened+sec_in_day 1713226868 [09:34:22]quantity*price = 65059 [09:34:22]sum+1 = 65060 [09:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 71 15.04.2024 09:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29477 ФПД: 46434060609725 1/tax-web-control/client/api/v1/ticket?date=20240415T093426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29477&fm=46434060609725&tin=02508201610067®Number=0000138879044617&sum=65000 [09:34:23]StoreToDocumentArchive [09:34:23]shift 117 fd 29477 [09:34:23]save to /storage/0117/doc_00029477 [09:34:23]save last doc name /storage/0117/doc_00029477 to /storage/kkm_last_doc_name [09:34:23]save OK [09:34:23]Clear old archive folders... [09:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:23]tlvbuf is B6EE8130 [09:34:23]SAM_PROTO_ClearQueue [09:34:23]wFMCommunicate request_size=4 [09:34:23]MH_SAM_APDU [09:34:23]CAPDU: 80 09 00 00 [09:34:23]Write to MH i2c: E2 08 00 8C 2D 80 09 00 00 00 00 00 00 2B [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_ClearQueue done [09:34:24]KKMCreateOFDPacket [09:34:24]OFDProtocolAddRootSTLVToBuf [09:34:24]FM_MakeSignedData [09:34:24]FM_MakeSignedData [09:34:24]SAM_PROTO_SignData [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 01 02 [09:34:24]Write to MH i2c: E2 08 00 8D 2D 80 0D 01 02 00 00 00 00 33 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=255 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 73 00 00 35 04 06 00 2A [09:34:24]Write to MH i2c: E2 02 01 8E 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 73 00 00 35 04 06 00 2A 00 00 FC [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 8E 2D 00 90 00 2F [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=10 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 02 02 05 3B 45 B0 28 BD [09:34:24]Write to MH i2c: E2 0D 00 8F 2D 80 0D 02 02 05 00 3B 45 B0 28 BD 00 00 55 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 03 02 [09:34:24]Write to MH i2c: E2 08 00 90 2D 80 0D 03 02 00 00 00 00 38 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 90 2D 00 24 5F 6A BC 69 03 D2 E9 90 00 09 [09:34:24]RAPDU: 24 5F 6A BC 69 03 D2 E9 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_SignData done [09:34:24]FM_MakeSignedData done [09:34:24]CreateOFDProtocolMessage [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 11 00 00 [09:34:24]Write to MH i2c: E2 08 00 91 2D 80 11 00 00 00 00 00 00 38 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]OFD Sender: No OFD packet to send [09:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 91 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [09:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:34:24]wFMCommunicate OK [09:34:24]CreateOFDProtocolMessage done [09:34:24]OFDSenderStorePacket 29477 [09:34:24]StoreOFDPacket docnum=29477 [09:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EA 0B 07 01 FF 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 73 00 00 35 04 06 00 2A 3B 45 B0 28 BD 24 5F 6A BC 69 03 D2 E9 [09:34:24]CheckFolder [09:34:24]dirname=/storage/ofd_packets [09:34:24]CheckFolder done [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00029477 [09:34:24]NVStorageSaveData ofd_packets/00029477 [09:34:24]File name is /storage/ofd_packets/00029477 [09:34:24]Write 301 bytes [09:34:24]NVStorageSaveData done [09:34:24]OFDSenderStorePacket done [09:34:24]KKMCreateOFDPacket done [09:34:24]NVStorageSaveData kkm_last_timestamp [09:34:24]File name is /storage/kkm_last_timestamp [09:34:24]Write 4 bytes [09:34:24]NVStorageSaveData done [09:34:24]ExternCall_PrintAddStr [09:34:24]wPrintStart [09:34:24]Write to MH i2c: 01 00 00 92 2D BF [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 07 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 07 00 92 2D 00 00 00 00 00 FF 0F D4 [09:34:24]RasterBufferAndPrint [09:34:24]line Счет N : (1)347890 [09:34:24]line ИНН: 02508201610067 [09:34:24]line Контрольно-Кассовый Чек [09:34:24]line ПРОДАЖА [09:34:24]line ТРК (МРК, ГНК) : 23 [09:34:24]line Товар: 2710124130 [09:34:24]line Аи-92-К-5 [09:34:24]line 10.040 * 64.80 [09:34:24]line = 650.59 [09:34:24]line НДС 12% НСП 1% [09:34:24]line > о реализуемом товаре [09:34:24]line ОКРУГЛЕНИЕ: -0.59 [09:34:24]line ИТОГО: 650.00 [09:34:24]line Внесено: 650.00 [09:34:24]line СДАЧА: 0.00 [09:34:24]line НСП 1% : 5.76 [09:34:24]line НДС 12% : 69.09 [09:34:24]line Наличными: 650.00 [09:34:24]line Безнал.: 0.00 [09:34:24]line Место: АЗС № 108 "Партнер Нефть" [09:34:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:34:24]line СНО: Общий режим [09:34:24]line Чек 71 15.04.2024 09:34 [09:34:24]line Смена: 117 ФФД: 1.0 [09:34:24]line ЗНМ: 0300000027 [09:34:24]line РНМ: 0000138879044617 [09:34:24]line Версия ККМ: 001 [09:34:24]line ФМ: 0000000000963154 [09:34:24]line ФД: 29477 [09:34:24]line ФПД: 46434060609725 [09:34:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29477&fm=46434060609725&tin=02508201610067®Number=0000138879044617&sum=65000 [09:34:24]OFD Sender: Processing packet 29477 [packets to send 8, broken 7] [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00029477 [09:34:24]OFD Sender: To server: pG, [09:34:24]CommunicateWithHost lk.salyk.kg:30040 [09:34:24]ConnectInit lk.salyk.kg [09:34:24]written 0, free lines is 4095 [09:34:24]Connected sock=8 [09:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EA 0B 07 01 FF 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 73 00 00 35 04 06 00 2A 3B 45 B0 28 BD 24 5F 6A BC 69 03 D2 E9 [09:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 16 CD 47 00 3E 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 39 36 33 31 35 34 10 04 04 00 25 73 00 00 F4 03 04 00 44 9F 1C 66 B6 04 01 00 00 6E B9 44 A0 90 B9 7B 5B [09:34:25]CommunicateWithHost err = 0 [09:34:25]CheckOFDResponse [09:34:25]1017 (14) - 77093643461234 [09:34:25]1041 (16) - 0000000000963154 [09:34:25]1040 (4) - 29477 [09:34:25]1012 (4) - 15.04.2024 03:30 [09:34:25]1206 (1) - 0 [09:34:25]OFD Sender: Remove packet 29477 [09:34:25]ProducePacketName [09:34:25]name=ofd_packets/00029477 [09:34:25]NVStorageDeleteData [09:34:25]Write to MH i2c: 01 00 00 BC 2D E9 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 BC 2D 00 00 00 00 00 C0 0C BC [09:34:25]RasterBufferAndPrint [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]written 0, free lines is 3268 [09:34:25]MH_Cut [09:34:25]Write to MH i2c: D1 01 00 C3 2D 01 C2 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 C3 2D 00 C1 [09:34:25]Write to MH i2c: 01 00 00 C4 2D F1 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]OFD Sender: No OFD packet to send [09:34:26]*** Cut start [09:34:26]*** Partial cut [09:34:26]*** CUTSNS_PIN = 1 [09:34:26]*** CUTSNS_PIN = 0 [09:34:26]*** Brake cut motor [09:34:26]Read from MH i2c: 01 [09:34:26]MH_I2C_Read... [09:34:26]*** Stop cut motor [09:34:26]*** Cut end [09:34:26]Read from MH i2c: 01 07 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: 01 07 00 C4 2D 00 00 00 00 00 FF 0F 06 [09:34:26]process_action close_receipt done [09:34:26]requested_data is exist [09:34:26]produce_requested_data [09:34:26]requested_item fm.sn is exist - process it [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 11 00 00 [09:34:26]Write to MH i2c: E2 08 00 C5 2D 80 11 00 00 00 00 00 00 6C [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:26]Read from MH i2c: E2 17 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 17 00 C5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [09:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:34:26]wFMCommunicate OK [09:34:26]requested_item fd.num is exist - process it [09:34:26]SAM_PROTO_GetFieldsCounters [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 13 00 00 [09:34:26]Write to MH i2c: E2 08 00 C6 2D 80 13 00 00 00 00 00 00 6F [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 62 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 62 00 C6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 73 00 00 0E 04 04 00 75 00 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 8F [09:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 73 00 00 0E 04 04 00 75 00 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:34:26]wFMCommunicate OK [09:34:26]SAM_PROTO_GetFieldsCounters done [09:34:26]requested_item shift.num is exist - process it [09:34:26]requested_item shift.opened is exist - process it [09:34:26]req_shift_opened [09:34:26]FM_GetShiftState [09:34:26]SAM_PROTO_GetShiftState [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 13 01 00 [09:34:26]Write to MH i2c: E2 08 00 C7 2D 80 13 01 00 00 00 00 00 71 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 C7 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 65 [09:34:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_GetShiftState done [09:34:27]FM_GetShiftState done [09:34:27]req_shift_opened done [09:34:27]requested_item shift.open_date is exist - process it [09:34:27]req_shift_open_date [09:34:27]req_shift_open_date done [09:34:27]produce_requested_data done [09:34:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29477,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:34:27]process_action_free close_receipt [09:34:27]json_value_free [09:34:27]json_value_free done [09:34:27]process_json_proto returns [09:34:27]Send response to host [09:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29477,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:34:27]free response buf [09:34:27]execute_script done [09:34:27]execute_script returns [09:34:27]free content buf [09:34:27]Sock 9.Close socket [09:34:27]Sock 9.Thread stoped [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]accept exits with 10 [09:34:50]New connection [09:34:50]New thread 3066969444 created [09:34:50]Thread 3067112804 joined [09:34:50]Waiting for new connection... [09:34:50] Sock 10.Parse request [09:34:50]Sock 10.Check first char [09:34:50]Sock 10.First char is OK [09:34:50]request: POST /json_proto HTTP/1.0 [09:34:50]Method: POST [09:34:50]URL: /json_proto [09:34:50]Method is POST - this is cgi request [09:34:50]url: /json_proto [09:34:50]query_string will be loaded in cgi processing [09:34:50]execute_cgi json_proto POST (null) [09:34:50]execute_cgi path=json_proto method=POST [09:34:50]POST find Content-Length [09:34:50]Host: 172.17.33.3:8080 [09:34:50]Content-Length: 685 [09:34:50]Content-Type: application/json [09:34:50] [09:34:50]POST finish read [09:34:50]Found Content-Length = 685 [09:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.770, "sum" : 1495.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1495.00, "total" : 1495.00, "payments": [ { "type": 0, "sum" : 1495.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:50]execute_script... [09:34: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)347888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.770, "sum" : 1495.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1495.00, "total" : 1495.00, "payments": [ { "type": 0, "sum" : 1495.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:50]POST & json_proto [09:34:50]process_json_proto [09:34:50]json parsed OK: [09:34:50]protocol is kg_v1.0 [09:34:50]action value=close_receipt [09:34:50]process_action close_receipt [09:34:50]cmd_close_receipt [09:34:50]MH_GetDate [09:34:50]Write to MH i2c: F0 00 00 C8 2D E4 [09:34:50]Write i2c OK [09:34:50]MH_I2C_Read... [09:34:50]Read from MH i2c: F0 [09:34:50]MH_I2C_Read... [09:34:50]Read from MH i2c: F0 09 00 [09:34:50]MH_I2C_Read... [09:34:50]Read from MH i2c: F0 09 00 C8 2D 00 BD F4 1C 66 23 5B 8F 65 92 [09:34:50]GetLastDocTimeStamp 1713173666 [09:34:50]current date 1713173693 [09:34:50]FM_GetShiftState [09:34:50]SAM_PROTO_GetShiftState [09:34:50]wFMCommunicate request_size=4 [09:34:50]MH_SAM_APDU [09:34:50]CAPDU: 80 13 01 00 [09:34:50]Write to MH i2c: E2 08 00 C9 2D 80 13 01 00 00 00 00 00 73 [09:34:50]Write i2c OK [09:34:50]MH_I2C_Read... [09:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:50]Read from MH i2c: E2 [09:34:50]MH_I2C_Read... [09:34:50]Read from MH i2c: E2 0E 00 [09:34:50]MH_I2C_Read... [09:34:50]Read from MH i2c: E2 0E 00 C9 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 67 [09:34:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:34:50]wFMCommunicate OK [09:34:50]SAM_PROTO_GetShiftState done [09:34:50]FM_GetShiftState done [09:34:50]opened in 1713140468 [09:34:50]opened+sec_in_day 1713226868 [09:34:50]quantity*price = 149531 [09:34:50]sum+1 = 149533 [09:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1495.00 Внесено: 1495.00 СДАЧА: 0.00 НСП 1% : 13.23 НДС 12% : 158.79 Наличными: 1495.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 72 15.04.2024 09:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29478 ФПД: 195656191154544 1/tax-web-control/client/api/v1/ticket?date=20240415T093453&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29478&fm=195656191154544&tin=02508201610067®Number=0000138879044617&sum=149500 [09:34:51]StoreToDocumentArchive [09:34:51]shift 117 fd 29478 [09:34:51]save to /storage/0117/doc_00029478 [09:34:51]save last doc name /storage/0117/doc_00029478 to /storage/kkm_last_doc_name [09:34:51]save OK [09:34:51]Clear old archive folders... [09:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:34:51]tlvbuf is B6ECF0E0 [09:34:51]SAM_PROTO_ClearQueue [09:34:51]wFMCommunicate request_size=4 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 09 00 00 [09:34:51]Write to MH i2c: E2 08 00 D6 2D 80 09 00 00 00 00 00 00 75 [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [09:34:51]RAPDU: 90 00 [09:34:51]wFMCommunicate OK [09:34:51]SAM_PROTO_ClearQueue done [09:34:51]KKMCreateOFDPacket [09:34:51]OFDProtocolAddRootSTLVToBuf [09:34:51]FM_MakeSignedData [09:34:51]FM_MakeSignedData [09:34:51]SAM_PROTO_SignData [09:34:51]wFMCommunicate request_size=4 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 0D 01 02 [09:34:51]Write to MH i2c: E2 08 00 D7 2D 80 0D 01 02 00 00 00 00 7D [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [09:34:51]RAPDU: 90 00 [09:34:51]wFMCommunicate OK [09:34:51]wFMCommunicate request_size=255 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 AE 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 1C 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3E 00 00 00 00 07 04 06 00 FC 47 02 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 BD F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 73 00 00 35 04 06 00 B1 F2 [09:34:51]Write to MH i2c: E2 02 01 D8 2D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 AE 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 1C 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3E 00 00 00 00 07 04 06 00 FC 47 02 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 BD F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 73 00 00 35 04 06 00 B1 F2 00 00 8E [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 D8 2D 00 90 00 79 [09:34:51]RAPDU: 90 00 [09:34:51]wFMCommunicate OK [09:34:51]wFMCommunicate request_size=9 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 0D 02 02 04 C1 C5 99 70 [09:34:51]Write to MH i2c: E2 0C 00 D9 2D 80 0D 02 02 04 00 C1 C5 99 70 00 00 17 [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 03 00 D9 2D 00 90 00 7A [09:34:51]RAPDU: 90 00 [09:34:51]wFMCommunicate OK [09:34:51]wFMCommunicate request_size=4 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 0D 03 02 [09:34:51]Write to MH i2c: E2 08 00 DA 2D 80 0D 03 02 00 00 00 00 82 [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 0B 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 0B 00 DA 2D 00 8F 31 61 2C D0 2C 86 B6 90 00 08 [09:34:51]RAPDU: 8F 31 61 2C D0 2C 86 B6 90 00 [09:34:51]wFMCommunicate OK [09:34:51]SAM_PROTO_SignData done [09:34:51]FM_MakeSignedData done [09:34:51]CreateOFDProtocolMessage [09:34:51]wFMCommunicate request_size=4 [09:34:51]MH_SAM_APDU [09:34:51]CAPDU: 80 11 00 00 [09:34:51]Write to MH i2c: E2 08 00 DB 2D 80 11 00 00 00 00 00 00 82 [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:51]Read from MH i2c: E2 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 17 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: E2 17 00 DB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [09:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:34:51]wFMCommunicate OK [09:34:51]CreateOFDProtocolMessage done [09:34:51]OFDSenderStorePacket 29478 [09:34:51]StoreOFDPacket docnum=29478 [09:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1D 9B 06 01 4B 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 AE 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 1C 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3E 00 00 00 00 07 04 06 00 FC 47 02 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 BD F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 73 00 00 35 04 06 00 B1 F2 C1 C5 99 70 8F 31 61 2C D0 2C 86 B6 [09:34:51]CheckFolder [09:34:51]dirname=/storage/ofd_packets [09:34:51]CheckFolder done [09:34:51]ProducePacketName [09:34:51]name=ofd_packets/00029478 [09:34:51]NVStorageSaveData ofd_packets/00029478 [09:34:51]File name is /storage/ofd_packets/00029478 [09:34:51]Write 300 bytes [09:34:51]NVStorageSaveData done [09:34:51]OFDSenderStorePacket done [09:34:51]KKMCreateOFDPacket done [09:34:51]NVStorageSaveData kkm_last_timestamp [09:34:51]File name is /storage/kkm_last_timestamp [09:34:51]Write 4 bytes [09:34:51]NVStorageSaveData done [09:34:51]ExternCall_PrintAddStr [09:34:51]wPrintStart [09:34:51]Write to MH i2c: 01 00 00 DC 2D 09 [09:34:51]Write i2c OK [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: 01 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: 01 07 00 [09:34:51]MH_I2C_Read... [09:34:51]Read from MH i2c: 01 07 00 DC 2D 00 00 00 00 00 FF 0F 1E [09:34:51]RasterBufferAndPrint [09:34:51]line Счет N : (1)347888 [09:34:51]line ИНН: 02508201610067 [09:34:51]line Контрольно-Кассовый Чек [09:34:51]line ПРОДАЖА [09:34:51]line ТРК (МРК, ГНК) : 71 [09:34:51]line Товар: 2711129700 [09:34:51]line ГАЗ-К-5 [09:34:51]line 44.770 * 33.40 [09:34:51]line = 1495.32 [09:34:51]line НДС 12% НСП 1% [09:34:51]line > о реализуемом товаре [09:34:51]line ОКРУГЛЕНИЕ: -0.32 [09:34:51]line ИТОГО: 1495.00 [09:34:51]line Внесено: 1495.00 [09:34:51]line СДАЧА: 0.00 [09:34:51]line НСП 1% : 13.23 [09:34:51]line НДС 12% : 158.79 [09:34:51]line Наличными: 1495.00 [09:34:51]line Безнал.: 0.00 [09:34:51]line Место: АЗС № 108 "Партнер Нефть" [09:34:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:34:51]line СНО: Общий режим [09:34:51]line Чек 72 15.04.2024 09:34 [09:34:51]line Смена: 117 ФФД: 1.0 [09:34:51]line ЗНМ: 0300000027 [09:34:51]line РНМ: 0000138879044617 [09:34:51]line Версия ККМ: 001 [09:34:51]line ФМ: 0000000000963154 [09:34:51]line ФД: 29478 [09:34:51]line ФПД: 195656191154544 [09:34:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093453&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29478&fm=195656191154544&tin=02508201610067®Number=0000138879044617&sum=149500 [09:34:52]OFD Sender: Processing packet 29478 [packets to send 8, broken 7] [09:34:52]ProducePacketName [09:34:52]name=ofd_packets/00029478 [09:34:52]OFD Sender: To server: pG, [09:34:52]CommunicateWithHost lk.salyk.kg:30040 [09:34:52]ConnectInit lk.salyk.kg [09:34:52]written 0, free lines is 4095 [09:34:52]Connected sock=9 [09:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1D 9B 06 01 4B 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 AE 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 1C 48 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 3E 00 00 00 00 07 04 06 00 FC 47 02 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 BD F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 73 00 00 35 04 06 00 B1 F2 C1 C5 99 70 8F 31 61 2C D0 2C 86 B6 [09:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E 77 47 00 22 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 39 36 33 31 35 34 10 04 04 00 26 73 00 00 F4 03 04 00 5F 9F 1C 66 B6 04 01 00 00 52 3F CC 58 84 A8 52 3F [09:34:52]CommunicateWithHost err = 0 [09:34:52]CheckOFDResponse [09:34:52]1017 (14) - 77093643461234 [09:34:52]1041 (16) - 0000000000963154 [09:34:52]1040 (4) - 29478 [09:34:52]1012 (4) - 15.04.2024 03:30 [09:34:52]1206 (1) - 0 [09:34:52]OFD Sender: Remove packet 29478 [09:34:52]ProducePacketName [09:34:52]name=ofd_packets/00029478 [09:34:52]NVStorageDeleteData [09:34:52]Write to MH i2c: 01 00 00 06 2E 34 [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: 01 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: 01 07 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: 01 07 00 06 2E 00 00 00 00 00 B9 0C 00 [09:34:52]RasterBufferAndPrint [09:34:52]line [09:34:52]line [09:34:52]line [09:34:52]line [09:34:52]line [09:34:52]written 0, free lines is 3261 [09:34:52]MH_Cut [09:34:52]Write to MH i2c: D1 01 00 0D 2E 01 0D [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: D1 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: D1 01 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: D1 01 00 0D 2E 00 0C [09:34:52]Write to MH i2c: 01 00 00 0E 2E 3C [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]OFD Sender: No OFD packet to send [09:34:53]*** Cut start [09:34:53]*** Partial cut [09:34:53]*** CUTSNS_PIN = 1 [09:34:53]*** CUTSNS_PIN = 0 [09:34:53]*** Brake cut motor [09:34:54]Read from MH i2c: 01 [09:34:54]MH_I2C_Read... [09:34:54]*** Stop cut motor [09:34:54]*** Cut end [09:34:54]Read from MH i2c: 01 07 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 07 00 0E 2E 00 00 00 00 00 FF 0F 51 [09:34:54]process_action close_receipt done [09:34:54]requested_data is exist [09:34:54]produce_requested_data [09:34:54]requested_item fm.sn is exist - process it [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 11 00 00 [09:34:54]Write to MH i2c: E2 08 00 0F 2E 80 11 00 00 00 00 00 00 B7 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 0F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [09:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:34:54]wFMCommunicate OK [09:34:54]requested_item fd.num is exist - process it [09:34:54]SAM_PROTO_GetFieldsCounters [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 13 00 00 [09:34:54]Write to MH i2c: E2 08 00 10 2E 80 13 00 00 00 00 00 00 BA [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 62 00 [09:34:54]MH_I2C_Read... [09:34:54]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 73 00 00 0E 04 04 00 75 00 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 DE [09:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 73 00 00 0E 04 04 00 75 00 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:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_GetFieldsCounters done [09:34:54]requested_item shift.num is exist - process it [09:34:54]requested_item shift.opened is exist - process it [09:34:54]req_shift_opened [09:34:54]FM_GetShiftState [09:34:54]SAM_PROTO_GetShiftState [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 13 01 00 [09:34:54]Write to MH i2c: E2 08 00 11 2E 80 13 01 00 00 00 00 00 BC [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 11 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B0 [09:34:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_GetShiftState done [09:34:54]FM_GetShiftState done [09:34:54]req_shift_opened done [09:34:54]requested_item shift.open_date is exist - process it [09:34:54]req_shift_open_date [09:34:54]req_shift_open_date done [09:34:54]produce_requested_data done [09:34:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29478,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:34:54]process_action_free close_receipt [09:34:54]json_value_free [09:34:54]json_value_free done [09:34:54]process_json_proto returns [09:34:54]Send response to host [09:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29478,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:34:54]free response buf [09:34:54]execute_script done [09:34:54]execute_script returns [09:34:54]free content buf [09:34:54]Sock 10.Close socket [09:34:54]Sock 10.Thread stoped [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]accept exits with 8 [09:35:12]New connection [09:35:12]New thread 3067112804 created [09:35:12]Thread 3066969444 joined [09:35:12]Waiting for new connection... [09:35:12] Sock 8.Parse request [09:35:12]Sock 8.Check first char [09:35:12]Sock 8.First char is OK [09:35:12]request: POST /json_proto HTTP/1.0 [09:35:12]Method: POST [09:35:12]URL: /json_proto [09:35:12]Method is POST - this is cgi request [09:35:12]url: /json_proto [09:35:12]query_string will be loaded in cgi processing [09:35:12]execute_cgi json_proto POST (null) [09:35:12]execute_cgi path=json_proto method=POST [09:35:12]POST find Content-Length [09:35:12]Host: 172.17.33.3:8080 [09:35:12]Content-Length: 679 [09:35:12]Content-Type: application/json [09:35:12] [09:35:12]POST finish read [09:35:12]Found Content-Length = 679 [09:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [09:35:12]execute_script... [09:35: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)347891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [09:35:12]POST & json_proto [09:35:12]process_json_proto [09:35:12]json parsed OK: [09:35:12]protocol is kg_v1.0 [09:35:12]action value=close_receipt [09:35:12]process_action close_receipt [09:35:12]cmd_close_receipt [09:35:12]MH_GetDate [09:35:12]Write to MH i2c: F0 00 00 12 2E 2F [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: F0 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: F0 09 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: F0 09 00 12 2E 00 D4 F4 1C 66 23 5B 8F 65 F4 [09:35:12]GetLastDocTimeStamp 1713173693 [09:35:12]current date 1713173716 [09:35:12]FM_GetShiftState [09:35:12]SAM_PROTO_GetShiftState [09:35:12]wFMCommunicate request_size=4 [09:35:12]MH_SAM_APDU [09:35:12]CAPDU: 80 13 01 00 [09:35:12]Write to MH i2c: E2 08 00 13 2E 80 13 01 00 00 00 00 00 BE [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:12]Read from MH i2c: E2 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 0E 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 0E 00 13 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B2 [09:35:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:35:12]wFMCommunicate OK [09:35:12]SAM_PROTO_GetShiftState done [09:35:12]FM_GetShiftState done [09:35:12]opened in 1713140468 [09:35:12]opened+sec_in_day 1713226868 [09:35:12]quantity*price = 200037 [09:35:12]sum+1 = 200039 [09:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 73 15.04.2024 09:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29479 ФПД: 157836311895646 1/tax-web-control/client/api/v1/ticket?date=20240415T093516&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29479&fm=157836311895646&tin=02508201610067®Number=0000138879044617&sum=200000 [09:35:13]StoreToDocumentArchive [09:35:13]shift 117 fd 29479 [09:35:13]save to /storage/0117/doc_00029479 [09:35:13]save last doc name /storage/0117/doc_00029479 to /storage/kkm_last_doc_name [09:35:13]save OK [09:35:13]Clear old archive folders... [09:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:13]tlvbuf is 0028DA90 [09:35:13]SAM_PROTO_ClearQueue [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 09 00 00 [09:35:13]Write to MH i2c: E2 08 00 20 2E 80 09 00 00 00 00 00 00 C0 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:13]Read from MH i2c: E2 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 03 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [09:35:13]RAPDU: 90 00 [09:35:13]wFMCommunicate OK [09:35:13]SAM_PROTO_ClearQueue done [09:35:13]KKMCreateOFDPacket [09:35:13]OFDProtocolAddRootSTLVToBuf [09:35:13]FM_MakeSignedData [09:35:13]FM_MakeSignedData [09:35:13]SAM_PROTO_SignData [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 0D 01 02 [09:35:13]Write to MH i2c: E2 08 00 21 2E 80 0D 01 02 00 00 00 00 C8 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [09:35:14]RAPDU: 90 00 [09:35:14]wFMCommunicate OK [09:35:14]wFMCommunicate request_size=255 [09:35:14]MH_SAM_APDU [09:35:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D4 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 73 00 00 35 04 06 00 8F 8D 21 4D [09:35:14]Write to MH i2c: E2 02 01 22 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D4 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 73 00 00 35 04 06 00 8F 8D 21 4D 00 00 F2 [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [09:35:14]RAPDU: 90 00 [09:35:14]wFMCommunicate OK [09:35:14]wFMCommunicate request_size=7 [09:35:14]MH_SAM_APDU [09:35:14]CAPDU: 80 0D 02 02 02 9E 5E [09:35:14]Write to MH i2c: E2 0A 00 23 2E 80 0D 02 02 02 00 9E 5E 00 00 CB [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 03 00 23 2E 00 90 00 C5 [09:35:14]RAPDU: 90 00 [09:35:14]wFMCommunicate OK [09:35:14]wFMCommunicate request_size=4 [09:35:14]MH_SAM_APDU [09:35:14]CAPDU: 80 0D 03 02 [09:35:14]Write to MH i2c: E2 08 00 24 2E 80 0D 03 02 00 00 00 00 CD [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0B 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0B 00 24 2E 00 68 89 DA 49 03 8C FD A7 90 00 15 [09:35:14]RAPDU: 68 89 DA 49 03 8C FD A7 90 00 [09:35:14]wFMCommunicate OK [09:35:14]SAM_PROTO_SignData done [09:35:14]FM_MakeSignedData done [09:35:14]CreateOFDProtocolMessage [09:35:14]wFMCommunicate request_size=4 [09:35:14]MH_SAM_APDU [09:35:14]CAPDU: 80 11 00 00 [09:35:14]Write to MH i2c: E2 08 00 25 2E 80 11 00 00 00 00 00 00 CD [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 17 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 17 00 25 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [09:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:14]wFMCommunicate OK [09:35:14]CreateOFDProtocolMessage done [09:35:14]OFDSenderStorePacket 29479 [09:35:14]StoreOFDPacket docnum=29479 [09:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 22 04 01 B3 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D4 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 73 00 00 35 04 06 00 8F 8D 21 4D 9E 5E 68 89 DA 49 03 8C FD A7 [09:35:14]CheckFolder [09:35:14]dirname=/storage/ofd_packets [09:35:14]CheckFolder done [09:35:14]ProducePacketName [09:35:14]name=ofd_packets/00029479 [09:35:14]NVStorageSaveData ofd_packets/00029479 [09:35:14]File name is /storage/ofd_packets/00029479 [09:35:14]Write 298 bytes [09:35:14]NVStorageSaveData done [09:35:14]OFDSenderStorePacket done [09:35:14]KKMCreateOFDPacket done [09:35:14]NVStorageSaveData kkm_last_timestamp [09:35:14]File name is /storage/kkm_last_timestamp [09:35:14]Write 4 bytes [09:35:14]NVStorageSaveData done [09:35:14]ExternCall_PrintAddStr [09:35:14]wPrintStart [09:35:14]Write to MH i2c: 01 00 00 26 2E 54 [09:35:14]Write i2c OK [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: 01 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: 01 07 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: 01 07 00 26 2E 00 00 00 00 00 FF 0F 69 [09:35:14]RasterBufferAndPrint [09:35:14]line Счет N : (1)347891 [09:35:14]line ИНН: 02508201610067 [09:35:14]line Контрольно-Кассовый Чек [09:35:14]line ПРОДАЖА [09:35:14]line ТРК (МРК, ГНК) : 11 [09:35:14]line Товар: 2710194210 [09:35:14]line ДТ-К-5 [09:35:14]line 27.440 * 72.90 [09:35:14]line = 2000.38 [09:35:14]line НДС 12% НСП 1% [09:35:14]line > о реализуемом товаре [09:35:14]line ОКРУГЛЕНИЕ: -0.38 [09:35:14]line ИТОГО: 2000.00 [09:35:14]line Внесено: 2000.00 [09:35:14]line СДАЧА: 0.00 [09:35:14]line НСП 1% : 17.70 [09:35:14]line НДС 12% : 212.43 [09:35:14]line Наличными: 2000.00 [09:35:14]line Безнал.: 0.00 [09:35:14]line Место: АЗС № 108 "Партнер Нефть" [09:35:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:35:14]line СНО: Общий режим [09:35:14]line Чек 73 15.04.2024 09:35 [09:35:14]line Смена: 117 ФФД: 1.0 [09:35:14]line ЗНМ: 0300000027 [09:35:14]line РНМ: 0000138879044617 [09:35:14]line Версия ККМ: 001 [09:35:14]line ФМ: 0000000000963154 [09:35:14]line ФД: 29479 [09:35:14]line ФПД: 157836311895646 [09:35:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093516&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29479&fm=157836311895646&tin=02508201610067®Number=0000138879044617&sum=200000 [09:35:14]OFD Sender: Processing packet 29479 [packets to send 8, broken 7] [09:35:14]ProducePacketName [09:35:14]name=ofd_packets/00029479 [09:35:14]OFD Sender: To server: pG, [09:35:14]CommunicateWithHost lk.salyk.kg:30040 [09:35:14]ConnectInit lk.salyk.kg [09:35:14]written 0, free lines is 4095 [09:35:14]Connected sock=10 [09:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 22 04 01 B3 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D4 F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 73 00 00 35 04 06 00 8F 8D 21 4D 9E 5E 68 89 DA 49 03 8C FD A7 [09:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2D 99 47 00 67 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 39 36 33 31 35 34 10 04 04 00 27 73 00 00 F4 03 04 00 76 9F 1C 66 B6 04 01 00 00 73 6D 7D 9E 1C 20 51 52 [09:35:15]CommunicateWithHost err = 0 [09:35:15]CheckOFDResponse [09:35:15]1017 (14) - 77093643461234 [09:35:15]1041 (16) - 0000000000963154 [09:35:15]1040 (4) - 29479 [09:35:15]1012 (4) - 15.04.2024 03:31 [09:35:15]1206 (1) - 0 [09:35:15]OFD Sender: Remove packet 29479 [09:35:15]ProducePacketName [09:35:15]name=ofd_packets/00029479 [09:35:15]NVStorageDeleteData [09:35:15]Write to MH i2c: 01 00 00 50 2E 7E [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: 01 [09:35:15]MH_I2C_Read... [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 50 2E 00 00 00 00 00 C9 0C 5A [09:35:15]RasterBufferAndPrint [09:35:15]line [09:35:15]line [09:35:15]line [09:35:15]line [09:35:15]line [09:35:15]written 0, free lines is 3277 [09:35:15]MH_Cut [09:35:15]Write to MH i2c: D1 01 00 57 2E 01 57 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: D1 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: D1 01 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: D1 01 00 57 2E 00 56 [09:35:15]Write to MH i2c: 01 00 00 58 2E 86 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]OFD Sender: No OFD packet to send [09:35:16]*** Cut start [09:35:16]*** Partial cut [09:35:16]*** CUTSNS_PIN = 1 [09:35:16]*** CUTSNS_PIN = 0 [09:35:16]*** Brake cut motor [09:35:16]Read from MH i2c: 01 [09:35:16]MH_I2C_Read... [09:35:16]*** Stop cut motor [09:35:16]*** Cut end [09:35:16]Read from MH i2c: 01 07 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: 01 07 00 58 2E 00 00 00 00 00 FF 0F 9B [09:35:16]process_action close_receipt done [09:35:16]requested_data is exist [09:35:16]produce_requested_data [09:35:16]requested_item fm.sn is exist - process it [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 11 00 00 [09:35:16]Write to MH i2c: E2 08 00 59 2E 80 11 00 00 00 00 00 00 01 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 17 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 17 00 59 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 50 [09:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:16]wFMCommunicate OK [09:35:16]requested_item fd.num is exist - process it [09:35:16]SAM_PROTO_GetFieldsCounters [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 13 00 00 [09:35:16]Write to MH i2c: E2 08 00 5A 2E 80 13 00 00 00 00 00 00 04 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 62 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 62 00 5A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 73 00 00 0E 04 04 00 75 00 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 2C [09:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 73 00 00 0E 04 04 00 75 00 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:35:16]wFMCommunicate OK [09:35:16]SAM_PROTO_GetFieldsCounters done [09:35:16]requested_item shift.num is exist - process it [09:35:16]requested_item shift.opened is exist - process it [09:35:16]req_shift_opened [09:35:16]FM_GetShiftState [09:35:16]SAM_PROTO_GetShiftState [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 13 01 00 [09:35:16]Write to MH i2c: E2 08 00 5B 2E 80 13 01 00 00 00 00 00 06 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 0E 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 0E 00 5B 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FA [09:35:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:35:16]wFMCommunicate OK [09:35:16]SAM_PROTO_GetShiftState done [09:35:16]FM_GetShiftState done [09:35:16]req_shift_opened done [09:35:16]requested_item shift.open_date is exist - process it [09:35:16]req_shift_open_date [09:35:16]req_shift_open_date done [09:35:16]produce_requested_data done [09:35:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29479,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:35:16]process_action_free close_receipt [09:35:16]json_value_free [09:35:16]json_value_free done [09:35:16]process_json_proto returns [09:35:16]Send response to host [09:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29479,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:35:16]free response buf [09:35:16]execute_script done [09:35:16]execute_script returns [09:35:16]free content buf [09:35:16]Sock 8.Close socket [09:35:16]Sock 8.Thread stoped [09:35:20]accept exits with 9 [09:35:20]New connection [09:35:20]New thread 3066969444 created [09:35:20]Thread 3067112804 joined [09:35:20]Waiting for new connection... [09:35:20] Sock 9.Parse request [09:35:20]Sock 9.Check first char [09:35:20]Sock 9.First char is OK [09:35:20]request: POST /json_proto HTTP/1.0 [09:35:20]Method: POST [09:35:20]URL: /json_proto [09:35:20]Method is POST - this is cgi request [09:35:20]url: /json_proto [09:35:20]query_string will be loaded in cgi processing [09:35:20]execute_cgi json_proto POST (null) [09:35:20]execute_cgi path=json_proto method=POST [09:35:20]POST find Content-Length [09:35:20]Host: 172.17.33.3:8080 [09:35:20]Content-Length: 735 [09:35:20]Content-Type: application/json [09:35:20] [09:35:20]POST finish read [09:35:20]Found Content-Length = 735 [09:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29479, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [09:35:20]execute_script... [09:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29479, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [09:35:20]POST & json_proto [09:35:20]process_json_proto [09:35:20]json parsed OK: [09:35:20]protocol is kg_v1.0 [09:35:20]action value=close_receipt [09:35:20]process_action close_receipt [09:35:20]cmd_close_receipt [09:35:20]MH_GetDate [09:35:20]Write to MH i2c: F0 00 00 5C 2E 79 [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 5C 2E 00 DC F4 1C 66 23 5B 8F 65 46 [09:35:20]GetLastDocTimeStamp 1713173716 [09:35:20]current date 1713173724 [09:35:20]FM_GetShiftState [09:35:20]SAM_PROTO_GetShiftState [09:35:20]wFMCommunicate request_size=4 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 13 01 00 [09:35:20]Write to MH i2c: E2 08 00 5D 2E 80 13 01 00 00 00 00 00 08 [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:20]Read from MH i2c: E2 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 5D 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [09:35:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:35:20]wFMCommunicate OK [09:35:20]SAM_PROTO_GetShiftState done [09:35:20]FM_GetShiftState done [09:35:20]opened in 1713140468 [09:35:20]opened+sec_in_day 1713226868 [09:35:20]quantity*price = 200037 [09:35:20]sum+1 = 200039 [09:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 74 15.04.2024 09:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29479 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29480 ФПД: 206450208595663 1/tax-web-control/client/api/v1/ticket?date=20240415T093524&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29480&fm=206450208595663&tin=02508201610067®Number=0000138879044617&sum=200000 [09:35:21]StoreToDocumentArchive [09:35:21]shift 117 fd 29480 [09:35:21]save to /storage/0117/doc_00029480 [09:35:21]save last doc name /storage/0117/doc_00029480 to /storage/kkm_last_doc_name [09:35:21]save OK [09:35:21]Clear old archive folders... [09:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:35:21]tlvbuf is B6DCF770 [09:35:21]SAM_PROTO_ClearQueue [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 09 00 00 [09:35:21]Write to MH i2c: E2 08 00 6C 2E 80 09 00 00 00 00 00 00 0C [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]SAM_PROTO_ClearQueue done [09:35:21]KKMCreateOFDPacket [09:35:21]OFDProtocolAddRootSTLVToBuf [09:35:21]FM_MakeSignedData [09:35:21]FM_MakeSignedData [09:35:21]SAM_PROTO_SignData [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 0D 01 02 [09:35:21]Write to MH i2c: E2 08 00 6D 2E 80 0D 01 02 00 00 00 00 14 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [09:35:21]RAPDU: 90 00 [09:35:21]wFMCommunicate OK [09:35:21]wFMCommunicate request_size=255 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DC F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 27 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [09:35:21]Write to MH i2c: E2 02 01 6E 2E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DC F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 27 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 AF [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=35 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 73 00 00 35 04 06 00 BB C3 EF 58 DE CF [09:35:22]Write to MH i2c: E2 26 00 6F 2E 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 73 00 00 35 04 06 00 BB C3 EF 58 DE CF 00 00 13 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 6F 2E 00 90 00 11 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 03 02 [09:35:22]Write to MH i2c: E2 08 00 70 2E 80 0D 03 02 00 00 00 00 19 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 70 2E 00 2B 0C 49 65 E6 CB B6 8B 90 00 F1 [09:35:22]RAPDU: 2B 0C 49 65 E6 CB B6 8B 90 00 [09:35:22]wFMCommunicate OK [09:35:22]SAM_PROTO_SignData done [09:35:22]FM_MakeSignedData done [09:35:22]CreateOFDProtocolMessage [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 11 00 00 [09:35:22]Write to MH i2c: E2 08 00 71 2E 80 11 00 00 00 00 00 00 19 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 71 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [09:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:22]wFMCommunicate OK [09:35:22]CreateOFDProtocolMessage done [09:35:22]OFDSenderStorePacket 29480 [09:35:22]StoreOFDPacket docnum=29480 [09:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 77 A5 20 01 CA 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DC F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 27 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 73 00 00 35 04 06 00 BB C3 EF 58 DE CF 2B 0C 49 65 E6 CB B6 8B [09:35:22]CheckFolder [09:35:22]dirname=/storage/ofd_packets [09:35:22]CheckFolder done [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00029480 [09:35:22]NVStorageSaveData ofd_packets/00029480 [09:35:22]File name is /storage/ofd_packets/00029480 [09:35:22]Write 326 bytes [09:35:22]NVStorageSaveData done [09:35:22]OFDSenderStorePacket done [09:35:22]KKMCreateOFDPacket done [09:35:22]NVStorageSaveData kkm_last_timestamp [09:35:22]File name is /storage/kkm_last_timestamp [09:35:22]Write 4 bytes [09:35:22]NVStorageSaveData done [09:35:22]ExternCall_PrintAddStr [09:35:22]wPrintStart [09:35:22]Write to MH i2c: 01 00 00 72 2E A0 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 72 2E 00 00 00 00 00 FF 0F B5 [09:35:22]RasterBufferAndPrint [09:35:22]line Счет N : (1)347891 [09:35:22]line ИНН: 02508201610067 [09:35:22]line Контрольно-Кассовый Чек [09:35:22]line ВОЗВРАТ ПРОДАЖИ [09:35:22]line ТРК (МРК, ГНК) : 11 [09:35:22]line Товар: 2710194210 [09:35:22]line ДТ-К-5 [09:35:22]line 27.440 * 72.90 [09:35:22]line = 2000.38 [09:35:22]line НДС 12% НСП 1% [09:35:22]line > о реализуемом товаре [09:35:22]line ОКРУГЛЕНИЕ: -0.38 [09:35:22]line ИТОГО: 2000.00 [09:35:22]line НСП 1% : 17.70 [09:35:22]line НДС 12% : 212.43 [09:35:22]line Наличными: 2000.00 [09:35:22]line Безнал.: 0.00 [09:35:22]line Место: АЗС № 108 "Партнер Нефть" [09:35:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:35:22]line СНО: Общий режим [09:35:22]line Чек 74 15.04.2024 09:35 [09:35:22]line Смена: 117 ФФД: 1.0 [09:35:22]line ЗНМ: 0300000027 [09:35:22]line РНМ: 0000138879044617 [09:35:22]line Версия ККМ: 001 [09:35:22]line ФД осн.: 29479 [09:35:22]line ФМ осн.: 0000000000963154 [09:35:22]line ФМ: 0000000000963154 [09:35:22]line ФД: 29480 [09:35:22]line ФПД: 206450208595663 [09:35:22]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093524&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29480&fm=206450208595663&tin=02508201610067®Number=0000138879044617&sum=200000 [09:35:22]written 0, free lines is 4095 [09:35:22]OFD Sender: Processing packet 29480 [packets to send 8, broken 7] [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00029480 [09:35:22]OFD Sender: To server: pG, [09:35:22]CommunicateWithHost lk.salyk.kg:30040 [09:35:22]ConnectInit lk.salyk.kg [09:35:22]Connected sock=10 [09:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 77 A5 20 01 CA 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DC F4 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 27 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 73 00 00 35 04 06 00 BB C3 EF 58 DE CF 2B 0C 49 65 E6 CB B6 8B [09:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 19 47 00 77 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 73 00 00 F4 03 04 00 7D 9F 1C 66 B6 04 01 00 00 22 2E D1 50 78 1F EE D5 [09:35:22]CommunicateWithHost err = 0 [09:35:22]CheckOFDResponse [09:35:22]1017 (14) - 77093643461234 [09:35:22]1041 (16) - 0000000000963154 [09:35:22]1040 (4) - 29480 [09:35:22]1012 (4) - 15.04.2024 03:31 [09:35:22]1206 (1) - 0 [09:35:22]OFD Sender: Remove packet 29480 [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00029480 [09:35:22]NVStorageDeleteData [09:35:22]Write to MH i2c: 01 00 00 9C 2E CA [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 9C 2E 00 00 00 00 00 D0 0C AD [09:35:22]RasterBufferAndPrint [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]line [09:35:22]written 0, free lines is 3290 [09:35:22]MH_Cut [09:35:22]Write to MH i2c: D1 01 00 A3 2E 01 A3 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 01 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: D1 01 00 A3 2E 00 A2 [09:35:22]Write to MH i2c: 01 00 00 A4 2E D2 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:23]OFD Sender: No OFD packet to send [09:35:23]*** Cut start [09:35:23]*** Partial cut [09:35:23]*** CUTSNS_PIN = 1 [09:35:23]*** CUTSNS_PIN = 0 [09:35:23]*** Brake cut motor [09:35:24]Read from MH i2c: 01 [09:35:24]MH_I2C_Read... [09:35:24]*** Stop cut motor [09:35:24]*** Cut end [09:35:24]Read from MH i2c: 01 07 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: 01 07 00 A4 2E 00 00 00 00 00 FF 0F E7 [09:35:24]process_action close_receipt done [09:35:24]requested_data is exist [09:35:24]produce_requested_data [09:35:24]requested_item fm.sn is exist - process it [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 11 00 00 [09:35:24]Write to MH i2c: E2 08 00 A5 2E 80 11 00 00 00 00 00 00 4D [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 A5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [09:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:24]wFMCommunicate OK [09:35:24]requested_item fd.num is exist - process it [09:35:24]SAM_PROTO_GetFieldsCounters [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 00 00 [09:35:24]Write to MH i2c: E2 08 00 A6 2E 80 13 00 00 00 00 00 00 50 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 62 00 [09:35:24]MH_I2C_Read... [09:35:24]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 73 00 00 0E 04 04 00 75 00 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 7C [09:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 73 00 00 0E 04 04 00 75 00 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:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetFieldsCounters done [09:35:24]requested_item shift.num is exist - process it [09:35:24]requested_item shift.opened is exist - process it [09:35:24]req_shift_opened [09:35:24]FM_GetShiftState [09:35:24]SAM_PROTO_GetShiftState [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 01 00 [09:35:24]Write to MH i2c: E2 08 00 A7 2E 80 13 01 00 00 00 00 00 52 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 0E 00 A7 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 46 [09:35:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetShiftState done [09:35:24]FM_GetShiftState done [09:35:24]req_shift_opened done [09:35:24]requested_item shift.open_date is exist - process it [09:35:24]req_shift_open_date [09:35:24]req_shift_open_date done [09:35:24]produce_requested_data done [09:35:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29480,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:35:24]process_action_free close_receipt [09:35:24]json_value_free [09:35:24]json_value_free done [09:35:24]process_json_proto returns [09:35:24]Send response to host [09:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29480,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:35:24]free response buf [09:35:24]execute_script done [09:35:24]execute_script returns [09:35:24]free content buf [09:35:24]Sock 9.Close socket [09:35:24]Sock 9.Thread stoped [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:40]accept exits with 8 [09:36:40]New connection [09:36:40]New thread 3067112804 created [09:36:40]Thread 3066969444 joined [09:36:40]Waiting for new connection... [09:36:40] Sock 8.Parse request [09:36:40]Sock 8.Check first char [09:36:40]Sock 8.First char is OK [09:36:40]request: POST /json_proto HTTP/1.0 [09:36:40]Method: POST [09:36:40]URL: /json_proto [09:36:40]Method is POST - this is cgi request [09:36:40]url: /json_proto [09:36:40]query_string will be loaded in cgi processing [09:36:40]execute_cgi json_proto POST (null) [09:36:40]execute_cgi path=json_proto method=POST [09:36:40]POST find Content-Length [09:36:40]Host: 172.17.33.3:8080 [09:36:40]Content-Length: 1210 [09:36:40]Content-Type: application/json [09:36:40] [09:36:40]POST finish read [09:36:40]Found Content-Length = 1210 [09:36: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347892\u000A15.04.2024 09:18\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:40]execute_script... [09:36: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347892\u000A15.04.2024 09:18\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\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\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:40]POST & json_proto [09:36:40]process_json_proto [09:36:40]json parsed OK: [09:36:40]protocol is kg_v1.0 [09:36:40]action value=print_text [09:36:40]process_action print_text [09:36:40]cmd_print_text [09:36:40]ExternCall_PrintAddStr [09:36:40]wPrintStart [09:36:40]Write to MH i2c: 01 00 00 A8 2E D6 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 A8 2E 00 00 00 00 00 FF 0F EB [09:36:40]RasterBufferAndPrint [09:36:40]line *****ТОВАРНЫЙ ЧЕК***** [09:36:40]line АЗС 108 [09:36:40]line Партнер нефть [09:36:40]line 02508201610067 [09:36:40]line Кассир : Джумагулова Н. [09:36:40]line Счет N : (1)347892 [09:36:40]line 15.04.2024 09:18 [09:36:40]line ПРОДАЖА [09:36:40]line ТРК (МРК, ГНК): 21 [09:36:40]line Вид ГСМ : 2710194210 [09:36:40]line ДТ-К-5 [09:36:40]line 20.580 x 72.90 [09:36:40]line ИТОГ: 1500.28 [09:36:40]line Тип оплаты: Талоны: Топливная Карта [09:36:40]line 65563 [09:36:40]line ______________________ [09:36:40]line (подпись) [09:36:40]written 0, free lines is 4095 [09:36:40]Write to MH i2c: 01 00 00 BD 2E EB [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 BD 2E 00 00 00 00 00 F5 0D F4 [09:36:40]RasterBufferAndPrint [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]written 0, free lines is 3574 [09:36:40]MH_Cut [09:36:40]Write to MH i2c: D1 01 00 C4 2E 01 C4 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 C4 2E 00 C3 [09:36:40]Write to MH i2c: 01 00 00 C5 2E F3 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** Cut start [09:36:40]*** Partial cut [09:36:40]*** CUTSNS_PIN = 1 [09:36:40]*** CUTSNS_PIN = 0 [09:36:41]*** Brake cut motor [09:36:41]Read from MH i2c: 01 [09:36:41]MH_I2C_Read... [09:36:41]*** Stop cut motor [09:36:41]*** Cut end [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 C5 2E 00 00 00 00 00 FF 0F 08 [09:36:41]process_action print_text done [09:36:41]requested_data is exist [09:36:41]produce_requested_data [09:36:41]requested_item fm.sn is exist - process it [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 C6 2E 80 11 00 00 00 00 00 00 6E [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 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [09:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:36:41]wFMCommunicate OK [09:36:41]requested_item fd.num is exist - process it [09:36:41]SAM_PROTO_GetFieldsCounters [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 13 00 00 [09:36:41]Write to MH i2c: E2 08 00 C7 2E 80 13 00 00 00 00 00 00 71 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 62 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 62 00 C7 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 73 00 00 0E 04 04 00 75 00 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 9D [09:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 73 00 00 0E 04 04 00 75 00 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:36:41]wFMCommunicate OK [09:36:41]SAM_PROTO_GetFieldsCounters done [09:36:41]requested_item shift.num is exist - process it [09:36:41]requested_item shift.opened is exist - process it [09:36:41]req_shift_opened [09:36:41]FM_GetShiftState [09:36:41]SAM_PROTO_GetShiftState [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 13 01 00 [09:36:41]Write to MH i2c: E2 08 00 C8 2E 80 13 01 00 00 00 00 00 73 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0E 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0E 00 C8 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 67 [09:36:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:36:41]wFMCommunicate OK [09:36:41]SAM_PROTO_GetShiftState done [09:36:41]FM_GetShiftState done [09:36:41]req_shift_opened done [09:36:41]requested_item shift.open_date is exist - process it [09:36:41]req_shift_open_date [09:36:41]req_shift_open_date done [09:36:41]produce_requested_data done [09:36:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29480,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:36:41]process_action_free print_text [09:36:41]json_value_free [09:36:41]json_value_free done [09:36:41]process_json_proto returns [09:36:41]Send response to host [09:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29480,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:36:41]free response buf [09:36:41]execute_script done [09:36:41]execute_script returns [09:36:41]free content buf [09:36:41]Sock 8.Close socket [09:36:41]Sock 8.Thread stoped [09:36:43]accept exits with 9 [09:36:43]New connection [09:36:43]New thread 3066969444 created [09:36:43]Thread 3067112804 joined [09:36:43]Waiting for new connection... [09:36:43] Sock 9.Parse request [09:36:43]Sock 9.Check first char [09:36:43]Sock 9.First char is OK [09:36:43]request: POST /json_proto HTTP/1.0 [09:36:43]Method: POST [09:36:43]URL: /json_proto [09:36:43]Method is POST - this is cgi request [09:36:43]url: /json_proto [09:36:43]query_string will be loaded in cgi processing [09:36:43]execute_cgi json_proto POST (null) [09:36:43]execute_cgi path=json_proto method=POST [09:36:43]POST find Content-Length [09:36:43]Host: 172.17.33.3:8080 [09:36:43]Content-Length: 674 [09:36:43]Content-Type: application/json [09:36:43] [09:36:43]POST finish read [09:36:43]Found Content-Length = 674 [09:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:43]execute_script... [09:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:43]POST & json_proto [09:36:43]process_json_proto [09:36:43]json parsed OK: [09:36:43]protocol is kg_v1.0 [09:36:43]action value=close_receipt [09:36:43]process_action close_receipt [09:36:43]cmd_close_receipt [09:36:43]MH_GetDate [09:36:43]Write to MH i2c: F0 00 00 C9 2E E6 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 09 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: F0 09 00 C9 2E 00 2E F5 1C 66 23 5B 8F 65 06 [09:36:43]GetLastDocTimeStamp 1713173724 [09:36:43]current date 1713173806 [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 CA 2E 80 13 01 00 00 00 00 00 75 [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 CA 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 69 [09:36:43]RAPDU: 09 00 01 F4 72 1C 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]opened in 1713140468 [09:36:43]opened+sec_in_day 1713226868 [09:36:43]quantity*price = 50009 [09:36:43]sum+1 = 50010 [09:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 75 15.04.2024 09:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29481 ФПД: 198363473195355 1/tax-web-control/client/api/v1/ticket?date=20240415T093646&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29481&fm=198363473195355&tin=02508201610067®Number=0000138879044617&sum=50000 [09:36:44]StoreToDocumentArchive [09:36:44]shift 117 fd 29481 [09:36:44]save to /storage/0117/doc_00029481 [09:36:44]save last doc name /storage/0117/doc_00029481 to /storage/kkm_last_doc_name [09:36:44]save OK [09:36:44]Clear old archive folders... [09:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:44]tlvbuf is 0025C5B0 [09:36:44]SAM_PROTO_ClearQueue [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 09 00 00 [09:36:44]Write to MH i2c: E2 08 00 D7 2E 80 09 00 00 00 00 00 00 77 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 D7 2E 00 90 00 79 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_ClearQueue done [09:36:44]KKMCreateOFDPacket [09:36:44]OFDProtocolAddRootSTLVToBuf [09:36:44]FM_MakeSignedData [09:36:44]FM_MakeSignedData [09:36:44]SAM_PROTO_SignData [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 01 02 [09:36:44]Write to MH i2c: E2 08 00 D8 2E 80 0D 01 02 00 00 00 00 7F [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=255 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 73 00 00 35 04 06 00 B4 69 18 5B [09:36:44]Write to MH i2c: E2 02 01 D9 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 73 00 00 35 04 06 00 B4 69 18 5B 00 00 D7 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 D9 2E 00 90 00 7B [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=7 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 02 02 02 31 5B [09:36:44]Write to MH i2c: E2 0A 00 DA 2E 80 0D 02 02 02 00 31 5B 00 00 12 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 DA 2E 00 90 00 7C [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 03 02 [09:36:44]Write to MH i2c: E2 08 00 DB 2E 80 0D 03 02 00 00 00 00 84 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0B 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0B 00 DB 2E 00 43 A8 DE 40 B5 83 62 DC 90 00 04 [09:36:44]RAPDU: 43 A8 DE 40 B5 83 62 DC 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_SignData done [09:36:44]FM_MakeSignedData done [09:36:44]CreateOFDProtocolMessage [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 11 00 00 [09:36:44]Write to MH i2c: E2 08 00 DC 2E 80 11 00 00 00 00 00 00 84 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 17 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 17 00 DC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [09:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:36:44]wFMCommunicate OK [09:36:44]CreateOFDProtocolMessage done [09:36:44]OFDSenderStorePacket 29481 [09:36:44]StoreOFDPacket docnum=29481 [09:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 71 65 04 01 DB 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 73 00 00 35 04 06 00 B4 69 18 5B 31 5B 43 A8 DE 40 B5 83 62 DC [09:36:44]CheckFolder [09:36:44]dirname=/storage/ofd_packets [09:36:44]CheckFolder done [09:36:44]ProducePacketName [09:36:44]name=ofd_packets/00029481 [09:36:44]NVStorageSaveData ofd_packets/00029481 [09:36:44]File name is /storage/ofd_packets/00029481 [09:36:44]Write 298 bytes [09:36:44]NVStorageSaveData done [09:36:44]OFDSenderStorePacket done [09:36:44]KKMCreateOFDPacket done [09:36:44]NVStorageSaveData kkm_last_timestamp [09:36:44]File name is /storage/kkm_last_timestamp [09:36:44]Write 4 bytes [09:36:44]NVStorageSaveData done [09:36:44]ExternCall_PrintAddStr [09:36:44]wPrintStart [09:36:44]Write to MH i2c: 01 00 00 DD 2E 0B [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 07 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 07 00 DD 2E 00 00 00 00 00 FF 0F 20 [09:36:44]RasterBufferAndPrint [09:36:44]line Счет N : (1)347893 [09:36:44]line ИНН: 02508201610067 [09:36:44]line Контрольно-Кассовый Чек [09:36:44]line ПРОДАЖА [09:36:44]line ТРК (МРК, ГНК) : 21 [09:36:44]line Товар: 2710194210 [09:36:44]line ДТ-К-5 [09:36:44]line 6.860 * 72.90 [09:36:44]line = 500.09 [09:36:44]line НДС 12% НСП 1% [09:36:44]line > о реализуемом товаре [09:36:44]line ОКРУГЛЕНИЕ: -0.09 [09:36:44]line ИТОГО: 500.00 [09:36:44]line Внесено: 500.00 [09:36:44]line СДАЧА: 0.00 [09:36:44]line НСП 1% : 4.43 [09:36:44]line НДС 12% : 53.11 [09:36:44]line Наличными: 500.00 [09:36:44]line Безнал.: 0.00 [09:36:44]line Место: АЗС № 108 "Партнер Нефть" [09:36:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:36:44]line СНО: Общий режим [09:36:44]line Чек 75 15.04.2024 09:36 [09:36:44]line Смена: 117 ФФД: 1.0 [09:36:44]line ЗНМ: 0300000027 [09:36:44]line РНМ: 0000138879044617 [09:36:44]line Версия ККМ: 001 [09:36:44]line ФМ: 0000000000963154 [09:36:44]line ФД: 29481 [09:36:44]line ФПД: 198363473195355 [09:36:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093646&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29481&fm=198363473195355&tin=02508201610067®Number=0000138879044617&sum=50000 [09:36:45]OFD Sender: Processing packet 29481 [packets to send 8, broken 7] [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00029481 [09:36:45]OFD Sender: To server: pG, [09:36:45]CommunicateWithHost lk.salyk.kg:30040 [09:36:45]ConnectInit lk.salyk.kg [09:36:45]written 0, free lines is 4095 [09:36:45]Connected sock=10 [09:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 71 65 04 01 DB 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2E F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 73 00 00 35 04 06 00 B4 69 18 5B 31 5B 43 A8 DE 40 B5 83 62 DC [09:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3A 90 47 00 D9 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 39 36 33 31 35 34 10 04 04 00 29 73 00 00 F4 03 04 00 D0 9F 1C 66 B6 04 01 00 00 8D 27 23 CF FD 3C 9D 5E [09:36:45]CommunicateWithHost err = 0 [09:36:45]CheckOFDResponse [09:36:45]1017 (14) - 77093643461234 [09:36:45]1041 (16) - 0000000000963154 [09:36:45]1040 (4) - 29481 [09:36:45]1012 (4) - 15.04.2024 03:32 [09:36:45]1206 (1) - 0 [09:36:45]OFD Sender: Remove packet 29481 [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00029481 [09:36:45]NVStorageDeleteData [09:36:45]Write to MH i2c: 01 00 00 07 2F 36 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 07 2F 00 00 00 00 00 B8 0C 01 [09:36:45]RasterBufferAndPrint [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]written 0, free lines is 3261 [09:36:45]MH_Cut [09:36:45]Write to MH i2c: D1 01 00 0E 2F 01 0F [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 0E 2F 00 0E [09:36:45]Write to MH i2c: 01 00 00 0F 2F 3E [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]OFD Sender: No OFD packet to send [09:36:46]*** Cut start [09:36:46]*** Partial cut [09:36:46]*** CUTSNS_PIN = 1 [09:36:46]*** CUTSNS_PIN = 0 [09:36:46]*** Brake cut motor [09:36:46]Read from MH i2c: 01 [09:36:46]MH_I2C_Read... [09:36:46]*** Stop cut motor [09:36:46]*** Cut end [09:36:46]Read from MH i2c: 01 07 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 0F 2F 00 00 00 00 00 FF 0F 53 [09:36:46]process_action close_receipt done [09:36:46]requested_data is exist [09:36:46]produce_requested_data [09:36:46]requested_item fm.sn is exist - process it [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 11 00 00 [09:36:46]Write to MH i2c: E2 08 00 10 2F 80 11 00 00 00 00 00 00 B9 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 10 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [09:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:36:47]wFMCommunicate OK [09:36:47]requested_item fd.num is exist - process it [09:36:47]SAM_PROTO_GetFieldsCounters [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 13 00 00 [09:36:47]Write to MH i2c: E2 08 00 11 2F 80 13 00 00 00 00 00 00 BC [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 62 00 11 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 73 00 00 0E 04 04 00 75 00 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 EC [09:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 73 00 00 0E 04 04 00 75 00 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:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetFieldsCounters done [09:36:47]requested_item shift.num is exist - process it [09:36:47]requested_item shift.opened is exist - process it [09:36:47]req_shift_opened [09:36:47]FM_GetShiftState [09:36:47]SAM_PROTO_GetShiftState [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 13 01 00 [09:36:47]Write to MH i2c: E2 08 00 12 2F 80 13 01 00 00 00 00 00 BE [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0E 00 12 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B2 [09:36:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_GetShiftState done [09:36:47]FM_GetShiftState done [09:36:47]req_shift_opened done [09:36:47]requested_item shift.open_date is exist - process it [09:36:47]req_shift_open_date [09:36:47]req_shift_open_date done [09:36:47]produce_requested_data done [09:36:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29481,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:36:47]process_action_free close_receipt [09:36:47]json_value_free [09:36:47]json_value_free done [09:36:47]process_json_proto returns [09:36:47]Send response to host [09:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29481,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:36:47]free response buf [09:36:47]execute_script done [09:36:47]execute_script returns [09:36:47]free content buf [09:36:47]Sock 9.Close socket [09:36:47]Sock 9.Thread stoped [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]accept exits with 8 [09:38:55]New connection [09:38:55]New thread 3067112804 created [09:38:55]Thread 3066969444 joined [09:38:55]Waiting for new connection... [09:38:55] Sock 8.Parse request [09:38:55]Sock 8.Check first char [09:38:55]Sock 8.First char is OK [09:38:55]request: POST /json_proto HTTP/1.0 [09:38:55]Method: POST [09:38:55]URL: /json_proto [09:38:55]Method is POST - this is cgi request [09:38:55]url: /json_proto [09:38:55]query_string will be loaded in cgi processing [09:38:55]execute_cgi json_proto POST (null) [09:38:55]execute_cgi path=json_proto method=POST [09:38:55]POST find Content-Length [09:38:55]Host: 172.17.33.3:8080 [09:38:55]Content-Length: 677 [09:38:55]Content-Type: application/json [09:38:55] [09:38:55]POST finish read [09:38:55]Found Content-Length = 677 [09:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:55]execute_script... [09:38: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)347894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:55]POST & json_proto [09:38:55]process_json_proto [09:38:55]json parsed OK: [09:38:55]protocol is kg_v1.0 [09:38:55]action value=close_receipt [09:38:55]process_action close_receipt [09:38:55]cmd_close_receipt [09:38:55]MH_GetDate [09:38:55]Write to MH i2c: F0 00 00 13 2F 31 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 09 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 09 00 13 2F 00 B3 F5 1C 66 23 5B 8F 65 D6 [09:38:55]GetLastDocTimeStamp 1713173806 [09:38:55]current date 1713173939 [09:38:55]FM_GetShiftState [09:38:55]SAM_PROTO_GetShiftState [09:38:55]wFMCommunicate request_size=4 [09:38:55]MH_SAM_APDU [09:38:55]CAPDU: 80 13 01 00 [09:38:55]Write to MH i2c: E2 08 00 14 2F 80 13 01 00 00 00 00 00 C0 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:55]Read from MH i2c: E2 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 14 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B4 [09:38:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:38:55]wFMCommunicate OK [09:38:55]SAM_PROTO_GetShiftState done [09:38:55]FM_GetShiftState done [09:38:55]opened in 1713140468 [09:38:55]opened+sec_in_day 1713226868 [09:38:55]quantity*price = 50025 [09:38:55]sum+1 = 50027 [09:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 76 15.04.2024 09:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29482 ФПД: 72149028240284 1/tax-web-control/client/api/v1/ticket?date=20240415T093859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29482&fm=72149028240284&tin=02508201610067®Number=0000138879044617&sum=50000 [09:38:56]StoreToDocumentArchive [09:38:56]shift 117 fd 29482 [09:38:56]save to /storage/0117/doc_00029482 [09:38:56]save last doc name /storage/0117/doc_00029482 to /storage/kkm_last_doc_name [09:38:56]save OK [09:38:56]Clear old archive folders... [09:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:56]tlvbuf is B6F7C010 [09:38:56]SAM_PROTO_ClearQueue [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 09 00 00 [09:38:56]Write to MH i2c: E2 08 00 21 2F 80 09 00 00 00 00 00 00 C2 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 21 2F 00 90 00 C4 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]SAM_PROTO_ClearQueue done [09:38:56]KKMCreateOFDPacket [09:38:56]OFDProtocolAddRootSTLVToBuf [09:38:56]FM_MakeSignedData [09:38:56]FM_MakeSignedData [09:38:56]SAM_PROTO_SignData [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 0D 01 02 [09:38:56]Write to MH i2c: E2 08 00 22 2F 80 0D 01 02 00 00 00 00 CA [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 22 2F 00 90 00 C5 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]wFMCommunicate request_size=255 [09:38:56]MH_SAM_APDU [09:38: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B3 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 73 00 00 35 04 06 00 41 [09:38:56]Write to MH i2c: E2 02 01 23 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B3 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 73 00 00 35 04 06 00 41 00 00 4C [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 03 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 03 00 23 2F 00 90 00 C6 [09:38:57]RAPDU: 90 00 [09:38:57]wFMCommunicate OK [09:38:57]wFMCommunicate request_size=10 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 0D 02 02 05 9E 81 32 FB 9C [09:38:57]Write to MH i2c: E2 0D 00 24 2F 80 0D 02 02 05 00 9E 81 32 FB 9C 00 00 BF [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 03 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 03 00 24 2F 00 90 00 C7 [09:38:57]RAPDU: 90 00 [09:38:57]wFMCommunicate OK [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 0D 03 02 [09:38:57]Write to MH i2c: E2 08 00 25 2F 80 0D 03 02 00 00 00 00 CF [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0B 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0B 00 25 2F 00 0D 61 C4 C6 E3 52 12 96 90 00 A5 [09:38:57]RAPDU: 0D 61 C4 C6 E3 52 12 96 90 00 [09:38:57]wFMCommunicate OK [09:38:57]SAM_PROTO_SignData done [09:38:57]FM_MakeSignedData done [09:38:57]CreateOFDProtocolMessage [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 11 00 00 [09:38:57]Write to MH i2c: E2 08 00 26 2F 80 11 00 00 00 00 00 00 CF [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 26 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [09:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:38:57]wFMCommunicate OK [09:38:57]CreateOFDProtocolMessage done [09:38:57]OFDSenderStorePacket 29482 [09:38:57]StoreOFDPacket docnum=29482 [09:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 0F 07 01 DB 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B3 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 73 00 00 35 04 06 00 41 9E 81 32 FB 9C 0D 61 C4 C6 E3 52 12 96 [09:38:57]CheckFolder [09:38:57]dirname=/storage/ofd_packets [09:38:57]CheckFolder done [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00029482 [09:38:57]NVStorageSaveData ofd_packets/00029482 [09:38:57]File name is /storage/ofd_packets/00029482 [09:38:57]Write 301 bytes [09:38:57]NVStorageSaveData done [09:38:57]OFDSenderStorePacket done [09:38:57]KKMCreateOFDPacket done [09:38:57]NVStorageSaveData kkm_last_timestamp [09:38:57]File name is /storage/kkm_last_timestamp [09:38:57]Write 4 bytes [09:38:57]NVStorageSaveData done [09:38:57]ExternCall_PrintAddStr [09:38:57]wPrintStart [09:38:57]Write to MH i2c: 01 00 00 27 2F 56 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 27 2F 00 00 00 00 00 FF 0F 6B [09:38:57]RasterBufferAndPrint [09:38:57]line Счет N : (1)347894 [09:38:57]line ИНН: 02508201610067 [09:38:57]line Контрольно-Кассовый Чек [09:38:57]line ПРОДАЖА [09:38:57]line ТРК (МРК, ГНК) : 42 [09:38:57]line Товар: 2710124130 [09:38:57]line Аи-92-К-5 [09:38:57]line 7.720 * 64.80 [09:38:57]line = 500.26 [09:38:57]line НДС 12% НСП 1% [09:38:57]line > о реализуемом товаре [09:38:57]line ОКРУГЛЕНИЕ: -0.26 [09:38:57]line ИТОГО: 500.00 [09:38:57]line Внесено: 500.00 [09:38:57]line СДАЧА: 0.00 [09:38:57]line НСП 1% : 4.43 [09:38:57]line НДС 12% : 53.12 [09:38:57]line Наличными: 500.00 [09:38:57]line Безнал.: 0.00 [09:38:57]line Место: АЗС № 108 "Партнер Нефть" [09:38:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:38:57]line СНО: Общий режим [09:38:57]line Чек 76 15.04.2024 09:38 [09:38:57]line Смена: 117 ФФД: 1.0 [09:38:57]line ЗНМ: 0300000027 [09:38:57]line РНМ: 0000138879044617 [09:38:57]line Версия ККМ: 001 [09:38:57]line ФМ: 0000000000963154 [09:38:57]line ФД: 29482 [09:38:57]line ФПД: 72149028240284 [09:38:57]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093859&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29482&fm=72149028240284&tin=02508201610067®Number=0000138879044617&sum=50000 [09:38:57]OFD Sender: Processing packet 29482 [packets to send 8, broken 7] [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00029482 [09:38:57]OFD Sender: To server: pG, [09:38:57]CommunicateWithHost lk.salyk.kg:30040 [09:38:57]ConnectInit lk.salyk.kg [09:38:57]written 0, free lines is 4095 [09:38:57]Connected sock=10 [09:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 0F 07 01 DB 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 B3 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 73 00 00 35 04 06 00 41 9E 81 32 FB 9C 0D 61 C4 C6 E3 52 12 96 [09:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F AC 47 00 9A 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 39 36 33 31 35 34 10 04 04 00 2A 73 00 00 F4 03 04 00 54 A0 1C 66 B6 04 01 00 00 D0 54 7D 75 BA 03 CD 3D [09:38:57]CommunicateWithHost err = 0 [09:38:57]CheckOFDResponse [09:38:57]1017 (14) - 77093643461234 [09:38:57]1041 (16) - 0000000000963154 [09:38:57]1040 (4) - 29482 [09:38:57]1012 (4) - 15.04.2024 03:34 [09:38:57]1206 (1) - 0 [09:38:57]OFD Sender: Remove packet 29482 [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00029482 [09:38:57]NVStorageDeleteData [09:38:58]Write to MH i2c: 01 00 00 51 2F 80 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: 01 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: 01 07 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: 01 07 00 51 2F 00 00 00 00 00 BC 0C 4F [09:38:58]RasterBufferAndPrint [09:38:58]line [09:38:58]line [09:38:58]line [09:38:58]line [09:38:58]line [09:38:58]written 0, free lines is 3265 [09:38:58]MH_Cut [09:38:58]Write to MH i2c: D1 01 00 58 2F 01 59 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: D1 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: D1 01 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: D1 01 00 58 2F 00 58 [09:38:58]Write to MH i2c: 01 00 00 59 2F 88 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]OFD Sender: No OFD packet to send [09:38:58]*** Cut start [09:38:58]*** Partial cut [09:38:58]*** CUTSNS_PIN = 1 [09:38:58]*** CUTSNS_PIN = 0 [09:38:59]*** Brake cut motor [09:38:59]Read from MH i2c: 01 [09:38:59]*** Stop cut motor [09:38:59]*** Cut end [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 59 2F 00 00 00 00 00 FF 0F 9D [09:38:59]process_action close_receipt done [09:38:59]requested_data is exist [09:38:59]produce_requested_data [09:38:59]requested_item fm.sn is exist - process it [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 11 00 00 [09:38:59]Write to MH i2c: E2 08 00 5A 2F 80 11 00 00 00 00 00 00 03 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 5A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [09:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:38:59]wFMCommunicate OK [09:38:59]requested_item fd.num is exist - process it [09:38:59]SAM_PROTO_GetFieldsCounters [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 00 00 [09:38:59]Write to MH i2c: E2 08 00 5B 2F 80 13 00 00 00 00 00 00 06 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 62 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 62 00 5B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 73 00 00 0E 04 04 00 75 00 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 3A [09:38:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 73 00 00 0E 04 04 00 75 00 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:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_GetFieldsCounters done [09:38:59]requested_item shift.num is exist - process it [09:38:59]requested_item shift.opened is exist - process it [09:38:59]req_shift_opened [09:38:59]FM_GetShiftState [09:38:59]SAM_PROTO_GetShiftState [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 01 00 [09:38:59]Write to MH i2c: E2 08 00 5C 2F 80 13 01 00 00 00 00 00 08 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 5C 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [09:38:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_GetShiftState done [09:38:59]FM_GetShiftState done [09:38:59]req_shift_opened done [09:38:59]requested_item shift.open_date is exist - process it [09:38:59]req_shift_open_date [09:38:59]req_shift_open_date done [09:38:59]produce_requested_data done [09:38:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29482,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:38:59]process_action_free close_receipt [09:38:59]json_value_free [09:38:59]json_value_free done [09:38:59]process_json_proto returns [09:38:59]Send response to host [09:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29482,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:38:59]free response buf [09:38:59]execute_script done [09:38:59]execute_script returns [09:38:59]free content buf [09:38:59]Sock 8.Close socket [09:38:59]Sock 8.Thread stoped [09:38:59]accept exits with 9 [09:38:59]New connection [09:38:59]New thread 3066969444 created [09:38:59]Thread 3067112804 joined [09:38:59]Waiting for new connection... [09:38:59] Sock 9.Parse request [09:38:59]Sock 9.Check first char [09:38:59]Sock 9.First char is OK [09:38:59]request: POST /json_proto HTTP/1.0 [09:38:59]Method: POST [09:38:59]URL: /json_proto [09:38:59]Method is POST - this is cgi request [09:38:59]url: /json_proto [09:38:59]query_string will be loaded in cgi processing [09:38:59]execute_cgi json_proto POST (null) [09:38:59]execute_cgi path=json_proto method=POST [09:38:59]POST find Content-Length [09:38:59]Host: 172.17.33.3:8080 [09:38:59]Content-Length: 677 [09:38:59]Content-Type: application/json [09:38:59] [09:38:59]POST finish read [09:38:59]Found Content-Length = 677 [09:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [09:38:59]execute_script... [09:38: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)347895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [09:38:59]POST & json_proto [09:38:59]process_json_proto [09:38:59]json parsed OK: [09:38:59]protocol is kg_v1.0 [09:38:59]action value=close_receipt [09:38:59]process_action close_receipt [09:38:59]cmd_close_receipt [09:38:59]MH_GetDate [09:38:59]Write to MH i2c: F0 00 00 5D 2F 7B [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 09 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 09 00 5D 2F 00 B7 F5 1C 66 23 5B 8F 65 24 [09:38:59]GetLastDocTimeStamp 1713173939 [09:38:59]current date 1713173943 [09:38:59]FM_GetShiftState [09:38:59]SAM_PROTO_GetShiftState [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 01 00 [09:38:59]Write to MH i2c: E2 08 00 5E 2F 80 13 01 00 00 00 00 00 0A [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0E 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0E 00 5E 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FE [09:39:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_GetShiftState done [09:39:00]FM_GetShiftState done [09:39:00]opened in 1713140468 [09:39:00]opened+sec_in_day 1713226868 [09:39:00]quantity*price = 20023 [09:39:00]sum+1 = 20024 [09:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 77 15.04.2024 09:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29483 ФПД: 237088600111426 1/tax-web-control/client/api/v1/ticket?date=20240415T093903&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29483&fm=237088600111426&tin=02508201610067®Number=0000138879044617&sum=20000 [09:39:01]StoreToDocumentArchive [09:39:01]shift 117 fd 29483 [09:39:01]save to /storage/0117/doc_00029483 [09:39:01]save last doc name /storage/0117/doc_00029483 to /storage/kkm_last_doc_name [09:39:01]save OK [09:39:01]Clear old archive folders... [09:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:01]tlvbuf is 002CD360 [09:39:01]SAM_PROTO_ClearQueue [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 09 00 00 [09:39:01]Write to MH i2c: E2 08 00 6B 2F 80 09 00 00 00 00 00 00 0C [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 6B 2F 00 90 00 0E [09:39:01]RAPDU: 90 00 [09:39:01]wFMCommunicate OK [09:39:01]SAM_PROTO_ClearQueue done [09:39:01]KKMCreateOFDPacket [09:39:01]OFDProtocolAddRootSTLVToBuf [09:39:01]FM_MakeSignedData [09:39:01]FM_MakeSignedData [09:39:01]SAM_PROTO_SignData [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 0D 01 02 [09:39:01]Write to MH i2c: E2 08 00 6C 2F 80 0D 01 02 00 00 00 00 14 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 6C 2F 00 90 00 0F [09:39:01]RAPDU: 90 00 [09:39:01]wFMCommunicate OK [09:39:01]wFMCommunicate request_size=255 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 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 4D 00 00 00 F4 03 04 00 B7 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 73 00 00 35 04 06 00 D7 [09:39:01]Write to MH i2c: E2 02 01 6D 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 4D 00 00 00 F4 03 04 00 B7 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 73 00 00 35 04 06 00 D7 00 00 8F [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 6D 2F 00 90 00 10 [09:39:01]RAPDU: 90 00 [09:39:01]wFMCommunicate OK [09:39:01]wFMCommunicate request_size=10 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 0D 02 02 05 A1 7D CA 39 42 [09:39:01]Write to MH i2c: E2 0D 00 6E 2F 80 0D 02 02 05 00 A1 7D CA 39 42 00 00 84 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 03 00 6E 2F 00 90 00 11 [09:39:01]RAPDU: 90 00 [09:39:01]wFMCommunicate OK [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 0D 03 02 [09:39:01]Write to MH i2c: E2 08 00 6F 2F 80 0D 03 02 00 00 00 00 19 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 0B 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 0B 00 6F 2F 00 36 3D 90 1D 5F 30 93 EF 90 00 4B [09:39:01]RAPDU: 36 3D 90 1D 5F 30 93 EF 90 00 [09:39:01]wFMCommunicate OK [09:39:01]SAM_PROTO_SignData done [09:39:01]FM_MakeSignedData done [09:39:01]CreateOFDProtocolMessage [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 11 00 00 [09:39:01]Write to MH i2c: E2 08 00 70 2F 80 11 00 00 00 00 00 00 19 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:02]Read from MH i2c: E2 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 17 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 17 00 70 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [09:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:39:02]wFMCommunicate OK [09:39:02]CreateOFDProtocolMessage done [09:39:02]OFDSenderStorePacket 29483 [09:39:02]StoreOFDPacket docnum=29483 [09:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA CF 07 01 5A 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 4D 00 00 00 F4 03 04 00 B7 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 73 00 00 35 04 06 00 D7 A1 7D CA 39 42 36 3D 90 1D 5F 30 93 EF [09:39:02]CheckFolder [09:39:02]dirname=/storage/ofd_packets [09:39:02]CheckFolder done [09:39:02]ProducePacketName [09:39:02]name=ofd_packets/00029483 [09:39:02]NVStorageSaveData ofd_packets/00029483 [09:39:02]File name is /storage/ofd_packets/00029483 [09:39:02]Write 301 bytes [09:39:02]NVStorageSaveData done [09:39:02]OFDSenderStorePacket done [09:39:02]KKMCreateOFDPacket done [09:39:02]NVStorageSaveData kkm_last_timestamp [09:39:02]File name is /storage/kkm_last_timestamp [09:39:02]Write 4 bytes [09:39:02]NVStorageSaveData done [09:39:02]ExternCall_PrintAddStr [09:39:02]wPrintStart [09:39:02]Write to MH i2c: 01 00 00 71 2F A0 [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 07 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 07 00 71 2F 00 00 00 00 00 FF 0F B5 [09:39:02]RasterBufferAndPrint [09:39:02]line Счет N : (1)347895 [09:39:02]line ИНН: 02508201610067 [09:39:02]line Контрольно-Кассовый Чек [09:39:02]line ПРОДАЖА [09:39:02]line ТРК (МРК, ГНК) : 23 [09:39:02]line Товар: 2710124130 [09:39:02]line Аи-92-К-5 [09:39:02]line 3.090 * 64.80 [09:39:02]line = 200.23 [09:39:02]line НДС 12% НСП 1% [09:39:02]line > о реализуемом товаре [09:39:02]line ОКРУГЛЕНИЕ: -0.23 [09:39:02]line ИТОГО: 200.00 [09:39:02]line Внесено: 200.00 [09:39:02]line СДАЧА: 0.00 [09:39:02]line НСП 1% : 1.77 [09:39:02]line НДС 12% : 21.26 [09:39:02]line Наличными: 200.00 [09:39:02]line Безнал.: 0.00 [09:39:02]line Место: АЗС № 108 "Партнер Нефть" [09:39:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:39:02]line СНО: Общий режим [09:39:02]line Чек 77 15.04.2024 09:39 [09:39:02]line Смена: 117 ФФД: 1.0 [09:39:02]line ЗНМ: 0300000027 [09:39:02]line РНМ: 0000138879044617 [09:39:02]line Версия ККМ: 001 [09:39:02]line ФМ: 0000000000963154 [09:39:02]line ФД: 29483 [09:39:02]line ФПД: 237088600111426 [09:39:02]line 1/tax-web-control/client/api/v1/ticket?date=20240415T093903&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29483&fm=237088600111426&tin=02508201610067®Number=0000138879044617&sum=20000 [09:39:02]OFD Sender: Processing packet 29483 [packets to send 8, broken 7] [09:39:02]ProducePacketName [09:39:02]name=ofd_packets/00029483 [09:39:02]OFD Sender: To server: pG, [09:39:02]CommunicateWithHost lk.salyk.kg:30040 [09:39:02]ConnectInit lk.salyk.kg [09:39:02]written 0, free lines is 4095 [09:39:02]Connected sock=10 [09:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA CF 07 01 5A 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 4D 00 00 00 F4 03 04 00 B7 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 73 00 00 35 04 06 00 D7 A1 7D CA 39 42 36 3D 90 1D 5F 30 93 EF [09:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 6E 47 00 16 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 39 36 33 31 35 34 10 04 04 00 2B 73 00 00 F4 03 04 00 59 A0 1C 66 B6 04 01 00 00 4E B3 24 01 33 0B FB 9D [09:39:02]CommunicateWithHost err = 0 [09:39:02]CheckOFDResponse [09:39:02]1017 (14) - 77093643461234 [09:39:02]1041 (16) - 0000000000963154 [09:39:02]1040 (4) - 29483 [09:39:02]1012 (4) - 15.04.2024 03:34 [09:39:02]1206 (1) - 0 [09:39:02]OFD Sender: Remove packet 29483 [09:39:02]ProducePacketName [09:39:02]name=ofd_packets/00029483 [09:39:02]NVStorageDeleteData [09:39:02]Write to MH i2c: 01 00 00 9B 2F CA [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 07 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: 01 07 00 9B 2F 00 00 00 00 00 C8 0C A5 [09:39:02]RasterBufferAndPrint [09:39:02]line [09:39:02]line [09:39:02]line [09:39:02]line [09:39:02]line [09:39:02]written 0, free lines is 3286 [09:39:02]MH_Cut [09:39:02]Write to MH i2c: D1 01 00 A2 2F 01 A3 [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: D1 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: D1 01 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: D1 01 00 A2 2F 00 A2 [09:39:02]Write to MH i2c: 01 00 00 A3 2F D2 [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:03]OFD Sender: No OFD packet to send [09:39:03]*** Cut start [09:39:03]*** Partial cut [09:39:03]*** CUTSNS_PIN = 1 [09:39:03]*** CUTSNS_PIN = 0 [09:39:03]*** Brake cut motor [09:39:04]Read from MH i2c: 01 [09:39:04]MH_I2C_Read... [09:39:04]*** Stop cut motor [09:39:04]*** Cut end [09:39:04]Read from MH i2c: 01 07 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: 01 07 00 A3 2F 00 00 00 00 00 FF 0F E7 [09:39:04]process_action close_receipt done [09:39:04]requested_data is exist [09:39:04]produce_requested_data [09:39:04]requested_item fm.sn is exist - process it [09:39:04]wFMCommunicate request_size=4 [09:39:04]MH_SAM_APDU [09:39:04]CAPDU: 80 11 00 00 [09:39:04]Write to MH i2c: E2 08 00 A4 2F 80 11 00 00 00 00 00 00 4D [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:04]Read from MH i2c: E2 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 17 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 17 00 A4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9C [09:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:39:04]wFMCommunicate OK [09:39:04]requested_item fd.num is exist - process it [09:39:04]SAM_PROTO_GetFieldsCounters [09:39:04]wFMCommunicate request_size=4 [09:39:04]MH_SAM_APDU [09:39:04]CAPDU: 80 13 00 00 [09:39:04]Write to MH i2c: E2 08 00 A5 2F 80 13 00 00 00 00 00 00 50 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:04]Read from MH i2c: E2 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 62 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 62 00 A5 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 73 00 00 0E 04 04 00 75 00 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 88 [09:39:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 73 00 00 0E 04 04 00 75 00 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:39:04]wFMCommunicate OK [09:39:04]SAM_PROTO_GetFieldsCounters done [09:39:04]requested_item shift.num is exist - process it [09:39:04]requested_item shift.opened is exist - process it [09:39:04]req_shift_opened [09:39:04]FM_GetShiftState [09:39:04]SAM_PROTO_GetShiftState [09:39:04]wFMCommunicate request_size=4 [09:39:04]MH_SAM_APDU [09:39:04]CAPDU: 80 13 01 00 [09:39:04]Write to MH i2c: E2 08 00 A6 2F 80 13 01 00 00 00 00 00 52 [09:39:04]Write i2c OK [09:39:04]MH_I2C_Read... [09:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:04]Read from MH i2c: E2 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 0E 00 [09:39:04]MH_I2C_Read... [09:39:04]Read from MH i2c: E2 0E 00 A6 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 46 [09:39:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:39:04]wFMCommunicate OK [09:39:04]SAM_PROTO_GetShiftState done [09:39:04]FM_GetShiftState done [09:39:04]req_shift_opened done [09:39:04]requested_item shift.open_date is exist - process it [09:39:04]req_shift_open_date [09:39:04]req_shift_open_date done [09:39:04]produce_requested_data done [09:39:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29483,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:39:04]process_action_free close_receipt [09:39:04]json_value_free [09:39:04]json_value_free done [09:39:04]process_json_proto returns [09:39:04]Send response to host [09:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29483,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:39:04]free response buf [09:39:04]execute_script done [09:39:04]execute_script returns [09:39:04]free content buf [09:39:04]Sock 9.Close socket [09:39:04]Sock 9.Thread stoped [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:02]accept exits with 8 [09:40:02]New connection [09:40:02]New thread 3067112804 created [09:40:02]Thread 3066969444 joined [09:40:02]Waiting for new connection... [09:40:02] Sock 8.Parse request [09:40:02]Sock 8.Check first char [09:40:02]Sock 8.First char is OK [09:40:02]request: POST /json_proto HTTP/1.0 [09:40:02]Method: POST [09:40:02]URL: /json_proto [09:40:02]Method is POST - this is cgi request [09:40:02]url: /json_proto [09:40:02]query_string will be loaded in cgi processing [09:40:02]execute_cgi json_proto POST (null) [09:40:02]execute_cgi path=json_proto method=POST [09:40:02]POST find Content-Length [09:40:02]Host: 172.17.33.3:8080 [09:40:02]Content-Length: 819 [09:40:02]Content-Type: application/json [09:40:02] [09:40:02]POST finish read [09:40:02]Found Content-Length = 819 [09:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 164.610, "sum" : 12000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 12000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:02]execute_script... [09:40: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)347889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 164.610, "sum" : 12000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 12000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:02]POST & json_proto [09:40:02]process_json_proto [09:40:02]json parsed OK: [09:40:02]protocol is kg_v1.0 [09:40:02]action value=close_receipt [09:40:02]process_action close_receipt [09:40:02]cmd_close_receipt [09:40:02]MH_GetDate [09:40:02]Write to MH i2c: F0 00 00 A7 2F C5 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: F0 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: F0 09 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: F0 09 00 A7 2F 00 F6 F5 1C 66 23 5B 8F 65 AD [09:40:02]GetLastDocTimeStamp 1713173943 [09:40:02]current date 1713174006 [09:40:02]FM_GetShiftState [09:40:02]SAM_PROTO_GetShiftState [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 13 01 00 [09:40:02]Write to MH i2c: E2 08 00 A8 2F 80 13 01 00 00 00 00 00 54 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0E 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0E 00 A8 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 48 [09:40:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:40:02]wFMCommunicate OK [09:40:02]SAM_PROTO_GetShiftState done [09:40:02]FM_GetShiftState done [09:40:02]opened in 1713140468 [09:40:02]opened+sec_in_day 1713226868 [09:40:02]quantity*price = 1200006 [09:40:02]sum+1 = 1200008 [09:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 12000.07 НСП 1% : 106.19 НДС 12% : 1274.34 Наличными: 0.00 Безнал.: 12000.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 78 15.04.2024 09:40 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29484 ФПД: 196393119898069 1/tax-web-control/client/api/v1/ticket?date=20240415T094006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29484&fm=196393119898069&tin=02508201610067®Number=0000138879044617&sum=1200007 [09:40:03]StoreToDocumentArchive [09:40:03]shift 117 fd 29484 [09:40:03]save to /storage/0117/doc_00029484 [09:40:03]save last doc name /storage/0117/doc_00029484 to /storage/kkm_last_doc_name [09:40:03]save OK [09:40:03]Clear old archive folders... [09:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:03]tlvbuf is B6F01950 [09:40:03]SAM_PROTO_ClearQueue [09:40:03]wFMCommunicate request_size=4 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 09 00 00 [09:40:03]Write to MH i2c: E2 08 00 B5 2F 80 09 00 00 00 00 00 00 56 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:03]Read from MH i2c: E2 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 B5 2F 00 90 00 58 [09:40:03]RAPDU: 90 00 [09:40:03]wFMCommunicate OK [09:40:03]SAM_PROTO_ClearQueue done [09:40:03]KKMCreateOFDPacket [09:40:03]OFDProtocolAddRootSTLVToBuf [09:40:03]FM_MakeSignedData [09:40:03]FM_MakeSignedData [09:40:03]SAM_PROTO_SignData [09:40:03]wFMCommunicate request_size=4 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 0D 01 02 [09:40:03]Write to MH i2c: E2 08 00 B6 2F 80 0D 01 02 00 00 00 00 5E [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:03]Read from MH i2c: E2 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [09:40:03]RAPDU: 90 00 [09:40:03]wFMCommunicate OK [09:40:03]wFMCommunicate request_size=255 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 83 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 87 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA F1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 4F 12 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F6 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 73 00 00 35 04 06 00 B2 9E 56 25 [09:40:03]Write to MH i2c: E2 02 01 B7 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 83 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 87 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA F1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 4F 12 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F6 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 73 00 00 35 04 06 00 B2 9E 56 25 00 00 A7 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:03]Read from MH i2c: E2 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [09:40:03]RAPDU: 90 00 [09:40:03]wFMCommunicate OK [09:40:03]wFMCommunicate request_size=7 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 0D 02 02 02 D9 D5 [09:40:03]Write to MH i2c: E2 0A 00 B8 2F 80 0D 02 02 02 00 D9 D5 00 00 13 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:03]Read from MH i2c: E2 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 03 00 B8 2F 00 90 00 5B [09:40:03]RAPDU: 90 00 [09:40:03]wFMCommunicate OK [09:40:03]wFMCommunicate request_size=4 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 0D 03 02 [09:40:03]Write to MH i2c: E2 08 00 B9 2F 80 0D 03 02 00 00 00 00 63 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:03]Read from MH i2c: E2 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 0B 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: E2 0B 00 B9 2F 00 49 62 2D E6 1D 7A 53 D3 90 00 DF [09:40:03]RAPDU: 49 62 2D E6 1D 7A 53 D3 90 00 [09:40:03]wFMCommunicate OK [09:40:03]SAM_PROTO_SignData done [09:40:03]FM_MakeSignedData done [09:40:03]CreateOFDProtocolMessage [09:40:03]wFMCommunicate request_size=4 [09:40:03]MH_SAM_APDU [09:40:03]CAPDU: 80 11 00 00 [09:40:03]Write to MH i2c: E2 08 00 BA 2F 80 11 00 00 00 00 00 00 63 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:04]Read from MH i2c: E2 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: E2 17 00 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: E2 17 00 BA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [09:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:04]wFMCommunicate OK [09:40:04]CreateOFDProtocolMessage done [09:40:04]OFDSenderStorePacket 29484 [09:40:04]StoreOFDPacket docnum=29484 [09:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 69 2E 04 01 06 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 83 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 87 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA F1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 4F 12 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F6 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 73 00 00 35 04 06 00 B2 9E 56 25 D9 D5 49 62 2D E6 1D 7A 53 D3 [09:40:04]CheckFolder [09:40:04]dirname=/storage/ofd_packets [09:40:04]CheckFolder done [09:40:04]ProducePacketName [09:40:04]name=ofd_packets/00029484 [09:40:04]NVStorageSaveData ofd_packets/00029484 [09:40:04]File name is /storage/ofd_packets/00029484 [09:40:04]Write 298 bytes [09:40:04]NVStorageSaveData done [09:40:04]OFDSenderStorePacket done [09:40:04]KKMCreateOFDPacket done [09:40:04]NVStorageSaveData kkm_last_timestamp [09:40:04]File name is /storage/kkm_last_timestamp [09:40:04]Write 4 bytes [09:40:04]NVStorageSaveData done [09:40:04]ExternCall_PrintAddStr [09:40:04]wPrintStart [09:40:04]Write to MH i2c: 01 00 00 BB 2F EA [09:40:04]Write i2c OK [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 07 00 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 07 00 BB 2F 00 00 00 00 00 FF 0F FF [09:40:04]RasterBufferAndPrint [09:40:04]line Счет N : (1)347889 [09:40:04]line ИНН: 02508201610067 [09:40:04]line Контрольно-Кассовый Чек [09:40:04]line ПРОДАЖА [09:40:04]line ТРК (МРК, ГНК) : 51 [09:40:04]line Товар: 2710194210 [09:40:04]line ДТ-К-5 [09:40:04]line 164.610 * 72.90 [09:40:04]line = 12000.07 [09:40:04]line НДС 12% НСП 1% [09:40:04]line > о реализуемом товаре [09:40:04]line ИТОГО: 12000.07 [09:40:04]line НСП 1% : 106.19 [09:40:04]line НДС 12% : 1274.34 [09:40:04]line Наличными: 0.00 [09:40:04]line Безнал.: 12000.07 [09:40:04]line Место: АЗС № 108 "Партнер Нефть" [09:40:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:40:04]line СНО: Общий режим [09:40:04]line Чек 78 15.04.2024 09:40 [09:40:04]line Смена: 117 ФФД: 1.0 [09:40:04]line ЗНМ: 0300000027 [09:40:04]line РНМ: 0000138879044617 [09:40:04]line Версия ККМ: 001 [09:40:04]line Платежная система: Бакай Банк [09:40:04]line ФМ: 0000000000963154 [09:40:04]line ФД: 29484 [09:40:04]line ФПД: 196393119898069 [09:40:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T094006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29484&fm=196393119898069&tin=02508201610067®Number=0000138879044617&sum=1200007 [09:40:04]OFD Sender: Processing packet 29484 [packets to send 8, broken 7] [09:40:04]ProducePacketName [09:40:04]name=ofd_packets/00029484 [09:40:04]OFD Sender: To server: pG, [09:40:04]CommunicateWithHost lk.salyk.kg:30040 [09:40:04]ConnectInit lk.salyk.kg [09:40:04]written 0, free lines is 4095 [09:40:04]Connected sock=10 [09:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 69 2E 04 01 06 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 83 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 87 4F 12 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 4F 12 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 29 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA F1 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 4F 12 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F6 F5 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 73 00 00 35 04 06 00 B2 9E 56 25 D9 D5 49 62 2D E6 1D 7A 53 D3 [09:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD 45 47 00 87 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 39 36 33 31 35 34 10 04 04 00 2C 73 00 00 F4 03 04 00 97 A0 1C 66 B6 04 01 00 00 03 2E 8D 53 30 AE 15 FD [09:40:04]CommunicateWithHost err = 0 [09:40:04]CheckOFDResponse [09:40:04]1017 (14) - 77093643461234 [09:40:04]1041 (16) - 0000000000963154 [09:40:04]1040 (4) - 29484 [09:40:04]1012 (4) - 15.04.2024 03:35 [09:40:04]1206 (1) - 0 [09:40:04]OFD Sender: Remove packet 29484 [09:40:04]ProducePacketName [09:40:04]name=ofd_packets/00029484 [09:40:04]NVStorageDeleteData [09:40:04]Write to MH i2c: 01 00 00 E4 2F 13 [09:40:04]Write i2c OK [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 07 00 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 07 00 E4 2F 00 00 00 00 00 DB 0C 01 [09:40:04]RasterBufferAndPrint [09:40:04]line [09:40:04]line [09:40:04]line [09:40:04]line [09:40:04]line [09:40:04]written 0, free lines is 3300 [09:40:04]MH_Cut [09:40:04]Write to MH i2c: D1 01 00 EB 2F 01 EC [09:40:04]Write i2c OK [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: D1 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: D1 01 00 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: D1 01 00 EB 2F 00 EB [09:40:04]Write to MH i2c: 01 00 00 EC 2F 1B [09:40:04]Write i2c OK [09:40:04]MH_I2C_Read... [09:40:05]OFD Sender: No OFD packet to send [09:40:05]*** Cut start [09:40:05]*** Partial cut [09:40:05]*** CUTSNS_PIN = 1 [09:40:05]*** CUTSNS_PIN = 0 [09:40:05]*** Brake cut motor [09:40:06]Read from MH i2c: 01 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: 01 07 00 [09:40:06]MH_I2C_Read... [09:40:06]*** Stop cut motor [09:40:06]*** Cut end [09:40:06]Read from MH i2c: 01 07 00 EC 2F 00 00 00 00 00 FF 0F 30 [09:40:06]process_action close_receipt done [09:40:06]requested_data is exist [09:40:06]produce_requested_data [09:40:06]requested_item fm.sn is exist - process it [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 11 00 00 [09:40:06]Write to MH i2c: E2 08 00 ED 2F 80 11 00 00 00 00 00 00 96 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:06]Read from MH i2c: E2 17 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 17 00 ED 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [09:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:06]wFMCommunicate OK [09:40:06]requested_item fd.num is exist - process it [09:40:06]SAM_PROTO_GetFieldsCounters [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 13 00 00 [09:40:06]Write to MH i2c: E2 08 00 EE 2F 80 13 00 00 00 00 00 00 99 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 62 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 62 00 EE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 73 00 00 0E 04 04 00 75 00 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 D5 [09:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 73 00 00 0E 04 04 00 75 00 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:40:06]wFMCommunicate OK [09:40:06]SAM_PROTO_GetFieldsCounters done [09:40:06]requested_item shift.num is exist - process it [09:40:06]requested_item shift.opened is exist - process it [09:40:06]req_shift_opened [09:40:06]FM_GetShiftState [09:40:06]SAM_PROTO_GetShiftState [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 13 01 00 [09:40:06]Write to MH i2c: E2 08 00 EF 2F 80 13 01 00 00 00 00 00 9B [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 0E 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 0E 00 EF 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8F [09:40:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:40:06]wFMCommunicate OK [09:40:06]SAM_PROTO_GetShiftState done [09:40:06]FM_GetShiftState done [09:40:06]req_shift_opened done [09:40:06]requested_item shift.open_date is exist - process it [09:40:06]req_shift_open_date [09:40:06]req_shift_open_date done [09:40:06]produce_requested_data done [09:40:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29484,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:40:06]process_action_free close_receipt [09:40:06]json_value_free [09:40:06]json_value_free done [09:40:06]process_json_proto returns [09:40:06]Send response to host [09:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29484,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:40:06]free response buf [09:40:06]execute_script done [09:40:06]execute_script returns [09:40:06]free content buf [09:40:06]Sock 8.Close socket [09:40:06]Sock 8.Thread stoped [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:49]accept exits with 9 [09:40:49]New connection [09:40:49]New thread 3066969444 created [09:40:49]Thread 3067112804 joined [09:40:49]Waiting for new connection... [09:40:49] Sock 9.Parse request [09:40:49]Sock 9.Check first char [09:40:49]Sock 9.First char is OK [09:40:49]request: POST /json_proto HTTP/1.0 [09:40:49]Method: POST [09:40:49]URL: /json_proto [09:40:49]Method is POST - this is cgi request [09:40:49]url: /json_proto [09:40:49]query_string will be loaded in cgi processing [09:40:49]execute_cgi json_proto POST (null) [09:40:49]execute_cgi path=json_proto method=POST [09:40:49]POST find Content-Length [09:40:49]Host: 172.17.33.3:8080 [09:40:49]Content-Length: 677 [09:40:49]Content-Type: application/json [09:40:49] [09:40:49]POST finish read [09:40:49]Found Content-Length = 677 [09:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:49]execute_script... [09:40: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)347896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:49]POST & json_proto [09:40:49]process_json_proto [09:40:49]json parsed OK: [09:40:49]protocol is kg_v1.0 [09:40:49]action value=close_receipt [09:40:49]process_action close_receipt [09:40:49]cmd_close_receipt [09:40:49]MH_GetDate [09:40:49]Write to MH i2c: F0 00 00 F0 2F 0E [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: F0 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: F0 09 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: F0 09 00 F0 2F 00 25 F6 1C 66 23 5B 8F 65 26 [09:40:49]GetLastDocTimeStamp 1713174006 [09:40:49]current date 1713174053 [09:40:49]FM_GetShiftState [09:40:49]SAM_PROTO_GetShiftState [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 13 01 00 [09:40:49]Write to MH i2c: E2 08 00 F1 2F 80 13 01 00 00 00 00 00 9D [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0E 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0E 00 F1 2F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [09:40:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_GetShiftState done [09:40:49]FM_GetShiftState done [09:40:49]opened in 1713140468 [09:40:49]opened+sec_in_day 1713226868 [09:40:49]quantity*price = 50025 [09:40:49]sum+1 = 50027 [09:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 79 15.04.2024 09:40 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29485 ФПД: 187374379062016 1/tax-web-control/client/api/v1/ticket?date=20240415T094053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29485&fm=187374379062016&tin=02508201610067®Number=0000138879044617&sum=50000 [09:40:50]StoreToDocumentArchive [09:40:50]shift 117 fd 29485 [09:40:50]save to /storage/0117/doc_00029485 [09:40:50]save last doc name /storage/0117/doc_00029485 to /storage/kkm_last_doc_name [09:40:50]save OK [09:40:50]Clear old archive folders... [09:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:50]tlvbuf is B6F014A0 [09:40:50]SAM_PROTO_ClearQueue [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 09 00 00 [09:40:50]Write to MH i2c: E2 08 00 FE 2F 80 09 00 00 00 00 00 00 9F [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 FE 2F 00 90 00 A1 [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_ClearQueue done [09:40:50]KKMCreateOFDPacket [09:40:50]OFDProtocolAddRootSTLVToBuf [09:40:50]FM_MakeSignedData [09:40:50]FM_MakeSignedData [09:40:50]SAM_PROTO_SignData [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 0D 01 02 [09:40:50]Write to MH i2c: E2 08 00 FF 2F 80 0D 01 02 00 00 00 00 A7 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 03 00 FF 2F 00 90 00 A2 [09:40:50]RAPDU: 90 00 [09:40:50]wFMCommunicate OK [09:40:50]wFMCommunicate request_size=255 [09:40:50]MH_SAM_APDU [09:40: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 73 00 00 35 04 06 00 AA [09:40:50]Write to MH i2c: E2 02 01 00 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 73 00 00 35 04 06 00 AA 00 00 0C [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 03 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 03 00 00 30 00 90 00 A4 [09:40:51]RAPDU: 90 00 [09:40:51]wFMCommunicate OK [09:40:51]wFMCommunicate request_size=10 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 0D 02 02 05 6A 7F 4D D3 00 [09:40:51]Write to MH i2c: E2 0D 00 01 30 80 0D 02 02 05 00 6A 7F 4D D3 00 00 00 BE [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 03 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 03 00 01 30 00 90 00 A5 [09:40:51]RAPDU: 90 00 [09:40:51]wFMCommunicate OK [09:40:51]wFMCommunicate request_size=4 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 0D 03 02 [09:40:51]Write to MH i2c: E2 08 00 02 30 80 0D 03 02 00 00 00 00 AD [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 0B 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 0B 00 02 30 00 12 27 7A 97 3C 81 B1 58 90 00 BE [09:40:51]RAPDU: 12 27 7A 97 3C 81 B1 58 90 00 [09:40:51]wFMCommunicate OK [09:40:51]SAM_PROTO_SignData done [09:40:51]FM_MakeSignedData done [09:40:51]CreateOFDProtocolMessage [09:40:51]wFMCommunicate request_size=4 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 11 00 00 [09:40:51]Write to MH i2c: E2 08 00 03 30 80 11 00 00 00 00 00 00 AD [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 17 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 17 00 03 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [09:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:51]wFMCommunicate OK [09:40:51]CreateOFDProtocolMessage done [09:40:51]OFDSenderStorePacket 29485 [09:40:51]StoreOFDPacket docnum=29485 [09:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A1 E0 07 01 6F B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 73 00 00 35 04 06 00 AA 6A 7F 4D D3 00 12 27 7A 97 3C 81 B1 58 [09:40:51]CheckFolder [09:40:51]dirname=/storage/ofd_packets [09:40:51]CheckFolder done [09:40:51]ProducePacketName [09:40:51]name=ofd_packets/00029485 [09:40:51]NVStorageSaveData ofd_packets/00029485 [09:40:51]File name is /storage/ofd_packets/00029485 [09:40:51]Write 301 bytes [09:40:51]NVStorageSaveData done [09:40:51]OFDSenderStorePacket done [09:40:51]KKMCreateOFDPacket done [09:40:51]NVStorageSaveData kkm_last_timestamp [09:40:51]File name is /storage/kkm_last_timestamp [09:40:51]Write 4 bytes [09:40:51]NVStorageSaveData done [09:40:51]ExternCall_PrintAddStr [09:40:51]wPrintStart [09:40:51]Write to MH i2c: 01 00 00 04 30 34 [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 07 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 07 00 04 30 00 00 00 00 00 FF 0F 49 [09:40:51]RasterBufferAndPrint [09:40:51]line Счет N : (1)347896 [09:40:51]line ИНН: 02508201610067 [09:40:51]line Контрольно-Кассовый Чек [09:40:51]line ПРОДАЖА [09:40:51]line ТРК (МРК, ГНК) : 23 [09:40:51]line Товар: 2710124130 [09:40:51]line Аи-92-К-5 [09:40:51]line 7.720 * 64.80 [09:40:51]line = 500.26 [09:40:51]line НДС 12% НСП 1% [09:40:51]line > о реализуемом товаре [09:40:51]line ОКРУГЛЕНИЕ: -0.26 [09:40:51]line ИТОГО: 500.00 [09:40:51]line Внесено: 500.00 [09:40:51]line СДАЧА: 0.00 [09:40:51]line НСП 1% : 4.43 [09:40:51]line НДС 12% : 53.12 [09:40:51]line Наличными: 500.00 [09:40:51]line Безнал.: 0.00 [09:40:51]line Место: АЗС № 108 "Партнер Нефть" [09:40:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:40:51]line СНО: Общий режим [09:40:51]line Чек 79 15.04.2024 09:40 [09:40:51]line Смена: 117 ФФД: 1.0 [09:40:51]line ЗНМ: 0300000027 [09:40:51]line РНМ: 0000138879044617 [09:40:51]line Версия ККМ: 001 [09:40:51]line ФМ: 0000000000963154 [09:40:51]line ФД: 29485 [09:40:51]line ФПД: 187374379062016 [09:40:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T094053&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29485&fm=187374379062016&tin=02508201610067®Number=0000138879044617&sum=50000 [09:40:51]OFD Sender: Processing packet 29485 [packets to send 8, broken 7] [09:40:51]ProducePacketName [09:40:51]name=ofd_packets/00029485 [09:40:51]OFD Sender: To server: pG, [09:40:51]CommunicateWithHost lk.salyk.kg:30040 [09:40:51]ConnectInit lk.salyk.kg [09:40:51]written 0, free lines is 4095 [09:40:51]Connected sock=10 [09:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A1 E0 07 01 6F B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 25 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 73 00 00 35 04 06 00 AA 6A 7F 4D D3 00 12 27 7A 97 3C 81 B1 58 [09:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF B9 47 00 A8 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 39 36 33 31 35 34 10 04 04 00 2D 73 00 00 F4 03 04 00 C6 A0 1C 66 B6 04 01 00 00 38 BF CC 2D E4 31 4C B6 [09:40:51]CommunicateWithHost err = 0 [09:40:51]CheckOFDResponse [09:40:51]1017 (14) - 77093643461234 [09:40:51]1041 (16) - 0000000000963154 [09:40:51]1040 (4) - 29485 [09:40:51]1012 (4) - 15.04.2024 03:36 [09:40:51]1206 (1) - 0 [09:40:51]OFD Sender: Remove packet 29485 [09:40:51]ProducePacketName [09:40:51]name=ofd_packets/00029485 [09:40:51]NVStorageDeleteData [09:40:52]Write to MH i2c: 01 00 00 2E 30 5E [09:40:52]Write i2c OK [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: 01 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: 01 07 00 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: 01 07 00 2E 30 00 00 00 00 00 D3 0C 44 [09:40:52]RasterBufferAndPrint [09:40:52]line [09:40:52]line [09:40:52]line [09:40:52]line [09:40:52]line [09:40:52]written 0, free lines is 3290 [09:40:52]MH_Cut [09:40:52]Write to MH i2c: D1 01 00 35 30 01 37 [09:40:52]Write i2c OK [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: D1 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: D1 01 00 [09:40:52]MH_I2C_Read... [09:40:52]Read from MH i2c: D1 01 00 35 30 00 36 [09:40:52]Write to MH i2c: 01 00 00 36 30 66 [09:40:52]Write i2c OK [09:40:52]MH_I2C_Read... [09:40:52]OFD Sender: No OFD packet to send [09:40:52]*** Cut start [09:40:52]*** Partial cut [09:40:52]*** CUTSNS_PIN = 1 [09:40:52]*** CUTSNS_PIN = 0 [09:40:53]*** Brake cut motor [09:40:53]Read from MH i2c: 01 [09:40:53]MH_I2C_Read... [09:40:53]*** Stop cut motor [09:40:53]*** Cut end [09:40:53]Read from MH i2c: 01 07 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: 01 07 00 36 30 00 00 00 00 00 FF 0F 7B [09:40:53]process_action close_receipt done [09:40:53]requested_data is exist [09:40:53]produce_requested_data [09:40:53]requested_item fm.sn is exist - process it [09:40:53]wFMCommunicate request_size=4 [09:40:53]MH_SAM_APDU [09:40:53]CAPDU: 80 11 00 00 [09:40:53]Write to MH i2c: E2 08 00 37 30 80 11 00 00 00 00 00 00 E1 [09:40:53]Write i2c OK [09:40:53]MH_I2C_Read... [09:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:53]Read from MH i2c: E2 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 17 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 17 00 37 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [09:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:53]wFMCommunicate OK [09:40:53]requested_item fd.num is exist - process it [09:40:53]SAM_PROTO_GetFieldsCounters [09:40:53]wFMCommunicate request_size=4 [09:40:53]MH_SAM_APDU [09:40:53]CAPDU: 80 13 00 00 [09:40:53]Write to MH i2c: E2 08 00 38 30 80 13 00 00 00 00 00 00 E4 [09:40:53]Write i2c OK [09:40:53]MH_I2C_Read... [09:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:53]Read from MH i2c: E2 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 62 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 62 00 38 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 73 00 00 0E 04 04 00 75 00 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 24 [09:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 73 00 00 0E 04 04 00 75 00 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:40:53]wFMCommunicate OK [09:40:53]SAM_PROTO_GetFieldsCounters done [09:40:53]requested_item shift.num is exist - process it [09:40:53]requested_item shift.opened is exist - process it [09:40:53]req_shift_opened [09:40:53]FM_GetShiftState [09:40:53]SAM_PROTO_GetShiftState [09:40:53]wFMCommunicate request_size=4 [09:40:53]MH_SAM_APDU [09:40:53]CAPDU: 80 13 01 00 [09:40:53]Write to MH i2c: E2 08 00 39 30 80 13 01 00 00 00 00 00 E6 [09:40:53]Write i2c OK [09:40:53]MH_I2C_Read... [09:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:53]Read from MH i2c: E2 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 0E 00 [09:40:53]MH_I2C_Read... [09:40:53]Read from MH i2c: E2 0E 00 39 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DA [09:40:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:40:53]wFMCommunicate OK [09:40:53]SAM_PROTO_GetShiftState done [09:40:53]FM_GetShiftState done [09:40:53]req_shift_opened done [09:40:53]requested_item shift.open_date is exist - process it [09:40:53]req_shift_open_date [09:40:53]req_shift_open_date done [09:40:53]produce_requested_data done [09:40:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29485,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:40:53]process_action_free close_receipt [09:40:53]json_value_free [09:40:53]json_value_free done [09:40:53]process_json_proto returns [09:40:53]Send response to host [09:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29485,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:40:53]free response buf [09:40:53]execute_script done [09:40:53]execute_script returns [09:40:53]free content buf [09:40:53]Sock 9.Close socket [09:40:53]Sock 9.Thread stoped [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:53]accept exits with 8 [09:42:53]New connection [09:42:53]New thread 3067112804 created [09:42:53]Thread 3066969444 joined [09:42:53]Waiting for new connection... [09:42:53] Sock 8.Parse request [09:42:53]Sock 8.Check first char [09:42:53]Sock 8.First char is OK [09:42:53]request: POST /json_proto HTTP/1.0 [09:42:53]Method: POST [09:42:53]URL: /json_proto [09:42:53]Method is POST - this is cgi request [09:42:53]url: /json_proto [09:42:53]query_string will be loaded in cgi processing [09:42:53]execute_cgi json_proto POST (null) [09:42:53]execute_cgi path=json_proto method=POST [09:42:53]POST find Content-Length [09:42:53]Host: 172.17.33.3:8080 [09:42:53]Content-Length: 682 [09:42:53]Content-Type: application/json [09:42:53] [09:42:53]POST finish read [09:42:53]Found Content-Length = 682 [09:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:53]execute_script... [09:42: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)347897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:53]POST & json_proto [09:42:53]process_json_proto [09:42:53]json parsed OK: [09:42:53]protocol is kg_v1.0 [09:42:53]action value=close_receipt [09:42:53]process_action close_receipt [09:42:53]cmd_close_receipt [09:42:53]MH_GetDate [09:42:53]Write to MH i2c: F0 00 00 3A 30 59 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 09 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: F0 09 00 3A 30 00 A0 F6 1C 66 23 5B 8F 65 EC [09:42:53]GetLastDocTimeStamp 1713174053 [09:42:53]current date 1713174176 [09:42:53]FM_GetShiftState [09:42:53]SAM_PROTO_GetShiftState [09:42:53]wFMCommunicate request_size=4 [09:42:53]MH_SAM_APDU [09:42:53]CAPDU: 80 13 01 00 [09:42:53]Write to MH i2c: E2 08 00 3B 30 80 13 01 00 00 00 00 00 E8 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:53]Read from MH i2c: E2 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0E 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: E2 0E 00 3B 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DC [09:42:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:42:53]wFMCommunicate OK [09:42:53]SAM_PROTO_GetShiftState done [09:42:53]FM_GetShiftState done [09:42:53]opened in 1713140468 [09:42:53]opened+sec_in_day 1713226868 [09:42:53]quantity*price = 100051 [09:42:53]sum+1 = 100052 [09:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 80 15.04.2024 09:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29486 ФПД: 193331714556030 1/tax-web-control/client/api/v1/ticket?date=20240415T094257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29486&fm=193331714556030&tin=02508201610067®Number=0000138879044617&sum=100000 [09:42:54]StoreToDocumentArchive [09:42:54]shift 117 fd 29486 [09:42:54]save to /storage/0117/doc_00029486 [09:42:54]save last doc name /storage/0117/doc_00029486 to /storage/kkm_last_doc_name [09:42:54]save OK [09:42:54]Clear old archive folders... [09:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:54]tlvbuf is B6DCF2B0 [09:42:54]SAM_PROTO_ClearQueue [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 09 00 00 [09:42:54]Write to MH i2c: E2 08 00 48 30 80 09 00 00 00 00 00 00 EA [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 48 30 00 90 00 EC [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_ClearQueue done [09:42:54]KKMCreateOFDPacket [09:42:54]OFDProtocolAddRootSTLVToBuf [09:42:54]FM_MakeSignedData [09:42:54]FM_MakeSignedData [09:42:54]SAM_PROTO_SignData [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 01 02 [09:42:54]Write to MH i2c: E2 08 00 49 30 80 0D 01 02 00 00 00 00 F2 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 49 30 00 90 00 ED [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=255 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 73 00 00 35 04 06 00 AF [09:42:54]Write to MH i2c: E2 02 01 4A 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 73 00 00 35 04 06 00 AF 00 00 06 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 4A 30 00 90 00 EE [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=10 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 02 02 05 D5 8C 2B 80 7E [09:42:54]Write to MH i2c: E2 0D 00 4B 30 80 0D 02 02 05 00 D5 8C 2B 80 7E 00 00 89 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 03 00 4B 30 00 90 00 EF [09:42:54]RAPDU: 90 00 [09:42:54]wFMCommunicate OK [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 0D 03 02 [09:42:54]Write to MH i2c: E2 08 00 4C 30 80 0D 03 02 00 00 00 00 F7 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0B 00 4C 30 00 4E B7 0A 2E 76 89 CC 2D 90 00 2D [09:42:54]RAPDU: 4E B7 0A 2E 76 89 CC 2D 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_SignData done [09:42:54]FM_MakeSignedData done [09:42:54]CreateOFDProtocolMessage [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 11 00 00 [09:42:54]Write to MH i2c: E2 08 00 4D 30 80 11 00 00 00 00 00 00 F7 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 4D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [09:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:42:54]wFMCommunicate OK [09:42:54]CreateOFDProtocolMessage done [09:42:54]OFDSenderStorePacket 29486 [09:42:54]StoreOFDPacket docnum=29486 [09:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 75 07 01 2B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 73 00 00 35 04 06 00 AF D5 8C 2B 80 7E 4E B7 0A 2E 76 89 CC 2D [09:42:54]CheckFolder [09:42:54]dirname=/storage/ofd_packets [09:42:54]CheckFolder done [09:42:54]ProducePacketName [09:42:54]name=ofd_packets/00029486 [09:42:54]NVStorageSaveData ofd_packets/00029486 [09:42:54]File name is /storage/ofd_packets/00029486 [09:42:54]Write 301 bytes [09:42:54]NVStorageSaveData done [09:42:54]OFDSenderStorePacket done [09:42:54]KKMCreateOFDPacket done [09:42:54]NVStorageSaveData kkm_last_timestamp [09:42:54]File name is /storage/kkm_last_timestamp [09:42:54]Write 4 bytes [09:42:54]NVStorageSaveData done [09:42:54]ExternCall_PrintAddStr [09:42:54]wPrintStart [09:42:54]Write to MH i2c: 01 00 00 4E 30 7E [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 4E 30 00 00 00 00 00 FF 0F 93 [09:42:54]RasterBufferAndPrint [09:42:54]line Счет N : (1)347897 [09:42:54]line ИНН: 02508201610067 [09:42:54]line Контрольно-Кассовый Чек [09:42:54]line ПРОДАЖА [09:42:54]line ТРК (МРК, ГНК) : 42 [09:42:54]line Товар: 2710124130 [09:42:54]line Аи-92-К-5 [09:42:54]line 15.440 * 64.80 [09:42:54]line = 1000.51 [09:42:54]line НДС 12% НСП 1% [09:42:54]line > о реализуемом товаре [09:42:54]line ОКРУГЛЕНИЕ: -0.51 [09:42:54]line ИТОГО: 1000.00 [09:42:54]line Внесено: 1000.00 [09:42:54]line СДАЧА: 0.00 [09:42:54]line НСП 1% : 8.85 [09:42:54]line НДС 12% : 106.25 [09:42:54]line Наличными: 1000.00 [09:42:54]line Безнал.: 0.00 [09:42:54]line Место: АЗС № 108 "Партнер Нефть" [09:42:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:42:54]line СНО: Общий режим [09:42:54]line Чек 80 15.04.2024 09:42 [09:42:54]line Смена: 117 ФФД: 1.0 [09:42:54]line ЗНМ: 0300000027 [09:42:54]line РНМ: 0000138879044617 [09:42:54]line Версия ККМ: 001 [09:42:54]line ФМ: 0000000000963154 [09:42:54]line ФД: 29486 [09:42:54]line ФПД: 193331714556030 [09:42:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T094257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29486&fm=193331714556030&tin=02508201610067®Number=0000138879044617&sum=100000 [09:42:55]OFD Sender: Processing packet 29486 [packets to send 8, broken 7] [09:42:55]ProducePacketName [09:42:55]name=ofd_packets/00029486 [09:42:55]OFD Sender: To server: pG, [09:42:55]CommunicateWithHost lk.salyk.kg:30040 [09:42:55]ConnectInit lk.salyk.kg [09:42:55]written 0, free lines is 4095 [09:42:55]Write to MH i2c: 01 00 00 78 30 A8 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 78 30 00 00 00 00 00 C0 0C 7B [09:42:55]RasterBufferAndPrint [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]line [09:42:55]written 0, free lines is 3268 [09:42:55]MH_Cut [09:42:55]Write to MH i2c: D1 01 00 7F 30 01 81 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 01 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: D1 01 00 7F 30 00 80 [09:42:55]Write to MH i2c: 01 00 00 80 30 B0 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:56]*** Cut start [09:42:56]*** Partial cut [09:42:56]*** CUTSNS_PIN = 1 [09:42:56]*** CUTSNS_PIN = 0 [09:42:56]*** Brake cut motor [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 80 30 00 00 00 00 00 FF 0F C5 [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 81 30 80 11 00 00 00 00 00 00 2B [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 81 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [09:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:42:57]wFMCommunicate OK [09:42:57]requested_item fd.num is exist - process it [09:42:57]SAM_PROTO_GetFieldsCounters [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 13 00 00 [09:42:57]Write to MH i2c: E2 08 00 82 30 80 13 00 00 00 00 00 00 2E [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 62 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 62 00 82 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 73 00 00 0E 04 04 00 75 00 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 72 [09:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 73 00 00 0E 04 04 00 75 00 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:57]wFMCommunicate OK [09:42:57]SAM_PROTO_GetFieldsCounters done [09:42:57]requested_item shift.num is exist - process it [09:42:57]requested_item shift.opened is exist - process it [09:42:57]req_shift_opened [09:42:57]FM_GetShiftState [09:42:57]SAM_PROTO_GetShiftState [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 13 01 00 [09:42:57]Write to MH i2c: E2 08 00 83 30 80 13 01 00 00 00 00 00 30 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 83 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 24 [09:42:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:42:57]wFMCommunicate OK [09:42:57]SAM_PROTO_GetShiftState done [09:42:57]FM_GetShiftState done [09:42:57]req_shift_opened done [09:42:57]requested_item shift.open_date is exist - process it [09:42:57]req_shift_open_date [09:42:57]req_shift_open_date done [09:42:57]produce_requested_data done [09:42:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29486,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:42:57]process_action_free close_receipt [09:42:57]json_value_free [09:42:57]json_value_free done [09:42:57]process_json_proto returns [09:42:57]Send response to host [09:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29486,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:42:57]free response buf [09:42:57]execute_script done [09:42:57]execute_script returns [09:42:57]free content buf [09:42:57]Sock 8.Close socket [09:42:57]Sock 8.Thread stoped [09:43:21]accept exits with 9 [09:43:21]New connection [09:43:21]New thread 3066969444 created [09:43:21]Thread 3067112804 joined [09:43:21]Waiting for new connection... [09:43:21] Sock 9.Parse request [09:43:21]Sock 9.Check first char [09:43:21]Sock 9.First char is OK [09:43:21]request: POST /json_proto HTTP/1.0 [09:43:21]Method: POST [09:43:21]URL: /json_proto [09:43:21]Method is POST - this is cgi request [09:43:21]url: /json_proto [09:43:21]query_string will be loaded in cgi processing [09:43:21]execute_cgi json_proto POST (null) [09:43:21]execute_cgi path=json_proto method=POST [09:43:21]POST find Content-Length [09:43:21]Host: 172.17.33.3:8080 [09:43:21]Content-Length: 1175 [09:43:21]Content-Type: application/json [09:43:21] [09:43:21]POST finish read [09:43:21]Found Content-Length = 1175 [09:43: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347898\u000A15.04.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.150 x 64.80\u000A\u0418\u0422\u041E\u0413: 1500.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]execute_script... [09:43: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347898\u000A15.04.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.150 x 64.80\u000A\u0418\u0422\u041E\u0413: 1500.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]POST & json_proto [09:43:21]process_json_proto [09:43:21]json parsed OK: [09:43:21]protocol is kg_v1.0 [09:43:21]action value=print_text [09:43:21]process_action print_text [09:43:21]cmd_print_text [09:43:21]ExternCall_PrintAddStr [09:43:21]wPrintStart [09:43:21]Write to MH i2c: 01 00 00 84 30 B4 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 84 30 00 00 00 00 00 FF 0F C9 [09:43:21]RasterBufferAndPrint [09:43:21]line *****ТОВАРНЫЙ ЧЕК***** [09:43:21]line АЗС 108 [09:43:21]line Партнер нефть [09:43:21]line 02508201610067 [09:43:21]line Кассир : Джумагулова Н. [09:43:21]line Счет N : (1)347898 [09:43:21]line 15.04.2024 09:25 [09:43:21]line ПРОДАЖА [09:43:21]line ТРК (МРК, ГНК): 32 [09:43:21]line Вид ГСМ : 2710124130 [09:43:21]line Аи-92-К-5 [09:43:21]line 23.150 x 64.80 [09:43:21]line ИТОГ: 1500.12 [09:43:21]line Тип оплаты: Талоны: ТК ГПНА Online [09:43:21]line 30097465 [09:43:21]line ______________________ [09:43:21]line (подпись) [09:43:21]written 0, free lines is 4095 [09:43:21]Write to MH i2c: 01 00 00 99 30 C9 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 99 30 00 00 00 00 00 F7 0D D4 [09:43:21]RasterBufferAndPrint [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]written 0, free lines is 3577 [09:43:21]MH_Cut [09:43:21]Write to MH i2c: D1 01 00 A0 30 01 A2 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 01 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 01 00 A0 30 00 A1 [09:43:21]Write to MH i2c: 01 00 00 A1 30 D1 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:22]*** Cut start [09:43:22]*** Partial cut [09:43:22]*** CUTSNS_PIN = 1 [09:43:22]*** CUTSNS_PIN = 0 [09:43:22]*** Brake cut motor [09:43:22]Read from MH i2c: 01 [09:43:22]MH_I2C_Read... [09:43:22]*** Stop cut motor [09:43:22]*** Cut end [09:43:22]Read from MH i2c: 01 07 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [09:43:22]process_action print_text done [09:43:22]requested_data is exist [09:43:22]produce_requested_data [09:43:22]requested_item fm.sn is exist - process it [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 11 00 00 [09:43:22]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 17 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [09:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:43:22]wFMCommunicate OK [09:43:22]requested_item fd.num is exist - process it [09:43:22]SAM_PROTO_GetFieldsCounters [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 00 00 [09:43:22]Write to MH i2c: E2 08 00 A3 30 80 13 00 00 00 00 00 00 4F [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 A3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 73 00 00 0E 04 04 00 75 00 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 93 [09:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 73 00 00 0E 04 04 00 75 00 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:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetFieldsCounters done [09:43:22]requested_item shift.num is exist - process it [09:43:22]requested_item shift.opened is exist - process it [09:43:22]req_shift_opened [09:43:22]FM_GetShiftState [09:43:22]SAM_PROTO_GetShiftState [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 01 00 [09:43:22]Write to MH i2c: E2 08 00 A4 30 80 13 01 00 00 00 00 00 51 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 A4 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 45 [09:43:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetShiftState done [09:43:22]FM_GetShiftState done [09:43:22]req_shift_opened done [09:43:22]requested_item shift.open_date is exist - process it [09:43:22]req_shift_open_date [09:43:22]req_shift_open_date done [09:43:22]produce_requested_data done [09:43:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29486,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:43:22]process_action_free print_text [09:43:22]json_value_free [09:43:22]json_value_free done [09:43:22]process_json_proto returns [09:43:22]Send response to host [09:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29486,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:43:22]free response buf [09:43:22]execute_script done [09:43:22]execute_script returns [09:43:22]free content buf [09:43:22]Sock 9.Close socket [09:43:22]Sock 9.Thread stoped [09:44:41]accept exits with 8 [09:44:41]New connection [09:44:41]New thread 3067112804 created [09:44:41]Thread 3066969444 joined [09:44:41]Waiting for new connection... [09:44:41] Sock 8.Parse request [09:44:41]Sock 8.Check first char [09:44:41]Sock 8.First char is OK [09:44:41]request: POST /json_proto HTTP/1.0 [09:44:41]Method: POST [09:44:41]URL: /json_proto [09:44:41]Method is POST - this is cgi request [09:44:41]url: /json_proto [09:44:41]query_string will be loaded in cgi processing [09:44:41]execute_cgi json_proto POST (null) [09:44:41]execute_cgi path=json_proto method=POST [09:44:41]POST find Content-Length [09:44:41]Host: 172.17.33.3:8080 [09:44:41]Content-Length: 682 [09:44:41]Content-Type: application/json [09:44:41] [09:44:41]POST finish read [09:44:41]Found Content-Length = 682 [09:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:41]execute_script... [09:44: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)347899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:41]POST & json_proto [09:44:41]process_json_proto [09:44:41]json parsed OK: [09:44:41]protocol is kg_v1.0 [09:44:41]action value=close_receipt [09:44:41]process_action close_receipt [09:44:41]cmd_close_receipt [09:44:41]MH_GetDate [09:44:41]Write to MH i2c: F0 00 00 A5 30 C4 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 09 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: F0 09 00 A5 30 00 0D F7 1C 66 23 5B 8F 65 C5 [09:44:41]GetLastDocTimeStamp 1713174177 [09:44:41]current date 1713174285 [09:44:41]FM_GetShiftState [09:44:41]SAM_PROTO_GetShiftState [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 13 01 00 [09:44:41]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 47 [09:44:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_GetShiftState done [09:44:41]FM_GetShiftState done [09:44:41]opened in 1713140468 [09:44:41]opened+sec_in_day 1713226868 [09:44:41]quantity*price = 120009 [09:44:41]sum+1 = 120011 [09:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 81 15.04.2024 09:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29487 ФПД: 14114017529049 1/tax-web-control/client/api/v1/ticket?date=20240415T094445&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29487&fm=14114017529049&tin=02508201610067®Number=0000138879044617&sum=120000 [09:44:42]StoreToDocumentArchive [09:44:42]shift 117 fd 29487 [09:44:42]save to /storage/0117/doc_00029487 [09:44:42]save last doc name /storage/0117/doc_00029487 to /storage/kkm_last_doc_name [09:44:42]save OK [09:44:42]Clear old archive folders... [09:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:42]tlvbuf is 002A6BC0 [09:44:42]SAM_PROTO_ClearQueue [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 09 00 00 [09:44:42]Write to MH i2c: E2 08 00 B3 30 80 09 00 00 00 00 00 00 55 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 B3 30 00 90 00 57 [09:44:42]RAPDU: 90 00 [09:44:42]wFMCommunicate OK [09:44:42]SAM_PROTO_ClearQueue done [09:44:42]KKMCreateOFDPacket [09:44:42]OFDProtocolAddRootSTLVToBuf [09:44:42]FM_MakeSignedData [09:44:42]FM_MakeSignedData [09:44:42]SAM_PROTO_SignData [09:44:42]wFMCommunicate request_size=4 [09:44:42]MH_SAM_APDU [09:44:42]CAPDU: 80 0D 01 02 [09:44:42]Write to MH i2c: E2 08 00 B4 30 80 0D 01 02 00 00 00 00 5D [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:42]Read from MH i2c: E2 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 [09:44:42]MH_I2C_Read... [09:44:42]Read from MH i2c: E2 03 00 B4 30 00 90 00 58 [09:44:42]RAPDU: 90 00 [09:44:42]wFMCommunicate OK [09:44:42]wFMCommunicate request_size=255 [09:44:42]MH_SAM_APDU [09:44: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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 0D F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 73 00 00 35 04 06 00 0C [09:44:42]Write to MH i2c: E2 02 01 B5 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 0D F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 73 00 00 35 04 06 00 0C 00 00 73 [09:44:42]Write i2c OK [09:44:42]MH_I2C_Read... [09:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [09:44:43]RAPDU: 90 00 [09:44:43]wFMCommunicate OK [09:44:43]wFMCommunicate request_size=10 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 0D 02 02 05 D6 2D 00 4C D9 [09:44:43]Write to MH i2c: E2 0D 00 B6 30 80 0D 02 02 05 00 D6 2D 00 4C D9 00 00 92 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [09:44:43]RAPDU: 90 00 [09:44:43]wFMCommunicate OK [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 0D 03 02 [09:44:43]Write to MH i2c: E2 08 00 B7 30 80 0D 03 02 00 00 00 00 62 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0B 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 0B 00 B7 30 00 52 35 EC C4 57 7E CD 02 90 00 3E [09:44:43]RAPDU: 52 35 EC C4 57 7E CD 02 90 00 [09:44:43]wFMCommunicate OK [09:44:43]SAM_PROTO_SignData done [09:44:43]FM_MakeSignedData done [09:44:43]CreateOFDProtocolMessage [09:44:43]wFMCommunicate request_size=4 [09:44:43]MH_SAM_APDU [09:44:43]CAPDU: 80 11 00 00 [09:44:43]Write to MH i2c: E2 08 00 B8 30 80 11 00 00 00 00 00 00 62 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:43]Read from MH i2c: E2 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: E2 17 00 B8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [09:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:44:43]wFMCommunicate OK [09:44:43]CreateOFDProtocolMessage done [09:44:43]OFDSenderStorePacket 29487 [09:44:43]StoreOFDPacket docnum=29487 [09:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 B0 07 01 95 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 0D F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 73 00 00 35 04 06 00 0C D6 2D 00 4C D9 52 35 EC C4 57 7E CD 02 [09:44:43]CheckFolder [09:44:43]dirname=/storage/ofd_packets [09:44:43]CheckFolder done [09:44:43]ProducePacketName [09:44:43]name=ofd_packets/00029487 [09:44:43]NVStorageSaveData ofd_packets/00029487 [09:44:43]File name is /storage/ofd_packets/00029487 [09:44:43]Write 301 bytes [09:44:43]NVStorageSaveData done [09:44:43]OFDSenderStorePacket done [09:44:43]KKMCreateOFDPacket done [09:44:43]NVStorageSaveData kkm_last_timestamp [09:44:43]File name is /storage/kkm_last_timestamp [09:44:43]Write 4 bytes [09:44:43]NVStorageSaveData done [09:44:43]ExternCall_PrintAddStr [09:44:43]wPrintStart [09:44:43]Write to MH i2c: 01 00 00 B9 30 E9 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 FF 0F FE [09:44:43]RasterBufferAndPrint [09:44:43]line Счет N : (1)347899 [09:44:43]line ИНН: 02508201610067 [09:44:43]line Контрольно-Кассовый Чек [09:44:43]line ПРОДАЖА [09:44:43]line ТРК (МРК, ГНК) : 13 [09:44:43]line Товар: 2710124130 [09:44:43]line Аи-92-К-5 [09:44:43]line 18.520 * 64.80 [09:44:43]line = 1200.10 [09:44:43]line НДС 12% НСП 1% [09:44:43]line > о реализуемом товаре [09:44:43]line ОКРУГЛЕНИЕ: -0.10 [09:44:43]line ИТОГО: 1200.00 [09:44:43]line Внесено: 1200.00 [09:44:43]line СДАЧА: 0.00 [09:44:43]line НСП 1% : 10.62 [09:44:43]line НДС 12% : 127.44 [09:44:43]line Наличными: 1200.00 [09:44:43]line Безнал.: 0.00 [09:44:43]line Место: АЗС № 108 "Партнер Нефть" [09:44:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:44:43]line СНО: Общий режим [09:44:43]line Чек 81 15.04.2024 09:44 [09:44:43]line Смена: 117 ФФД: 1.0 [09:44:43]line ЗНМ: 0300000027 [09:44:43]line РНМ: 0000138879044617 [09:44:43]line Версия ККМ: 001 [09:44:43]line ФМ: 0000000000963154 [09:44:43]line ФД: 29487 [09:44:43]line ФПД: 14114017529049 [09:44:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T094445&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29487&fm=14114017529049&tin=02508201610067®Number=0000138879044617&sum=120000 [09:44:43]written 0, free lines is 4095 [09:44:43]Write to MH i2c: 01 00 00 E3 30 13 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 E3 30 00 00 00 00 00 BC 0C E2 [09:44:43]RasterBufferAndPrint [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]written 0, free lines is 3265 [09:44:43]MH_Cut [09:44:43]Write to MH i2c: D1 01 00 EA 30 01 EC [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 01 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 01 00 EA 30 00 EB [09:44:43]Write to MH i2c: 01 00 00 EB 30 1B [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:44]*** Cut start [09:44:44]*** Partial cut [09:44:44]*** CUTSNS_PIN = 1 [09:44:44]*** CUTSNS_PIN = 0 [09:44:45]*** Brake cut motor [09:44:45]Read from MH i2c: 01 [09:44:45]MH_I2C_Read... [09:44:45]*** Stop cut motor [09:44:45]*** Cut end [09:44:45]Read from MH i2c: 01 07 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: 01 07 00 EB 30 00 00 00 00 00 FF 0F 30 [09:44:45]process_action close_receipt done [09:44:45]requested_data is exist [09:44:45]produce_requested_data [09:44:45]requested_item fm.sn is exist - process it [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 11 00 00 [09:44:45]Write to MH i2c: E2 08 00 EC 30 80 11 00 00 00 00 00 00 96 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 17 00 EC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [09:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:44:45]wFMCommunicate OK [09:44:45]requested_item fd.num is exist - process it [09:44:45]SAM_PROTO_GetFieldsCounters [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 13 00 00 [09:44:45]Write to MH i2c: E2 08 00 ED 30 80 13 00 00 00 00 00 00 99 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 62 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 62 00 ED 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 73 00 00 0E 04 04 00 75 00 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 E1 [09:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 73 00 00 0E 04 04 00 75 00 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:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_GetFieldsCounters done [09:44:45]requested_item shift.num is exist - process it [09:44:45]requested_item shift.opened is exist - process it [09:44:45]req_shift_opened [09:44:45]FM_GetShiftState [09:44:45]SAM_PROTO_GetShiftState [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 13 01 00 [09:44:45]Write to MH i2c: E2 08 00 EE 30 80 13 01 00 00 00 00 00 9B [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 EE 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8F [09:44:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_GetShiftState done [09:44:45]FM_GetShiftState done [09:44:45]req_shift_opened done [09:44:45]requested_item shift.open_date is exist - process it [09:44:45]req_shift_open_date [09:44:45]req_shift_open_date done [09:44:45]produce_requested_data done [09:44:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29487,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:44:45]process_action_free close_receipt [09:44:45]json_value_free [09:44:45]json_value_free done [09:44:45]process_json_proto returns [09:44:45]Send response to host [09:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29487,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:44:45]free response buf [09:44:45]execute_script done [09:44:45]execute_script returns [09:44:45]free content buf [09:44:45]Sock 8.Close socket [09:44:45]Sock 8.Thread stoped [09:45:05]ConnectInit Can't connect to host [09:45:05]CommunicateWithHost connect error [09:45:05]CommunicateWithHost err = -1 [09:45:05]OFD Sender: Server communicate error [09:45:05]OFD Sender: Processing packet 29486 [packets to send 9, broken 7] [09:45:05]ProducePacketName [09:45:05]name=ofd_packets/00029486 [09:45:05]OFD Sender: To server: pG, [09:45:05]CommunicateWithHost lk.salyk.kg:30040 [09:45:05]ConnectInit lk.salyk.kg [09:45:05]Connected sock=8 [09:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 75 07 01 2B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 A1 F6 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 73 00 00 35 04 06 00 AF D5 8C 2B 80 7E 4E B7 0A 2E 76 89 CC 2D [09:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CB E0 47 00 06 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 39 36 33 31 35 34 10 04 04 00 2E 73 00 00 F4 03 04 00 C5 A1 1C 66 B6 04 01 00 00 CC B1 6A 85 67 C2 BA 8C [09:45:06]CommunicateWithHost err = 0 [09:45:06]CheckOFDResponse [09:45:06]1017 (14) - 77093643461234 [09:45:06]1041 (16) - 0000000000963154 [09:45:06]1040 (4) - 29486 [09:45:06]1012 (4) - 15.04.2024 03:40 [09:45:06]1206 (1) - 0 [09:45:06]OFD Sender: Remove packet 29486 [09:45:06]ProducePacketName [09:45:06]name=ofd_packets/00029486 [09:45:06]NVStorageDeleteData [09:45:06]OFD Sender: Processing packet 29487 [packets to send 8, broken 7] [09:45:06]ProducePacketName [09:45:06]name=ofd_packets/00029487 [09:45:06]OFD Sender: To server: pG, [09:45:06]CommunicateWithHost lk.salyk.kg:30040 [09:45:06]ConnectInit lk.salyk.kg [09:45:06]Connected sock=8 [09:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 B0 07 01 95 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 0D F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 73 00 00 35 04 06 00 0C D6 2D 00 4C D9 52 35 EC C4 57 7E CD 02 [09:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF 3D 47 00 99 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 73 00 00 F4 03 04 00 C5 A1 1C 66 B6 04 01 00 00 08 D4 16 3A 5B B2 E1 88 [09:45:06]CommunicateWithHost err = 0 [09:45:06]CheckOFDResponse [09:45:06]1017 (14) - 77093643461234 [09:45:06]1041 (16) - 0000000000963154 [09:45:06]1040 (4) - 29487 [09:45:06]1012 (4) - 15.04.2024 03:40 [09:45:06]1206 (1) - 0 [09:45:06]OFD Sender: Remove packet 29487 [09:45:06]ProducePacketName [09:45:06]name=ofd_packets/00029487 [09:45:06]NVStorageDeleteData [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:39]accept exits with 9 [09:46:39]New connection [09:46:39]New thread 3066969444 created [09:46:39]Thread 3067112804 joined [09:46:39]Waiting for new connection... [09:46:39] Sock 9.Parse request [09:46:39]Sock 9.Check first char [09:46:39]Sock 9.First char is OK [09:46:39]request: POST /json_proto HTTP/1.0 [09:46:39]Method: POST [09:46:39]URL: /json_proto [09:46:39]Method is POST - this is cgi request [09:46:39]url: /json_proto [09:46:39]query_string will be loaded in cgi processing [09:46:39]execute_cgi json_proto POST (null) [09:46:39]execute_cgi path=json_proto method=POST [09:46:39]POST find Content-Length [09:46:39]Host: 172.17.33.3:8080 [09:46:39]Content-Length: 677 [09:46:39]Content-Type: application/json [09:46:39] [09:46:39]POST finish read [09:46:39]Found Content-Length = 677 [09:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:39]execute_script... [09:46: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)347901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:39]POST & json_proto [09:46:39]process_json_proto [09:46:39]json parsed OK: [09:46:39]protocol is kg_v1.0 [09:46:39]action value=close_receipt [09:46:39]process_action close_receipt [09:46:39]cmd_close_receipt [09:46:39]MH_GetDate [09:46:39]Write to MH i2c: F0 00 00 EF 30 0E [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 09 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: F0 09 00 EF 30 00 83 F7 1C 66 23 5B 8F 65 85 [09:46:39]GetLastDocTimeStamp 1713174285 [09:46:39]current date 1713174403 [09:46:39]FM_GetShiftState [09:46:39]SAM_PROTO_GetShiftState [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 13 01 00 [09:46:39]Write to MH i2c: E2 08 00 F0 30 80 13 01 00 00 00 00 00 9D [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 F0 30 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [09:46:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_GetShiftState done [09:46:39]FM_GetShiftState done [09:46:39]opened in 1713140468 [09:46:39]opened+sec_in_day 1713226868 [09:46:39]quantity*price = 50025 [09:46:39]sum+1 = 50027 [09:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 82 15.04.2024 09:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29488 ФПД: 184934569105923 1/tax-web-control/client/api/v1/ticket?date=20240415T094643&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29488&fm=184934569105923&tin=02508201610067®Number=0000138879044617&sum=50000 [09:46:40]StoreToDocumentArchive [09:46:40]shift 117 fd 29488 [09:46:40]save to /storage/0117/doc_00029488 [09:46:40]save last doc name /storage/0117/doc_00029488 to /storage/kkm_last_doc_name [09:46:40]save OK [09:46:40]Clear old archive folders... [09:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:40]tlvbuf is B6F01D60 [09:46:40]SAM_PROTO_ClearQueue [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 09 00 00 [09:46:40]Write to MH i2c: E2 08 00 FD 30 80 09 00 00 00 00 00 00 9F [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 FD 30 00 90 00 A1 [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_ClearQueue done [09:46:40]KKMCreateOFDPacket [09:46:40]OFDProtocolAddRootSTLVToBuf [09:46:40]FM_MakeSignedData [09:46:40]FM_MakeSignedData [09:46:40]SAM_PROTO_SignData [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 01 02 [09:46:40]Write to MH i2c: E2 08 00 FE 30 80 0D 01 02 00 00 00 00 A7 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 FE 30 00 90 00 A2 [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=255 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 73 00 00 35 04 06 00 A8 [09:46:40]Write to MH i2c: E2 02 01 FF 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 73 00 00 35 04 06 00 A8 00 00 6E [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 FF 30 00 90 00 A3 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=10 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 02 02 05 32 6F 4C 5A 03 [09:46:41]Write to MH i2c: E2 0D 00 00 31 80 0D 02 02 05 00 32 6F 4C 5A 03 00 00 FF [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [09:46:41]RAPDU: 90 00 [09:46:41]wFMCommunicate OK [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 0D 03 02 [09:46:41]Write to MH i2c: E2 08 00 01 31 80 0D 03 02 00 00 00 00 AD [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0B 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 0B 00 01 31 00 34 D5 55 FC 4A 67 30 1F 90 00 08 [09:46:41]RAPDU: 34 D5 55 FC 4A 67 30 1F 90 00 [09:46:41]wFMCommunicate OK [09:46:41]SAM_PROTO_SignData done [09:46:41]FM_MakeSignedData done [09:46:41]CreateOFDProtocolMessage [09:46:41]wFMCommunicate request_size=4 [09:46:41]MH_SAM_APDU [09:46:41]CAPDU: 80 11 00 00 [09:46:41]Write to MH i2c: E2 08 00 02 31 80 11 00 00 00 00 00 00 AD [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:41]Read from MH i2c: E2 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: E2 17 00 02 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [09:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:46:41]wFMCommunicate OK [09:46:41]CreateOFDProtocolMessage done [09:46:41]OFDSenderStorePacket 29488 [09:46:41]StoreOFDPacket docnum=29488 [09:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AD 67 07 01 7B 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 73 00 00 35 04 06 00 A8 32 6F 4C 5A 03 34 D5 55 FC 4A 67 30 1F [09:46:41]CheckFolder [09:46:41]dirname=/storage/ofd_packets [09:46:41]CheckFolder done [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00029488 [09:46:41]NVStorageSaveData ofd_packets/00029488 [09:46:41]File name is /storage/ofd_packets/00029488 [09:46:41]Write 301 bytes [09:46:41]NVStorageSaveData done [09:46:41]OFDSenderStorePacket done [09:46:41]KKMCreateOFDPacket done [09:46:41]NVStorageSaveData kkm_last_timestamp [09:46:41]File name is /storage/kkm_last_timestamp [09:46:41]OFD Sender: Processing packet 29488 [packets to send 8, broken 7] [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00029488 [09:46:41]OFD Sender: To server: pG, [09:46:41]CommunicateWithHost lk.salyk.kg:30040 [09:46:41]ConnectInit lk.salyk.kg [09:46:41]Write 4 bytes [09:46:41]NVStorageSaveData done [09:46:41]ExternCall_PrintAddStr [09:46:41]wPrintStart [09:46:41]Write to MH i2c: 01 00 00 03 31 34 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 03 31 00 00 00 00 00 FF 0F 49 [09:46:41]RasterBufferAndPrint [09:46:41]line Счет N : (1)347901 [09:46:41]line ИНН: 02508201610067 [09:46:41]line Контрольно-Кассовый Чек [09:46:41]line ПРОДАЖА [09:46:41]line ТРК (МРК, ГНК) : 32 [09:46:41]line Товар: 2710124130 [09:46:41]line Аи-92-К-5 [09:46:41]line 7.720 * 64.80 [09:46:41]line = 500.26 [09:46:41]line НДС 12% НСП 1% [09:46:41]line > о реализуемом товаре [09:46:41]line ОКРУГЛЕНИЕ: -0.26 [09:46:41]line ИТОГО: 500.00 [09:46:41]line Внесено: 500.00 [09:46:41]line СДАЧА: 0.00 [09:46:41]line НСП 1% : 4.43 [09:46:41]line НДС 12% : 53.12 [09:46:41]line Наличными: 500.00 [09:46:41]line Безнал.: 0.00 [09:46:41]line Место: АЗС № 108 "Партнер Нефть" [09:46:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:46:41]line СНО: Общий режим [09:46:41]line Чек 82 15.04.2024 09:46 [09:46:41]line Смена: 117 ФФД: 1.0 [09:46:41]line ЗНМ: 0300000027 [09:46:41]line РНМ: 0000138879044617 [09:46:41]line Версия ККМ: 001 [09:46:41]line ФМ: 0000000000963154 [09:46:41]line ФД: 29488 [09:46:41]line ФПД: 184934569105923 [09:46:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T094643&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29488&fm=184934569105923&tin=02508201610067®Number=0000138879044617&sum=50000 [09:46:41]Connected sock=11 [09:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AD 67 07 01 7B 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 F7 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 73 00 00 35 04 06 00 A8 32 6F 4C 5A 03 34 D5 55 FC 4A 67 30 1F [09:46:41]written 0, free lines is 4095 [09:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 3A 47 00 21 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 39 36 33 31 35 34 10 04 04 00 30 73 00 00 F4 03 04 00 24 A2 1C 66 B6 04 01 00 00 AD 5B 64 13 44 0D DB 19 [09:46:41]CommunicateWithHost err = 0 [09:46:41]CheckOFDResponse [09:46:41]1017 (14) - 77093643461234 [09:46:41]1041 (16) - 0000000000963154 [09:46:41]1040 (4) - 29488 [09:46:41]1012 (4) - 15.04.2024 03:42 [09:46:41]1206 (1) - 0 [09:46:41]OFD Sender: Remove packet 29488 [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00029488 [09:46:41]NVStorageDeleteData [09:46:41]Write to MH i2c: 01 00 00 2D 31 5E [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 2D 31 00 00 00 00 00 C6 0C 37 [09:46:41]RasterBufferAndPrint [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]written 0, free lines is 3275 [09:46:41]MH_Cut [09:46:41]Write to MH i2c: D1 01 00 34 31 01 37 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 34 31 00 36 [09:46:41]Write to MH i2c: 01 00 00 35 31 66 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:42]OFD Sender: No OFD packet to send [09:46:42]*** Cut start [09:46:42]*** Partial cut [09:46:42]*** CUTSNS_PIN = 1 [09:46:42]*** CUTSNS_PIN = 0 [09:46:43]*** Brake cut motor [09:46:43]Read from MH i2c: 01 [09:46:43]MH_I2C_Read... [09:46:43]*** Stop cut motor [09:46:43]*** Cut end [09:46:43]Read from MH i2c: 01 07 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: 01 07 00 35 31 00 00 00 00 00 FF 0F 7B [09:46:43]process_action close_receipt done [09:46:43]requested_data is exist [09:46:43]produce_requested_data [09:46:43]requested_item fm.sn is exist - process it [09:46:43]wFMCommunicate request_size=4 [09:46:43]MH_SAM_APDU [09:46:43]CAPDU: 80 11 00 00 [09:46:43]Write to MH i2c: E2 08 00 36 31 80 11 00 00 00 00 00 00 E1 [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:43]Read from MH i2c: E2 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 17 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 17 00 36 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [09:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:46:43]wFMCommunicate OK [09:46:43]requested_item fd.num is exist - process it [09:46:43]SAM_PROTO_GetFieldsCounters [09:46:43]wFMCommunicate request_size=4 [09:46:43]MH_SAM_APDU [09:46:43]CAPDU: 80 13 00 00 [09:46:43]Write to MH i2c: E2 08 00 37 31 80 13 00 00 00 00 00 00 E4 [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:43]Read from MH i2c: E2 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 62 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 62 00 37 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 73 00 00 0E 04 04 00 75 00 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 30 [09:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 73 00 00 0E 04 04 00 75 00 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:46:43]wFMCommunicate OK [09:46:43]SAM_PROTO_GetFieldsCounters done [09:46:43]requested_item shift.num is exist - process it [09:46:43]requested_item shift.opened is exist - process it [09:46:43]req_shift_opened [09:46:43]FM_GetShiftState [09:46:43]SAM_PROTO_GetShiftState [09:46:43]wFMCommunicate request_size=4 [09:46:43]MH_SAM_APDU [09:46:43]CAPDU: 80 13 01 00 [09:46:43]Write to MH i2c: E2 08 00 38 31 80 13 01 00 00 00 00 00 E6 [09:46:43]Write i2c OK [09:46:43]MH_I2C_Read... [09:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:43]Read from MH i2c: E2 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 0E 00 [09:46:43]MH_I2C_Read... [09:46:43]Read from MH i2c: E2 0E 00 38 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DA [09:46:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:46:43]wFMCommunicate OK [09:46:43]SAM_PROTO_GetShiftState done [09:46:43]FM_GetShiftState done [09:46:43]req_shift_opened done [09:46:43]requested_item shift.open_date is exist - process it [09:46:43]req_shift_open_date [09:46:43]req_shift_open_date done [09:46:43]produce_requested_data done [09:46:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29488,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:46:43]process_action_free close_receipt [09:46:43]json_value_free [09:46:43]json_value_free done [09:46:43]process_json_proto returns [09:46:43]Send response to host [09:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29488,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:46:43]free response buf [09:46:43]execute_script done [09:46:43]execute_script returns [09:46:43]free content buf [09:46:43]Sock 9.Close socket [09:46:43]Sock 9.Thread stoped [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:30]accept exits with 8 [09:48:30]New connection [09:48:30]New thread 3067112804 created [09:48:30]Thread 3066969444 joined [09:48:30]Waiting for new connection... [09:48:30] Sock 8.Parse request [09:48:30]Sock 8.Check first char [09:48:30]Sock 8.First char is OK [09:48:30]request: POST /json_proto HTTP/1.0 [09:48:30]Method: POST [09:48:30]URL: /json_proto [09:48:30]Method is POST - this is cgi request [09:48:30]url: /json_proto [09:48:30]query_string will be loaded in cgi processing [09:48:30]execute_cgi json_proto POST (null) [09:48:30]execute_cgi path=json_proto method=POST [09:48:30]POST find Content-Length [09:48:30]Host: 172.17.33.3:8080 [09:48:30]Content-Length: 1175 [09:48:30]Content-Type: application/json [09:48:30] [09:48:30]POST finish read [09:48:30]Found Content-Length = 1175 [09:48: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347900\u000A15.04.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026613\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:30]execute_script... [09:48: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347900\u000A15.04.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026613\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:30]POST & json_proto [09:48:30]process_json_proto [09:48:30]json parsed OK: [09:48:30]protocol is kg_v1.0 [09:48:30]action value=print_text [09:48:30]process_action print_text [09:48:30]cmd_print_text [09:48:30]ExternCall_PrintAddStr [09:48:30]wPrintStart [09:48:30]Write to MH i2c: 01 00 00 39 31 6A [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 39 31 00 00 00 00 00 FF 0F 7F [09:48:30]RasterBufferAndPrint [09:48:30]line *****ТОВАРНЫЙ ЧЕК***** [09:48:30]line АЗС 108 [09:48:30]line Партнер нефть [09:48:30]line 02508201610067 [09:48:30]line Кассир : Джумагулова Н. [09:48:30]line Счет N : (1)347900 [09:48:30]line 15.04.2024 09:30 [09:48:30]line ПРОДАЖА [09:48:30]line ТРК (МРК, ГНК): 42 [09:48:30]line Вид ГСМ : 2710124130 [09:48:30]line Аи-92-К-5 [09:48:30]line 30.000 x 64.80 [09:48:30]line ИТОГ: 1944.00 [09:48:30]line Тип оплаты: Талоны: ТК ГПНА Online [09:48:30]line 30026613 [09:48:30]line ______________________ [09:48:30]line (подпись) [09:48:30]written 0, free lines is 4095 [09:48:30]Write to MH i2c: 01 00 00 4E 31 7F [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: 01 07 00 4E 31 00 00 00 00 00 F7 0D 8A [09:48:30]RasterBufferAndPrint [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]line [09:48:30]written 0, free lines is 3576 [09:48:30]MH_Cut [09:48:30]Write to MH i2c: D1 01 00 55 31 01 58 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: D1 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: D1 01 00 [09:48:30]MH_I2C_Read... [09:48:30]Read from MH i2c: D1 01 00 55 31 00 57 [09:48:30]Write to MH i2c: 01 00 00 56 31 87 [09:48:30]Write i2c OK [09:48:30]MH_I2C_Read... [09:48:31]*** Cut start [09:48:31]*** Partial cut [09:48:31]*** CUTSNS_PIN = 1 [09:48:31]*** CUTSNS_PIN = 0 [09:48:31]*** Brake cut motor [09:48:32]Read from MH i2c: 01 [09:48:32]MH_I2C_Read... [09:48:32]*** Stop cut motor [09:48:32]*** Cut end [09:48:32]Read from MH i2c: 01 07 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 56 31 00 00 00 00 00 FF 0F 9C [09:48:32]process_action print_text done [09:48:32]requested_data is exist [09:48:32]produce_requested_data [09:48:32]requested_item fm.sn is exist - process it [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 11 00 00 [09:48:32]Write to MH i2c: E2 08 00 57 31 80 11 00 00 00 00 00 00 02 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 17 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 17 00 57 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [09:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:48:32]wFMCommunicate OK [09:48:32]requested_item fd.num is exist - process it [09:48:32]SAM_PROTO_GetFieldsCounters [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 13 00 00 [09:48:32]Write to MH i2c: E2 08 00 58 31 80 13 00 00 00 00 00 00 05 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]OFD Sender: No OFD packet to send [09:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 62 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 62 00 58 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 73 00 00 0E 04 04 00 75 00 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 51 [09:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 73 00 00 0E 04 04 00 75 00 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:48:32]wFMCommunicate OK [09:48:32]SAM_PROTO_GetFieldsCounters done [09:48:32]requested_item shift.num is exist - process it [09:48:32]requested_item shift.opened is exist - process it [09:48:32]req_shift_opened [09:48:32]FM_GetShiftState [09:48:32]SAM_PROTO_GetShiftState [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 13 01 00 [09:48:32]Write to MH i2c: E2 08 00 59 31 80 13 01 00 00 00 00 00 07 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 59 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FB [09:48:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:48:32]wFMCommunicate OK [09:48:32]SAM_PROTO_GetShiftState done [09:48:32]FM_GetShiftState done [09:48:32]req_shift_opened done [09:48:32]requested_item shift.open_date is exist - process it [09:48:32]req_shift_open_date [09:48:32]req_shift_open_date done [09:48:32]produce_requested_data done [09:48:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29488,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:48:32]process_action_free print_text [09:48:32]json_value_free [09:48:32]json_value_free done [09:48:32]process_json_proto returns [09:48:32]Send response to host [09:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29488,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:48:32]free response buf [09:48:32]execute_script done [09:48:32]execute_script returns [09:48:32]free content buf [09:48:32]Sock 8.Close socket [09:48:32]Sock 8.Thread stoped [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:09]accept exits with 9 [09:50:09]New connection [09:50:09]New thread 3066969444 created [09:50:09]Thread 3067112804 joined [09:50:09]Waiting for new connection... [09:50:09] Sock 9.Parse request [09:50:09]Sock 9.Check first char [09:50:09]Sock 9.First char is OK [09:50:09]request: POST /json_proto HTTP/1.0 [09:50:09]Method: POST [09:50:09]URL: /json_proto [09:50:09]Method is POST - this is cgi request [09:50:09]url: /json_proto [09:50:09]query_string will be loaded in cgi processing [09:50:09]execute_cgi json_proto POST (null) [09:50:09]execute_cgi path=json_proto method=POST [09:50:09]POST find Content-Length [09:50:09]Host: 172.17.33.3:8080 [09:50:09]Content-Length: 677 [09:50:09]Content-Type: application/json [09:50:09] [09:50:09]POST finish read [09:50:09]Found Content-Length = 677 [09:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:09]execute_script... [09:50: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)347903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:09]POST & json_proto [09:50:09]process_json_proto [09:50:09]json parsed OK: [09:50:09]protocol is kg_v1.0 [09:50:09]action value=close_receipt [09:50:09]process_action close_receipt [09:50:09]cmd_close_receipt [09:50:09]MH_GetDate [09:50:09]Write to MH i2c: F0 00 00 5A 31 7A [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 09 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 09 00 5A 31 00 55 F8 1C 66 23 5B 8F 65 C4 [09:50:09]GetLastDocTimeStamp 1713174403 [09:50:09]current date 1713174613 [09:50:09]FM_GetShiftState [09:50:09]SAM_PROTO_GetShiftState [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 13 01 00 [09:50:09]Write to MH i2c: E2 08 00 5B 31 80 13 01 00 00 00 00 00 09 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0E 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0E 00 5B 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FD [09:50:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:50:09]wFMCommunicate OK [09:50:09]SAM_PROTO_GetShiftState done [09:50:09]FM_GetShiftState done [09:50:09]opened in 1713140468 [09:50:09]opened+sec_in_day 1713226868 [09:50:09]quantity*price = 50025 [09:50:09]sum+1 = 50027 [09:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 83 15.04.2024 09:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29489 ФПД: 244544708172815 1/tax-web-control/client/api/v1/ticket?date=20240415T095013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29489&fm=244544708172815&tin=02508201610067®Number=0000138879044617&sum=50000 [09:50:10]StoreToDocumentArchive [09:50:10]shift 117 fd 29489 [09:50:10]save to /storage/0117/doc_00029489 [09:50:10]save last doc name /storage/0117/doc_00029489 to /storage/kkm_last_doc_name [09:50:10]save OK [09:50:10]Clear old archive folders... [09:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:10]tlvbuf is B6DCF770 [09:50:10]SAM_PROTO_ClearQueue [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 09 00 00 [09:50:10]Write to MH i2c: E2 08 00 68 31 80 09 00 00 00 00 00 00 0B [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 68 31 00 90 00 0D [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]SAM_PROTO_ClearQueue done [09:50:10]KKMCreateOFDPacket [09:50:10]OFDProtocolAddRootSTLVToBuf [09:50:10]FM_MakeSignedData [09:50:10]FM_MakeSignedData [09:50:10]SAM_PROTO_SignData [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 01 02 [09:50:10]Write to MH i2c: E2 08 00 69 31 80 0D 01 02 00 00 00 00 13 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 69 31 00 90 00 0E [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]wFMCommunicate request_size=255 [09:50:10]MH_SAM_APDU [09:50: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 55 F8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 73 00 00 35 04 06 00 DE [09:50:10]Write to MH i2c: E2 02 01 6A 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 55 F8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 73 00 00 35 04 06 00 DE 00 00 E5 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:11]Read from MH i2c: E2 03 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 6A 31 00 90 00 0F [09:50:11]RAPDU: 90 00 [09:50:11]wFMCommunicate OK [09:50:11]wFMCommunicate request_size=10 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 0D 02 02 05 69 80 76 5C 0F [09:50:11]Write to MH i2c: E2 0D 00 6B 31 80 0D 02 02 05 00 69 80 76 5C 0F 00 00 EA [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 6B 31 00 90 00 10 [09:50:11]RAPDU: 90 00 [09:50:11]wFMCommunicate OK [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 0D 03 02 [09:50:11]Write to MH i2c: E2 08 00 6C 31 80 0D 03 02 00 00 00 00 18 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0B 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0B 00 6C 31 00 1E DD 59 8F 8D F6 DB 89 90 00 E3 [09:50:11]RAPDU: 1E DD 59 8F 8D F6 DB 89 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_SignData done [09:50:11]FM_MakeSignedData done [09:50:11]CreateOFDProtocolMessage [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 6D 31 80 11 00 00 00 00 00 00 18 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 6D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [09:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:50:11]wFMCommunicate OK [09:50:11]CreateOFDProtocolMessage done [09:50:11]OFDSenderStorePacket 29489 [09:50:11]StoreOFDPacket docnum=29489 [09:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 71 07 01 36 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 55 F8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 73 00 00 35 04 06 00 DE 69 80 76 5C 0F 1E DD 59 8F 8D F6 DB 89 [09:50:11]CheckFolder [09:50:11]dirname=/storage/ofd_packets [09:50:11]CheckFolder done [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00029489 [09:50:11]NVStorageSaveData ofd_packets/00029489 [09:50:11]File name is /storage/ofd_packets/00029489 [09:50:11]Write 301 bytes [09:50:11]NVStorageSaveData done [09:50:11]OFDSenderStorePacket done [09:50:11]KKMCreateOFDPacket done [09:50:11]NVStorageSaveData kkm_last_timestamp [09:50:11]File name is /storage/kkm_last_timestamp [09:50:11]Write 4 bytes [09:50:11]NVStorageSaveData done [09:50:11]ExternCall_PrintAddStr [09:50:11]wPrintStart [09:50:11]Write to MH i2c: 01 00 00 6E 31 9F [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 6E 31 00 00 00 00 00 FF 0F B4 [09:50:11]RasterBufferAndPrint [09:50:11]line Счет N : (1)347903 [09:50:11]line ИНН: 02508201610067 [09:50:11]line Контрольно-Кассовый Чек [09:50:11]line ПРОДАЖА [09:50:11]line ТРК (МРК, ГНК) : 32 [09:50:11]line Товар: 2710124130 [09:50:11]line Аи-92-К-5 [09:50:11]line 7.720 * 64.80 [09:50:11]line = 500.26 [09:50:11]line НДС 12% НСП 1% [09:50:11]line > о реализуемом товаре [09:50:11]line ОКРУГЛЕНИЕ: -0.26 [09:50:11]line ИТОГО: 500.00 [09:50:11]line Внесено: 500.00 [09:50:11]line СДАЧА: 0.00 [09:50:11]line НСП 1% : 4.43 [09:50:11]line НДС 12% : 53.12 [09:50:11]line Наличными: 500.00 [09:50:11]line Безнал.: 0.00 [09:50:11]line Место: АЗС № 108 "Партнер Нефть" [09:50:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:50:11]line СНО: Общий режим [09:50:11]line Чек 83 15.04.2024 09:50 [09:50:11]line Смена: 117 ФФД: 1.0 [09:50:11]line ЗНМ: 0300000027 [09:50:11]line РНМ: 0000138879044617 [09:50:11]line Версия ККМ: 001 [09:50:11]line ФМ: 0000000000963154 [09:50:11]line ФД: 29489 [09:50:11]line ФПД: 244544708172815 [09:50:11]line 1/tax-web-control/client/api/v1/ticket?date=20240415T095013&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29489&fm=244544708172815&tin=02508201610067®Number=0000138879044617&sum=50000 [09:50:11]OFD Sender: Processing packet 29489 [packets to send 8, broken 7] [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00029489 [09:50:11]OFD Sender: To server: pG, [09:50:11]CommunicateWithHost lk.salyk.kg:30040 [09:50:11]ConnectInit lk.salyk.kg [09:50:11]written 0, free lines is 4095 [09:50:11]Connected sock=10 [09:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 71 07 01 36 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 55 F8 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 73 00 00 35 04 06 00 DE 69 80 76 5C 0F 1E DD 59 8F 8D F6 DB 89 [09:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2F 49 47 00 17 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 39 36 33 31 35 34 10 04 04 00 31 73 00 00 F4 03 04 00 F6 A2 1C 66 B6 04 01 00 00 BF 9E 66 37 44 C1 E6 97 [09:50:11]CommunicateWithHost err = 0 [09:50:11]CheckOFDResponse [09:50:11]1017 (14) - 77093643461234 [09:50:11]1041 (16) - 0000000000963154 [09:50:11]1040 (4) - 29489 [09:50:11]1012 (4) - 15.04.2024 03:45 [09:50:11]1206 (1) - 0 [09:50:11]OFD Sender: Remove packet 29489 [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00029489 [09:50:11]NVStorageDeleteData [09:50:12]Write to MH i2c: 01 00 00 98 31 C9 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 07 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 07 00 98 31 00 00 00 00 00 CA 0C A6 [09:50:12]RasterBufferAndPrint [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]written 0, free lines is 3280 [09:50:12]MH_Cut [09:50:12]Write to MH i2c: D1 01 00 9F 31 01 A2 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 01 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 01 00 9F 31 00 A1 [09:50:12]Write to MH i2c: 01 00 00 A0 31 D1 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]OFD Sender: No OFD packet to send [09:50:12]*** Cut start [09:50:12]*** Partial cut [09:50:12]*** CUTSNS_PIN = 1 [09:50:12]*** CUTSNS_PIN = 0 [09:50:13]*** Brake cut motor [09:50:13]Read from MH i2c: 01 [09:50:13]MH_I2C_Read... [09:50:13]*** Stop cut motor [09:50:13]*** Cut end [09:50:13]Read from MH i2c: 01 07 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 A0 31 00 00 00 00 00 FF 0F E6 [09:50:13]process_action close_receipt done [09:50:13]requested_data is exist [09:50:13]produce_requested_data [09:50:13]requested_item fm.sn is exist - process it [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 11 00 00 [09:50:13]Write to MH i2c: E2 08 00 A1 31 80 11 00 00 00 00 00 00 4C [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 A1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [09:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:50:13]wFMCommunicate OK [09:50:13]requested_item fd.num is exist - process it [09:50:13]SAM_PROTO_GetFieldsCounters [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 13 00 00 [09:50:13]Write to MH i2c: E2 08 00 A2 31 80 13 00 00 00 00 00 00 4F [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 62 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 62 00 A2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 73 00 00 0E 04 04 00 75 00 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 9F [09:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 73 00 00 0E 04 04 00 75 00 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:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_GetFieldsCounters done [09:50:13]requested_item shift.num is exist - process it [09:50:13]requested_item shift.opened is exist - process it [09:50:13]req_shift_opened [09:50:13]FM_GetShiftState [09:50:13]SAM_PROTO_GetShiftState [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 13 01 00 [09:50:13]Write to MH i2c: E2 08 00 A3 31 80 13 01 00 00 00 00 00 51 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 A3 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 45 [09:50:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_GetShiftState done [09:50:13]FM_GetShiftState done [09:50:13]req_shift_opened done [09:50:13]requested_item shift.open_date is exist - process it [09:50:13]req_shift_open_date [09:50:13]req_shift_open_date done [09:50:13]produce_requested_data done [09:50:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29489,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:50:13]process_action_free close_receipt [09:50:13]json_value_free [09:50:13]json_value_free done [09:50:13]process_json_proto returns [09:50:13]Send response to host [09:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29489,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:50:13]free response buf [09:50:13]execute_script done [09:50:13]execute_script returns [09:50:13]free content buf [09:50:13]Sock 9.Close socket [09:50:13]Sock 9.Thread stoped [09:50:17]OFD Sender: No OFD packet to send [09:50:20]accept exits with 8 [09:50:20]New connection [09:50:20]New thread 3067112804 created [09:50:20]Thread 3066969444 joined [09:50:20]Waiting for new connection... [09:50:20] Sock 8.Parse request [09:50:20]Sock 8.Check first char [09:50:20]Sock 8.First char is OK [09:50:20]request: POST /json_proto HTTP/1.0 [09:50:20]Method: POST [09:50:20]URL: /json_proto [09:50:20]Method is POST - this is cgi request [09:50:20]url: /json_proto [09:50:20]query_string will be loaded in cgi processing [09:50:20]execute_cgi json_proto POST (null) [09:50:20]execute_cgi path=json_proto method=POST [09:50:20]POST find Content-Length [09:50:20]Host: 172.17.33.3:8080 [09:50:20]Content-Length: 1219 [09:50:20]Content-Type: application/json [09:50:20] [09:50:20]POST finish read [09:50:20]Found Content-Length = 1219 [09:50:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347902\u000A15.04.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1620.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\u000A3859038;3859037;3485028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:20]execute_script... [09:50:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347902\u000A15.04.2024 09:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1620.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\u000A3859038;3859037;3485028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:20]POST & json_proto [09:50:20]process_json_proto [09:50:20]json parsed OK: [09:50:20]protocol is kg_v1.0 [09:50:20]action value=print_text [09:50:20]process_action print_text [09:50:20]cmd_print_text [09:50:20]ExternCall_PrintAddStr [09:50:20]wPrintStart [09:50:20]Write to MH i2c: 01 00 00 A4 31 D5 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 FF 0F EA [09:50:20]RasterBufferAndPrint [09:50:20]line *****ТОВАРНЫЙ ЧЕК***** [09:50:20]line АЗС 108 [09:50:20]line Партнер нефть [09:50:20]line 02508201610067 [09:50:20]line Кассир : Джумагулова Н. [09:50:20]line Счет N : (1)347902 [09:50:20]line 15.04.2024 09:32 [09:50:20]line ПРОДАЖА [09:50:20]line ТРК (МРК, ГНК): 23 [09:50:20]line Вид ГСМ : 2710124130 [09:50:20]line Аи-92-К-5 [09:50:20]line 25.000 x 64.80 [09:50:20]line ИТОГ: 1620.00 [09:50:20]line Тип оплаты: Талоны: Партнер нефть [09:50:20]line 3859038;3859037;3485028 [09:50:20]line ______________________ [09:50:20]line (подпись) [09:50:20]written 0, free lines is 4095 [09:50:20]Write to MH i2c: 01 00 00 B9 31 EA [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 B9 31 00 00 00 00 00 04 0E 03 [09:50:20]RasterBufferAndPrint [09:50:20]line [09:50:20]line [09:50:20]line [09:50:20]line [09:50:20]line [09:50:20]written 0, free lines is 3591 [09:50:20]MH_Cut [09:50:20]Write to MH i2c: D1 01 00 C0 31 01 C3 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D1 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D1 01 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D1 01 00 C0 31 00 C2 [09:50:20]Write to MH i2c: 01 00 00 C1 31 F2 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** Cut start [09:50:20]*** Partial cut [09:50:20]*** CUTSNS_PIN = 1 [09:50:20]*** CUTSNS_PIN = 0 [09:50:21]*** Brake cut motor [09:50:21]Read from MH i2c: 01 [09:50:21]MH_I2C_Read... [09:50:21]*** Stop cut motor [09:50:21]*** Cut end [09:50:21]Read from MH i2c: 01 07 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: 01 07 00 C1 31 00 00 00 00 00 FF 0F 07 [09:50:21]process_action print_text done [09:50:21]requested_data is exist [09:50:21]produce_requested_data [09:50:21]requested_item fm.sn is exist - process it [09:50:21]wFMCommunicate request_size=4 [09:50:21]MH_SAM_APDU [09:50:21]CAPDU: 80 11 00 00 [09:50:21]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:21]Read from MH i2c: E2 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 17 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 17 00 C2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [09:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:50:21]wFMCommunicate OK [09:50:21]requested_item fd.num is exist - process it [09:50:21]SAM_PROTO_GetFieldsCounters [09:50:21]wFMCommunicate request_size=4 [09:50:21]MH_SAM_APDU [09:50:21]CAPDU: 80 13 00 00 [09:50:21]Write to MH i2c: E2 08 00 C3 31 80 13 00 00 00 00 00 00 70 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:21]Read from MH i2c: E2 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 62 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 62 00 C3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 73 00 00 0E 04 04 00 75 00 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 C0 [09:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 73 00 00 0E 04 04 00 75 00 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:50:21]wFMCommunicate OK [09:50:21]SAM_PROTO_GetFieldsCounters done [09:50:21]requested_item shift.num is exist - process it [09:50:21]requested_item shift.opened is exist - process it [09:50:21]req_shift_opened [09:50:21]FM_GetShiftState [09:50:21]SAM_PROTO_GetShiftState [09:50:21]wFMCommunicate request_size=4 [09:50:21]MH_SAM_APDU [09:50:21]CAPDU: 80 13 01 00 [09:50:21]Write to MH i2c: E2 08 00 C4 31 80 13 01 00 00 00 00 00 72 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:21]Read from MH i2c: E2 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 0E 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 0E 00 C4 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [09:50:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:50:21]wFMCommunicate OK [09:50:21]SAM_PROTO_GetShiftState done [09:50:21]FM_GetShiftState done [09:50:21]req_shift_opened done [09:50:21]requested_item shift.open_date is exist - process it [09:50:21]req_shift_open_date [09:50:21]req_shift_open_date done [09:50:21]produce_requested_data done [09:50:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29489,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:50:21]process_action_free print_text [09:50:21]json_value_free [09:50:21]json_value_free done [09:50:21]process_json_proto returns [09:50:21]Send response to host [09:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29489,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:50:21]free response buf [09:50:21]execute_script done [09:50:21]execute_script returns [09:50:21]free content buf [09:50:21]Sock 8.Close socket [09:50:21]Sock 8.Thread stoped [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53: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:01]accept exits with 9 [09:54:01]New connection [09:54:01]New thread 3066969444 created [09:54:01]Thread 3067112804 joined [09:54:01]Waiting for new connection... [09:54:01] Sock 9.Parse request [09:54:01]Sock 9.Check first char [09:54:01]Sock 9.First char is OK [09:54:01]request: POST /json_proto HTTP/1.0 [09:54:01]Method: POST [09:54:01]URL: /json_proto [09:54:01]Method is POST - this is cgi request [09:54:01]url: /json_proto [09:54:01]query_string will be loaded in cgi processing [09:54:01]execute_cgi json_proto POST (null) [09:54:01]execute_cgi path=json_proto method=POST [09:54:01]POST find Content-Length [09:54:01]Host: 172.17.33.3:8080 [09:54:01]Content-Length: 679 [09:54:01]Content-Type: application/json [09:54:01] [09:54:01]POST finish read [09:54:01]Found Content-Length = 679 [09:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:54:01]execute_script... [09:54: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)347904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:54:01]POST & json_proto [09:54:01]process_json_proto [09:54:01]json parsed OK: [09:54:01]protocol is kg_v1.0 [09:54:01]action value=close_receipt [09:54:01]process_action close_receipt [09:54:01]cmd_close_receipt [09:54:01]MH_GetDate [09:54:01]Write to MH i2c: F0 00 00 C5 31 E5 [09:54:01]Write i2c OK [09:54:01]MH_I2C_Read... [09:54:01]Read from MH i2c: F0 [09:54:01]MH_I2C_Read... [09:54:01]Read from MH i2c: F0 09 00 [09:54:01]MH_I2C_Read... [09:54:01]Read from MH i2c: F0 09 00 C5 31 00 3D F9 1C 66 23 5B 8F 65 18 [09:54:01]GetLastDocTimeStamp 1713174613 [09:54:01]current date 1713174845 [09:54:01]FM_GetShiftState [09:54:01]SAM_PROTO_GetShiftState [09:54:01]wFMCommunicate request_size=4 [09:54:01]MH_SAM_APDU [09:54:01]CAPDU: 80 13 01 00 [09:54:01]Write to MH i2c: E2 08 00 C6 31 80 13 01 00 00 00 00 00 74 [09:54:01]Write i2c OK [09:54:01]MH_I2C_Read... [09:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:01]Read from MH i2c: E2 [09:54:01]MH_I2C_Read... [09:54:01]Read from MH i2c: E2 0E 00 [09:54:01]MH_I2C_Read... [09:54:01]Read from MH i2c: E2 0E 00 C6 31 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 68 [09:54:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:54:01]wFMCommunicate OK [09:54:01]SAM_PROTO_GetShiftState done [09:54:01]FM_GetShiftState done [09:54:01]opened in 1713140468 [09:54:01]opened+sec_in_day 1713226868 [09:54:01]quantity*price = 100018 [09:54:01]sum+1 = 100020 [09:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 84 15.04.2024 09:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29490 ФПД: 153896917411297 1/tax-web-control/client/api/v1/ticket?date=20240415T095405&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29490&fm=153896917411297&tin=02508201610067®Number=0000138879044617&sum=100000 [09:54:02]StoreToDocumentArchive [09:54:02]shift 117 fd 29490 [09:54:02]save to /storage/0117/doc_00029490 [09:54:02]save last doc name /storage/0117/doc_00029490 to /storage/kkm_last_doc_name [09:54:02]save OK [09:54:02]Clear old archive folders... [09:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:02]tlvbuf is 002A74A0 [09:54:02]SAM_PROTO_ClearQueue [09:54:02]wFMCommunicate request_size=4 [09:54:02]MH_SAM_APDU [09:54:02]CAPDU: 80 09 00 00 [09:54:02]Write to MH i2c: E2 08 00 D3 31 80 09 00 00 00 00 00 00 76 [09:54:02]Write i2c OK [09:54:02]MH_I2C_Read... [09:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:02]Read from MH i2c: E2 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 03 00 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [09:54:02]RAPDU: 90 00 [09:54:02]wFMCommunicate OK [09:54:02]SAM_PROTO_ClearQueue done [09:54:02]KKMCreateOFDPacket [09:54:02]OFDProtocolAddRootSTLVToBuf [09:54:02]FM_MakeSignedData [09:54:02]FM_MakeSignedData [09:54:02]SAM_PROTO_SignData [09:54:02]wFMCommunicate request_size=4 [09:54:02]MH_SAM_APDU [09:54:02]CAPDU: 80 0D 01 02 [09:54:02]Write to MH i2c: E2 08 00 D4 31 80 0D 01 02 00 00 00 00 7E [09:54:02]Write i2c OK [09:54:02]MH_I2C_Read... [09:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:02]Read from MH i2c: E2 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 03 00 [09:54:02]MH_I2C_Read... [09:54:02]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [09:54:02]RAPDU: 90 00 [09:54:02]wFMCommunicate OK [09:54:02]wFMCommunicate request_size=255 [09:54:02]MH_SAM_APDU [09:54:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3D F9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 73 00 00 35 04 06 00 8B F7 EB 18 [09:54:02]Write to MH i2c: E2 02 01 D5 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3D F9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 73 00 00 35 04 06 00 8B F7 EB 18 00 00 AC [09:54:02]Write i2c OK [09:54:02]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 03 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [09:54:03]RAPDU: 90 00 [09:54:03]wFMCommunicate OK [09:54:03]wFMCommunicate request_size=7 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 0D 02 02 02 25 E1 [09:54:03]Write to MH i2c: E2 0A 00 D6 31 80 0D 02 02 02 00 25 E1 00 00 8B [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 03 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [09:54:03]RAPDU: 90 00 [09:54:03]wFMCommunicate OK [09:54:03]wFMCommunicate request_size=4 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 0D 03 02 [09:54:03]Write to MH i2c: E2 08 00 D7 31 80 0D 03 02 00 00 00 00 83 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0B 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0B 00 D7 31 00 69 27 11 13 73 F0 D5 A2 90 00 12 [09:54:03]RAPDU: 69 27 11 13 73 F0 D5 A2 90 00 [09:54:03]wFMCommunicate OK [09:54:03]SAM_PROTO_SignData done [09:54:03]FM_MakeSignedData done [09:54:03]CreateOFDProtocolMessage [09:54:03]wFMCommunicate request_size=4 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 11 00 00 [09:54:03]Write to MH i2c: E2 08 00 D8 31 80 11 00 00 00 00 00 00 83 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 17 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 17 00 D8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [09:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:54:03]wFMCommunicate OK [09:54:03]CreateOFDProtocolMessage done [09:54:03]OFDSenderStorePacket 29490 [09:54:03]StoreOFDPacket docnum=29490 [09:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 00 78 04 01 B2 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3D F9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 73 00 00 35 04 06 00 8B F7 EB 18 25 E1 69 27 11 13 73 F0 D5 A2 [09:54:03]CheckFolder [09:54:03]dirname=/storage/ofd_packets [09:54:03]CheckFolder done [09:54:03]ProducePacketName [09:54:03]name=ofd_packets/00029490 [09:54:03]NVStorageSaveData ofd_packets/00029490 [09:54:03]File name is /storage/ofd_packets/00029490 [09:54:03]Write 298 bytes [09:54:03]NVStorageSaveData done [09:54:03]OFDSenderStorePacket done [09:54:03]KKMCreateOFDPacket done [09:54:03]NVStorageSaveData kkm_last_timestamp [09:54:03]File name is /storage/kkm_last_timestamp [09:54:03]Write 4 bytes [09:54:03]NVStorageSaveData done [09:54:03]ExternCall_PrintAddStr [09:54:03]wPrintStart [09:54:03]Write to MH i2c: 01 00 00 D9 31 0A [09:54:03]OFD Sender: Processing packet 29490 [packets to send 8, broken 7] [09:54:03]ProducePacketName [09:54:03]name=ofd_packets/00029490 [09:54:03]OFD Sender: To server: pG, [09:54:03]CommunicateWithHost lk.salyk.kg:30040 [09:54:03]ConnectInit lk.salyk.kg [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: 01 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: 01 07 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: 01 07 00 D9 31 00 00 00 00 00 FF 0F 1F [09:54:03]RasterBufferAndPrint [09:54:03]line Счет N : (1)347904 [09:54:03]line ИНН: 02508201610067 [09:54:03]line Контрольно-Кассовый Чек [09:54:03]line ПРОДАЖА [09:54:03]line ТРК (МРК, ГНК) : 51 [09:54:03]line Товар: 2710194210 [09:54:03]line ДТ-К-5 [09:54:03]line 13.720 * 72.90 [09:54:03]line = 1000.19 [09:54:03]line НДС 12% НСП 1% [09:54:03]line > о реализуемом товаре [09:54:03]line ОКРУГЛЕНИЕ: -0.19 [09:54:03]line ИТОГО: 1000.00 [09:54:03]line Внесено: 1000.00 [09:54:03]line СДАЧА: 0.00 [09:54:03]line НСП 1% : 8.85 [09:54:03]line НДС 12% : 106.21 [09:54:03]line Наличными: 1000.00 [09:54:03]line Безнал.: 0.00 [09:54:03]line Место: АЗС № 108 "Партнер Нефть" [09:54:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:54:03]line СНО: Общий режим [09:54:03]line Чек 84 15.04.2024 09:54 [09:54:03]line Смена: 117 ФФД: 1.0 [09:54:03]line ЗНМ: 0300000027 [09:54:03]line РНМ: 0000138879044617 [09:54:03]line Версия ККМ: 001 [09:54:03]line ФМ: 0000000000963154 [09:54:03]line ФД: 29490 [09:54:03]line ФПД: 153896917411297 [09:54:03]line 1/tax-web-control/client/api/v1/ticket?date=20240415T095405&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29490&fm=153896917411297&tin=02508201610067®Number=0000138879044617&sum=100000 [09:54:03]Connected sock=10 [09:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 00 78 04 01 B2 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 3D F9 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 73 00 00 35 04 06 00 8B F7 EB 18 25 E1 69 27 11 13 73 F0 D5 A2 [09:54:03]written 0, free lines is 4095 [09:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C0 95 47 00 7F 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 39 36 33 31 35 34 10 04 04 00 32 73 00 00 F4 03 04 00 DE A3 1C 66 B6 04 01 00 00 83 1C 0F FF D5 2A B9 A2 [09:54:03]CommunicateWithHost err = 0 [09:54:03]CheckOFDResponse [09:54:03]1017 (14) - 77093643461234 [09:54:03]1041 (16) - 0000000000963154 [09:54:03]1040 (4) - 29490 [09:54:03]1012 (4) - 15.04.2024 03:49 [09:54:03]1206 (1) - 0 [09:54:03]OFD Sender: Remove packet 29490 [09:54:03]ProducePacketName [09:54:03]name=ofd_packets/00029490 [09:54:03]NVStorageDeleteData [09:54:04]Write to MH i2c: 01 00 00 03 32 35 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 07 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: 01 07 00 03 32 00 00 00 00 00 C0 0C 08 [09:54:04]RasterBufferAndPrint [09:54:04]line [09:54:04]line [09:54:04]line [09:54:04]line [09:54:04]line [09:54:04]written 0, free lines is 3267 [09:54:04]MH_Cut [09:54:04]Write to MH i2c: D1 01 00 0A 32 01 0E [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: D1 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: D1 01 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: D1 01 00 0A 32 00 0D [09:54:04]Write to MH i2c: 01 00 00 0B 32 3D [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]OFD Sender: No OFD packet to send [09:54:04]*** Cut start [09:54:04]*** Partial cut [09:54:04]*** CUTSNS_PIN = 1 [09:54:05]*** CUTSNS_PIN = 0 [09:54:05]*** Brake cut motor [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]*** Stop cut motor [09:54:05]*** Cut end [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 0B 32 00 00 00 00 00 FF 0F 52 [09:54:05]process_action close_receipt done [09:54:05]requested_data is exist [09:54:05]produce_requested_data [09:54:05]requested_item fm.sn is exist - process it [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 11 00 00 [09:54:05]Write to MH i2c: E2 08 00 0C 32 80 11 00 00 00 00 00 00 B8 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 0C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [09:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:54:05]wFMCommunicate OK [09:54:05]requested_item fd.num is exist - process it [09:54:05]SAM_PROTO_GetFieldsCounters [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 13 00 00 [09:54:05]Write to MH i2c: E2 08 00 0D 32 80 13 00 00 00 00 00 00 BB [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 62 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 62 00 0D 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 73 00 00 0E 04 04 00 75 00 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 0F [09:54:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:05]wFMCommunicate OK [09:54:05]SAM_PROTO_GetFieldsCounters done [09:54:05]requested_item shift.num is exist - process it [09:54:05]requested_item shift.opened is exist - process it [09:54:05]req_shift_opened [09:54:05]FM_GetShiftState [09:54:05]SAM_PROTO_GetShiftState [09:54:05]wFMCommunicate request_size=4 [09:54:05]MH_SAM_APDU [09:54:05]CAPDU: 80 13 01 00 [09:54:05]Write to MH i2c: E2 08 00 0E 32 80 13 01 00 00 00 00 00 BD [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0E 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 0E 00 0E 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [09:54:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:54:05]wFMCommunicate OK [09:54:05]SAM_PROTO_GetShiftState done [09:54:05]FM_GetShiftState done [09:54:05]req_shift_opened done [09:54:05]requested_item shift.open_date is exist - process it [09:54:05]req_shift_open_date [09:54:05]req_shift_open_date done [09:54:05]produce_requested_data done [09:54:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29490,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:54:05]process_action_free close_receipt [09:54:05]json_value_free [09:54:05]json_value_free done [09:54:05]process_json_proto returns [09:54:05]Send response to host [09:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29490,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:54:05]free response buf [09:54:05]execute_script done [09:54:05]execute_script returns [09:54:05]free content buf [09:54:05]Sock 9.Close socket [09:54:05]Sock 9.Thread stoped [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:08]accept exits with 8 [09:59:08]New connection [09:59:08]New thread 3067112804 created [09:59:08]Thread 3066969444 joined [09:59:08]Waiting for new connection... [09:59:08] Sock 8.Parse request [09:59:08]Sock 8.Check first char [09:59:08]Sock 8.First char is OK [09:59:08]request: POST /json_proto HTTP/1.0 [09:59:08]Method: POST [09:59:08]URL: /json_proto [09:59:08]Method is POST - this is cgi request [09:59:08]url: /json_proto [09:59:08]query_string will be loaded in cgi processing [09:59:08]execute_cgi json_proto POST (null) [09:59:08]execute_cgi path=json_proto method=POST [09:59:08]POST find Content-Length [09:59:08]Host: 172.17.33.3:8080 [09:59:08]Content-Length: 682 [09:59:08]Content-Type: application/json [09:59:08] [09:59:08]POST finish read [09:59:08]Found Content-Length = 682 [09:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]execute_script... [09:59: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)347905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:08]POST & json_proto [09:59:08]process_json_proto [09:59:08]json parsed OK: [09:59:08]protocol is kg_v1.0 [09:59:08]action value=close_receipt [09:59:08]process_action close_receipt [09:59:08]cmd_close_receipt [09:59:08]MH_GetDate [09:59:08]Write to MH i2c: F0 00 00 0F 32 30 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: F0 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: F0 09 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: F0 09 00 0F 32 00 70 FA 1C 66 23 5B 8F 65 97 [09:59:08]GetLastDocTimeStamp 1713174845 [09:59:08]current date 1713175152 [09:59:08]FM_GetShiftState [09:59:08]SAM_PROTO_GetShiftState [09:59:08]wFMCommunicate request_size=4 [09:59:08]MH_SAM_APDU [09:59:08]CAPDU: 80 13 01 00 [09:59:08]Write to MH i2c: E2 08 00 10 32 80 13 01 00 00 00 00 00 BF [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:08]Read from MH i2c: E2 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: E2 0E 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: E2 0E 00 10 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B3 [09:59:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:59:08]wFMCommunicate OK [09:59:08]SAM_PROTO_GetShiftState done [09:59:08]FM_GetShiftState done [09:59:08]opened in 1713140468 [09:59:08]opened+sec_in_day 1713226868 [09:59:08]quantity*price = 100051 [09:59:08]sum+1 = 100052 [09:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 85 15.04.2024 09:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29491 ФПД: 46515834646541 1/tax-web-control/client/api/v1/ticket?date=20240415T095912&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29491&fm=46515834646541&tin=02508201610067®Number=0000138879044617&sum=100000 [09:59:09]StoreToDocumentArchive [09:59:09]shift 117 fd 29491 [09:59:09]save to /storage/0117/doc_00029491 [09:59:09]save last doc name /storage/0117/doc_00029491 to /storage/kkm_last_doc_name [09:59:09]save OK [09:59:09]Clear old archive folders... [09:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:09]tlvbuf is 0025E4A0 [09:59:09]SAM_PROTO_ClearQueue [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 09 00 00 [09:59:09]Write to MH i2c: E2 08 00 1D 32 80 09 00 00 00 00 00 00 C1 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_ClearQueue done [09:59:09]KKMCreateOFDPacket [09:59:09]OFDProtocolAddRootSTLVToBuf [09:59:09]FM_MakeSignedData [09:59:09]FM_MakeSignedData [09:59:09]SAM_PROTO_SignData [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 0D 01 02 [09:59:09]Write to MH i2c: E2 08 00 1E 32 80 0D 01 02 00 00 00 00 C9 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 03 00 1E 32 00 90 00 C4 [09:59:09]RAPDU: 90 00 [09:59:09]wFMCommunicate OK [09:59:09]wFMCommunicate request_size=255 [09:59:09]MH_SAM_APDU [09:59: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 70 FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 73 00 00 35 04 06 00 2A [09:59:09]Write to MH i2c: E2 02 01 1F 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 70 FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 73 00 00 35 04 06 00 2A 00 00 35 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 1F 32 00 90 00 C5 [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]wFMCommunicate request_size=10 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 02 02 05 4E 4F CC F0 0D [09:59:10]Write to MH i2c: E2 0D 00 20 32 80 0D 02 02 05 00 4E 4F CC F0 0D 00 00 3C [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 20 32 00 90 00 C6 [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 03 02 [09:59:10]Write to MH i2c: E2 08 00 21 32 80 0D 03 02 00 00 00 00 CE [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0B 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0B 00 21 32 00 09 3A E6 AB 31 FA 51 98 90 00 B7 [09:59:10]RAPDU: 09 3A E6 AB 31 FA 51 98 90 00 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_SignData done [09:59:10]FM_MakeSignedData done [09:59:10]CreateOFDProtocolMessage [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 11 00 00 [09:59:10]Write to MH i2c: E2 08 00 22 32 80 11 00 00 00 00 00 00 CE [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 22 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [09:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:10]wFMCommunicate OK [09:59:10]CreateOFDProtocolMessage done [09:59:10]OFDSenderStorePacket 29491 [09:59:10]StoreOFDPacket docnum=29491 [09:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9A 96 07 01 BF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 70 FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 73 00 00 35 04 06 00 2A 4E 4F CC F0 0D 09 3A E6 AB 31 FA 51 98 [09:59:10]CheckFolder [09:59:10]dirname=/storage/ofd_packets [09:59:10]CheckFolder done [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00029491 [09:59:10]NVStorageSaveData ofd_packets/00029491 [09:59:10]File name is /storage/ofd_packets/00029491 [09:59:10]Write 301 bytes [09:59:10]NVStorageSaveData done [09:59:10]OFDSenderStorePacket done [09:59:10]KKMCreateOFDPacket done [09:59:10]NVStorageSaveData kkm_last_timestamp [09:59:10]File name is /storage/kkm_last_timestamp [09:59:10]Write 4 bytes [09:59:10]NVStorageSaveData done [09:59:10]ExternCall_PrintAddStr [09:59:10]wPrintStart [09:59:10]Write to MH i2c: 01 00 00 23 32 55 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 23 32 00 00 00 00 00 FF 0F 6A [09:59:10]RasterBufferAndPrint [09:59:10]line Счет N : (1)347905 [09:59:10]line ИНН: 02508201610067 [09:59:10]line Контрольно-Кассовый Чек [09:59:10]line ПРОДАЖА [09:59:10]line ТРК (МРК, ГНК) : 13 [09:59:10]line Товар: 2710124130 [09:59:10]line Аи-92-К-5 [09:59:10]line 15.440 * 64.80 [09:59:10]line = 1000.51 [09:59:10]line НДС 12% НСП 1% [09:59:10]line > о реализуемом товаре [09:59:10]line ОКРУГЛЕНИЕ: -0.51 [09:59:10]line ИТОГО: 1000.00 [09:59:10]line Внесено: 1000.00 [09:59:10]line СДАЧА: 0.00 [09:59:10]line НСП 1% : 8.85 [09:59:10]line НДС 12% : 106.25 [09:59:10]line Наличными: 1000.00 [09:59:10]line Безнал.: 0.00 [09:59:10]line Место: АЗС № 108 "Партнер Нефть" [09:59:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:59:10]line СНО: Общий режим [09:59:10]line Чек 85 15.04.2024 09:59 [09:59:10]line Смена: 117 ФФД: 1.0 [09:59:10]line ЗНМ: 0300000027 [09:59:10]line РНМ: 0000138879044617 [09:59:10]line Версия ККМ: 001 [09:59:10]line ФМ: 0000000000963154 [09:59:10]line ФД: 29491 [09:59:10]line ФПД: 46515834646541 [09:59:10]line 1/tax-web-control/client/api/v1/ticket?date=20240415T095912&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29491&fm=46515834646541&tin=02508201610067®Number=0000138879044617&sum=100000 [09:59:10]OFD Sender: Processing packet 29491 [packets to send 8, broken 7] [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00029491 [09:59:10]OFD Sender: To server: pG, [09:59:10]CommunicateWithHost lk.salyk.kg:30040 [09:59:10]ConnectInit lk.salyk.kg [09:59:10]written 0, free lines is 4095 [09:59:10]Connected sock=10 [09:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9A 96 07 01 BF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 70 FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 73 00 00 35 04 06 00 2A 4E 4F CC F0 0D 09 3A E6 AB 31 FA 51 98 [09:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 6A 47 00 2F CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 73 00 00 F4 03 04 00 12 A5 1C 66 B6 04 01 00 00 33 AB A2 EA AB 11 7E DD [09:59:10]CommunicateWithHost err = 0 [09:59:10]CheckOFDResponse [09:59:10]1017 (14) - 77093643461234 [09:59:10]1041 (16) - 0000000000963154 [09:59:10]1040 (4) - 29491 [09:59:10]1012 (4) - 15.04.2024 03:54 [09:59:10]1206 (1) - 0 [09:59:10]OFD Sender: Remove packet 29491 [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00029491 [09:59:10]NVStorageDeleteData [09:59:11]Write to MH i2c: 01 00 00 4D 32 7F [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 07 00 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 07 00 4D 32 00 00 00 00 00 C6 0C 58 [09:59:11]RasterBufferAndPrint [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]written 0, free lines is 3276 [09:59:11]MH_Cut [09:59:11]Write to MH i2c: D1 01 00 54 32 01 58 [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 01 00 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 01 00 54 32 00 57 [09:59:11]Write to MH i2c: 01 00 00 55 32 87 [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]OFD Sender: No OFD packet to send [09:59:11]*** Cut start [09:59:11]*** Partial cut [09:59:11]*** CUTSNS_PIN = 1 [09:59:11]*** CUTSNS_PIN = 0 [09:59:12]*** Brake cut motor [09:59:12]Read from MH i2c: 01 [09:59:12]MH_I2C_Read... [09:59:12]*** Stop cut motor [09:59:12]*** Cut end [09:59:12]Read from MH i2c: 01 07 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: 01 07 00 55 32 00 00 00 00 00 FF 0F 9C [09:59:12]process_action close_receipt done [09:59:12]requested_data is exist [09:59:12]produce_requested_data [09:59:12]requested_item fm.sn is exist - process it [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 11 00 00 [09:59:12]Write to MH i2c: E2 08 00 56 32 80 11 00 00 00 00 00 00 02 [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 17 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 17 00 56 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [09:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:59:12]wFMCommunicate OK [09:59:12]requested_item fd.num is exist - process it [09:59:12]SAM_PROTO_GetFieldsCounters [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 13 00 00 [09:59:12]Write to MH i2c: E2 08 00 57 32 80 13 00 00 00 00 00 00 05 [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 62 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 62 00 57 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 73 00 00 0E 04 04 00 75 00 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 5D [09:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:12]wFMCommunicate OK [09:59:12]SAM_PROTO_GetFieldsCounters done [09:59:12]requested_item shift.num is exist - process it [09:59:12]requested_item shift.opened is exist - process it [09:59:12]req_shift_opened [09:59:12]FM_GetShiftState [09:59:12]SAM_PROTO_GetShiftState [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 13 01 00 [09:59:12]Write to MH i2c: E2 08 00 58 32 80 13 01 00 00 00 00 00 07 [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 58 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FB [09:59:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [09:59:12]wFMCommunicate OK [09:59:12]SAM_PROTO_GetShiftState done [09:59:12]FM_GetShiftState done [09:59:12]req_shift_opened done [09:59:12]requested_item shift.open_date is exist - process it [09:59:12]req_shift_open_date [09:59:12]req_shift_open_date done [09:59:12]produce_requested_data done [09:59:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29491,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [09:59:12]process_action_free close_receipt [09:59:12]json_value_free [09:59:12]json_value_free done [09:59:12]process_json_proto returns [09:59:12]Send response to host [09:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29491,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [09:59:12]free response buf [09:59:12]execute_script done [09:59:12]execute_script returns [09:59:12]free content buf [09:59:12]Sock 8.Close socket [09:59:12]Sock 8.Thread stoped [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:14]accept exits with 9 [10:01:14]New connection [10:01:14]New thread 3066969444 created [10:01:14]Thread 3067112804 joined [10:01:14]Waiting for new connection... [10:01:14] Sock 9.Parse request [10:01:14]Sock 9.Check first char [10:01:14]Sock 9.First char is OK [10:01:14]request: POST /json_proto HTTP/1.0 [10:01:14]Method: POST [10:01:14]URL: /json_proto [10:01:14]Method is POST - this is cgi request [10:01:14]url: /json_proto [10:01:14]query_string will be loaded in cgi processing [10:01:14]execute_cgi json_proto POST (null) [10:01:14]execute_cgi path=json_proto method=POST [10:01:14]POST find Content-Length [10:01:14]Host: 172.17.33.3:8080 [10:01:14]Content-Length: 682 [10:01:14]Content-Type: application/json [10:01:14] [10:01:14]POST finish read [10:01:14]Found Content-Length = 682 [10:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]execute_script... [10:01: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)347906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]POST & json_proto [10:01:14]process_json_proto [10:01:14]json parsed OK: [10:01:14]protocol is kg_v1.0 [10:01:14]action value=close_receipt [10:01:14]process_action close_receipt [10:01:14]cmd_close_receipt [10:01:14]MH_GetDate [10:01:14]Write to MH i2c: F0 00 00 59 32 7A [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 59 32 00 EE FA 1C 66 23 5B 8F 65 5F [10:01:14]GetLastDocTimeStamp 1713175152 [10:01:14]current date 1713175278 [10:01:14]FM_GetShiftState [10:01:14]SAM_PROTO_GetShiftState [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 01 00 [10:01:14]Write to MH i2c: E2 08 00 5A 32 80 13 01 00 00 00 00 00 09 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 5A 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FD [10:01:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetShiftState done [10:01:14]FM_GetShiftState done [10:01:14]opened in 1713140468 [10:01:14]opened+sec_in_day 1713226868 [10:01:14]quantity*price = 100051 [10:01:14]sum+1 = 100052 [10:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 86 15.04.2024 10:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29492 ФПД: 116697578689446 1/tax-web-control/client/api/v1/ticket?date=20240415T100118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29492&fm=116697578689446&tin=02508201610067®Number=0000138879044617&sum=100000 [10:01:15]StoreToDocumentArchive [10:01:15]shift 117 fd 29492 [10:01:15]save to /storage/0117/doc_00029492 [10:01:15]save last doc name /storage/0117/doc_00029492 to /storage/kkm_last_doc_name [10:01:15]save OK [10:01:15]Clear old archive folders... [10:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:15]tlvbuf is 002B9270 [10:01:15]SAM_PROTO_ClearQueue [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 09 00 00 [10:01:15]Write to MH i2c: E2 08 00 67 32 80 09 00 00 00 00 00 00 0B [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 67 32 00 90 00 0D [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_ClearQueue done [10:01:15]KKMCreateOFDPacket [10:01:15]OFDProtocolAddRootSTLVToBuf [10:01:15]FM_MakeSignedData [10:01:15]FM_MakeSignedData [10:01:15]SAM_PROTO_SignData [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 01 02 [10:01:15]Write to MH i2c: E2 08 00 68 32 80 0D 01 02 00 00 00 00 13 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 68 32 00 90 00 0E [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=255 [10:01:15]MH_SAM_APDU [10:01: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 73 00 00 35 04 06 00 6A [10:01:15]Write to MH i2c: E2 02 01 69 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 73 00 00 35 04 06 00 6A 00 00 3F [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 69 32 00 90 00 0F [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=10 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 02 02 05 22 C5 B9 53 A6 [10:01:15]Write to MH i2c: E2 0D 00 6A 32 80 0D 02 02 05 00 22 C5 B9 53 A6 00 00 B9 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 6A 32 00 90 00 10 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 03 02 [10:01:15]Write to MH i2c: E2 08 00 6B 32 80 0D 03 02 00 00 00 00 18 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 6B 32 00 27 A4 AF D0 5A E7 ED D6 90 00 67 [10:01:15]RAPDU: 27 A4 AF D0 5A E7 ED D6 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_SignData done [10:01:15]FM_MakeSignedData done [10:01:15]CreateOFDProtocolMessage [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 6C 32 80 11 00 00 00 00 00 00 18 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 6C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:01:15]wFMCommunicate OK [10:01:15]CreateOFDProtocolMessage done [10:01:15]OFDSenderStorePacket 29492 [10:01:15]StoreOFDPacket docnum=29492 [10:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D DF 07 01 14 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 73 00 00 35 04 06 00 6A 22 C5 B9 53 A6 27 A4 AF D0 5A E7 ED D6 [10:01:15]CheckFolder [10:01:15]dirname=/storage/ofd_packets [10:01:15]CheckFolder done [10:01:15]ProducePacketName [10:01:15]name=ofd_packets/00029492 [10:01:15]NVStorageSaveData ofd_packets/00029492 [10:01:15]File name is /storage/ofd_packets/00029492 [10:01:15]Write 301 bytes [10:01:15]NVStorageSaveData done [10:01:15]OFDSenderStorePacket done [10:01:15]KKMCreateOFDPacket done [10:01:15]NVStorageSaveData kkm_last_timestamp [10:01:15]File name is /storage/kkm_last_timestamp [10:01:15]Write 4 bytes [10:01:15]NVStorageSaveData done [10:01:15]ExternCall_PrintAddStr [10:01:15]wPrintStart [10:01:15]Write to MH i2c: 01 00 00 6D 32 9F [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 6D 32 00 00 00 00 00 FF 0F B4 [10:01:15]RasterBufferAndPrint [10:01:15]line Счет N : (1)347906 [10:01:15]line ИНН: 02508201610067 [10:01:15]line Контрольно-Кассовый Чек [10:01:15]line ПРОДАЖА [10:01:15]line ТРК (МРК, ГНК) : 32 [10:01:15]line Товар: 2710124130 [10:01:15]line Аи-92-К-5 [10:01:15]line 15.440 * 64.80 [10:01:15]line = 1000.51 [10:01:15]line НДС 12% НСП 1% [10:01:15]line > о реализуемом товаре [10:01:15]line ОКРУГЛЕНИЕ: -0.51 [10:01:15]line ИТОГО: 1000.00 [10:01:15]line Внесено: 1000.00 [10:01:15]line СДАЧА: 0.00 [10:01:15]line НСП 1% : 8.85 [10:01:15]line НДС 12% : 106.25 [10:01:15]line Наличными: 1000.00 [10:01:15]line Безнал.: 0.00 [10:01:15]line Место: АЗС № 108 "Партнер Нефть" [10:01:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:01:15]line СНО: Общий режим [10:01:15]line Чек 86 15.04.2024 10:01 [10:01:15]line Смена: 117 ФФД: 1.0 [10:01:16]line ЗНМ: 0300000027 [10:01:16]line РНМ: 0000138879044617 [10:01:16]line Версия ККМ: 001 [10:01:16]line ФМ: 0000000000963154 [10:01:16]line ФД: 29492 [10:01:16]line ФПД: 116697578689446 [10:01:16]line 1/tax-web-control/client/api/v1/ticket?date=20240415T100118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29492&fm=116697578689446&tin=02508201610067®Number=0000138879044617&sum=100000 [10:01:16]OFD Sender: Processing packet 29492 [packets to send 8, broken 7] [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00029492 [10:01:16]OFD Sender: To server: pG, [10:01:16]CommunicateWithHost lk.salyk.kg:30040 [10:01:16]ConnectInit lk.salyk.kg [10:01:16]written 0, free lines is 4095 [10:01:16]Connected sock=10 [10:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3D DF 07 01 14 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 EE FA 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 73 00 00 35 04 06 00 6A 22 C5 B9 53 A6 27 A4 AF D0 5A E7 ED D6 [10:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC 3B 47 00 EE F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 73 00 00 F4 03 04 00 8F A5 1C 66 B6 04 01 00 00 D3 A5 7B 1C E7 EE D9 B4 [10:01:16]CommunicateWithHost err = 0 [10:01:16]CheckOFDResponse [10:01:16]1017 (14) - 77093643461234 [10:01:16]1041 (16) - 0000000000963154 [10:01:16]1040 (4) - 29492 [10:01:16]1012 (4) - 15.04.2024 03:57 [10:01:16]1206 (1) - 0 [10:01:16]OFD Sender: Remove packet 29492 [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00029492 [10:01:16]NVStorageDeleteData [10:01:16]Write to MH i2c: 01 00 00 97 32 C9 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 C6 0C A2 [10:01:16]RasterBufferAndPrint [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]written 0, free lines is 3274 [10:01:16]MH_Cut [10:01:16]Write to MH i2c: D1 01 00 9E 32 01 A2 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 9E 32 00 A1 [10:01:16]Write to MH i2c: 01 00 00 9F 32 D1 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:17]OFD Sender: No OFD packet to send [10:01:17]*** Cut start [10:01:17]*** Partial cut [10:01:17]*** CUTSNS_PIN = 1 [10:01:17]*** CUTSNS_PIN = 0 [10:01:17]*** Brake cut motor [10:01:18]Read from MH i2c: 01 [10:01:18]MH_I2C_Read... [10:01:18]*** Stop cut motor [10:01:18]*** Cut end [10:01:18]Read from MH i2c: 01 07 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: 01 07 00 9F 32 00 00 00 00 00 FF 0F E6 [10:01:18]process_action close_receipt done [10:01:18]requested_data is exist [10:01:18]produce_requested_data [10:01:18]requested_item fm.sn is exist - process it [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 11 00 00 [10:01:18]Write to MH i2c: E2 08 00 A0 32 80 11 00 00 00 00 00 00 4C [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 A0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [10:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:01:18]wFMCommunicate OK [10:01:18]requested_item fd.num is exist - process it [10:01:18]SAM_PROTO_GetFieldsCounters [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 00 00 [10:01:18]Write to MH i2c: E2 08 00 A1 32 80 13 00 00 00 00 00 00 4F [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 A1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 73 00 00 0E 04 04 00 75 00 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 AB [10:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 73 00 00 0E 04 04 00 75 00 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:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetFieldsCounters done [10:01:18]requested_item shift.num is exist - process it [10:01:18]requested_item shift.opened is exist - process it [10:01:18]req_shift_opened [10:01:18]FM_GetShiftState [10:01:18]SAM_PROTO_GetShiftState [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 01 00 [10:01:18]Write to MH i2c: E2 08 00 A2 32 80 13 01 00 00 00 00 00 51 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 A2 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 45 [10:01:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetShiftState done [10:01:18]FM_GetShiftState done [10:01:18]req_shift_opened done [10:01:18]requested_item shift.open_date is exist - process it [10:01:18]req_shift_open_date [10:01:18]req_shift_open_date done [10:01:18]produce_requested_data done [10:01:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29492,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:01:18]process_action_free close_receipt [10:01:18]json_value_free [10:01:18]json_value_free done [10:01:18]process_json_proto returns [10:01:18]Send response to host [10:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29492,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:01:18]free response buf [10:01:18]execute_script done [10:01:18]execute_script returns [10:01:18]free content buf [10:01:18]Sock 9.Close socket [10:01:18]Sock 9.Thread stoped [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:46]accept exits with 8 [10:05:46]New connection [10:05:46]New thread 3067112804 created [10:05:46]Thread 3066969444 joined [10:05:46]Waiting for new connection... [10:05:46] Sock 8.Parse request [10:05:46]Sock 8.Check first char [10:05:46]Sock 8.First char is OK [10:05:46]request: POST /json_proto HTTP/1.0 [10:05:46]Method: POST [10:05:46]URL: /json_proto [10:05:46]Method is POST - this is cgi request [10:05:46]url: /json_proto [10:05:46]query_string will be loaded in cgi processing [10:05:46]execute_cgi json_proto POST (null) [10:05:46]execute_cgi path=json_proto method=POST [10:05:46]POST find Content-Length [10:05:46]Host: 172.17.33.3:8080 [10:05:46]Content-Length: 682 [10:05:46]Content-Type: application/json [10:05:46] [10:05:46]POST finish read [10:05:46]Found Content-Length = 682 [10:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:05:46]execute_script... [10:05: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)347907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:05:46]POST & json_proto [10:05:46]process_json_proto [10:05:46]json parsed OK: [10:05:46]protocol is kg_v1.0 [10:05:46]action value=close_receipt [10:05:46]process_action close_receipt [10:05:46]cmd_close_receipt [10:05:46]MH_GetDate [10:05:46]Write to MH i2c: F0 00 00 A3 32 C4 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 A3 32 00 FE FB 1C 66 23 5B 8F 65 BA [10:05:46]GetLastDocTimeStamp 1713175278 [10:05:46]current date 1713175550 [10:05:46]FM_GetShiftState [10:05:46]SAM_PROTO_GetShiftState [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 13 01 00 [10:05:46]Write to MH i2c: E2 08 00 A4 32 80 13 01 00 00 00 00 00 53 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:47]Read from MH i2c: E2 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 0E 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: E2 0E 00 A4 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 47 [10:05:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:05:47]wFMCommunicate OK [10:05:47]SAM_PROTO_GetShiftState done [10:05:47]FM_GetShiftState done [10:05:47]opened in 1713140468 [10:05:47]opened+sec_in_day 1713226868 [10:05:47]quantity*price = 100018 [10:05:47]sum+1 = 100020 [10:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 87 15.04.2024 10:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29493 ФПД: 218264481001512 1/tax-web-control/client/api/v1/ticket?date=20240415T100550&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29493&fm=218264481001512&tin=02508201610067®Number=0000138879044617&sum=100000 [10:05:48]StoreToDocumentArchive [10:05:48]shift 117 fd 29493 [10:05:48]save to /storage/0117/doc_00029493 [10:05:48]save last doc name /storage/0117/doc_00029493 to /storage/kkm_last_doc_name [10:05:48]save OK [10:05:48]Clear old archive folders... [10:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:48]tlvbuf is B6F01DA0 [10:05:48]SAM_PROTO_ClearQueue [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 09 00 00 [10:05:48]Write to MH i2c: E2 08 00 B1 32 80 09 00 00 00 00 00 00 55 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 B1 32 00 90 00 57 [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_ClearQueue done [10:05:48]KKMCreateOFDPacket [10:05:48]OFDProtocolAddRootSTLVToBuf [10:05:48]FM_MakeSignedData [10:05:48]FM_MakeSignedData [10:05:48]SAM_PROTO_SignData [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 01 02 [10:05:48]Write to MH i2c: E2 08 00 B2 32 80 0D 01 02 00 00 00 00 5D [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 B2 32 00 90 00 58 [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=255 [10:05:48]MH_SAM_APDU [10:05: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE FB 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 73 00 00 35 04 06 00 C6 [10:05:48]Write to MH i2c: E2 02 01 B3 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE FB 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 73 00 00 35 04 06 00 C6 00 00 46 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 B3 32 00 90 00 59 [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=10 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 02 02 05 82 A8 DB 70 28 [10:05:48]Write to MH i2c: E2 0D 00 B4 32 80 0D 02 02 05 00 82 A8 DB 70 28 00 00 07 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 B4 32 00 90 00 5A [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 03 02 [10:05:48]Write to MH i2c: E2 08 00 B5 32 80 0D 03 02 00 00 00 00 62 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 B5 32 00 6D 52 EC 94 DA AA 28 08 90 00 56 [10:05:48]RAPDU: 6D 52 EC 94 DA AA 28 08 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_SignData done [10:05:48]FM_MakeSignedData done [10:05:48]CreateOFDProtocolMessage [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 B6 32 80 11 00 00 00 00 00 00 62 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 B6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:48]wFMCommunicate OK [10:05:48]CreateOFDProtocolMessage done [10:05:48]OFDSenderStorePacket 29493 [10:05:48]StoreOFDPacket docnum=29493 [10:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DF C2 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE FB 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 73 00 00 35 04 06 00 C6 82 A8 DB 70 28 6D 52 EC 94 DA AA 28 08 [10:05:48]CheckFolder [10:05:48]dirname=/storage/ofd_packets [10:05:48]CheckFolder done [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00029493 [10:05:48]NVStorageSaveData ofd_packets/00029493 [10:05:48]File name is /storage/ofd_packets/00029493 [10:05:48]Write 301 bytes [10:05:48]NVStorageSaveData done [10:05:48]OFDSenderStorePacket done [10:05:48]KKMCreateOFDPacket done [10:05:48]NVStorageSaveData kkm_last_timestamp [10:05:48]File name is /storage/kkm_last_timestamp [10:05:48]Write 4 bytes [10:05:48]NVStorageSaveData done [10:05:48]ExternCall_PrintAddStr [10:05:48]wPrintStart [10:05:48]Write to MH i2c: 01 00 00 B7 32 E9 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 FF 0F FE [10:05:48]RasterBufferAndPrint [10:05:48]line Счет N : (1)347907 [10:05:48]line ИНН: 02508201610067 [10:05:48]line Контрольно-Кассовый Чек [10:05:48]line ПРОДАЖА [10:05:48]line ТРК (МРК, ГНК) : 43 [10:05:48]line Товар: 2710124500 [10:05:48]line Аи-95-К-5 [10:05:48]line 13.720 * 72.90 [10:05:48]line = 1000.19 [10:05:48]line НДС 12% НСП 1% [10:05:48]line > о реализуемом товаре [10:05:48]line ОКРУГЛЕНИЕ: -0.19 [10:05:48]line ИТОГО: 1000.00 [10:05:48]line Внесено: 1000.00 [10:05:48]line СДАЧА: 0.00 [10:05:48]line НСП 1% : 8.85 [10:05:48]line НДС 12% : 106.21 [10:05:48]line Наличными: 1000.00 [10:05:48]line Безнал.: 0.00 [10:05:48]line Место: АЗС № 108 "Партнер Нефть" [10:05:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:05:48]line СНО: Общий режим [10:05:48]line Чек 87 15.04.2024 10:05 [10:05:48]line Смена: 117 ФФД: 1.0 [10:05:48]line ЗНМ: 0300000027 [10:05:48]line РНМ: 0000138879044617 [10:05:48]line Версия ККМ: 001 [10:05:48]line ФМ: 0000000000963154 [10:05:48]line ФД: 29493 [10:05:48]line ФПД: 218264481001512 [10:05:48]line 1/tax-web-control/client/api/v1/ticket?date=20240415T100550&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29493&fm=218264481001512&tin=02508201610067®Number=0000138879044617&sum=100000 [10:05:49]OFD Sender: Processing packet 29493 [packets to send 8, broken 7] [10:05:49]ProducePacketName [10:05:49]name=ofd_packets/00029493 [10:05:49]OFD Sender: To server: pG, [10:05:49]CommunicateWithHost lk.salyk.kg:30040 [10:05:49]ConnectInit lk.salyk.kg [10:05:49]written 0, free lines is 4095 [10:05:49]Connected sock=10 [10:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DF C2 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FE FB 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 73 00 00 35 04 06 00 C6 82 A8 DB 70 28 6D 52 EC 94 DA AA 28 08 [10:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 7A 47 00 F6 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 73 00 00 F4 03 04 00 A0 A6 1C 66 B6 04 01 00 00 14 CC 19 AB 27 9D A1 47 [10:05:49]CommunicateWithHost err = 0 [10:05:49]CheckOFDResponse [10:05:49]1017 (14) - 77093643461234 [10:05:49]1041 (16) - 0000000000963154 [10:05:49]1040 (4) - 29493 [10:05:49]1012 (4) - 15.04.2024 04:01 [10:05:49]1206 (1) - 0 [10:05:49]OFD Sender: Remove packet 29493 [10:05:49]ProducePacketName [10:05:49]name=ofd_packets/00029493 [10:05:49]NVStorageDeleteData [10:05:49]Write to MH i2c: 01 00 00 E1 32 13 [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 E1 32 00 00 00 00 00 D2 0C F8 [10:05:49]RasterBufferAndPrint [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]written 0, free lines is 3288 [10:05:49]MH_Cut [10:05:49]Write to MH i2c: D1 01 00 E8 32 01 EC [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 01 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 01 00 E8 32 00 EB [10:05:49]Write to MH i2c: 01 00 00 E9 32 1B [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]OFD Sender: No OFD packet to send [10:05:50]*** Cut start [10:05:50]*** Partial cut [10:05:50]*** CUTSNS_PIN = 1 [10:05:50]*** CUTSNS_PIN = 0 [10:05:50]*** Brake cut motor [10:05:50]Read from MH i2c: 01 [10:05:50]MH_I2C_Read... [10:05:50]*** Stop cut motor [10:05:50]*** Cut end [10:05:50]Read from MH i2c: 01 07 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [10:05:50]process_action close_receipt done [10:05:50]requested_data is exist [10:05:50]produce_requested_data [10:05:50]requested_item fm.sn is exist - process it [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 11 00 00 [10:05:50]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [10:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:50]wFMCommunicate OK [10:05:50]requested_item fd.num is exist - process it [10:05:50]SAM_PROTO_GetFieldsCounters [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 00 00 [10:05:50]Write to MH i2c: E2 08 00 EB 32 80 13 00 00 00 00 00 00 99 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:51]Read from MH i2c: E2 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 62 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 62 00 EB 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 73 00 00 0E 04 04 00 75 00 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 F9 [10:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 73 00 00 0E 04 04 00 75 00 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:05:51]wFMCommunicate OK [10:05:51]SAM_PROTO_GetFieldsCounters done [10:05:51]requested_item shift.num is exist - process it [10:05:51]requested_item shift.opened is exist - process it [10:05:51]req_shift_opened [10:05:51]FM_GetShiftState [10:05:51]SAM_PROTO_GetShiftState [10:05:51]wFMCommunicate request_size=4 [10:05:51]MH_SAM_APDU [10:05:51]CAPDU: 80 13 01 00 [10:05:51]Write to MH i2c: E2 08 00 EC 32 80 13 01 00 00 00 00 00 9B [10:05:51]Write i2c OK [10:05:51]MH_I2C_Read... [10:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:51]Read from MH i2c: E2 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 0E 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 0E 00 EC 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8F [10:05:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:05:51]wFMCommunicate OK [10:05:51]SAM_PROTO_GetShiftState done [10:05:51]FM_GetShiftState done [10:05:51]req_shift_opened done [10:05:51]requested_item shift.open_date is exist - process it [10:05:51]req_shift_open_date [10:05:51]req_shift_open_date done [10:05:51]produce_requested_data done [10:05:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29493,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:05:51]process_action_free close_receipt [10:05:51]json_value_free [10:05:51]json_value_free done [10:05:51]process_json_proto returns [10:05:51]Send response to host [10:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29493,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:05:51]free response buf [10:05:51]execute_script done [10:05:51]execute_script returns [10:05:51]free content buf [10:05:51]Sock 8.Close socket [10:05:51]Sock 8.Thread stoped [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:13]accept exits with 9 [10:06:13]New connection [10:06:13]New thread 3066969444 created [10:06:13]Thread 3067112804 joined [10:06:13]Waiting for new connection... [10:06:13] Sock 9.Parse request [10:06:13]Sock 9.Check first char [10:06:13]Sock 9.First char is OK [10:06:13]request: POST /json_proto HTTP/1.0 [10:06:13]Method: POST [10:06:13]URL: /json_proto [10:06:13]Method is POST - this is cgi request [10:06:13]url: /json_proto [10:06:13]query_string will be loaded in cgi processing [10:06:13]execute_cgi json_proto POST (null) [10:06:13]execute_cgi path=json_proto method=POST [10:06:13]POST find Content-Length [10:06:13]Host: 172.17.33.3:8080 [10:06:13]Content-Length: 677 [10:06:13]Content-Type: application/json [10:06:13] [10:06:13]POST finish read [10:06:13]Found Content-Length = 677 [10:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:13]execute_script... [10:06:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:13]POST & json_proto [10:06:13]process_json_proto [10:06:13]json parsed OK: [10:06:13]protocol is kg_v1.0 [10:06:13]action value=close_receipt [10:06:13]process_action close_receipt [10:06:13]cmd_close_receipt [10:06:13]MH_GetDate [10:06:13]Write to MH i2c: F0 00 00 ED 32 0E [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: F0 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: F0 09 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: F0 09 00 ED 32 00 19 FC 1C 66 23 5B 8F 65 20 [10:06:13]GetLastDocTimeStamp 1713175550 [10:06:13]current date 1713175577 [10:06:13]FM_GetShiftState [10:06:13]SAM_PROTO_GetShiftState [10:06:13]wFMCommunicate request_size=4 [10:06:13]MH_SAM_APDU [10:06:13]CAPDU: 80 13 01 00 [10:06:13]Write to MH i2c: E2 08 00 EE 32 80 13 01 00 00 00 00 00 9D [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:13]Read from MH i2c: E2 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 0E 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: E2 0E 00 EE 32 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [10:06:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:06:13]wFMCommunicate OK [10:06:13]SAM_PROTO_GetShiftState done [10:06:13]FM_GetShiftState done [10:06:13]opened in 1713140468 [10:06:13]opened+sec_in_day 1713226868 [10:06:13]quantity*price = 50025 [10:06:13]sum+1 = 50027 [10:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 88 15.04.2024 10:06 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29494 ФПД: 32056421235731 1/tax-web-control/client/api/v1/ticket?date=20240415T100617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29494&fm=32056421235731&tin=02508201610067®Number=0000138879044617&sum=50000 [10:06:14]StoreToDocumentArchive [10:06:14]shift 117 fd 29494 [10:06:14]save to /storage/0117/doc_00029494 [10:06:14]save last doc name /storage/0117/doc_00029494 to /storage/kkm_last_doc_name [10:06:14]save OK [10:06:14]Clear old archive folders... [10:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:14]tlvbuf is 002448A0 [10:06:14]SAM_PROTO_ClearQueue [10:06:14]wFMCommunicate request_size=4 [10:06:14]MH_SAM_APDU [10:06:14]CAPDU: 80 09 00 00 [10:06:14]Write to MH i2c: E2 08 00 FB 32 80 09 00 00 00 00 00 00 9F [10:06:14]Write i2c OK [10:06:14]MH_I2C_Read... [10:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:14]Read from MH i2c: E2 [10:06:14]MH_I2C_Read... [10:06:14]Read from MH i2c: E2 03 00 [10:06:14]MH_I2C_Read... [10:06:14]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [10:06:14]RAPDU: 90 00 [10:06:14]wFMCommunicate OK [10:06:14]SAM_PROTO_ClearQueue done [10:06:14]KKMCreateOFDPacket [10:06:14]OFDProtocolAddRootSTLVToBuf [10:06:14]FM_MakeSignedData [10:06:14]FM_MakeSignedData [10:06:14]SAM_PROTO_SignData [10:06:14]wFMCommunicate request_size=4 [10:06:14]MH_SAM_APDU [10:06:14]CAPDU: 80 0D 01 02 [10:06:14]Write to MH i2c: E2 08 00 FC 32 80 0D 01 02 00 00 00 00 A7 [10:06:14]Write i2c OK [10:06:14]MH_I2C_Read... [10:06:14]OFD Sender: No OFD packet to send [10:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:14]Read from MH i2c: E2 [10:06:14]MH_I2C_Read... [10:06:14]Read from MH i2c: E2 03 00 [10:06:14]MH_I2C_Read... [10:06:14]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [10:06:14]RAPDU: 90 00 [10:06:14]wFMCommunicate OK [10:06:14]wFMCommunicate request_size=255 [10:06:14]MH_SAM_APDU [10:06:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 73 00 00 35 04 06 00 1D [10:06:14]Write to MH i2c: E2 02 01 FD 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 73 00 00 35 04 06 00 1D 00 00 8A [10:06:14]Write i2c OK [10:06:14]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 03 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 03 00 FD 32 00 90 00 A3 [10:06:15]RAPDU: 90 00 [10:06:15]wFMCommunicate OK [10:06:15]wFMCommunicate request_size=10 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 0D 02 02 05 27 B7 99 BC 13 [10:06:15]Write to MH i2c: E2 0D 00 FE 32 80 0D 02 02 05 00 27 B7 99 BC 13 00 00 FA [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 03 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 03 00 FE 32 00 90 00 A4 [10:06:15]RAPDU: 90 00 [10:06:15]wFMCommunicate OK [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 0D 03 02 [10:06:15]Write to MH i2c: E2 08 00 FF 32 80 0D 03 02 00 00 00 00 AC [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0B 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0B 00 FF 32 00 11 0B 36 AA 74 3F F9 11 90 00 66 [10:06:15]RAPDU: 11 0B 36 AA 74 3F F9 11 90 00 [10:06:15]wFMCommunicate OK [10:06:15]SAM_PROTO_SignData done [10:06:15]FM_MakeSignedData done [10:06:15]CreateOFDProtocolMessage [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 11 00 00 [10:06:15]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [10:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:06:15]wFMCommunicate OK [10:06:15]CreateOFDProtocolMessage done [10:06:15]OFDSenderStorePacket 29494 [10:06:15]StoreOFDPacket docnum=29494 [10:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 E2 07 01 EE 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 73 00 00 35 04 06 00 1D 27 B7 99 BC 13 11 0B 36 AA 74 3F F9 11 [10:06:15]CheckFolder [10:06:15]dirname=/storage/ofd_packets [10:06:15]CheckFolder done [10:06:15]ProducePacketName [10:06:15]name=ofd_packets/00029494 [10:06:15]NVStorageSaveData ofd_packets/00029494 [10:06:15]File name is /storage/ofd_packets/00029494 [10:06:15]Write 301 bytes [10:06:15]NVStorageSaveData done [10:06:15]OFDSenderStorePacket done [10:06:15]KKMCreateOFDPacket done [10:06:15]NVStorageSaveData kkm_last_timestamp [10:06:15]File name is /storage/kkm_last_timestamp [10:06:15]Write 4 bytes [10:06:15]NVStorageSaveData done [10:06:15]ExternCall_PrintAddStr [10:06:15]wPrintStart [10:06:15]Write to MH i2c: 01 00 00 01 33 34 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 01 33 00 00 00 00 00 FF 0F 49 [10:06:15]RasterBufferAndPrint [10:06:15]line Счет N : (1)347908 [10:06:15]line ИНН: 02508201610067 [10:06:15]line Контрольно-Кассовый Чек [10:06:15]line ПРОДАЖА [10:06:15]line ТРК (МРК, ГНК) : 23 [10:06:15]line Товар: 2710124130 [10:06:15]line Аи-92-К-5 [10:06:15]line 7.720 * 64.80 [10:06:15]line = 500.26 [10:06:15]line НДС 12% НСП 1% [10:06:15]line > о реализуемом товаре [10:06:15]line ОКРУГЛЕНИЕ: -0.26 [10:06:15]line ИТОГО: 500.00 [10:06:15]line Внесено: 500.00 [10:06:15]line СДАЧА: 0.00 [10:06:15]line НСП 1% : 4.43 [10:06:15]line НДС 12% : 53.12 [10:06:15]line Наличными: 500.00 [10:06:15]line Безнал.: 0.00 [10:06:15]line Место: АЗС № 108 "Партнер Нефть" [10:06:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:06:15]line СНО: Общий режим [10:06:15]line Чек 88 15.04.2024 10:06 [10:06:15]line Смена: 117 ФФД: 1.0 [10:06:15]line ЗНМ: 0300000027 [10:06:15]line РНМ: 0000138879044617 [10:06:15]line Версия ККМ: 001 [10:06:15]line ФМ: 0000000000963154 [10:06:15]line ФД: 29494 [10:06:15]line ФПД: 32056421235731 [10:06:15]line 1/tax-web-control/client/api/v1/ticket?date=20240415T100617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29494&fm=32056421235731&tin=02508201610067®Number=0000138879044617&sum=50000 [10:06:15]written 0, free lines is 4095 [10:06:15]OFD Sender: Processing packet 29494 [packets to send 8, broken 7] [10:06:15]ProducePacketName [10:06:15]name=ofd_packets/00029494 [10:06:15]OFD Sender: To server: pG, [10:06:15]CommunicateWithHost lk.salyk.kg:30040 [10:06:15]ConnectInit lk.salyk.kg [10:06:15]Connected sock=10 [10:06:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 77 E2 07 01 EE 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 73 00 00 35 04 06 00 1D 27 B7 99 BC 13 11 0B 36 AA 74 3F F9 11 [10:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C8 CB 47 00 4A 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 39 36 33 31 35 34 10 04 04 00 36 73 00 00 F4 03 04 00 BA A6 1C 66 B6 04 01 00 00 1C 6A 47 94 22 83 B6 27 [10:06:15]CommunicateWithHost err = 0 [10:06:15]CheckOFDResponse [10:06:15]1017 (14) - 77093643461234 [10:06:15]1041 (16) - 0000000000963154 [10:06:15]1040 (4) - 29494 [10:06:15]1012 (4) - 15.04.2024 04:02 [10:06:15]1206 (1) - 0 [10:06:15]OFD Sender: Remove packet 29494 [10:06:15]ProducePacketName [10:06:15]name=ofd_packets/00029494 [10:06:15]NVStorageDeleteData [10:06:15]Write to MH i2c: 01 00 00 2B 33 5E [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 2B 33 00 00 00 00 00 C4 0C 35 [10:06:15]RasterBufferAndPrint [10:06:15]line [10:06:15]line [10:06:15]line [10:06:15]line [10:06:15]line [10:06:15]written 0, free lines is 3274 [10:06:15]MH_Cut [10:06:15]Write to MH i2c: D1 01 00 32 33 01 37 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: D1 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: D1 01 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: D1 01 00 32 33 00 36 [10:06:15]Write to MH i2c: 01 00 00 33 33 66 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:16]OFD Sender: No OFD packet to send [10:06:16]*** Cut start [10:06:16]*** Partial cut [10:06:16]*** CUTSNS_PIN = 1 [10:06:16]*** CUTSNS_PIN = 0 [10:06:16]*** Brake cut motor [10:06:17]Read from MH i2c: 01 [10:06:17]MH_I2C_Read... [10:06:17]*** Stop cut motor [10:06:17]*** Cut end [10:06:17]Read from MH i2c: 01 07 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: 01 07 00 33 33 00 00 00 00 00 FF 0F 7B [10:06:17]process_action close_receipt done [10:06:17]requested_data is exist [10:06:17]produce_requested_data [10:06:17]requested_item fm.sn is exist - process it [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 11 00 00 [10:06:17]Write to MH i2c: E2 08 00 34 33 80 11 00 00 00 00 00 00 E1 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 17 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 17 00 34 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [10:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:06:17]wFMCommunicate OK [10:06:17]requested_item fd.num is exist - process it [10:06:17]SAM_PROTO_GetFieldsCounters [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 13 00 00 [10:06:17]Write to MH i2c: E2 08 00 35 33 80 13 00 00 00 00 00 00 E4 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 62 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 62 00 35 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 73 00 00 0E 04 04 00 75 00 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 48 [10:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 73 00 00 0E 04 04 00 75 00 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:06:17]wFMCommunicate OK [10:06:17]SAM_PROTO_GetFieldsCounters done [10:06:17]requested_item shift.num is exist - process it [10:06:17]requested_item shift.opened is exist - process it [10:06:17]req_shift_opened [10:06:17]FM_GetShiftState [10:06:17]SAM_PROTO_GetShiftState [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 13 01 00 [10:06:17]Write to MH i2c: E2 08 00 36 33 80 13 01 00 00 00 00 00 E6 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 0E 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 0E 00 36 33 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DA [10:06:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:06:17]wFMCommunicate OK [10:06:17]SAM_PROTO_GetShiftState done [10:06:17]FM_GetShiftState done [10:06:17]req_shift_opened done [10:06:17]requested_item shift.open_date is exist - process it [10:06:17]req_shift_open_date [10:06:17]req_shift_open_date done [10:06:17]produce_requested_data done [10:06:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29494,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:06:17]process_action_free close_receipt [10:06:17]json_value_free [10:06:17]json_value_free done [10:06:17]process_json_proto returns [10:06:17]Send response to host [10:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29494,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:06:17]free response buf [10:06:17]execute_script done [10:06:17]execute_script returns [10:06:17]free content buf [10:06:17]Sock 9.Close socket [10:06:17]Sock 9.Thread stoped [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:26]int [10:06:26]Write to MH i2c: 01 00 00 37 33 6A [10:06:26]*** FLAG_PRN_PAP1 set [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 37 33 00 01 00 00 00 FF 0F 80 [10:06:26]state=0 [10:06:26]No paper [10:06:26]int [10:06:26]Write to MH i2c: 01 00 00 38 33 6B [10:06:26]*** FLAG_PRN_PAP2 set [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: 01 07 00 38 33 00 03 00 00 00 FF 0F 83 [10:06:26]state=0 [10:06:26]No paper [10:06:26]Cover opened [10:06:28]int [10:06:28]Write to MH i2c: 01 00 00 39 33 6C [10:06:28]*** FLAG_PRN_PAP2 reset [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 39 33 00 01 00 00 00 FF 0F 82 [10:06:28]state=3 [10:06:28]No paper [10:06:28]Cover closed [10:06:28]int [10:06:28]Write to MH i2c: 01 00 00 3A 33 6D [10:06:28]*** FLAG_PRN_PAP1 reset [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 FF 0F 82 [10:06:28]state=0 [10:06:28]int [10:06:28]Write to MH i2c: 01 00 00 3B 33 6E [10:06:28]*** FLAG_PRN_KEY set [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 3B 33 00 08 00 00 00 FF 0F 8B [10:06:28]state=0 [10:06:28]Key pressed [10:06:28]Feed [10:06:28]Write to MH i2c: D8 00 00 3C 33 46 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: D8 [10:06:28]MH_I2C_Read... [10:06:28]*** FLAG_PRN_KEY reset [10:06:28]Read from MH i2c: D8 01 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: D8 01 00 3C 33 00 47 [10:06:28]int line is 0 - check status [10:06:28]Write to MH i2c: 01 00 00 3D 33 70 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 3D 33 00 00 00 00 00 F5 0F 7B [10:06:28]state=2 [10:06:28]Stop feed [10:06:28]int [10:06:28]Write to MH i2c: 01 00 00 3E 33 71 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 3E 33 00 00 00 00 00 F5 0F 7C [10:06:28]state=0 [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:30]int [10:07:30]Write to MH i2c: 01 00 00 3F 33 72 [10:07:30]*** FLAG_PRN_KEY set [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 3F 33 00 08 00 00 00 FF 0F 8F [10:07:30]state=0 [10:07:30]Key pressed [10:07:30]Feed [10:07:30]Write to MH i2c: D8 00 00 40 33 4A [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D8 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D8 01 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D8 01 00 40 33 00 4B [10:07:30]int [10:07:30]Write to MH i2c: 01 00 00 41 33 74 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 41 33 00 48 00 00 00 3D 00 00 [10:07:30]state=2 [10:07:30]Key pressed [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 42 33 75 [10:07:31]*** FLAG_PRN_KEY reset [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 42 33 00 00 00 00 00 F5 0F 80 [10:07:31]state=2 [10:07:31]Stop feed [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 43 33 76 [10:07:31]*** FLAG_PRN_KEY set [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 43 33 00 08 00 00 00 FF 0F 93 [10:07:31]state=0 [10:07:31]Key pressed [10:07:31]Feed [10:07:31]Write to MH i2c: D8 00 00 44 33 4E [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 01 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 01 00 44 33 00 4F [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 45 33 78 [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 45 33 00 48 00 00 00 3C 00 03 [10:07:31]state=2 [10:07:31]Key pressed [10:07:31]OFD Sender: No OFD packet to send [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 46 33 79 [10:07:31]*** FLAG_PRN_KEY reset [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 46 33 00 00 00 00 00 F5 0F 84 [10:07:31]state=2 [10:07:31]Stop feed [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 47 33 7A [10:07:31]*** FLAG_PRN_KEY set [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 47 33 00 08 00 00 00 FF 0F 97 [10:07:31]state=0 [10:07:31]Key pressed [10:07:31]Feed [10:07:31]Write to MH i2c: D8 00 00 48 33 52 [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 01 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: D8 01 00 48 33 00 53 [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 49 33 7C [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 49 33 00 48 00 00 00 3C 00 07 [10:07:31]state=2 [10:07:31]Key pressed [10:07:31]int [10:07:31]Write to MH i2c: 01 00 00 4A 33 7D [10:07:31]*** FLAG_PRN_KEY reset [10:07:31]Write i2c OK [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 [10:07:31]MH_I2C_Read... [10:07:31]Read from MH i2c: 01 07 00 4A 33 00 00 00 00 00 F5 0F 88 [10:07:31]state=2 [10:07:31]Stop feed [10:07:33]accept exits with 8 [10:07:33]New connection [10:07:33]New thread 3067112804 created [10:07:33]Thread 3066969444 joined [10:07:33]Waiting for new connection... [10:07:33] Sock 8.Parse request [10:07:33]Sock 8.Check first char [10:07:33]Sock 8.First char is OK [10:07:33]request: POST /json_proto HTTP/1.0 [10:07:33]Method: POST [10:07:33]URL: /json_proto [10:07:33]Method is POST - this is cgi request [10:07:33]url: /json_proto [10:07:33]query_string will be loaded in cgi processing [10:07:33]execute_cgi json_proto POST (null) [10:07:33]execute_cgi path=json_proto method=POST [10:07:33]POST find Content-Length [10:07:33]Host: 172.17.33.3:8080 [10:07:33]Content-Length: 675 [10:07:33]Content-Type: application/json [10:07:33] [10:07:33]POST finish read [10:07:33]Found Content-Length = 675 [10:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:33]execute_script... [10:07: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)347909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:33]POST & json_proto [10:07:33]process_json_proto [10:07:33]json parsed OK: [10:07:33]protocol is kg_v1.0 [10:07:33]action value=close_receipt [10:07:33]process_action close_receipt [10:07:33]cmd_close_receipt [10:07:33]MH_GetDate [10:07:33]Write to MH i2c: F0 00 00 4B 33 6D [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: F0 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: F0 09 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: F0 09 00 4B 33 00 68 FC 1C 66 23 5B 8F 65 CE [10:07:33]GetLastDocTimeStamp 1713175577 [10:07:33]current date 1713175656 [10:07:33]FM_GetShiftState [10:07:33]SAM_PROTO_GetShiftState [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 13 01 00 [10:07:33]Write to MH i2c: E2 08 00 4C 33 80 13 01 00 00 00 00 00 FC [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 0E 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 0E 00 4C 33 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F0 [10:07:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:07:33]wFMCommunicate OK [10:07:33]SAM_PROTO_GetShiftState done [10:07:33]FM_GetShiftState done [10:07:33]opened in 1713140468 [10:07:33]opened+sec_in_day 1713226868 [10:07:33]quantity*price = 100016 [10:07:33]sum+1 = 100017 [10:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 89 15.04.2024 10:07 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29495 ФПД: 153494395438017 1/tax-web-control/client/api/v1/ticket?date=20240415T100737&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29495&fm=153494395438017&tin=02508201610067®Number=0000138879044617&sum=100000 [10:07:34]StoreToDocumentArchive [10:07:34]shift 117 fd 29495 [10:07:34]save to /storage/0117/doc_00029495 [10:07:34]save last doc name /storage/0117/doc_00029495 to /storage/kkm_last_doc_name [10:07:34]save OK [10:07:34]Clear old archive folders... [10:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:07:34]tlvbuf is B6DCF530 [10:07:34]SAM_PROTO_ClearQueue [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 09 00 00 [10:07:34]Write to MH i2c: E2 08 00 59 33 80 09 00 00 00 00 00 00 FE [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 59 33 00 90 00 00 [10:07:34]RAPDU: 90 00 [10:07:34]wFMCommunicate OK [10:07:34]SAM_PROTO_ClearQueue done [10:07:34]KKMCreateOFDPacket [10:07:34]OFDProtocolAddRootSTLVToBuf [10:07:34]FM_MakeSignedData [10:07:34]FM_MakeSignedData [10:07:34]SAM_PROTO_SignData [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 0D 01 02 [10:07:34]Write to MH i2c: E2 08 00 5A 33 80 0D 01 02 00 00 00 00 06 [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 5A 33 00 90 00 01 [10:07:34]RAPDU: 90 00 [10:07:34]wFMCommunicate OK [10:07:34]wFMCommunicate request_size=255 [10:07:34]MH_SAM_APDU [10:07: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 69 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 73 00 00 35 04 06 00 [10:07:34]Write to MH i2c: E2 02 01 5B 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 69 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 73 00 00 35 04 06 00 00 00 41 [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 5B 33 00 90 00 02 [10:07:34]RAPDU: 90 00 [10:07:34]wFMCommunicate OK [10:07:34]wFMCommunicate request_size=11 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 0D 02 02 06 8B 9A 32 EA 43 C1 [10:07:34]Write to MH i2c: E2 0E 00 5C 33 80 0D 02 02 06 00 8B 9A 32 EA 43 C1 00 00 5A [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 5C 33 00 90 00 03 [10:07:34]RAPDU: 90 00 [10:07:34]wFMCommunicate OK [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 0D 03 02 [10:07:34]Write to MH i2c: E2 08 00 5D 33 80 0D 03 02 00 00 00 00 0B [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 0B 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 0B 00 5D 33 00 65 C8 94 4E 36 5B 16 D1 90 00 93 [10:07:34]RAPDU: 65 C8 94 4E 36 5B 16 D1 90 00 [10:07:34]wFMCommunicate OK [10:07:34]SAM_PROTO_SignData done [10:07:34]FM_MakeSignedData done [10:07:34]CreateOFDProtocolMessage [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 11 00 00 [10:07:34]Write to MH i2c: E2 08 00 5E 33 80 11 00 00 00 00 00 00 0B [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 17 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 17 00 5E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [10:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:07:34]wFMCommunicate OK [10:07:34]CreateOFDProtocolMessage done [10:07:34]OFDSenderStorePacket 29495 [10:07:34]StoreOFDPacket docnum=29495 [10:07:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 81 F4 08 01 5C D0 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 69 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 73 00 00 35 04 06 00 8B 9A 32 EA 43 C1 65 C8 94 4E 36 5B 16 D1 [10:07:34]CheckFolder [10:07:34]dirname=/storage/ofd_packets [10:07:34]CheckFolder done [10:07:34]ProducePacketName [10:07:34]name=ofd_packets/00029495 [10:07:34]NVStorageSaveData ofd_packets/00029495 [10:07:34]File name is /storage/ofd_packets/00029495 [10:07:34]Write 302 bytes [10:07:34]NVStorageSaveData done [10:07:34]OFDSenderStorePacket done [10:07:34]KKMCreateOFDPacket done [10:07:34]NVStorageSaveData kkm_last_timestamp [10:07:34]File name is /storage/kkm_last_timestamp [10:07:34]Write 4 bytes [10:07:34]NVStorageSaveData done [10:07:34]ExternCall_PrintAddStr [10:07:34]wPrintStart [10:07:34]Write to MH i2c: 01 00 00 5F 33 92 [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 07 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 07 00 5F 33 00 00 00 00 00 FF 0F A7 [10:07:34]RasterBufferAndPrint [10:07:34]line Счет N : (1)347909 [10:07:34]line ИНН: 02508201610067 [10:07:34]line Контрольно-Кассовый Чек [10:07:34]line ПРОДАЖА [10:07:34]line ТРК (МРК, ГНК) : 31 [10:07:34]line Товар: 2710124130 [10:07:34]line SUPER-92-К-5 [10:07:34]line 15.200 * 65.80 [10:07:34]line = 1000.16 [10:07:34]line НДС 12% НСП 1% [10:07:34]line > о реализуемом товаре [10:07:34]line ОКРУГЛЕНИЕ: -0.16 [10:07:34]line ИТОГО: 1000.00 [10:07:34]line Внесено: 1000.00 [10:07:34]line СДАЧА: 0.00 [10:07:34]line НСП 1% : 8.85 [10:07:34]line НДС 12% : 106.21 [10:07:34]line Наличными: 1000.00 [10:07:34]line Безнал.: 0.00 [10:07:34]line Место: АЗС № 108 "Партнер Нефть" [10:07:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:07:34]line СНО: Общий режим [10:07:34]line Чек 89 15.04.2024 10:07 [10:07:34]line Смена: 117 ФФД: 1.0 [10:07:34]line ЗНМ: 0300000027 [10:07:34]line РНМ: 0000138879044617 [10:07:34]line Версия ККМ: 001 [10:07:34]line ФМ: 0000000000963154 [10:07:34]line ФД: 29495 [10:07:34]line ФПД: 153494395438017 [10:07:34]line 1/tax-web-control/client/api/v1/ticket?date=20240415T100737&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29495&fm=153494395438017&tin=02508201610067®Number=0000138879044617&sum=100000 [10:07:35]OFD Sender: Processing packet 29495 [packets to send 8, broken 7] [10:07:35]ProducePacketName [10:07:35]name=ofd_packets/00029495 [10:07:35]OFD Sender: To server: pG, [10:07:35]CommunicateWithHost lk.salyk.kg:30040 [10:07:35]ConnectInit lk.salyk.kg [10:07:35]written 0, free lines is 4095 [10:07:35]Connected sock=10 [10:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 81 F4 08 01 5C D0 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 69 FC 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 73 00 00 35 04 06 00 8B 9A 32 EA 43 C1 65 C8 94 4E 36 5B 16 D1 [10:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DE B8 47 00 FD 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 39 36 33 31 35 34 10 04 04 00 37 73 00 00 F4 03 04 00 0A A7 1C 66 B6 04 01 00 00 17 8F F9 B3 8C 61 07 E2 [10:07:35]CommunicateWithHost err = 0 [10:07:35]CheckOFDResponse [10:07:35]1017 (14) - 77093643461234 [10:07:35]1041 (16) - 0000000000963154 [10:07:35]1040 (4) - 29495 [10:07:35]1012 (4) - 15.04.2024 04:03 [10:07:35]1206 (1) - 0 [10:07:35]OFD Sender: Remove packet 29495 [10:07:35]ProducePacketName [10:07:35]name=ofd_packets/00029495 [10:07:35]NVStorageDeleteData [10:07:35]Write to MH i2c: 01 00 00 89 33 BC [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 07 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 07 00 89 33 00 00 00 00 00 D1 0C A0 [10:07:35]RasterBufferAndPrint [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]written 0, free lines is 3287 [10:07:35]MH_Cut [10:07:35]Write to MH i2c: D1 01 00 90 33 01 95 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 01 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 01 00 90 33 00 94 [10:07:35]Write to MH i2c: 01 00 00 91 33 C4 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]OFD Sender: No OFD packet to send [10:07:36]*** Cut start [10:07:36]*** Partial cut [10:07:36]*** CUTSNS_PIN = 1 [10:07:36]*** CUTSNS_PIN = 0 [10:07:36]*** Brake cut motor [10:07:36]Read from MH i2c: 01 [10:07:36]MH_I2C_Read... [10:07:36]*** Stop cut motor [10:07:36]*** Cut end [10:07:36]Read from MH i2c: 01 07 00 [10:07:36]MH_I2C_Read... [10:07:36]Read from MH i2c: 01 07 00 91 33 00 00 00 00 00 FF 0F D9 [10:07:36]process_action close_receipt done [10:07:36]requested_data is exist [10:07:36]produce_requested_data [10:07:36]requested_item fm.sn is exist - process it [10:07:36]wFMCommunicate request_size=4 [10:07:36]MH_SAM_APDU [10:07:36]CAPDU: 80 11 00 00 [10:07:36]Write to MH i2c: E2 08 00 92 33 80 11 00 00 00 00 00 00 3F [10:07:36]Write i2c OK [10:07:36]MH_I2C_Read... [10:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 92 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [10:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:07:37]wFMCommunicate OK [10:07:37]requested_item fd.num is exist - process it [10:07:37]SAM_PROTO_GetFieldsCounters [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 13 00 00 [10:07:37]Write to MH i2c: E2 08 00 93 33 80 13 00 00 00 00 00 00 42 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 62 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 62 00 93 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 73 00 00 0E 04 04 00 75 00 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 AA [10:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 73 00 00 0E 04 04 00 75 00 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:07:37]wFMCommunicate OK [10:07:37]SAM_PROTO_GetFieldsCounters done [10:07:37]requested_item shift.num is exist - process it [10:07:37]requested_item shift.opened is exist - process it [10:07:37]req_shift_opened [10:07:37]FM_GetShiftState [10:07:37]SAM_PROTO_GetShiftState [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 13 01 00 [10:07:37]Write to MH i2c: E2 08 00 94 33 80 13 01 00 00 00 00 00 44 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0E 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0E 00 94 33 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 38 [10:07:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:07:37]wFMCommunicate OK [10:07:37]SAM_PROTO_GetShiftState done [10:07:37]FM_GetShiftState done [10:07:37]req_shift_opened done [10:07:37]requested_item shift.open_date is exist - process it [10:07:37]req_shift_open_date [10:07:37]req_shift_open_date done [10:07:37]produce_requested_data done [10:07:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29495,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:07:37]process_action_free close_receipt [10:07:37]json_value_free [10:07:37]json_value_free done [10:07:37]process_json_proto returns [10:07:37]Send response to host [10:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29495,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:07:37]free response buf [10:07:37]execute_script done [10:07:37]execute_script returns [10:07:37]free content buf [10:07:37]Sock 8.Close socket [10:07:37]Sock 8.Thread stoped [10:07:40]OFD Sender: No OFD packet to send [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 95 33 C8 [10:07:42]*** FLAG_PRN_KEY set [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 95 33 00 08 00 00 00 FF 0F E5 [10:07:42]state=0 [10:07:42]Key pressed [10:07:42]Feed [10:07:42]Write to MH i2c: D8 00 00 96 33 A0 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 96 33 00 A1 [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 97 33 CA [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 97 33 00 48 00 00 00 3C 00 55 [10:07:42]state=2 [10:07:42]Key pressed [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 98 33 CB [10:07:42]*** FLAG_PRN_KEY reset [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 98 33 00 00 00 00 00 F8 0F D9 [10:07:42]state=2 [10:07:42]Stop feed [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 99 33 CC [10:07:42]*** FLAG_PRN_KEY set [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 99 33 00 08 00 00 00 FF 0F E9 [10:07:42]state=0 [10:07:42]Key pressed [10:07:42]Feed [10:07:42]Write to MH i2c: D8 00 00 9A 33 A4 [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: D8 01 00 9A 33 00 A5 [10:07:42]int [10:07:42]Write to MH i2c: 01 00 00 9B 33 CE [10:07:42]Write i2c OK [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 [10:07:42]MH_I2C_Read... [10:07:42]Read from MH i2c: 01 07 00 9B 33 00 48 00 00 00 3C 00 59 [10:07:42]state=2 [10:07:42]Key pressed [10:07:43]int [10:07:43]Write to MH i2c: 01 00 00 9C 33 CF [10:07:43]*** FLAG_PRN_KEY reset [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 9C 33 00 00 00 00 00 F7 0F DC [10:07:43]state=2 [10:07:43]Stop feed [10:07:43]int [10:07:43]Write to MH i2c: 01 00 00 9D 33 D0 [10:07:43]*** FLAG_PRN_KEY set [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 9D 33 00 08 00 00 00 FF 0F ED [10:07:43]state=0 [10:07:43]Key pressed [10:07:43]Feed [10:07:43]Write to MH i2c: D8 00 00 9E 33 A8 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D8 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D8 01 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: D8 01 00 9E 33 00 A9 [10:07:43]int [10:07:43]Write to MH i2c: 01 00 00 9F 33 D2 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 9F 33 00 48 00 00 00 3C 00 5D [10:07:43]state=2 [10:07:43]Key pressed [10:07:43]int [10:07:43]Write to MH i2c: 01 00 00 A0 33 D3 [10:07:43]*** FLAG_PRN_KEY reset [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: 01 07 00 A0 33 00 00 00 00 00 F6 0F DF [10:07:43]state=2 [10:07:43]Stop feed [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:24]accept exits with 9 [10:08:24]New connection [10:08:24]New thread 3066969444 created [10:08:24]Thread 3067112804 joined [10:08:24]Waiting for new connection... [10:08:24] Sock 9.Parse request [10:08:24]Sock 9.Check first char [10:08:24]Sock 9.First char is OK [10:08:24]request: POST /json_proto HTTP/1.0 [10:08:24]Method: POST [10:08:24]URL: /json_proto [10:08:24]Method is POST - this is cgi request [10:08:24]url: /json_proto [10:08:24]query_string will be loaded in cgi processing [10:08:24]execute_cgi json_proto POST (null) [10:08:24]execute_cgi path=json_proto method=POST [10:08:24]POST find Content-Length [10:08:24]Host: 172.17.33.3:8080 [10:08:24]Content-Length: 1210 [10:08:24]Content-Type: application/json [10:08:24] [10:08:24]POST finish read [10:08:24]Found Content-Length = 1210 [10:08: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347910\u000A15.04.2024 09:50\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-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A68971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:24]execute_script... [10:08: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347910\u000A15.04.2024 09:50\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-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A68971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:24]POST & json_proto [10:08:24]process_json_proto [10:08:24]json parsed OK: [10:08:24]protocol is kg_v1.0 [10:08:24]action value=print_text [10:08:24]process_action print_text [10:08:24]cmd_print_text [10:08:24]ExternCall_PrintAddStr [10:08:24]wPrintStart [10:08:24]Write to MH i2c: 01 00 00 A1 33 D4 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 A1 33 00 00 00 00 00 FF 0F E9 [10:08:24]RasterBufferAndPrint [10:08:24]line *****ТОВАРНЫЙ ЧЕК***** [10:08:24]line АЗС 108 [10:08:24]line Партнер нефть [10:08:24]line 02508201610067 [10:08:24]line Кассир : Джумагулова Н. [10:08:24]line Счет N : (1)347910 [10:08:24]line 15.04.2024 09:50 [10:08:24]line ПРОДАЖА [10:08:24]line ТРК (МРК, ГНК): 11 [10:08:24]line Вид ГСМ : 2710194210 [10:08:24]line ДТ-К-5 [10:08:24]line 20.000 x 72.90 [10:08:24]line ИТОГ: 1458.00 [10:08:24]line Тип оплаты: Талоны: Топливная Карта [10:08:24]line 68971 [10:08:24]line ______________________ [10:08:24]line (подпись) [10:08:24]written 0, free lines is 4095 [10:08:24]Write to MH i2c: 01 00 00 B6 33 E9 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 B6 33 00 00 00 00 00 F7 0D F4 [10:08:24]RasterBufferAndPrint [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]written 0, free lines is 3577 [10:08:24]MH_Cut [10:08:24]Write to MH i2c: D1 01 00 BD 33 01 C2 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 BD 33 00 C1 [10:08:24]Write to MH i2c: 01 00 00 BE 33 F1 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:25]*** Cut start [10:08:25]*** Partial cut [10:08:25]*** CUTSNS_PIN = 1 [10:08:25]*** CUTSNS_PIN = 0 [10:08:25]*** Brake cut motor [10:08:25]Read from MH i2c: 01 [10:08:25]MH_I2C_Read... [10:08:25]*** Stop cut motor [10:08:25]*** Cut end [10:08:25]Read from MH i2c: 01 07 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 07 00 BE 33 00 00 00 00 00 FF 0F 06 [10:08:25]process_action print_text done [10:08:25]requested_data is exist [10:08:25]produce_requested_data [10:08:25]requested_item fm.sn is exist - process it [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 11 00 00 [10:08:25]Write to MH i2c: E2 08 00 BF 33 80 11 00 00 00 00 00 00 6C [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 BF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [10:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:08:25]wFMCommunicate OK [10:08:25]requested_item fd.num is exist - process it [10:08:25]SAM_PROTO_GetFieldsCounters [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 00 00 [10:08:25]Write to MH i2c: E2 08 00 C0 33 80 13 00 00 00 00 00 00 6F [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 C0 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 73 00 00 0E 04 04 00 75 00 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 D7 [10:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 73 00 00 0E 04 04 00 75 00 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:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetFieldsCounters done [10:08:25]requested_item shift.num is exist - process it [10:08:25]requested_item shift.opened is exist - process it [10:08:25]req_shift_opened [10:08:25]FM_GetShiftState [10:08:25]SAM_PROTO_GetShiftState [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 01 00 [10:08:25]Write to MH i2c: E2 08 00 C1 33 80 13 01 00 00 00 00 00 71 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]OFD Sender: No OFD packet to send [10:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 C1 33 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 65 [10:08:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetShiftState done [10:08:25]FM_GetShiftState done [10:08:25]req_shift_opened done [10:08:25]requested_item shift.open_date is exist - process it [10:08:25]req_shift_open_date [10:08:25]req_shift_open_date done [10:08:25]produce_requested_data done [10:08:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29495,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:08:25]process_action_free print_text [10:08:25]json_value_free [10:08:25]json_value_free done [10:08:25]process_json_proto returns [10:08:25]Send response to host [10:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29495,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:08:25]free response buf [10:08:25]execute_script done [10:08:25]execute_script returns [10:08:25]free content buf [10:08:25]Sock 9.Close socket [10:08:25]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [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:40]accept exits with 8 [10:14:40]New connection [10:14:40]New thread 3067112804 created [10:14:40]Thread 3066969444 joined [10:14:40]Waiting for new connection... [10:14:40] Sock 8.Parse request [10:14:40]Sock 8.Check first char [10:14:40]Sock 8.First char is OK [10:14:40]request: POST /json_proto HTTP/1.0 [10:14:40]Method: POST [10:14:40]URL: /json_proto [10:14:40]Method is POST - this is cgi request [10:14:40]url: /json_proto [10:14:40]query_string will be loaded in cgi processing [10:14:40]execute_cgi json_proto POST (null) [10:14:40]execute_cgi path=json_proto method=POST [10:14:40]POST find Content-Length [10:14:40]Host: 172.17.33.3:8080 [10:14:40]Content-Length: 677 [10:14:40]Content-Type: application/json [10:14:40] [10:14:40]POST finish read [10:14:40]Found Content-Length = 677 [10:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:14:40]execute_script... [10:14: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)347911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:14:40]POST & json_proto [10:14:40]process_json_proto [10:14:40]json parsed OK: [10:14:40]protocol is kg_v1.0 [10:14:40]action value=close_receipt [10:14:40]process_action close_receipt [10:14:40]cmd_close_receipt [10:14:40]MH_GetDate [10:14:40]Write to MH i2c: F0 00 00 C2 33 E4 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 C2 33 00 14 FE 1C 66 23 5B 8F 65 F3 [10:14:40]GetLastDocTimeStamp 1713175657 [10:14:40]current date 1713176084 [10:14:40]FM_GetShiftState [10:14:40]SAM_PROTO_GetShiftState [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 01 00 [10:14:40]Write to MH i2c: E2 08 00 C3 33 80 13 01 00 00 00 00 00 73 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:41]Read from MH i2c: E2 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 0E 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: E2 0E 00 C3 33 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 67 [10:14:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:14:41]wFMCommunicate OK [10:14:41]SAM_PROTO_GetShiftState done [10:14:41]FM_GetShiftState done [10:14:41]opened in 1713140468 [10:14:41]opened+sec_in_day 1713226868 [10:14:41]quantity*price = 70056 [10:14:41]sum+1 = 70058 [10:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 90 15.04.2024 10:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29496 ФПД: 262188826104888 1/tax-web-control/client/api/v1/ticket?date=20240415T101445&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29496&fm=262188826104888&tin=02508201610067®Number=0000138879044617&sum=70000 [10:14:42]StoreToDocumentArchive [10:14:42]shift 117 fd 29496 [10:14:42]save to /storage/0117/doc_00029496 [10:14:42]save last doc name /storage/0117/doc_00029496 to /storage/kkm_last_doc_name [10:14:42]save OK [10:14:42]Clear old archive folders... [10:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:42]tlvbuf is 0022F880 [10:14:42]SAM_PROTO_ClearQueue [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 09 00 00 [10:14:42]Write to MH i2c: E2 08 00 D0 33 80 09 00 00 00 00 00 00 75 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_ClearQueue done [10:14:42]KKMCreateOFDPacket [10:14:42]OFDProtocolAddRootSTLVToBuf [10:14:42]FM_MakeSignedData [10:14:42]FM_MakeSignedData [10:14:42]SAM_PROTO_SignData [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 01 02 [10:14:42]Write to MH i2c: E2 08 00 D1 33 80 0D 01 02 00 00 00 00 7D [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=255 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5A 00 00 00 F4 03 04 00 15 FE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 73 00 00 35 04 06 00 EE [10:14:42]Write to MH i2c: E2 02 01 D2 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 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5A 00 00 00 F4 03 04 00 15 FE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 73 00 00 35 04 06 00 EE 00 00 44 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 D2 33 00 90 00 79 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=10 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 02 02 05 75 97 D8 14 38 [10:14:42]Write to MH i2c: E2 0D 00 D3 33 80 0D 02 02 05 00 75 97 D8 14 38 00 00 BA [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 D3 33 00 90 00 7A [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 03 02 [10:14:42]Write to MH i2c: E2 08 00 D4 33 80 0D 03 02 00 00 00 00 82 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 D4 33 00 44 C2 BA C5 02 5D 25 D3 90 00 5F [10:14:42]RAPDU: 44 C2 BA C5 02 5D 25 D3 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_SignData done [10:14:42]FM_MakeSignedData done [10:14:42]CreateOFDProtocolMessage [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 11 00 00 [10:14:42]Write to MH i2c: E2 08 00 D5 33 80 11 00 00 00 00 00 00 82 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 D5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [10:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:14:42]wFMCommunicate OK [10:14:42]CreateOFDProtocolMessage done [10:14:42]OFDSenderStorePacket 29496 [10:14:42]StoreOFDPacket docnum=29496 [10:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC CB 07 01 B5 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5A 00 00 00 F4 03 04 00 15 FE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 73 00 00 35 04 06 00 EE 75 97 D8 14 38 44 C2 BA C5 02 5D 25 D3 [10:14:42]CheckFolder [10:14:42]dirname=/storage/ofd_packets [10:14:42]CheckFolder done [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00029496 [10:14:42]NVStorageSaveData ofd_packets/00029496 [10:14:42]File name is /storage/ofd_packets/00029496 [10:14:42]Write 301 bytes [10:14:42]NVStorageSaveData done [10:14:42]OFDSenderStorePacket done [10:14:42]KKMCreateOFDPacket done [10:14:42]NVStorageSaveData kkm_last_timestamp [10:14:42]File name is /storage/kkm_last_timestamp [10:14:42]Write 4 bytes [10:14:42]NVStorageSaveData done [10:14:42]ExternCall_PrintAddStr [10:14:42]wPrintStart [10:14:42]Write to MH i2c: 01 00 00 D6 33 09 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 D6 33 00 00 00 00 00 FF 0F 1E [10:14:42]RasterBufferAndPrint [10:14:42]line Счет N : (1)347911 [10:14:42]line ИНН: 02508201610067 [10:14:42]line Контрольно-Кассовый Чек [10:14:42]line ПРОДАЖА [10:14:42]line ТРК (МРК, ГНК) : 43 [10:14:42]line Товар: 2710124500 [10:14:42]line Аи-95-К-5 [10:14:42]line 9.610 * 72.90 [10:14:42]line = 700.57 [10:14:42]line НДС 12% НСП 1% [10:14:42]line > о реализуемом товаре [10:14:42]line ОКРУГЛЕНИЕ: -0.57 [10:14:42]line ИТОГО: 700.00 [10:14:42]line Внесено: 700.00 [10:14:42]line СДАЧА: 0.00 [10:14:42]line НСП 1% : 6.20 [10:14:42]line НДС 12% : 74.40 [10:14:42]line Наличными: 700.00 [10:14:42]line Безнал.: 0.00 [10:14:42]line Место: АЗС № 108 "Партнер Нефть" [10:14:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:14:42]line СНО: Общий режим [10:14:42]line Чек 90 15.04.2024 10:14 [10:14:42]line Смена: 117 ФФД: 1.0 [10:14:42]line ЗНМ: 0300000027 [10:14:42]line РНМ: 0000138879044617 [10:14:42]line Версия ККМ: 001 [10:14:42]line ФМ: 0000000000963154 [10:14:42]line ФД: 29496 [10:14:42]line ФПД: 262188826104888 [10:14:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T101445&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29496&fm=262188826104888&tin=02508201610067®Number=0000138879044617&sum=70000 [10:14:43]OFD Sender: Processing packet 29496 [packets to send 8, broken 7] [10:14:43]ProducePacketName [10:14:43]name=ofd_packets/00029496 [10:14:43]OFD Sender: To server: pG, [10:14:43]CommunicateWithHost lk.salyk.kg:30040 [10:14:43]ConnectInit lk.salyk.kg [10:14:43]written 0, free lines is 4095 [10:14:43]Connected sock=10 [10:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC CB 07 01 B5 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5A 00 00 00 F4 03 04 00 15 FE 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 73 00 00 35 04 06 00 EE 75 97 D8 14 38 44 C2 BA C5 02 5D 25 D3 [10:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1A 25 47 00 45 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 73 00 00 F4 03 04 00 B6 A8 1C 66 B6 04 01 00 00 54 25 0F BB D3 E3 94 76 [10:14:43]CommunicateWithHost err = 0 [10:14:43]CheckOFDResponse [10:14:43]1017 (14) - 77093643461234 [10:14:43]1041 (16) - 0000000000963154 [10:14:43]1040 (4) - 29496 [10:14:43]1012 (4) - 15.04.2024 04:10 [10:14:43]1206 (1) - 0 [10:14:43]OFD Sender: Remove packet 29496 [10:14:43]ProducePacketName [10:14:43]name=ofd_packets/00029496 [10:14:43]NVStorageDeleteData [10:14:43]Write to MH i2c: 01 00 00 00 34 34 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 00 34 00 00 00 00 00 D8 0C 1F [10:14:43]RasterBufferAndPrint [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]written 0, free lines is 3297 [10:14:43]MH_Cut [10:14:43]Write to MH i2c: D1 01 00 07 34 01 0D [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 07 34 00 0C [10:14:43]Write to MH i2c: 01 00 00 08 34 3C [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]OFD Sender: No OFD packet to send [10:14:44]*** Cut start [10:14:44]*** Partial cut [10:14:44]*** CUTSNS_PIN = 1 [10:14:44]*** CUTSNS_PIN = 0 [10:14:44]*** Brake cut motor [10:14:44]Read from MH i2c: 01 [10:14:44]MH_I2C_Read... [10:14:44]*** Stop cut motor [10:14:44]*** Cut end [10:14:44]Read from MH i2c: 01 07 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 08 34 00 00 00 00 00 FF 0F 51 [10:14:44]process_action close_receipt done [10:14:44]requested_data is exist [10:14:44]produce_requested_data [10:14:44]requested_item fm.sn is exist - process it [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 11 00 00 [10:14:44]Write to MH i2c: E2 08 00 09 34 80 11 00 00 00 00 00 00 B7 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 09 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [10:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:14:44]wFMCommunicate OK [10:14:44]requested_item fd.num is exist - process it [10:14:44]SAM_PROTO_GetFieldsCounters [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 13 00 00 [10:14:44]Write to MH i2c: E2 08 00 0A 34 80 13 00 00 00 00 00 00 BA [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 62 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 62 00 0A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 73 00 00 0E 04 04 00 75 00 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 26 [10:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 73 00 00 0E 04 04 00 75 00 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:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetFieldsCounters done [10:14:45]requested_item shift.num is exist - process it [10:14:45]requested_item shift.opened is exist - process it [10:14:45]req_shift_opened [10:14:45]FM_GetShiftState [10:14:45]SAM_PROTO_GetShiftState [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 13 01 00 [10:14:45]Write to MH i2c: E2 08 00 0B 34 80 13 01 00 00 00 00 00 BC [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 0B 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B0 [10:14:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetShiftState done [10:14:45]FM_GetShiftState done [10:14:45]req_shift_opened done [10:14:45]requested_item shift.open_date is exist - process it [10:14:45]req_shift_open_date [10:14:45]req_shift_open_date done [10:14:45]produce_requested_data done [10:14:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29496,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:14:45]process_action_free close_receipt [10:14:45]json_value_free [10:14:45]json_value_free done [10:14:45]process_json_proto returns [10:14:45]Send response to host [10:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29496,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:14:45]free response buf [10:14:45]execute_script done [10:14:45]execute_script returns [10:14:45]free content buf [10:14:45]Sock 8.Close socket [10:14:45]Sock 8.Thread stoped [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15: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]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]int [10:18:18]Write to MH i2c: 01 00 00 0C 34 40 [10:18:18]*** FLAG_PRN_PAP1 set [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 0C 34 00 01 00 00 00 FF 0F 56 [10:18:18]state=0 [10:18:18]No paper [10:18:18]int [10:18:18]Write to MH i2c: 01 00 00 0D 34 41 [10:18:18]*** FLAG_PRN_PAP2 set [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 0D 34 00 03 00 00 00 FF 0F 59 [10:18:18]state=0 [10:18:18]No paper [10:18:18]Cover opened [10:18:18]OFD Sender: No OFD packet to send [10:18:21]int [10:18:21]Write to MH i2c: 01 00 00 0E 34 42 [10:18:21]*** FLAG_PRN_PAP2 reset [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 0E 34 00 01 00 00 00 FF 0F 58 [10:18:21]state=3 [10:18:21]No paper [10:18:21]Cover closed [10:18:21]int [10:18:21]Write to MH i2c: 01 00 00 0F 34 43 [10:18:21]*** FLAG_PRN_PAP1 reset [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 0F 34 00 00 00 00 00 FF 0F 58 [10:18:21]state=0 [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:14]accept exits with 9 [10:22:14]New connection [10:22:14]New thread 3066969444 created [10:22:14]Thread 3067112804 joined [10:22:14]Waiting for new connection... [10:22:14] Sock 9.Parse request [10:22:14]Sock 9.Check first char [10:22:14]Sock 9.First char is OK [10:22:14]request: POST /json_proto HTTP/1.0 [10:22:14]Method: POST [10:22:14]URL: /json_proto [10:22:14]Method is POST - this is cgi request [10:22:14]url: /json_proto [10:22:14]query_string will be loaded in cgi processing [10:22:14]execute_cgi json_proto POST (null) [10:22:14]execute_cgi path=json_proto method=POST [10:22:14]POST find Content-Length [10:22:14]Host: 172.17.33.3:8080 [10:22:14]Content-Length: 677 [10:22:14]Content-Type: application/json [10:22:14] [10:22:14]POST finish read [10:22:14]Found Content-Length = 677 [10:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.570, "sum" : 620.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:14]execute_script... [10:22: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)347913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.570, "sum" : 620.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:14]POST & json_proto [10:22:14]process_json_proto [10:22:14]json parsed OK: [10:22:14]protocol is kg_v1.0 [10:22:14]action value=close_receipt [10:22:14]process_action close_receipt [10:22:14]cmd_close_receipt [10:22:14]MH_GetDate [10:22:14]Write to MH i2c: F0 00 00 10 34 33 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: F0 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: F0 09 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: F0 09 00 10 34 00 DA FF 1C 66 23 5B 8F 65 09 [10:22:14]GetLastDocTimeStamp 1713176085 [10:22:14]current date 1713176538 [10:22:14]FM_GetShiftState [10:22:14]SAM_PROTO_GetShiftState [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 13 01 00 [10:22:14]Write to MH i2c: E2 08 00 11 34 80 13 01 00 00 00 00 00 C2 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0E 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0E 00 11 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B6 [10:22:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_GetShiftState done [10:22:14]FM_GetShiftState done [10:22:14]opened in 1713140468 [10:22:14]opened+sec_in_day 1713226868 [10:22:14]quantity*price = 62013 [10:22:14]sum+1 = 62015 [10:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 91 15.04.2024 10:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29497 ФПД: 72187577367191 1/tax-web-control/client/api/v1/ticket?date=20240415T102218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29497&fm=72187577367191&tin=02508201610067®Number=0000138879044617&sum=62000 [10:22:15]StoreToDocumentArchive [10:22:15]shift 117 fd 29497 [10:22:15]save to /storage/0117/doc_00029497 [10:22:15]save last doc name /storage/0117/doc_00029497 to /storage/kkm_last_doc_name [10:22:15]save OK [10:22:15]Clear old archive folders... [10:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:15]tlvbuf is 00259280 [10:22:15]SAM_PROTO_ClearQueue [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 09 00 00 [10:22:15]Write to MH i2c: E2 08 00 1E 34 80 09 00 00 00 00 00 00 C4 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 1E 34 00 90 00 C6 [10:22:15]RAPDU: 90 00 [10:22:15]wFMCommunicate OK [10:22:15]SAM_PROTO_ClearQueue done [10:22:15]KKMCreateOFDPacket [10:22:15]OFDProtocolAddRootSTLVToBuf [10:22:15]FM_MakeSignedData [10:22:15]FM_MakeSignedData [10:22:15]SAM_PROTO_SignData [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 0D 01 02 [10:22:15]Write to MH i2c: E2 08 00 1F 34 80 0D 01 02 00 00 00 00 CC [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 03 00 1F 34 00 90 00 C7 [10:22:15]RAPDU: 90 00 [10:22:15]wFMCommunicate OK [10:22:15]wFMCommunicate request_size=255 [10:22:15]MH_SAM_APDU [10:22: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 62 25 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3E F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA FF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 73 00 00 35 04 06 00 41 [10:22:15]Write to MH i2c: E2 02 01 20 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3E F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA FF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 73 00 00 35 04 06 00 41 00 00 69 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 20 34 00 90 00 C8 [10:22:16]RAPDU: 90 00 [10:22:16]wFMCommunicate OK [10:22:16]wFMCommunicate request_size=10 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 0D 02 02 05 A7 7A E7 FA 97 [10:22:16]Write to MH i2c: E2 0D 00 21 34 80 0D 02 02 05 00 A7 7A E7 FA 97 00 00 72 [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 03 00 21 34 00 90 00 C9 [10:22:16]RAPDU: 90 00 [10:22:16]wFMCommunicate OK [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 0D 03 02 [10:22:16]Write to MH i2c: E2 08 00 22 34 80 0D 03 02 00 00 00 00 D1 [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0B 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0B 00 22 34 00 11 F9 25 9F C5 00 D2 DA 90 00 11 [10:22:16]RAPDU: 11 F9 25 9F C5 00 D2 DA 90 00 [10:22:16]wFMCommunicate OK [10:22:16]SAM_PROTO_SignData done [10:22:16]FM_MakeSignedData done [10:22:16]CreateOFDProtocolMessage [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 11 00 00 [10:22:16]Write to MH i2c: E2 08 00 23 34 80 11 00 00 00 00 00 00 D1 [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 17 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 17 00 23 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [10:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:22:16]wFMCommunicate OK [10:22:16]CreateOFDProtocolMessage done [10:22:16]OFDSenderStorePacket 29497 [10:22:16]StoreOFDPacket docnum=29497 [10:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1F 6E 07 01 82 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3E F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA FF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 73 00 00 35 04 06 00 41 A7 7A E7 FA 97 11 F9 25 9F C5 00 D2 DA [10:22:16]CheckFolder [10:22:16]dirname=/storage/ofd_packets [10:22:16]CheckFolder done [10:22:16]ProducePacketName [10:22:16]name=ofd_packets/00029497 [10:22:16]NVStorageSaveData ofd_packets/00029497 [10:22:16]File name is /storage/ofd_packets/00029497 [10:22:16]Write 301 bytes [10:22:16]NVStorageSaveData done [10:22:16]OFDSenderStorePacket done [10:22:16]KKMCreateOFDPacket done [10:22:16]NVStorageSaveData kkm_last_timestamp [10:22:16]File name is /storage/kkm_last_timestamp [10:22:16]Write 4 bytes [10:22:16]NVStorageSaveData done [10:22:16]ExternCall_PrintAddStr [10:22:16]wPrintStart [10:22:16]Write to MH i2c: 01 00 00 24 34 58 [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: 01 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: 01 07 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: 01 07 00 24 34 00 00 00 00 00 FF 0F 6D [10:22:16]RasterBufferAndPrint [10:22:16]line Счет N : (1)347913 [10:22:16]line ИНН: 02508201610067 [10:22:16]line Контрольно-Кассовый Чек [10:22:16]line ПРОДАЖА [10:22:16]line ТРК (МРК, ГНК) : 32 [10:22:16]line Товар: 2710124130 [10:22:16]line Аи-92-К-5 [10:22:16]line 9.570 * 64.80 [10:22:16]line = 620.14 [10:22:16]line НДС 12% НСП 1% [10:22:16]line > о реализуемом товаре [10:22:16]line ОКРУГЛЕНИЕ: -0.14 [10:22:16]line ИТОГО: 620.00 [10:22:16]line Внесено: 620.00 [10:22:16]line СДАЧА: 0.00 [10:22:16]line НСП 1% : 5.49 [10:22:16]line НДС 12% : 65.86 [10:22:16]line Наличными: 620.00 [10:22:16]line Безнал.: 0.00 [10:22:16]line Место: АЗС № 108 "Партнер Нефть" [10:22:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:22:16]line СНО: Общий режим [10:22:16]line Чек 91 15.04.2024 10:22 [10:22:16]line Смена: 117 ФФД: 1.0 [10:22:16]line ЗНМ: 0300000027 [10:22:16]line РНМ: 0000138879044617 [10:22:16]line Версия ККМ: 001 [10:22:16]line ФМ: 0000000000963154 [10:22:16]line ФД: 29497 [10:22:16]line ФПД: 72187577367191 [10:22:16]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29497&fm=72187577367191&tin=02508201610067®Number=0000138879044617&sum=62000 [10:22:16]OFD Sender: Processing packet 29497 [packets to send 8, broken 7] [10:22:16]ProducePacketName [10:22:16]name=ofd_packets/00029497 [10:22:16]OFD Sender: To server: pG, [10:22:16]CommunicateWithHost lk.salyk.kg:30040 [10:22:16]ConnectInit lk.salyk.kg [10:22:16]written 0, free lines is 4095 [10:22:16]Connected sock=8 [10:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1F 6E 07 01 82 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3E F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA FF 1C 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 73 00 00 35 04 06 00 41 A7 7A E7 FA 97 11 F9 25 9F C5 00 D2 DA [10:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 A0 47 00 8F 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 39 36 33 31 35 34 10 04 04 00 39 73 00 00 F4 03 04 00 7B AA 1C 66 B6 04 01 00 00 30 35 37 69 32 AE FF 21 [10:22:16]CommunicateWithHost err = 0 [10:22:16]CheckOFDResponse [10:22:16]1017 (14) - 77093643461234 [10:22:16]1041 (16) - 0000000000963154 [10:22:16]1040 (4) - 29497 [10:22:16]1012 (4) - 15.04.2024 04:18 [10:22:16]1206 (1) - 0 [10:22:16]OFD Sender: Remove packet 29497 [10:22:16]ProducePacketName [10:22:16]name=ofd_packets/00029497 [10:22:16]NVStorageDeleteData [10:22:17]Write to MH i2c: 01 00 00 4E 34 82 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: 01 07 00 4E 34 00 00 00 00 00 CD 0C 62 [10:22:17]RasterBufferAndPrint [10:22:17]line [10:22:17]line [10:22:17]line [10:22:17]line [10:22:17]line [10:22:17]written 0, free lines is 3283 [10:22:17]MH_Cut [10:22:17]Write to MH i2c: D1 01 00 55 34 01 5B [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: D1 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: D1 01 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: D1 01 00 55 34 00 5A [10:22:17]Write to MH i2c: 01 00 00 56 34 8A [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]OFD Sender: No OFD packet to send [10:22:17]*** Cut start [10:22:17]*** Partial cut [10:22:17]*** CUTSNS_PIN = 1 [10:22:17]*** CUTSNS_PIN = 0 [10:22:18]*** Brake cut motor [10:22:18]Read from MH i2c: 01 [10:22:18]MH_I2C_Read... [10:22:18]*** Stop cut motor [10:22:18]*** Cut end [10:22:18]Read from MH i2c: 01 07 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 56 34 00 00 00 00 00 FF 0F 9F [10:22:18]process_action close_receipt done [10:22:18]requested_data is exist [10:22:18]produce_requested_data [10:22:18]requested_item fm.sn is exist - process it [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 11 00 00 [10:22:18]Write to MH i2c: E2 08 00 57 34 80 11 00 00 00 00 00 00 05 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 57 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [10:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:22:18]wFMCommunicate OK [10:22:18]requested_item fd.num is exist - process it [10:22:18]SAM_PROTO_GetFieldsCounters [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 00 00 [10:22:18]Write to MH i2c: E2 08 00 58 34 80 13 00 00 00 00 00 00 08 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 62 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 62 00 58 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 73 00 00 0E 04 04 00 75 00 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 78 [10:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 73 00 00 0E 04 04 00 75 00 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:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetFieldsCounters done [10:22:18]requested_item shift.num is exist - process it [10:22:18]requested_item shift.opened is exist - process it [10:22:18]req_shift_opened [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 59 34 80 13 01 00 00 00 00 00 0A [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 59 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FE [10:22:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]req_shift_opened done [10:22:18]requested_item shift.open_date is exist - process it [10:22:18]req_shift_open_date [10:22:18]req_shift_open_date done [10:22:18]produce_requested_data done [10:22:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29497,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:22:18]process_action_free close_receipt [10:22:18]json_value_free [10:22:18]json_value_free done [10:22:18]process_json_proto returns [10:22:18]Send response to host [10:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29497,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:22:18]free response buf [10:22:18]execute_script done [10:22:18]execute_script returns [10:22:18]free content buf [10:22:18]Sock 9.Close socket [10:22:18]Sock 9.Thread stoped [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:22:58]accept exits with 10 [10:22:58]New connection [10:22:58]New thread 3067112804 created [10:22:58]Thread 3066969444 joined [10:22:58]Waiting for new connection... [10:22:58] Sock 10.Parse request [10:22:58]Sock 10.Check first char [10:22:58]Sock 10.First char is OK [10:22:58]request: POST /json_proto HTTP/1.0 [10:22:58]Method: POST [10:22:58]URL: /json_proto [10:22:58]Method is POST - this is cgi request [10:22:58]url: /json_proto [10:22:58]query_string will be loaded in cgi processing [10:22:58]execute_cgi json_proto POST (null) [10:22:58]execute_cgi path=json_proto method=POST [10:22:58]POST find Content-Length [10:22:58]Host: 172.17.33.3:8080 [10:22:58]Content-Length: 677 [10:22:58]Content-Type: application/json [10:22:58] [10:22:58]POST finish read [10:22:58]Found Content-Length = 677 [10:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.710, "sum" : 370.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:58]execute_script... [10:22: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)347914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.710, "sum" : 370.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:58]POST & json_proto [10:22:58]process_json_proto [10:22:58]json parsed OK: [10:22:58]protocol is kg_v1.0 [10:22:58]action value=close_receipt [10:22:58]process_action close_receipt [10:22:58]cmd_close_receipt [10:22:58]MH_GetDate [10:22:58]Write to MH i2c: F0 00 00 5A 34 7D [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 5A 34 00 06 00 1D 66 23 5B 8F 65 81 [10:22:58]GetLastDocTimeStamp 1713176538 [10:22:58]current date 1713176582 [10:22:58]FM_GetShiftState [10:22:58]SAM_PROTO_GetShiftState [10:22:58]wFMCommunicate request_size=4 [10:22:58]MH_SAM_APDU [10:22:58]CAPDU: 80 13 01 00 [10:22:58]Write to MH i2c: E2 08 00 5B 34 80 13 01 00 00 00 00 00 0C [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:58]Read from MH i2c: E2 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 5B 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 00 [10:22:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:22:58]wFMCommunicate OK [10:22:58]SAM_PROTO_GetShiftState done [10:22:58]FM_GetShiftState done [10:22:58]opened in 1713140468 [10:22:58]opened+sec_in_day 1713226868 [10:22:58]quantity*price = 37000 [10:22:58]sum+1 = 37002 [10:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.27 НДС 12% : 39.29 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 92 15.04.2024 10:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29498 ФПД: 280879463520351 1/tax-web-control/client/api/v1/ticket?date=20240415T102302&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29498&fm=280879463520351&tin=02508201610067®Number=0000138879044617&sum=37000 [10:22:59]StoreToDocumentArchive [10:22:59]shift 117 fd 29498 [10:22:59]save to /storage/0117/doc_00029498 [10:22:59]save last doc name /storage/0117/doc_00029498 to /storage/kkm_last_doc_name [10:22:59]save OK [10:22:59]Clear old archive folders... [10:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:59]tlvbuf is 0022F5E0 [10:22:59]SAM_PROTO_ClearQueue [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 09 00 00 [10:22:59]Write to MH i2c: E2 08 00 68 34 80 09 00 00 00 00 00 00 0E [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 68 34 00 90 00 10 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]SAM_PROTO_ClearQueue done [10:22:59]KKMCreateOFDPacket [10:22:59]OFDProtocolAddRootSTLVToBuf [10:22:59]FM_MakeSignedData [10:22:59]FM_MakeSignedData [10:22:59]SAM_PROTO_SignData [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 01 02 [10:22:59]Write to MH i2c: E2 08 00 69 34 80 0D 01 02 00 00 00 00 16 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 69 34 00 90 00 11 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]wFMCommunicate request_size=255 [10:22:59]MH_SAM_APDU [10:22: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 4E 16 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 89 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 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 06 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 73 00 00 35 04 06 00 FF [10:22:59]Write to MH i2c: E2 02 01 6A 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 16 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 89 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 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 06 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 73 00 00 35 04 06 00 FF 00 00 09 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 6A 34 00 90 00 12 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]wFMCommunicate request_size=10 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 02 02 05 75 58 A5 D8 5F [10:22:59]Write to MH i2c: E2 0D 00 6B 34 80 0D 02 02 05 00 75 58 A5 D8 5F 00 00 CC [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 6B 34 00 90 00 13 [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 03 02 [10:23:00]Write to MH i2c: E2 08 00 6C 34 80 0D 03 02 00 00 00 00 1B [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 6C 34 00 CA FF 8E A4 A3 D0 EC 09 90 00 7F [10:23:00]RAPDU: CA FF 8E A4 A3 D0 EC 09 90 00 [10:23:00]wFMCommunicate OK [10:23:00]SAM_PROTO_SignData done [10:23:00]FM_MakeSignedData done [10:23:00]CreateOFDProtocolMessage [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 11 00 00 [10:23:00]Write to MH i2c: E2 08 00 6D 34 80 11 00 00 00 00 00 00 1B [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 6D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [10:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:23:00]wFMCommunicate OK [10:23:00]CreateOFDProtocolMessage done [10:23:00]OFDSenderStorePacket 29498 [10:23:00]StoreOFDPacket docnum=29498 [10:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 44 ED 07 01 1E 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 4E 16 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 89 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 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 06 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 73 00 00 35 04 06 00 FF 75 58 A5 D8 5F CA FF 8E A4 A3 D0 EC 09 [10:23:00]CheckFolder [10:23:00]dirname=/storage/ofd_packets [10:23:00]CheckFolder done [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00029498 [10:23:00]NVStorageSaveData ofd_packets/00029498 [10:23:00]File name is /storage/ofd_packets/00029498 [10:23:00]Write 301 bytes [10:23:00]NVStorageSaveData done [10:23:00]OFDSenderStorePacket done [10:23:00]KKMCreateOFDPacket done [10:23:00]NVStorageSaveData kkm_last_timestamp [10:23:00]File name is /storage/kkm_last_timestamp [10:23:00]Write 4 bytes [10:23:00]NVStorageSaveData done [10:23:00]ExternCall_PrintAddStr [10:23:00]wPrintStart [10:23:00]Write to MH i2c: 01 00 00 6E 34 A2 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 6E 34 00 00 00 00 00 FF 0F B7 [10:23:00]RasterBufferAndPrint [10:23:00]line Счет N : (1)347914 [10:23:00]line ИНН: 02508201610067 [10:23:00]line Контрольно-Кассовый Чек [10:23:00]line ПРОДАЖА [10:23:00]line ТРК (МРК, ГНК) : 42 [10:23:00]line Товар: 2710124130 [10:23:00]line Аи-92-К-5 [10:23:00]line 5.710 * 64.80 [10:23:00]line = 370.01 [10:23:00]line НДС 12% НСП 1% [10:23:00]line > о реализуемом товаре [10:23:00]line ОКРУГЛЕНИЕ: -0.01 [10:23:00]line ИТОГО: 370.00 [10:23:00]line Внесено: 370.00 [10:23:00]line СДАЧА: 0.00 [10:23:00]line НСП 1% : 3.27 [10:23:00]line НДС 12% : 39.29 [10:23:00]line Наличными: 370.00 [10:23:00]line Безнал.: 0.00 [10:23:00]line Место: АЗС № 108 "Партнер Нефть" [10:23:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:23:00]line СНО: Общий режим [10:23:00]line Чек 92 15.04.2024 10:23 [10:23:00]line Смена: 117 ФФД: 1.0 [10:23:00]line ЗНМ: 0300000027 [10:23:00]line РНМ: 0000138879044617 [10:23:00]line Версия ККМ: 001 [10:23:00]line ФМ: 0000000000963154 [10:23:00]line ФД: 29498 [10:23:00]line ФПД: 280879463520351 [10:23:00]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102302&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29498&fm=280879463520351&tin=02508201610067®Number=0000138879044617&sum=37000 [10:23:00]OFD Sender: Processing packet 29498 [packets to send 8, broken 7] [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00029498 [10:23:00]OFD Sender: To server: pG, [10:23:00]CommunicateWithHost lk.salyk.kg:30040 [10:23:00]ConnectInit lk.salyk.kg [10:23:00]written 0, free lines is 4095 [10:23:00]Connected sock=9 [10:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 44 ED 07 01 1E 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 4E 16 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 89 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 00 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 06 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 73 00 00 35 04 06 00 FF 75 58 A5 D8 5F CA FF 8E A4 A3 D0 EC 09 [10:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 B4 47 00 96 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 39 36 33 31 35 34 10 04 04 00 3A 73 00 00 F4 03 04 00 A7 AA 1C 66 B6 04 01 00 00 97 E6 E1 CC D2 8A A8 2E [10:23:00]CommunicateWithHost err = 0 [10:23:00]CheckOFDResponse [10:23:00]1017 (14) - 77093643461234 [10:23:00]1041 (16) - 0000000000963154 [10:23:00]1040 (4) - 29498 [10:23:00]1012 (4) - 15.04.2024 04:18 [10:23:00]1206 (1) - 0 [10:23:00]OFD Sender: Remove packet 29498 [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00029498 [10:23:00]NVStorageDeleteData [10:23:00]Write to MH i2c: 01 00 00 98 34 CC [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 D3 0C B2 [10:23:00]RasterBufferAndPrint [10:23:00]line [10:23:00]line [10:23:00]line [10:23:00]line [10:23:00]line [10:23:00]written 0, free lines is 3289 [10:23:00]MH_Cut [10:23:00]Write to MH i2c: D1 01 00 9F 34 01 A5 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 01 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: D1 01 00 9F 34 00 A4 [10:23:00]Write to MH i2c: 01 00 00 A0 34 D4 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:01]OFD Sender: No OFD packet to send [10:23:01]*** Cut start [10:23:01]*** Partial cut [10:23:01]*** CUTSNS_PIN = 1 [10:23:01]*** CUTSNS_PIN = 0 [10:23:02]*** Brake cut motor [10:23:02]Read from MH i2c: 01 [10:23:02]MH_I2C_Read... [10:23:02]*** Stop cut motor [10:23:02]*** Cut end [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 A0 34 00 00 00 00 00 FF 0F E9 [10:23:02]process_action close_receipt done [10:23:02]requested_data is exist [10:23:02]produce_requested_data [10:23:02]requested_item fm.sn is exist - process it [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 A1 34 80 11 00 00 00 00 00 00 4F [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 A1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [10:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:23:02]wFMCommunicate OK [10:23:02]requested_item fd.num is exist - process it [10:23:02]SAM_PROTO_GetFieldsCounters [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 00 00 [10:23:02]Write to MH i2c: E2 08 00 A2 34 80 13 00 00 00 00 00 00 52 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 A2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 73 00 00 0E 04 04 00 75 00 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 C6 [10:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 73 00 00 0E 04 04 00 75 00 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:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetFieldsCounters done [10:23:02]requested_item shift.num is exist - process it [10:23:02]requested_item shift.opened is exist - process it [10:23:02]req_shift_opened [10:23:02]FM_GetShiftState [10:23:02]SAM_PROTO_GetShiftState [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 01 00 [10:23:02]Write to MH i2c: E2 08 00 A3 34 80 13 01 00 00 00 00 00 54 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 A3 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 48 [10:23:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetShiftState done [10:23:02]FM_GetShiftState done [10:23:02]req_shift_opened done [10:23:02]requested_item shift.open_date is exist - process it [10:23:02]req_shift_open_date [10:23:02]req_shift_open_date done [10:23:02]produce_requested_data done [10:23:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29498,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:23:02]process_action_free close_receipt [10:23:02]json_value_free [10:23:02]json_value_free done [10:23:02]process_json_proto returns [10:23:02]Send response to host [10:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29498,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:23:02]free response buf [10:23:02]execute_script done [10:23:02]execute_script returns [10:23:02]free content buf [10:23:02]Sock 10.Close socket [10:23:02]Sock 10.Thread stoped [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [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:53]accept exits with 8 [10:24:53]New connection [10:24:53]New thread 3066969444 created [10:24:53]Thread 3067112804 joined [10:24:53]Waiting for new connection... [10:24:53] Sock 8.Parse request [10:24:53]Sock 8.Check first char [10:24:53]Sock 8.First char is OK [10:24:53]request: POST /json_proto HTTP/1.0 [10:24:53]Method: POST [10:24:53]URL: /json_proto [10:24:53]Method is POST - this is cgi request [10:24:53]url: /json_proto [10:24:53]query_string will be loaded in cgi processing [10:24:53]execute_cgi json_proto POST (null) [10:24:53]execute_cgi path=json_proto method=POST [10:24:53]POST find Content-Length [10:24:53]Host: 172.17.33.3:8080 [10:24:53]Content-Length: 808 [10:24:53]Content-Type: application/json [10:24:53] [10:24:53]POST finish read [10:24:53]Found Content-Length = 808 [10:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:53]execute_script... [10:24: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)347912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:53]POST & json_proto [10:24:53]process_json_proto [10:24:53]json parsed OK: [10:24:53]protocol is kg_v1.0 [10:24:53]action value=close_receipt [10:24:53]process_action close_receipt [10:24:53]cmd_close_receipt [10:24:53]MH_GetDate [10:24:53]Write to MH i2c: F0 00 00 A4 34 C7 [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: F0 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: F0 09 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: F0 09 00 A4 34 00 79 00 1D 66 23 5B 8F 65 3E [10:24:53]GetLastDocTimeStamp 1713176582 [10:24:53]current date 1713176697 [10:24:53]FM_GetShiftState [10:24:53]SAM_PROTO_GetShiftState [10:24:53]wFMCommunicate request_size=4 [10:24:53]MH_SAM_APDU [10:24:53]CAPDU: 80 13 01 00 [10:24:53]Write to MH i2c: E2 08 00 A5 34 80 13 01 00 00 00 00 00 56 [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:53]Read from MH i2c: E2 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: E2 0E 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: E2 0E 00 A5 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [10:24:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:24:53]wFMCommunicate OK [10:24:53]SAM_PROTO_GetShiftState done [10:24:53]FM_GetShiftState done [10:24:53]opened in 1713140468 [10:24:53]opened+sec_in_day 1713226868 [10:24:53]quantity*price = 1000042 [10:24:53]sum+1 = 1000043 [10:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 93 15.04.2024 10:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29499 ФПД: 265266108732627 1/tax-web-control/client/api/v1/ticket?date=20240415T102457&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29499&fm=265266108732627&tin=02508201610067®Number=0000138879044617&sum=1000042 [10:24:54]StoreToDocumentArchive [10:24:54]shift 117 fd 29499 [10:24:54]save to /storage/0117/doc_00029499 [10:24:54]save last doc name /storage/0117/doc_00029499 to /storage/kkm_last_doc_name [10:24:54]save OK [10:24:54]Clear old archive folders... [10:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:54]tlvbuf is B6F7C6C0 [10:24:54]SAM_PROTO_ClearQueue [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 09 00 00 [10:24:54]Write to MH i2c: E2 08 00 B2 34 80 09 00 00 00 00 00 00 58 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 B2 34 00 90 00 5A [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_ClearQueue done [10:24:54]KKMCreateOFDPacket [10:24:54]OFDProtocolAddRootSTLVToBuf [10:24:54]FM_MakeSignedData [10:24:54]FM_MakeSignedData [10:24:54]SAM_PROTO_SignData [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 01 02 [10:24:54]Write to MH i2c: E2 08 00 B3 34 80 0D 01 02 00 00 00 00 60 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 B3 34 00 90 00 5B [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=255 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 79 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 73 00 00 35 04 06 00 F1 42 14 2E [10:24:54]Write to MH i2c: E2 02 01 B4 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 79 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 73 00 00 35 04 06 00 F1 42 14 2E 00 00 B1 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 03 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 03 00 B4 34 00 90 00 5C [10:24:55]RAPDU: 90 00 [10:24:55]wFMCommunicate OK [10:24:55]wFMCommunicate request_size=7 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 0D 02 02 02 94 D3 [10:24:55]Write to MH i2c: E2 0A 00 B5 34 80 0D 02 02 02 00 94 D3 00 00 CE [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 03 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 03 00 B5 34 00 90 00 5D [10:24:55]RAPDU: 90 00 [10:24:55]wFMCommunicate OK [10:24:55]wFMCommunicate request_size=4 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 0D 03 02 [10:24:55]Write to MH i2c: E2 08 00 B6 34 80 0D 03 02 00 00 00 00 65 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0B 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 0B 00 B6 34 00 88 42 CF 91 C8 E8 8B FF 90 00 CA [10:24:55]RAPDU: 88 42 CF 91 C8 E8 8B FF 90 00 [10:24:55]wFMCommunicate OK [10:24:55]SAM_PROTO_SignData done [10:24:55]FM_MakeSignedData done [10:24:55]CreateOFDProtocolMessage [10:24:55]wFMCommunicate request_size=4 [10:24:55]MH_SAM_APDU [10:24:55]CAPDU: 80 11 00 00 [10:24:55]Write to MH i2c: E2 08 00 B7 34 80 11 00 00 00 00 00 00 65 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:55]Read from MH i2c: E2 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 17 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: E2 17 00 B7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [10:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:24:55]wFMCommunicate OK [10:24:55]CreateOFDProtocolMessage done [10:24:55]OFDSenderStorePacket 29499 [10:24:55]StoreOFDPacket docnum=29499 [10:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DB 81 04 01 78 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 79 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 73 00 00 35 04 06 00 F1 42 14 2E 94 D3 88 42 CF 91 C8 E8 8B FF [10:24:55]CheckFolder [10:24:55]dirname=/storage/ofd_packets [10:24:55]CheckFolder done [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00029499 [10:24:55]NVStorageSaveData ofd_packets/00029499 [10:24:55]File name is /storage/ofd_packets/00029499 [10:24:55]Write 298 bytes [10:24:55]NVStorageSaveData done [10:24:55]OFDSenderStorePacket done [10:24:55]KKMCreateOFDPacket done [10:24:55]NVStorageSaveData kkm_last_timestamp [10:24:55]File name is /storage/kkm_last_timestamp [10:24:55]Write 4 bytes [10:24:55]NVStorageSaveData done [10:24:55]ExternCall_PrintAddStr [10:24:55]wPrintStart [10:24:55]Write to MH i2c: 01 00 00 B8 34 EC [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 B8 34 00 00 00 00 00 FF 0F 01 [10:24:55]RasterBufferAndPrint [10:24:55]line Счет N : (1)347912 [10:24:55]line ИНН: 02508201610067 [10:24:55]line Контрольно-Кассовый Чек [10:24:55]line ПРОДАЖА [10:24:55]line ТРК (МРК, ГНК) : 51 [10:24:55]line Товар: 2710194210 [10:24:55]line ДТ-К-5 [10:24:55]line 137.180 * 72.90 [10:24:55]line = 10000.42 [10:24:55]line НДС 12% НСП 1% [10:24:55]line > о реализуемом товаре [10:24:55]line ИТОГО: 10000.42 [10:24:55]line НСП 1% : 88.50 [10:24:55]line НДС 12% : 1061.99 [10:24:55]line Наличными: 0.00 [10:24:55]line Безнал.: 10000.42 [10:24:55]line Место: АЗС № 108 "Партнер Нефть" [10:24:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:24:55]line СНО: Общий режим [10:24:55]line Чек 93 15.04.2024 10:24 [10:24:55]line Смена: 117 ФФД: 1.0 [10:24:55]line ЗНМ: 0300000027 [10:24:55]line РНМ: 0000138879044617 [10:24:55]line Версия ККМ: 001 [10:24:55]line Платежная система: О! деньги [10:24:55]line ФМ: 0000000000963154 [10:24:55]line ФД: 29499 [10:24:55]line ФПД: 265266108732627 [10:24:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102457&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29499&fm=265266108732627&tin=02508201610067®Number=0000138879044617&sum=1000042 [10:24:55]OFD Sender: Processing packet 29499 [packets to send 8, broken 7] [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00029499 [10:24:55]OFD Sender: To server: pG, [10:24:55]CommunicateWithHost lk.salyk.kg:30040 [10:24:55]ConnectInit lk.salyk.kg [10:24:55]written 0, free lines is 4095 [10:24:55]Connected sock=10 [10:24:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DB 81 04 01 78 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 79 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 73 00 00 35 04 06 00 F1 42 14 2E 94 D3 88 42 CF 91 C8 E8 8B FF [10:24:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE 85 47 00 0D 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 39 36 33 31 35 34 10 04 04 00 3B 73 00 00 F4 03 04 00 1A AB 1C 66 B6 04 01 00 00 5F BD E3 AB 7E 7F 2F C8 [10:24:55]CommunicateWithHost err = 0 [10:24:55]CheckOFDResponse [10:24:55]1017 (14) - 77093643461234 [10:24:55]1041 (16) - 0000000000963154 [10:24:55]1040 (4) - 29499 [10:24:55]1012 (4) - 15.04.2024 04:20 [10:24:55]1206 (1) - 0 [10:24:55]OFD Sender: Remove packet 29499 [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00029499 [10:24:55]NVStorageDeleteData [10:24:55]Write to MH i2c: 01 00 00 E1 34 15 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 E1 34 00 00 00 00 00 EA 0C 12 [10:24:55]RasterBufferAndPrint [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]written 0, free lines is 3313 [10:24:55]MH_Cut [10:24:55]Write to MH i2c: D1 01 00 E8 34 01 EE [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 E8 34 00 ED [10:24:55]Write to MH i2c: 01 00 00 E9 34 1D [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:56]OFD Sender: No OFD packet to send [10:24:56]*** Cut start [10:24:56]*** Partial cut [10:24:56]*** CUTSNS_PIN = 1 [10:24:56]*** CUTSNS_PIN = 0 [10:24:57]*** Brake cut motor [10:24:57]Read from MH i2c: 01 [10:24:57]MH_I2C_Read... [10:24:57]*** Stop cut motor [10:24:57]*** Cut end [10:24:57]Read from MH i2c: 01 07 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: 01 07 00 E9 34 00 00 00 00 00 FF 0F 32 [10:24:57]process_action close_receipt done [10:24:57]requested_data is exist [10:24:57]produce_requested_data [10:24:57]requested_item fm.sn is exist - process it [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 11 00 00 [10:24:57]Write to MH i2c: E2 08 00 EA 34 80 11 00 00 00 00 00 00 98 [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 17 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 17 00 EA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [10:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:24:57]wFMCommunicate OK [10:24:57]requested_item fd.num is exist - process it [10:24:57]SAM_PROTO_GetFieldsCounters [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 13 00 00 [10:24:57]Write to MH i2c: E2 08 00 EB 34 80 13 00 00 00 00 00 00 9B [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 62 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 62 00 EB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 73 00 00 0E 04 04 00 75 00 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 13 [10:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 73 00 00 0E 04 04 00 75 00 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:57]wFMCommunicate OK [10:24:57]SAM_PROTO_GetFieldsCounters done [10:24:57]requested_item shift.num is exist - process it [10:24:57]requested_item shift.opened is exist - process it [10:24:57]req_shift_opened [10:24:57]FM_GetShiftState [10:24:57]SAM_PROTO_GetShiftState [10:24:57]wFMCommunicate request_size=4 [10:24:57]MH_SAM_APDU [10:24:57]CAPDU: 80 13 01 00 [10:24:57]Write to MH i2c: E2 08 00 EC 34 80 13 01 00 00 00 00 00 9D [10:24:57]Write i2c OK [10:24:57]MH_I2C_Read... [10:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:57]Read from MH i2c: E2 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 [10:24:57]MH_I2C_Read... [10:24:57]Read from MH i2c: E2 0E 00 EC 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [10:24:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:24:57]wFMCommunicate OK [10:24:57]SAM_PROTO_GetShiftState done [10:24:57]FM_GetShiftState done [10:24:57]req_shift_opened done [10:24:57]requested_item shift.open_date is exist - process it [10:24:57]req_shift_open_date [10:24:57]req_shift_open_date done [10:24:57]produce_requested_data done [10:24:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29499,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:24:57]process_action_free close_receipt [10:24:57]json_value_free [10:24:57]json_value_free done [10:24:57]process_json_proto returns [10:24:57]Send response to host [10:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29499,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:24:57]free response buf [10:24:57]execute_script done [10:24:57]execute_script returns [10:24:57]free content buf [10:24:57]Sock 8.Close socket [10:24:57]Sock 8.Thread stoped [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:54]accept exits with 9 [10:25:54]New connection [10:25:54]New thread 3067112804 created [10:25:54]Thread 3066969444 joined [10:25:54]Waiting for new connection... [10:25:54] Sock 9.Parse request [10:25:54]Sock 9.Check first char [10:25:54]Sock 9.First char is OK [10:25:54]request: POST /json_proto HTTP/1.0 [10:25:54]Method: POST [10:25:54]URL: /json_proto [10:25:54]Method is POST - this is cgi request [10:25:54]url: /json_proto [10:25:54]query_string will be loaded in cgi processing [10:25:54]execute_cgi json_proto POST (null) [10:25:54]execute_cgi path=json_proto method=POST [10:25:54]POST find Content-Length [10:25:54]Host: 172.17.33.3:8080 [10:25:54]Content-Length: 677 [10:25:54]Content-Type: application/json [10:25:54] [10:25:54]POST finish read [10:25:54]Found Content-Length = 677 [10:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:54]execute_script... [10:25: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)347915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:54]POST & json_proto [10:25:54]process_json_proto [10:25:54]json parsed OK: [10:25:54]protocol is kg_v1.0 [10:25:54]action value=close_receipt [10:25:54]process_action close_receipt [10:25:54]cmd_close_receipt [10:25:54]MH_GetDate [10:25:54]Write to MH i2c: F0 00 00 ED 34 10 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: F0 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: F0 09 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: F0 09 00 ED 34 00 B6 00 1D 66 23 5B 8F 65 C4 [10:25:54]GetLastDocTimeStamp 1713176697 [10:25:54]current date 1713176758 [10:25:54]FM_GetShiftState [10:25:54]SAM_PROTO_GetShiftState [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 13 01 00 [10:25:54]Write to MH i2c: E2 08 00 EE 34 80 13 01 00 00 00 00 00 9F [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0E 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0E 00 EE 34 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 93 [10:25:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_GetShiftState done [10:25:54]FM_GetShiftState done [10:25:54]opened in 1713140468 [10:25:54]opened+sec_in_day 1713226868 [10:25:54]quantity*price = 45036 [10:25:54]sum+1 = 45037 [10:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 94 15.04.2024 10:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29500 ФПД: 47782350431713 1/tax-web-control/client/api/v1/ticket?date=20240415T102558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29500&fm=47782350431713&tin=02508201610067®Number=0000138879044617&sum=45000 [10:25:55]StoreToDocumentArchive [10:25:55]shift 117 fd 29500 [10:25:55]save to /storage/0117/doc_00029500 [10:25:55]save last doc name /storage/0117/doc_00029500 to /storage/kkm_last_doc_name [10:25:55]save OK [10:25:55]Clear old archive folders... [10:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:55]tlvbuf is 0027BB20 [10:25:55]SAM_PROTO_ClearQueue [10:25:55]wFMCommunicate request_size=4 [10:25:55]MH_SAM_APDU [10:25:55]CAPDU: 80 09 00 00 [10:25:55]Write to MH i2c: E2 08 00 FB 34 80 09 00 00 00 00 00 00 A1 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:55]Read from MH i2c: E2 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 FB 34 00 90 00 A3 [10:25:55]RAPDU: 90 00 [10:25:55]wFMCommunicate OK [10:25:55]SAM_PROTO_ClearQueue done [10:25:55]KKMCreateOFDPacket [10:25:55]OFDProtocolAddRootSTLVToBuf [10:25:55]FM_MakeSignedData [10:25:55]FM_MakeSignedData [10:25:55]SAM_PROTO_SignData [10:25:55]wFMCommunicate request_size=4 [10:25:55]MH_SAM_APDU [10:25:55]CAPDU: 80 0D 01 02 [10:25:55]Write to MH i2c: E2 08 00 FC 34 80 0D 01 02 00 00 00 00 A9 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:55]Read from MH i2c: E2 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 FC 34 00 90 00 A4 [10:25:55]RAPDU: 90 00 [10:25:55]wFMCommunicate OK [10:25:55]wFMCommunicate request_size=255 [10:25:55]MH_SAM_APDU [10:25: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 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B6 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 73 00 00 35 04 06 00 2B [10:25:55]Write to MH i2c: E2 02 01 FD 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B6 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 73 00 00 35 04 06 00 2B 00 00 39 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:55]Read from MH i2c: E2 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 FD 34 00 90 00 A5 [10:25:55]RAPDU: 90 00 [10:25:55]wFMCommunicate OK [10:25:55]wFMCommunicate request_size=10 [10:25:55]MH_SAM_APDU [10:25:55]CAPDU: 80 0D 02 02 05 75 32 06 25 E1 [10:25:55]Write to MH i2c: E2 0D 00 FE 34 80 0D 02 02 05 00 75 32 06 25 E1 00 00 69 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:55]Read from MH i2c: E2 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: E2 03 00 FE 34 00 90 00 A6 [10:25:55]RAPDU: 90 00 [10:25:55]wFMCommunicate OK [10:25:55]wFMCommunicate request_size=4 [10:25:55]MH_SAM_APDU [10:25:55]CAPDU: 80 0D 03 02 [10:25:55]Write to MH i2c: E2 08 00 FF 34 80 0D 03 02 00 00 00 00 AE [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0B 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0B 00 FF 34 00 9A 64 C5 C5 A4 A8 A1 00 90 00 24 [10:25:56]RAPDU: 9A 64 C5 C5 A4 A8 A1 00 90 00 [10:25:56]wFMCommunicate OK [10:25:56]SAM_PROTO_SignData done [10:25:56]FM_MakeSignedData done [10:25:56]CreateOFDProtocolMessage [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 11 00 00 [10:25:56]Write to MH i2c: E2 08 00 00 35 80 11 00 00 00 00 00 00 AF [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 17 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 17 00 00 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [10:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:25:56]wFMCommunicate OK [10:25:56]CreateOFDProtocolMessage done [10:25:56]OFDSenderStorePacket 29500 [10:25:56]StoreOFDPacket docnum=29500 [10:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 40 07 01 6F DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B6 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 73 00 00 35 04 06 00 2B 75 32 06 25 E1 9A 64 C5 C5 A4 A8 A1 00 [10:25:56]CheckFolder [10:25:56]dirname=/storage/ofd_packets [10:25:56]CheckFolder done [10:25:56]ProducePacketName [10:25:56]name=ofd_packets/00029500 [10:25:56]NVStorageSaveData ofd_packets/00029500 [10:25:56]File name is /storage/ofd_packets/00029500 [10:25:56]Write 301 bytes [10:25:56]NVStorageSaveData done [10:25:56]OFDSenderStorePacket done [10:25:56]KKMCreateOFDPacket done [10:25:56]NVStorageSaveData kkm_last_timestamp [10:25:56]File name is /storage/kkm_last_timestamp [10:25:56]Write 4 bytes [10:25:56]NVStorageSaveData done [10:25:56]ExternCall_PrintAddStr [10:25:56]wPrintStart [10:25:56]Write to MH i2c: 01 00 00 01 35 36 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 01 35 00 00 00 00 00 FF 0F 4B [10:25:56]RasterBufferAndPrint [10:25:56]line Счет N : (1)347915 [10:25:56]line ИНН: 02508201610067 [10:25:56]line Контрольно-Кассовый Чек [10:25:56]line ПРОДАЖА [10:25:56]line ТРК (МРК, ГНК) : 32 [10:25:56]line Товар: 2710124130 [10:25:56]line Аи-92-К-5 [10:25:56]line 6.950 * 64.80 [10:25:56]line = 450.36 [10:25:56]line НДС 12% НСП 1% [10:25:56]line > о реализуемом товаре [10:25:56]line ОКРУГЛЕНИЕ: -0.36 [10:25:56]line ИТОГО: 450.00 [10:25:56]line Внесено: 450.00 [10:25:56]line СДАЧА: 0.00 [10:25:56]line НСП 1% : 3.98 [10:25:56]line НДС 12% : 47.83 [10:25:56]line Наличными: 450.00 [10:25:56]line Безнал.: 0.00 [10:25:56]line Место: АЗС № 108 "Партнер Нефть" [10:25:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:25:56]line СНО: Общий режим [10:25:56]line Чек 94 15.04.2024 10:25 [10:25:56]line Смена: 117 ФФД: 1.0 [10:25:56]line ЗНМ: 0300000027 [10:25:56]line РНМ: 0000138879044617 [10:25:56]line Версия ККМ: 001 [10:25:56]line ФМ: 0000000000963154 [10:25:56]line ФД: 29500 [10:25:56]line ФПД: 47782350431713 [10:25:56]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29500&fm=47782350431713&tin=02508201610067®Number=0000138879044617&sum=45000 [10:25:56]OFD Sender: Processing packet 29500 [packets to send 8, broken 7] [10:25:56]ProducePacketName [10:25:56]name=ofd_packets/00029500 [10:25:56]OFD Sender: To server: pG, [10:25:56]CommunicateWithHost lk.salyk.kg:30040 [10:25:56]ConnectInit lk.salyk.kg [10:25:56]written 0, free lines is 4095 [10:25:56]Connected sock=10 [10:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A8 40 07 01 6F DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B6 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 73 00 00 35 04 06 00 2B 75 32 06 25 E1 9A 64 C5 C5 A4 A8 A1 00 [10:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0A 96 47 00 6F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 73 00 00 F4 03 04 00 57 AB 1C 66 B6 04 01 00 00 82 51 8B 03 C0 C6 A7 D6 [10:25:56]CommunicateWithHost err = 0 [10:25:56]CheckOFDResponse [10:25:56]1017 (14) - 77093643461234 [10:25:56]1041 (16) - 0000000000963154 [10:25:56]1040 (4) - 29500 [10:25:56]1012 (4) - 15.04.2024 04:21 [10:25:56]1206 (1) - 0 [10:25:56]OFD Sender: Remove packet 29500 [10:25:56]ProducePacketName [10:25:56]name=ofd_packets/00029500 [10:25:56]NVStorageDeleteData [10:25:56]Write to MH i2c: 01 00 00 2B 35 60 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 2B 35 00 00 00 00 00 C6 0C 39 [10:25:56]RasterBufferAndPrint [10:25:56]line [10:25:56]line [10:25:56]line [10:25:56]line [10:25:56]line [10:25:56]written 0, free lines is 3276 [10:25:56]MH_Cut [10:25:56]Write to MH i2c: D1 01 00 32 35 01 39 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: D1 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: D1 01 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: D1 01 00 32 35 00 38 [10:25:56]Write to MH i2c: 01 00 00 33 35 68 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:57]OFD Sender: No OFD packet to send [10:25:57]*** Cut start [10:25:57]*** Partial cut [10:25:57]*** CUTSNS_PIN = 1 [10:25:57]*** CUTSNS_PIN = 0 [10:25:57]*** Brake cut motor [10:25:58]Read from MH i2c: 01 [10:25:58]MH_I2C_Read... [10:25:58]*** Stop cut motor [10:25:58]*** Cut end [10:25:58]Read from MH i2c: 01 07 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: 01 07 00 33 35 00 00 00 00 00 FF 0F 7D [10:25:58]process_action close_receipt done [10:25:58]requested_data is exist [10:25:58]produce_requested_data [10:25:58]requested_item fm.sn is exist - process it [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 11 00 00 [10:25:58]Write to MH i2c: E2 08 00 34 35 80 11 00 00 00 00 00 00 E3 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 17 00 34 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [10:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:25:58]wFMCommunicate OK [10:25:58]requested_item fd.num is exist - process it [10:25:58]SAM_PROTO_GetFieldsCounters [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 13 00 00 [10:25:58]Write to MH i2c: E2 08 00 35 35 80 13 00 00 00 00 00 00 E6 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 62 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 62 00 35 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 73 00 00 0E 04 04 00 75 00 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 62 [10:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 73 00 00 0E 04 04 00 75 00 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:25:58]wFMCommunicate OK [10:25:58]SAM_PROTO_GetFieldsCounters done [10:25:58]requested_item shift.num is exist - process it [10:25:58]requested_item shift.opened is exist - process it [10:25:58]req_shift_opened [10:25:58]FM_GetShiftState [10:25:58]SAM_PROTO_GetShiftState [10:25:58]wFMCommunicate request_size=4 [10:25:58]MH_SAM_APDU [10:25:58]CAPDU: 80 13 01 00 [10:25:58]Write to MH i2c: E2 08 00 36 35 80 13 01 00 00 00 00 00 E8 [10:25:58]Write i2c OK [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 [10:25:58]MH_I2C_Read... [10:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:58]Read from MH i2c: E2 0E 00 [10:25:58]MH_I2C_Read... [10:25:58]Read from MH i2c: E2 0E 00 36 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DC [10:25:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:25:58]wFMCommunicate OK [10:25:58]SAM_PROTO_GetShiftState done [10:25:58]FM_GetShiftState done [10:25:58]req_shift_opened done [10:25:58]requested_item shift.open_date is exist - process it [10:25:58]req_shift_open_date [10:25:58]req_shift_open_date done [10:25:58]produce_requested_data done [10:25:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29500,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:25:58]process_action_free close_receipt [10:25:58]json_value_free [10:25:58]json_value_free done [10:25:58]process_json_proto returns [10:25:58]Send response to host [10:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29500,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:25:58]free response buf [10:25:58]execute_script done [10:25:58]execute_script returns [10:25:58]free content buf [10:25:58]Sock 9.Close socket [10:25:58]Sock 9.Thread stoped [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:08]accept exits with 8 [10:26:08]New connection [10:26:08]New thread 3066969444 created [10:26:08]Thread 3067112804 joined [10:26:08]Waiting for new connection... [10:26:08] Sock 8.Parse request [10:26:08]Sock 8.Check first char [10:26:08]Sock 8.First char is OK [10:26:08]request: POST /json_proto HTTP/1.0 [10:26:08]Method: POST [10:26:08]URL: /json_proto [10:26:08]Method is POST - this is cgi request [10:26:08]url: /json_proto [10:26:08]query_string will be loaded in cgi processing [10:26:08]execute_cgi json_proto POST (null) [10:26:08]execute_cgi path=json_proto method=POST [10:26:08]POST find Content-Length [10:26:08]Host: 172.17.33.3:8080 [10:26:08]Content-Length: 674 [10:26:08]Content-Type: application/json [10:26:08] [10:26:08]POST finish read [10:26:08]Found Content-Length = 674 [10:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:26:08]execute_script... [10:26: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)347916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:26:08]POST & json_proto [10:26:08]process_json_proto [10:26:08]json parsed OK: [10:26:08]protocol is kg_v1.0 [10:26:08]action value=close_receipt [10:26:08]process_action close_receipt [10:26:08]cmd_close_receipt [10:26:08]MH_GetDate [10:26:08]Write to MH i2c: F0 00 00 37 35 5B [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: F0 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: F0 09 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: F0 09 00 37 35 00 C4 00 1D 66 23 5B 8F 65 1D [10:26:08]GetLastDocTimeStamp 1713176758 [10:26:08]current date 1713176772 [10:26:08]FM_GetShiftState [10:26:08]SAM_PROTO_GetShiftState [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 13 01 00 [10:26:08]Write to MH i2c: E2 08 00 38 35 80 13 01 00 00 00 00 00 EA [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0E 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0E 00 38 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DE [10:26:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:26:08]wFMCommunicate OK [10:26:08]SAM_PROTO_GetShiftState done [10:26:08]FM_GetShiftState done [10:26:08]opened in 1713140468 [10:26:08]opened+sec_in_day 1713226868 [10:26:08]quantity*price = 50009 [10:26:08]sum+1 = 50010 [10:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 95 15.04.2024 10:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29501 ФПД: 279826471023137 1/tax-web-control/client/api/v1/ticket?date=20240415T102612&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29501&fm=279826471023137&tin=02508201610067®Number=0000138879044617&sum=50000 [10:26:10]StoreToDocumentArchive [10:26:10]shift 117 fd 29501 [10:26:10]save to /storage/0117/doc_00029501 [10:26:10]save last doc name /storage/0117/doc_00029501 to /storage/kkm_last_doc_name [10:26:10]save OK [10:26:10]Clear old archive folders... [10:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:10]tlvbuf is 002A75A0 [10:26:10]SAM_PROTO_ClearQueue [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 09 00 00 [10:26:10]Write to MH i2c: E2 08 00 45 35 80 09 00 00 00 00 00 00 EC [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 45 35 00 90 00 EE [10:26:10]RAPDU: 90 00 [10:26:10]wFMCommunicate OK [10:26:10]SAM_PROTO_ClearQueue done [10:26:10]KKMCreateOFDPacket [10:26:10]OFDProtocolAddRootSTLVToBuf [10:26:10]FM_MakeSignedData [10:26:10]FM_MakeSignedData [10:26:10]SAM_PROTO_SignData [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 0D 01 02 [10:26:10]Write to MH i2c: E2 08 00 46 35 80 0D 01 02 00 00 00 00 F4 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 46 35 00 90 00 EF [10:26:10]RAPDU: 90 00 [10:26:10]wFMCommunicate OK [10:26:10]wFMCommunicate request_size=255 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C4 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 73 00 00 35 04 06 00 FE 80 2D 67 [10:26:10]Write to MH i2c: E2 02 01 47 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C4 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 73 00 00 35 04 06 00 FE 80 2D 67 00 00 98 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 47 35 00 90 00 F0 [10:26:10]RAPDU: 90 00 [10:26:10]wFMCommunicate OK [10:26:10]wFMCommunicate request_size=7 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 0D 02 02 02 72 21 [10:26:10]Write to MH i2c: E2 0A 00 48 35 80 0D 02 02 02 00 72 21 00 00 8E [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 03 00 48 35 00 90 00 F1 [10:26:10]RAPDU: 90 00 [10:26:10]wFMCommunicate OK [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 0D 03 02 [10:26:10]Write to MH i2c: E2 08 00 49 35 80 0D 03 02 00 00 00 00 F9 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 0B 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 0B 00 49 35 00 A7 27 D6 AD DC 44 67 A0 90 00 72 [10:26:10]RAPDU: A7 27 D6 AD DC 44 67 A0 90 00 [10:26:10]wFMCommunicate OK [10:26:10]SAM_PROTO_SignData done [10:26:10]FM_MakeSignedData done [10:26:10]CreateOFDProtocolMessage [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 11 00 00 [10:26:10]Write to MH i2c: E2 08 00 4A 35 80 11 00 00 00 00 00 00 F9 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 17 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 17 00 4A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [10:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:26:10]wFMCommunicate OK [10:26:10]CreateOFDProtocolMessage done [10:26:10]OFDSenderStorePacket 29501 [10:26:10]StoreOFDPacket docnum=29501 [10:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A1 70 04 01 A9 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C4 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 73 00 00 35 04 06 00 FE 80 2D 67 72 21 A7 27 D6 AD DC 44 67 A0 [10:26:10]CheckFolder [10:26:10]dirname=/storage/ofd_packets [10:26:10]CheckFolder done [10:26:10]ProducePacketName [10:26:10]name=ofd_packets/00029501 [10:26:10]NVStorageSaveData ofd_packets/00029501 [10:26:10]File name is /storage/ofd_packets/00029501 [10:26:10]Write 298 bytes [10:26:10]NVStorageSaveData done [10:26:10]OFDSenderStorePacket done [10:26:10]KKMCreateOFDPacket done [10:26:10]NVStorageSaveData kkm_last_timestamp [10:26:10]File name is /storage/kkm_last_timestamp [10:26:10]Write 4 bytes [10:26:10]NVStorageSaveData done [10:26:10]ExternCall_PrintAddStr [10:26:10]wPrintStart [10:26:10]Write to MH i2c: 01 00 00 4B 35 80 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 07 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 07 00 4B 35 00 00 00 00 00 FF 0F 95 [10:26:10]RasterBufferAndPrint [10:26:10]line Счет N : (1)347916 [10:26:10]line ИНН: 02508201610067 [10:26:10]line Контрольно-Кассовый Чек [10:26:10]line ПРОДАЖА [10:26:10]line ТРК (МРК, ГНК) : 11 [10:26:10]line Товар: 2710194210 [10:26:10]line ДТ-К-5 [10:26:10]line 6.860 * 72.90 [10:26:10]line = 500.09 [10:26:10]line НДС 12% НСП 1% [10:26:10]line > о реализуемом товаре [10:26:10]line ОКРУГЛЕНИЕ: -0.09 [10:26:10]line ИТОГО: 500.00 [10:26:10]line Внесено: 500.00 [10:26:10]line СДАЧА: 0.00 [10:26:10]line НСП 1% : 4.43 [10:26:10]line НДС 12% : 53.11 [10:26:10]line Наличными: 500.00 [10:26:10]line Безнал.: 0.00 [10:26:10]line Место: АЗС № 108 "Партнер Нефть" [10:26:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:26:10]line СНО: Общий режим [10:26:10]line Чек 95 15.04.2024 10:26 [10:26:10]line Смена: 117 ФФД: 1.0 [10:26:10]line ЗНМ: 0300000027 [10:26:10]line РНМ: 0000138879044617 [10:26:10]line Версия ККМ: 001 [10:26:10]line ФМ: 0000000000963154 [10:26:10]line ФД: 29501 [10:26:10]line ФПД: 279826471023137 [10:26:10]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102612&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29501&fm=279826471023137&tin=02508201610067®Number=0000138879044617&sum=50000 [10:26:10]OFD Sender: Processing packet 29501 [packets to send 8, broken 7] [10:26:10]ProducePacketName [10:26:10]name=ofd_packets/00029501 [10:26:10]OFD Sender: To server: pG, [10:26:10]CommunicateWithHost lk.salyk.kg:30040 [10:26:10]ConnectInit lk.salyk.kg [10:26:10]written 0, free lines is 4095 [10:26:10]Connected sock=10 [10:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A1 70 04 01 A9 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C4 00 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 73 00 00 35 04 06 00 FE 80 2D 67 72 21 A7 27 D6 AD DC 44 67 A0 [10:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 16 47 00 7E 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 39 36 33 31 35 34 10 04 04 00 3D 73 00 00 F4 03 04 00 66 AB 1C 66 B6 04 01 00 00 93 E7 F0 6B A9 8E 00 8E [10:26:11]CommunicateWithHost err = 0 [10:26:11]CheckOFDResponse [10:26:11]1017 (14) - 77093643461234 [10:26:11]1041 (16) - 0000000000963154 [10:26:11]1040 (4) - 29501 [10:26:11]1012 (4) - 15.04.2024 04:21 [10:26:11]1206 (1) - 0 [10:26:11]OFD Sender: Remove packet 29501 [10:26:11]ProducePacketName [10:26:11]name=ofd_packets/00029501 [10:26:11]NVStorageDeleteData [10:26:11]Write to MH i2c: 01 00 00 75 35 AA [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: 01 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: 01 07 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: 01 07 00 75 35 00 00 00 00 00 C6 0C 83 [10:26:11]RasterBufferAndPrint [10:26:11]line [10:26:11]line [10:26:11]line [10:26:11]line [10:26:11]line [10:26:11]written 0, free lines is 3274 [10:26:11]MH_Cut [10:26:11]Write to MH i2c: D1 01 00 7C 35 01 83 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: D1 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: D1 01 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: D1 01 00 7C 35 00 82 [10:26:11]Write to MH i2c: 01 00 00 7D 35 B2 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]OFD Sender: No OFD packet to send [10:26:12]*** Cut start [10:26:12]*** Partial cut [10:26:12]*** CUTSNS_PIN = 1 [10:26:12]*** CUTSNS_PIN = 0 [10:26:12]*** Brake cut motor [10:26:12]Read from MH i2c: 01 [10:26:12]MH_I2C_Read... [10:26:12]*** Stop cut motor [10:26:12]*** Cut end [10:26:12]Read from MH i2c: 01 07 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: 01 07 00 7D 35 00 00 00 00 00 FF 0F C7 [10:26:12]process_action close_receipt done [10:26:12]requested_data is exist [10:26:12]produce_requested_data [10:26:12]requested_item fm.sn is exist - process it [10:26:12]wFMCommunicate request_size=4 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 11 00 00 [10:26:12]Write to MH i2c: E2 08 00 7E 35 80 11 00 00 00 00 00 00 2D [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 17 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 17 00 7E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [10:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:26:12]wFMCommunicate OK [10:26:12]requested_item fd.num is exist - process it [10:26:12]SAM_PROTO_GetFieldsCounters [10:26:12]wFMCommunicate request_size=4 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 13 00 00 [10:26:12]Write to MH i2c: E2 08 00 7F 35 80 13 00 00 00 00 00 00 30 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:13]Read from MH i2c: E2 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 62 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 62 00 7F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 73 00 00 0E 04 04 00 75 00 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 B0 [10:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 73 00 00 0E 04 04 00 75 00 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:26:13]wFMCommunicate OK [10:26:13]SAM_PROTO_GetFieldsCounters done [10:26:13]requested_item shift.num is exist - process it [10:26:13]requested_item shift.opened is exist - process it [10:26:13]req_shift_opened [10:26:13]FM_GetShiftState [10:26:13]SAM_PROTO_GetShiftState [10:26:13]wFMCommunicate request_size=4 [10:26:13]MH_SAM_APDU [10:26:13]CAPDU: 80 13 01 00 [10:26:13]Write to MH i2c: E2 08 00 80 35 80 13 01 00 00 00 00 00 32 [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 [10:26:13]MH_I2C_Read... [10:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:13]Read from MH i2c: E2 0E 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: E2 0E 00 80 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 26 [10:26:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:26:13]wFMCommunicate OK [10:26:13]SAM_PROTO_GetShiftState done [10:26:13]FM_GetShiftState done [10:26:13]req_shift_opened done [10:26:13]requested_item shift.open_date is exist - process it [10:26:13]req_shift_open_date [10:26:13]req_shift_open_date done [10:26:13]produce_requested_data done [10:26:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29501,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:26:13]process_action_free close_receipt [10:26:13]json_value_free [10:26:13]json_value_free done [10:26:13]process_json_proto returns [10:26:13]Send response to host [10:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29501,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:26:13]free response buf [10:26:13]execute_script done [10:26:13]execute_script returns [10:26:13]free content buf [10:26:13]Sock 8.Close socket [10:26:13]Sock 8.Thread stoped [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:40]accept exits with 9 [10:28:40]New connection [10:28:40]New thread 3067112804 created [10:28:40]Thread 3066969444 joined [10:28:40]Waiting for new connection... [10:28:40] Sock 9.Parse request [10:28:40]Sock 9.Check first char [10:28:40]Sock 9.First char is OK [10:28:40]request: POST /json_proto HTTP/1.0 [10:28:40]Method: POST [10:28:40]URL: /json_proto [10:28:40]Method is POST - this is cgi request [10:28:40]url: /json_proto [10:28:40]query_string will be loaded in cgi processing [10:28:40]execute_cgi json_proto POST (null) [10:28:40]execute_cgi path=json_proto method=POST [10:28:40]POST find Content-Length [10:28:40]Host: 172.17.33.3:8080 [10:28:40]Content-Length: 677 [10:28:40]Content-Type: application/json [10:28:40] [10:28:40]POST finish read [10:28:40]Found Content-Length = 677 [10:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:40]execute_script... [10:28: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)347918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:40]POST & json_proto [10:28:40]process_json_proto [10:28:40]json parsed OK: [10:28:40]protocol is kg_v1.0 [10:28:40]action value=close_receipt [10:28:40]process_action close_receipt [10:28:40]cmd_close_receipt [10:28:40]MH_GetDate [10:28:40]Write to MH i2c: F0 00 00 81 35 A5 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 09 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: F0 09 00 81 35 00 5C 01 1D 66 23 5B 8F 65 00 [10:28:40]GetLastDocTimeStamp 1713176772 [10:28:40]current date 1713176924 [10:28:40]FM_GetShiftState [10:28:40]SAM_PROTO_GetShiftState [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 01 00 [10:28:40]Write to MH i2c: E2 08 00 82 35 80 13 01 00 00 00 00 00 34 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 82 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 28 [10:28:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetShiftState done [10:28:40]FM_GetShiftState done [10:28:40]opened in 1713140468 [10:28:40]opened+sec_in_day 1713226868 [10:28:40]quantity*price = 50025 [10:28:40]sum+1 = 50027 [10:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 96 15.04.2024 10:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29502 ФПД: 98023550904043 1/tax-web-control/client/api/v1/ticket?date=20240415T102844&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29502&fm=98023550904043&tin=02508201610067®Number=0000138879044617&sum=50000 [10:28:42]StoreToDocumentArchive [10:28:42]shift 117 fd 29502 [10:28:42]save to /storage/0117/doc_00029502 [10:28:42]save last doc name /storage/0117/doc_00029502 to /storage/kkm_last_doc_name [10:28:42]save OK [10:28:42]Clear old archive folders... [10:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:42]tlvbuf is B6F7C720 [10:28:42]SAM_PROTO_ClearQueue [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 09 00 00 [10:28:42]Write to MH i2c: E2 08 00 8F 35 80 09 00 00 00 00 00 00 36 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 8F 35 00 90 00 38 [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_ClearQueue done [10:28:42]KKMCreateOFDPacket [10:28:42]OFDProtocolAddRootSTLVToBuf [10:28:42]FM_MakeSignedData [10:28:42]FM_MakeSignedData [10:28:42]SAM_PROTO_SignData [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 01 02 [10:28:42]Write to MH i2c: E2 08 00 90 35 80 0D 01 02 00 00 00 00 3E [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 90 35 00 90 00 39 [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=255 [10:28:42]MH_SAM_APDU [10:28: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5C 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 73 00 00 35 04 06 00 59 [10:28:42]Write to MH i2c: E2 02 01 91 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5C 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 73 00 00 35 04 06 00 59 00 00 B6 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 91 35 00 90 00 3A [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=10 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 02 02 05 26 E2 EE 66 EB [10:28:42]Write to MH i2c: E2 0D 00 92 35 80 0D 02 02 05 00 26 E2 EE 66 EB 00 00 92 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 03 00 92 35 00 90 00 3B [10:28:42]RAPDU: 90 00 [10:28:42]wFMCommunicate OK [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 0D 03 02 [10:28:42]Write to MH i2c: E2 08 00 93 35 80 0D 03 02 00 00 00 00 43 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0B 00 93 35 00 C6 12 ED CC 4E A1 21 4A 90 00 2F [10:28:42]RAPDU: C6 12 ED CC 4E A1 21 4A 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_SignData done [10:28:42]FM_MakeSignedData done [10:28:42]CreateOFDProtocolMessage [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 94 35 80 11 00 00 00 00 00 00 43 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 94 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:42]wFMCommunicate OK [10:28:42]CreateOFDProtocolMessage done [10:28:42]OFDSenderStorePacket 29502 [10:28:42]StoreOFDPacket docnum=29502 [10:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 7C 07 01 19 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5C 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 73 00 00 35 04 06 00 59 26 E2 EE 66 EB C6 12 ED CC 4E A1 21 4A [10:28:42]CheckFolder [10:28:42]dirname=/storage/ofd_packets [10:28:42]CheckFolder done [10:28:42]ProducePacketName [10:28:42]name=ofd_packets/00029502 [10:28:42]NVStorageSaveData ofd_packets/00029502 [10:28:42]File name is /storage/ofd_packets/00029502 [10:28:42]Write 301 bytes [10:28:42]NVStorageSaveData done [10:28:42]OFDSenderStorePacket done [10:28:42]KKMCreateOFDPacket done [10:28:42]NVStorageSaveData kkm_last_timestamp [10:28:42]File name is /storage/kkm_last_timestamp [10:28:42]Write 4 bytes [10:28:42]NVStorageSaveData done [10:28:42]ExternCall_PrintAddStr [10:28:42]wPrintStart [10:28:42]Write to MH i2c: 01 00 00 95 35 CA [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 95 35 00 00 00 00 00 FF 0F DF [10:28:42]RasterBufferAndPrint [10:28:42]line Счет N : (1)347918 [10:28:42]line ИНН: 02508201610067 [10:28:42]line Контрольно-Кассовый Чек [10:28:42]line ПРОДАЖА [10:28:42]line ТРК (МРК, ГНК) : 42 [10:28:42]line Товар: 2710124130 [10:28:42]line Аи-92-К-5 [10:28:42]line 7.720 * 64.80 [10:28:42]line = 500.26 [10:28:42]line НДС 12% НСП 1% [10:28:42]line > о реализуемом товаре [10:28:42]line ОКРУГЛЕНИЕ: -0.26 [10:28:42]line ИТОГО: 500.00 [10:28:42]line Внесено: 500.00 [10:28:42]line СДАЧА: 0.00 [10:28:42]line НСП 1% : 4.43 [10:28:42]line НДС 12% : 53.12 [10:28:42]line Наличными: 500.00 [10:28:42]line Безнал.: 0.00 [10:28:42]line Место: АЗС № 108 "Партнер Нефть" [10:28:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:28:42]line СНО: Общий режим [10:28:42]line Чек 96 15.04.2024 10:28 [10:28:42]line Смена: 117 ФФД: 1.0 [10:28:42]line ЗНМ: 0300000027 [10:28:42]line РНМ: 0000138879044617 [10:28:42]line Версия ККМ: 001 [10:28:42]line ФМ: 0000000000963154 [10:28:42]line ФД: 29502 [10:28:42]line ФПД: 98023550904043 [10:28:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102844&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29502&fm=98023550904043&tin=02508201610067®Number=0000138879044617&sum=50000 [10:28:42]OFD Sender: Processing packet 29502 [packets to send 8, broken 7] [10:28:42]ProducePacketName [10:28:42]name=ofd_packets/00029502 [10:28:42]OFD Sender: To server: pG, [10:28:42]CommunicateWithHost lk.salyk.kg:30040 [10:28:42]ConnectInit lk.salyk.kg [10:28:42]written 0, free lines is 4095 [10:28:43]Connected sock=11 [10:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 7C 07 01 19 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 5C 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 73 00 00 35 04 06 00 59 26 E2 EE 66 EB C6 12 ED CC 4E A1 21 4A [10:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 B3 47 00 A8 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 73 00 00 F4 03 04 00 FE AB 1C 66 B6 04 01 00 00 02 D3 3F A3 F1 C4 4B 7B [10:28:43]CommunicateWithHost err = 0 [10:28:43]CheckOFDResponse [10:28:43]1017 (14) - 77093643461234 [10:28:43]1041 (16) - 0000000000963154 [10:28:43]1040 (4) - 29502 [10:28:43]1012 (4) - 15.04.2024 04:24 [10:28:43]1206 (1) - 0 [10:28:43]OFD Sender: Remove packet 29502 [10:28:43]ProducePacketName [10:28:43]name=ofd_packets/00029502 [10:28:43]NVStorageDeleteData [10:28:43]Write to MH i2c: 01 00 00 BF 35 F4 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 07 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: 01 07 00 BF 35 00 00 00 00 00 CC 0C D3 [10:28:43]RasterBufferAndPrint [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]line [10:28:43]written 0, free lines is 3282 [10:28:43]MH_Cut [10:28:43]Write to MH i2c: D1 01 00 C6 35 01 CD [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 01 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: D1 01 00 C6 35 00 CC [10:28:43]Write to MH i2c: 01 00 00 C7 35 FC [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]OFD Sender: No OFD packet to send [10:28:44]*** Cut start [10:28:44]*** Partial cut [10:28:44]*** CUTSNS_PIN = 1 [10:28:44]*** CUTSNS_PIN = 0 [10:28:44]*** Brake cut motor [10:28:44]Read from MH i2c: 01 [10:28:44]MH_I2C_Read... [10:28:44]*** Stop cut motor [10:28:44]*** Cut end [10:28:44]Read from MH i2c: 01 07 00 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 07 00 C7 35 00 00 00 00 00 FF 0F 11 [10:28:44]process_action close_receipt done [10:28:44]requested_data is exist [10:28:44]produce_requested_data [10:28:44]requested_item fm.sn is exist - process it [10:28:44]wFMCommunicate request_size=4 [10:28:44]MH_SAM_APDU [10:28:44]CAPDU: 80 11 00 00 [10:28:44]Write to MH i2c: E2 08 00 C8 35 80 11 00 00 00 00 00 00 77 [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [10:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:44]Read from MH i2c: E2 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: E2 17 00 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: E2 17 00 C8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [10:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:44]wFMCommunicate OK [10:28:44]requested_item fd.num is exist - process it [10:28:44]SAM_PROTO_GetFieldsCounters [10:28:44]wFMCommunicate request_size=4 [10:28:44]MH_SAM_APDU [10:28:44]CAPDU: 80 13 00 00 [10:28:44]Write to MH i2c: E2 08 00 C9 35 80 13 00 00 00 00 00 00 7A [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [10:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 62 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 62 00 C9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 73 00 00 0E 04 04 00 75 00 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 FE [10:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 73 00 00 0E 04 04 00 75 00 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:28:45]wFMCommunicate OK [10:28:45]SAM_PROTO_GetFieldsCounters done [10:28:45]requested_item shift.num is exist - process it [10:28:45]requested_item shift.opened is exist - process it [10:28:45]req_shift_opened [10:28:45]FM_GetShiftState [10:28:45]SAM_PROTO_GetShiftState [10:28:45]wFMCommunicate request_size=4 [10:28:45]MH_SAM_APDU [10:28:45]CAPDU: 80 13 01 00 [10:28:45]Write to MH i2c: E2 08 00 CA 35 80 13 01 00 00 00 00 00 7C [10:28:45]Write i2c OK [10:28:45]MH_I2C_Read... [10:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:45]Read from MH i2c: E2 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 [10:28:45]MH_I2C_Read... [10:28:45]Read from MH i2c: E2 0E 00 CA 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 70 [10:28:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:28:45]wFMCommunicate OK [10:28:45]SAM_PROTO_GetShiftState done [10:28:45]FM_GetShiftState done [10:28:45]req_shift_opened done [10:28:45]requested_item shift.open_date is exist - process it [10:28:45]req_shift_open_date [10:28:45]req_shift_open_date done [10:28:45]produce_requested_data done [10:28:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29502,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:28:45]process_action_free close_receipt [10:28:45]json_value_free [10:28:45]json_value_free done [10:28:45]process_json_proto returns [10:28:45]Send response to host [10:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29502,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:28:45]free response buf [10:28:45]execute_script done [10:28:45]execute_script returns [10:28:45]free content buf [10:28:45]Sock 9.Close socket [10:28:45]Sock 9.Thread stoped [10:28:48]OFD Sender: No OFD packet to send [10:28:53]accept exits with 8 [10:28:53]New connection [10:28:53]New thread 3066969444 created [10:28:53]Thread 3067112804 joined [10:28:53]Waiting for new connection... [10:28:53] Sock 8.Parse request [10:28:53]Sock 8.Check first char [10:28:53]Sock 8.First char is OK [10:28:53]request: POST /json_proto HTTP/1.0 [10:28:53]Method: POST [10:28:53]URL: /json_proto [10:28:53]Method is POST - this is cgi request [10:28:53]url: /json_proto [10:28:53]query_string will be loaded in cgi processing [10:28:53]execute_cgi json_proto POST (null) [10:28:53]execute_cgi path=json_proto method=POST [10:28:53]POST find Content-Length [10:28:53]Host: 172.17.33.3:8080 [10:28:53]Content-Length: 678 [10:28:53]Content-Type: application/json [10:28:53] [10:28:53]POST finish read [10:28:53]Found Content-Length = 678 [10:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:53]execute_script... [10:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:53]POST & json_proto [10:28:53]process_json_proto [10:28:53]json parsed OK: [10:28:53]protocol is kg_v1.0 [10:28:53]action value=close_receipt [10:28:53]process_action close_receipt [10:28:53]cmd_close_receipt [10:28:53]MH_GetDate [10:28:53]Write to MH i2c: F0 00 00 CB 35 EF [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 09 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 09 00 CB 35 00 69 01 1D 66 23 5B 8F 65 57 [10:28:53]GetLastDocTimeStamp 1713176924 [10:28:53]current date 1713176937 [10:28:53]FM_GetShiftState [10:28:53]SAM_PROTO_GetShiftState [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 13 01 00 [10:28:53]Write to MH i2c: E2 08 00 CC 35 80 13 01 00 00 00 00 00 7E [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 CC 35 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 72 [10:28:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_GetShiftState done [10:28:53]FM_GetShiftState done [10:28:53]opened in 1713140468 [10:28:53]opened+sec_in_day 1713226868 [10:28:53]quantity*price = 65059 [10:28:53]sum+1 = 65060 [10:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 97 15.04.2024 10:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29503 ФПД: 111808229273312 1/tax-web-control/client/api/v1/ticket?date=20240415T102857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29503&fm=111808229273312&tin=02508201610067®Number=0000138879044617&sum=65000 [10:28:54]StoreToDocumentArchive [10:28:54]shift 117 fd 29503 [10:28:54]save to /storage/0117/doc_00029503 [10:28:54]save last doc name /storage/0117/doc_00029503 to /storage/kkm_last_doc_name [10:28:54]save OK [10:28:54]Clear old archive folders... [10:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:54]tlvbuf is B6DCF8E0 [10:28:54]SAM_PROTO_ClearQueue [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 09 00 00 [10:28:54]Write to MH i2c: E2 08 00 D9 35 80 09 00 00 00 00 00 00 80 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 D9 35 00 90 00 82 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]SAM_PROTO_ClearQueue done [10:28:54]KKMCreateOFDPacket [10:28:54]OFDProtocolAddRootSTLVToBuf [10:28:54]FM_MakeSignedData [10:28:54]FM_MakeSignedData [10:28:54]SAM_PROTO_SignData [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 0D 01 02 [10:28:54]Write to MH i2c: E2 08 00 DA 35 80 0D 01 02 00 00 00 00 88 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 DA 35 00 90 00 83 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]wFMCommunicate request_size=255 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 69 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 73 00 00 35 04 06 00 65 [10:28:54]Write to MH i2c: E2 02 01 DB 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 69 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 73 00 00 35 04 06 00 65 00 00 95 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 03 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 03 00 DB 35 00 90 00 84 [10:28:55]RAPDU: 90 00 [10:28:55]wFMCommunicate OK [10:28:55]wFMCommunicate request_size=10 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 0D 02 02 05 B0 61 C9 EE E0 [10:28:55]Write to MH i2c: E2 0D 00 DC 35 80 0D 02 02 05 00 B0 61 C9 EE E0 00 00 3D [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 03 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 03 00 DC 35 00 90 00 85 [10:28:55]RAPDU: 90 00 [10:28:55]wFMCommunicate OK [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 0D 03 02 [10:28:55]Write to MH i2c: E2 08 00 DD 35 80 0D 03 02 00 00 00 00 8D [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0B 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0B 00 DD 35 00 44 93 E1 62 1B 20 97 05 90 00 7F [10:28:55]RAPDU: 44 93 E1 62 1B 20 97 05 90 00 [10:28:55]wFMCommunicate OK [10:28:55]SAM_PROTO_SignData done [10:28:55]FM_MakeSignedData done [10:28:55]CreateOFDProtocolMessage [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 11 00 00 [10:28:55]Write to MH i2c: E2 08 00 DE 35 80 11 00 00 00 00 00 00 8D [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 17 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 17 00 DE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [10:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:55]wFMCommunicate OK [10:28:55]CreateOFDProtocolMessage done [10:28:55]OFDSenderStorePacket 29503 [10:28:55]StoreOFDPacket docnum=29503 [10:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6D 04 07 01 78 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 69 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 73 00 00 35 04 06 00 65 B0 61 C9 EE E0 44 93 E1 62 1B 20 97 05 [10:28:55]CheckFolder [10:28:55]dirname=/storage/ofd_packets [10:28:55]CheckFolder done [10:28:55]ProducePacketName [10:28:55]name=ofd_packets/00029503 [10:28:55]NVStorageSaveData ofd_packets/00029503 [10:28:55]File name is /storage/ofd_packets/00029503 [10:28:55]Write 301 bytes [10:28:55]NVStorageSaveData done [10:28:55]OFDSenderStorePacket done [10:28:55]KKMCreateOFDPacket done [10:28:55]NVStorageSaveData kkm_last_timestamp [10:28:55]File name is /storage/kkm_last_timestamp [10:28:55]Write 4 bytes [10:28:55]NVStorageSaveData done [10:28:55]ExternCall_PrintAddStr [10:28:55]wPrintStart [10:28:55]Write to MH i2c: 01 00 00 DF 35 14 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 DF 35 00 00 00 00 00 FF 0F 29 [10:28:55]RasterBufferAndPrint [10:28:55]line Счет N : (1)347917 [10:28:55]line ИНН: 02508201610067 [10:28:55]line Контрольно-Кассовый Чек [10:28:55]line ПРОДАЖА [10:28:55]line ТРК (МРК, ГНК) : 32 [10:28:55]line Товар: 2710124130 [10:28:55]line Аи-92-К-5 [10:28:55]line 10.040 * 64.80 [10:28:55]line = 650.59 [10:28:55]line НДС 12% НСП 1% [10:28:55]line > о реализуемом товаре [10:28:55]line ОКРУГЛЕНИЕ: -0.59 [10:28:55]line ИТОГО: 650.00 [10:28:55]line Внесено: 650.00 [10:28:55]line СДАЧА: 0.00 [10:28:55]line НСП 1% : 5.76 [10:28:55]line НДС 12% : 69.09 [10:28:55]line Наличными: 650.00 [10:28:55]line Безнал.: 0.00 [10:28:55]line Место: АЗС № 108 "Партнер Нефть" [10:28:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:28:55]line СНО: Общий режим [10:28:55]line Чек 97 15.04.2024 10:28 [10:28:55]line Смена: 117 ФФД: 1.0 [10:28:55]line ЗНМ: 0300000027 [10:28:55]line РНМ: 0000138879044617 [10:28:55]line Версия ККМ: 001 [10:28:55]line ФМ: 0000000000963154 [10:28:55]line ФД: 29503 [10:28:55]line ФПД: 111808229273312 [10:28:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T102857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29503&fm=111808229273312&tin=02508201610067®Number=0000138879044617&sum=65000 [10:28:55]OFD Sender: Processing packet 29503 [packets to send 8, broken 7] [10:28:55]ProducePacketName [10:28:55]name=ofd_packets/00029503 [10:28:55]OFD Sender: To server: pG, [10:28:55]CommunicateWithHost lk.salyk.kg:30040 [10:28:55]ConnectInit lk.salyk.kg [10:28:55]written 0, free lines is 4095 [10:28:55]Connected sock=9 [10:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6D 04 07 01 78 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 69 01 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 73 00 00 35 04 06 00 65 B0 61 C9 EE E0 44 93 E1 62 1B 20 97 05 [10:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D2 0F 47 00 FE 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 39 36 33 31 35 34 10 04 04 00 3F 73 00 00 F4 03 04 00 0A AC 1C 66 B6 04 01 00 00 05 35 7E 65 2C D4 76 39 [10:28:55]CommunicateWithHost err = 0 [10:28:55]CheckOFDResponse [10:28:55]1017 (14) - 77093643461234 [10:28:55]1041 (16) - 0000000000963154 [10:28:55]1040 (4) - 29503 [10:28:55]1012 (4) - 15.04.2024 04:24 [10:28:55]1206 (1) - 0 [10:28:55]OFD Sender: Remove packet 29503 [10:28:55]ProducePacketName [10:28:55]name=ofd_packets/00029503 [10:28:55]NVStorageDeleteData [10:28:55]Write to MH i2c: 01 00 00 09 36 3F [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 09 36 00 00 00 00 00 C7 0C 19 [10:28:55]RasterBufferAndPrint [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]written 0, free lines is 3277 [10:28:55]MH_Cut [10:28:55]Write to MH i2c: D1 01 00 10 36 01 18 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: D1 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: D1 01 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: D1 01 00 10 36 00 17 [10:28:55]Write to MH i2c: 01 00 00 11 36 47 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:56]OFD Sender: No OFD packet to send [10:28:56]*** Cut start [10:28:56]*** Partial cut [10:28:56]*** CUTSNS_PIN = 1 [10:28:56]*** CUTSNS_PIN = 0 [10:28:57]*** Brake cut motor [10:28:57]Read from MH i2c: 01 [10:28:57]MH_I2C_Read... [10:28:57]*** Stop cut motor [10:28:57]*** Cut end [10:28:57]Read from MH i2c: 01 07 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: 01 07 00 11 36 00 00 00 00 00 FF 0F 5C [10:28:57]process_action close_receipt done [10:28:57]requested_data is exist [10:28:57]produce_requested_data [10:28:57]requested_item fm.sn is exist - process it [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 11 00 00 [10:28:57]Write to MH i2c: E2 08 00 12 36 80 11 00 00 00 00 00 00 C2 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 12 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [10:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:57]wFMCommunicate OK [10:28:57]requested_item fd.num is exist - process it [10:28:57]SAM_PROTO_GetFieldsCounters [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 13 00 00 [10:28:57]Write to MH i2c: E2 08 00 13 36 80 13 00 00 00 00 00 00 C5 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 62 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 62 00 13 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 73 00 00 0E 04 04 00 75 00 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 4D [10:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 73 00 00 0E 04 04 00 75 00 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:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_GetFieldsCounters done [10:28:57]requested_item shift.num is exist - process it [10:28:57]requested_item shift.opened is exist - process it [10:28:57]req_shift_opened [10:28:57]FM_GetShiftState [10:28:57]SAM_PROTO_GetShiftState [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 13 01 00 [10:28:57]Write to MH i2c: E2 08 00 14 36 80 13 01 00 00 00 00 00 C7 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0E 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0E 00 14 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BB [10:28:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_GetShiftState done [10:28:57]FM_GetShiftState done [10:28:57]req_shift_opened done [10:28:57]requested_item shift.open_date is exist - process it [10:28:57]req_shift_open_date [10:28:57]req_shift_open_date done [10:28:57]produce_requested_data done [10:28:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29503,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:28:57]process_action_free close_receipt [10:28:57]json_value_free [10:28:57]json_value_free done [10:28:57]process_json_proto returns [10:28:57]Send response to host [10:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29503,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:28:57]free response buf [10:28:57]execute_script done [10:28:57]execute_script returns [10:28:57]free content buf [10:28:57]Sock 8.Close socket [10:28:57]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:13]accept exits with 10 [10:35:13]New connection [10:35:13]New thread 3067112804 created [10:35:13]Thread 3066969444 joined [10:35:13]Waiting for new connection... [10:35:13] Sock 10.Parse request [10:35:13]Sock 10.Check first char [10:35:13]Sock 10.First char is OK [10:35:13]request: POST /json_proto HTTP/1.0 [10:35:13]Method: POST [10:35:13]URL: /json_proto [10:35:13]Method is POST - this is cgi request [10:35:13]url: /json_proto [10:35:13]query_string will be loaded in cgi processing [10:35:13]execute_cgi json_proto POST (null) [10:35:13]execute_cgi path=json_proto method=POST [10:35:13]POST find Content-Length [10:35:13]Host: 172.17.33.3:8080 [10:35:13]Content-Length: 817 [10:35:13]Content-Type: application/json [10:35:13] [10:35:13]POST finish read [10:35:13]Found Content-Length = 817 [10:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:13]execute_script... [10:35: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)347919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:13]POST & json_proto [10:35:13]process_json_proto [10:35:13]json parsed OK: [10:35:13]protocol is kg_v1.0 [10:35:13]action value=close_receipt [10:35:13]process_action close_receipt [10:35:13]cmd_close_receipt [10:35:13]MH_GetDate [10:35:13]Write to MH i2c: F0 00 00 15 36 3A [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: F0 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: F0 09 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: F0 09 00 15 36 00 E5 02 1D 66 23 5B 8F 65 1F [10:35:13]GetLastDocTimeStamp 1713176937 [10:35:13]current date 1713177317 [10:35:13]FM_GetShiftState [10:35:13]SAM_PROTO_GetShiftState [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 13 01 00 [10:35:13]Write to MH i2c: E2 08 00 16 36 80 13 01 00 00 00 00 00 C9 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0E 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0E 00 16 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BD [10:35:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:35:13]wFMCommunicate OK [10:35:13]SAM_PROTO_GetShiftState done [10:35:13]FM_GetShiftState done [10:35:13]opened in 1713140468 [10:35:13]opened+sec_in_day 1713226868 [10:35:13]quantity*price = 65059 [10:35:13]sum+1 = 65060 [10:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.59 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 0.00 Безнал.: 650.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 98 15.04.2024 10:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29504 ФПД: 186725180736128 1/tax-web-control/client/api/v1/ticket?date=20240415T103517&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29504&fm=186725180736128&tin=02508201610067®Number=0000138879044617&sum=65059 [10:35:14]StoreToDocumentArchive [10:35:14]shift 117 fd 29504 [10:35:14]save to /storage/0117/doc_00029504 [10:35:14]save last doc name /storage/0117/doc_00029504 to /storage/kkm_last_doc_name [10:35:14]save OK [10:35:14]Clear old archive folders... [10:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:14]tlvbuf is 002EE480 [10:35:14]SAM_PROTO_ClearQueue [10:35:14]wFMCommunicate request_size=4 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 09 00 00 [10:35:14]Write to MH i2c: E2 08 00 23 36 80 09 00 00 00 00 00 00 CB [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 23 36 00 90 00 CD [10:35:14]RAPDU: 90 00 [10:35:14]wFMCommunicate OK [10:35:14]SAM_PROTO_ClearQueue done [10:35:14]KKMCreateOFDPacket [10:35:14]OFDProtocolAddRootSTLVToBuf [10:35:14]FM_MakeSignedData [10:35:14]FM_MakeSignedData [10:35:14]SAM_PROTO_SignData [10:35:14]wFMCommunicate request_size=4 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 0D 01 02 [10:35:14]Write to MH i2c: E2 08 00 24 36 80 0D 01 02 00 00 00 00 D3 [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 24 36 00 90 00 CE [10:35:14]RAPDU: 90 00 [10:35:14]wFMCommunicate OK [10:35:14]wFMCommunicate request_size=255 [10:35:14]MH_SAM_APDU [10:35: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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 02 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 73 00 00 35 04 06 00 A9 [10:35:14]Write to MH i2c: E2 02 01 25 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 02 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 73 00 00 35 04 06 00 A9 00 00 1B [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 25 36 00 90 00 CF [10:35:14]RAPDU: 90 00 [10:35:14]wFMCommunicate OK [10:35:14]wFMCommunicate request_size=10 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 0D 02 02 05 D3 58 11 82 80 [10:35:14]Write to MH i2c: E2 0D 00 26 36 80 0D 02 02 05 00 D3 58 11 82 80 00 00 1E [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 03 00 26 36 00 90 00 D0 [10:35:14]RAPDU: 90 00 [10:35:14]wFMCommunicate OK [10:35:14]wFMCommunicate request_size=4 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 0D 03 02 [10:35:14]Write to MH i2c: E2 08 00 27 36 80 0D 03 02 00 00 00 00 D8 [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 0B 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 0B 00 27 36 00 5A E9 7C 24 6F 61 3B 59 90 00 20 [10:35:14]RAPDU: 5A E9 7C 24 6F 61 3B 59 90 00 [10:35:14]wFMCommunicate OK [10:35:14]SAM_PROTO_SignData done [10:35:14]FM_MakeSignedData done [10:35:14]CreateOFDProtocolMessage [10:35:14]wFMCommunicate request_size=4 [10:35:14]MH_SAM_APDU [10:35:14]CAPDU: 80 11 00 00 [10:35:14]Write to MH i2c: E2 08 00 28 36 80 11 00 00 00 00 00 00 D8 [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:14]Read from MH i2c: E2 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 17 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: E2 17 00 28 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [10:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:35:14]wFMCommunicate OK [10:35:14]CreateOFDProtocolMessage done [10:35:14]OFDSenderStorePacket 29504 [10:35:14]StoreOFDPacket docnum=29504 [10:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0A 95 07 01 1C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 02 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 73 00 00 35 04 06 00 A9 D3 58 11 82 80 5A E9 7C 24 6F 61 3B 59 [10:35:14]CheckFolder [10:35:14]dirname=/storage/ofd_packets [10:35:14]CheckFolder done [10:35:14]ProducePacketName [10:35:14]name=ofd_packets/00029504 [10:35:14]NVStorageSaveData ofd_packets/00029504 [10:35:14]File name is /storage/ofd_packets/00029504 [10:35:14]Write 301 bytes [10:35:14]NVStorageSaveData done [10:35:14]OFDSenderStorePacket done [10:35:14]KKMCreateOFDPacket done [10:35:14]NVStorageSaveData kkm_last_timestamp [10:35:14]File name is /storage/kkm_last_timestamp [10:35:14]Write 4 bytes [10:35:14]NVStorageSaveData done [10:35:14]ExternCall_PrintAddStr [10:35:14]wPrintStart [10:35:14]Write to MH i2c: 01 00 00 29 36 5F [10:35:14]Write i2c OK [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 07 00 [10:35:14]MH_I2C_Read... [10:35:14]Read from MH i2c: 01 07 00 29 36 00 00 00 00 00 FF 0F 74 [10:35:14]RasterBufferAndPrint [10:35:14]line Счет N : (1)347919 [10:35:14]line ИНН: 02508201610067 [10:35:14]line Контрольно-Кассовый Чек [10:35:14]line ПРОДАЖА [10:35:14]line ТРК (МРК, ГНК) : 32 [10:35:14]line Товар: 2710124130 [10:35:14]line Аи-92-К-5 [10:35:14]line 10.040 * 64.80 [10:35:14]line = 650.59 [10:35:14]line НДС 12% НСП 1% [10:35:14]line > о реализуемом товаре [10:35:14]line ИТОГО: 650.59 [10:35:14]line НСП 1% : 5.76 [10:35:14]line НДС 12% : 69.09 [10:35:14]line Наличными: 0.00 [10:35:14]line Безнал.: 650.59 [10:35:14]line Место: АЗС № 108 "Партнер Нефть" [10:35:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:35:14]line СНО: Общий режим [10:35:14]line Чек 98 15.04.2024 10:35 [10:35:14]line Смена: 117 ФФД: 1.0 [10:35:14]line ЗНМ: 0300000027 [10:35:14]line РНМ: 0000138879044617 [10:35:14]line Версия ККМ: 001 [10:35:14]line Платежная система: Бакай Банк [10:35:14]line ФМ: 0000000000963154 [10:35:14]line ФД: 29504 [10:35:14]line ФПД: 186725180736128 [10:35:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T103517&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29504&fm=186725180736128&tin=02508201610067®Number=0000138879044617&sum=65059 [10:35:15]OFD Sender: Processing packet 29504 [packets to send 8, broken 7] [10:35:15]ProducePacketName [10:35:15]name=ofd_packets/00029504 [10:35:15]OFD Sender: To server: pG, [10:35:15]CommunicateWithHost lk.salyk.kg:30040 [10:35:15]ConnectInit lk.salyk.kg [10:35:15]written 0, free lines is 4095 [10:35:15]Connected sock=9 [10:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0A 95 07 01 1C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 02 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 73 00 00 35 04 06 00 A9 D3 58 11 82 80 5A E9 7C 24 6F 61 3B 59 [10:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 38 73 47 00 77 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 39 36 33 31 35 34 10 04 04 00 40 73 00 00 F4 03 04 00 86 AD 1C 66 B6 04 01 00 00 C8 85 FC 4B 7F E9 33 A9 [10:35:15]CommunicateWithHost err = 0 [10:35:15]CheckOFDResponse [10:35:15]1017 (14) - 77093643461234 [10:35:15]1041 (16) - 0000000000963154 [10:35:15]1040 (4) - 29504 [10:35:15]1012 (4) - 15.04.2024 04:31 [10:35:15]1206 (1) - 0 [10:35:15]OFD Sender: Remove packet 29504 [10:35:15]ProducePacketName [10:35:15]name=ofd_packets/00029504 [10:35:15]NVStorageDeleteData [10:35:15]Write to MH i2c: 01 00 00 52 36 88 [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: 01 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: 01 07 00 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: 01 07 00 52 36 00 00 00 00 00 D9 0C 74 [10:35:15]RasterBufferAndPrint [10:35:15]line [10:35:15]line [10:35:15]line [10:35:15]line [10:35:15]line [10:35:15]written 0, free lines is 3296 [10:35:15]MH_Cut [10:35:15]Write to MH i2c: D1 01 00 59 36 01 61 [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: D1 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: D1 01 00 [10:35:15]MH_I2C_Read... [10:35:15]Read from MH i2c: D1 01 00 59 36 00 60 [10:35:15]Write to MH i2c: 01 00 00 5A 36 90 [10:35:15]Write i2c OK [10:35:15]MH_I2C_Read... [10:35:15]OFD Sender: No OFD packet to send [10:35:16]*** Cut start [10:35:16]*** Partial cut [10:35:16]*** CUTSNS_PIN = 1 [10:35:16]*** CUTSNS_PIN = 0 [10:35:16]*** Brake cut motor [10:35:17]Read from MH i2c: 01 [10:35:17]MH_I2C_Read... [10:35:17]*** Stop cut motor [10:35:17]*** Cut end [10:35:17]Read from MH i2c: 01 07 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: 01 07 00 5A 36 00 00 00 00 00 FF 0F A5 [10:35:17]process_action close_receipt done [10:35:17]requested_data is exist [10:35:17]produce_requested_data [10:35:17]requested_item fm.sn is exist - process it [10:35:17]wFMCommunicate request_size=4 [10:35:17]MH_SAM_APDU [10:35:17]CAPDU: 80 11 00 00 [10:35:17]Write to MH i2c: E2 08 00 5B 36 80 11 00 00 00 00 00 00 0B [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:17]Read from MH i2c: E2 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 17 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 17 00 5B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [10:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:35:17]wFMCommunicate OK [10:35:17]requested_item fd.num is exist - process it [10:35:17]SAM_PROTO_GetFieldsCounters [10:35:17]wFMCommunicate request_size=4 [10:35:17]MH_SAM_APDU [10:35:17]CAPDU: 80 13 00 00 [10:35:17]Write to MH i2c: E2 08 00 5C 36 80 13 00 00 00 00 00 00 0E [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:17]Read from MH i2c: E2 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 62 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 62 00 5C 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 73 00 00 0E 04 04 00 75 00 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 9A [10:35:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 73 00 00 0E 04 04 00 75 00 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:35:17]wFMCommunicate OK [10:35:17]SAM_PROTO_GetFieldsCounters done [10:35:17]requested_item shift.num is exist - process it [10:35:17]requested_item shift.opened is exist - process it [10:35:17]req_shift_opened [10:35:17]FM_GetShiftState [10:35:17]SAM_PROTO_GetShiftState [10:35:17]wFMCommunicate request_size=4 [10:35:17]MH_SAM_APDU [10:35:17]CAPDU: 80 13 01 00 [10:35:17]Write to MH i2c: E2 08 00 5D 36 80 13 01 00 00 00 00 00 10 [10:35:17]Write i2c OK [10:35:17]MH_I2C_Read... [10:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:17]Read from MH i2c: E2 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 0E 00 [10:35:17]MH_I2C_Read... [10:35:17]Read from MH i2c: E2 0E 00 5D 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 04 [10:35:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:35:17]wFMCommunicate OK [10:35:17]SAM_PROTO_GetShiftState done [10:35:17]FM_GetShiftState done [10:35:17]req_shift_opened done [10:35:17]requested_item shift.open_date is exist - process it [10:35:17]req_shift_open_date [10:35:17]req_shift_open_date done [10:35:17]produce_requested_data done [10:35:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29504,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:35:17]process_action_free close_receipt [10:35:17]json_value_free [10:35:17]json_value_free done [10:35:17]process_json_proto returns [10:35:17]Send response to host [10:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29504,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:35:17]free response buf [10:35:17]execute_script done [10:35:17]execute_script returns [10:35:17]free content buf [10:35:17]Sock 10.Close socket [10:35:17]Sock 10.Thread stoped [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:10]accept exits with 8 [10:38:10]New connection [10:38:10]New thread 3066969444 created [10:38:10]Thread 3067112804 joined [10:38:10]Waiting for new connection... [10:38:10] Sock 8.Parse request [10:38:10]Sock 8.Check first char [10:38:10]Sock 8.First char is OK [10:38:10]request: POST /json_proto HTTP/1.0 [10:38:10]Method: POST [10:38:10]URL: /json_proto [10:38:10]Method is POST - this is cgi request [10:38:10]url: /json_proto [10:38:10]query_string will be loaded in cgi processing [10:38:10]execute_cgi json_proto POST (null) [10:38:10]execute_cgi path=json_proto method=POST [10:38:10]POST find Content-Length [10:38:10]Host: 172.17.33.3:8080 [10:38:10]Content-Length: 681 [10:38:10]Content-Type: application/json [10:38:10] [10:38:10]POST finish read [10:38:10]Found Content-Length = 681 [10:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "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:38:10]execute_script... [10: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)347920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "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:38:10]POST & json_proto [10:38:10]process_json_proto [10:38:10]json parsed OK: [10:38:10]protocol is kg_v1.0 [10:38:10]action value=close_receipt [10:38:10]process_action close_receipt [10:38:10]cmd_close_receipt [10:38:10]MH_GetDate [10:38:10]Write to MH i2c: F0 00 00 5E 36 83 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: F0 09 00 5E 36 00 96 03 1D 66 23 5B 8F 65 1A [10:38:10]GetLastDocTimeStamp 1713177317 [10:38:10]current date 1713177494 [10:38:10]FM_GetShiftState [10:38:10]SAM_PROTO_GetShiftState [10:38:10]wFMCommunicate request_size=4 [10:38:10]MH_SAM_APDU [10:38:10]CAPDU: 80 13 01 00 [10:38:10]Write to MH i2c: E2 08 00 5F 36 80 13 01 00 00 00 00 00 12 [10:38:10]Write i2c OK [10:38:10]MH_I2C_Read... [10:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:10]Read from MH i2c: E2 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 [10:38:10]MH_I2C_Read... [10:38:10]Read from MH i2c: E2 0E 00 5F 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 06 [10:38:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:38:10]wFMCommunicate OK [10:38:10]SAM_PROTO_GetShiftState done [10:38:10]FM_GetShiftState done [10:38:10]opened in 1713140468 [10:38:10]opened+sec_in_day 1713226868 [10:38:10]quantity*price = 70006 [10:38:10]sum+1 = 70007 [10:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 99 15.04.2024 10:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29505 ФПД: 172556541365105 1/tax-web-control/client/api/v1/ticket?date=20240415T103814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29505&fm=172556541365105&tin=02508201610067®Number=0000138879044617&sum=70000 [10:38:11]StoreToDocumentArchive [10:38:11]shift 117 fd 29505 [10:38:11]save to /storage/0117/doc_00029505 [10:38:11]save last doc name /storage/0117/doc_00029505 to /storage/kkm_last_doc_name [10:38:11]save OK [10:38:11]Clear old archive folders... [10:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:38:11]tlvbuf is B6F01AB0 [10:38:11]SAM_PROTO_ClearQueue [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 09 00 00 [10:38:11]Write to MH i2c: E2 08 00 6C 36 80 09 00 00 00 00 00 00 14 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 6C 36 00 90 00 16 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_ClearQueue done [10:38:11]KKMCreateOFDPacket [10:38:11]OFDProtocolAddRootSTLVToBuf [10:38:11]FM_MakeSignedData [10:38:11]FM_MakeSignedData [10:38:11]SAM_PROTO_SignData [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 01 02 [10:38:11]Write to MH i2c: E2 08 00 6D 36 80 0D 01 02 00 00 00 00 1C [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 03 00 6D 36 00 90 00 17 [10:38:11]RAPDU: 90 00 [10:38:11]wFMCommunicate OK [10:38:11]wFMCommunicate request_size=255 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 63 00 00 00 F4 03 04 00 96 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 73 00 00 35 04 06 00 9C F0 [10:38:11]Write to MH i2c: E2 02 01 6E 36 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 63 00 00 00 F4 03 04 00 96 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 73 00 00 35 04 06 00 9C F0 00 00 91 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 6E 36 00 90 00 18 [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]wFMCommunicate request_size=9 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 0D 02 02 04 73 5A 0B 71 [10:38:12]Write to MH i2c: E2 0C 00 6F 36 80 0D 02 02 04 00 73 5A 0B 71 00 00 70 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 03 00 6F 36 00 90 00 19 [10:38:12]RAPDU: 90 00 [10:38:12]wFMCommunicate OK [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 0D 03 02 [10:38:12]Write to MH i2c: E2 08 00 70 36 80 0D 03 02 00 00 00 00 21 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 0B 00 70 36 00 C9 A8 02 24 19 0C 6F AC 90 00 F9 [10:38:12]RAPDU: C9 A8 02 24 19 0C 6F AC 90 00 [10:38:12]wFMCommunicate OK [10:38:12]SAM_PROTO_SignData done [10:38:12]FM_MakeSignedData done [10:38:12]CreateOFDProtocolMessage [10:38:12]wFMCommunicate request_size=4 [10:38:12]MH_SAM_APDU [10:38:12]CAPDU: 80 11 00 00 [10:38:12]Write to MH i2c: E2 08 00 71 36 80 11 00 00 00 00 00 00 21 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:12]Read from MH i2c: E2 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: E2 17 00 71 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [10:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:38:12]wFMCommunicate OK [10:38:12]CreateOFDProtocolMessage done [10:38:12]OFDSenderStorePacket 29505 [10:38:12]StoreOFDPacket docnum=29505 [10:38:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA F9 06 01 3E 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 63 00 00 00 F4 03 04 00 96 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 73 00 00 35 04 06 00 9C F0 73 5A 0B 71 C9 A8 02 24 19 0C 6F AC [10:38:12]CheckFolder [10:38:12]dirname=/storage/ofd_packets [10:38:12]CheckFolder done [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00029505 [10:38:12]NVStorageSaveData ofd_packets/00029505 [10:38:12]File name is /storage/ofd_packets/00029505 [10:38:12]Write 300 bytes [10:38:12]NVStorageSaveData done [10:38:12]OFDSenderStorePacket done [10:38:12]KKMCreateOFDPacket done [10:38:12]NVStorageSaveData kkm_last_timestamp [10:38:12]File name is /storage/kkm_last_timestamp [10:38:12]Write 4 bytes [10:38:12]NVStorageSaveData done [10:38:12]ExternCall_PrintAddStr [10:38:12]wPrintStart [10:38:12]Write to MH i2c: 01 00 00 72 36 A8 [10:38:12]Write i2c OK [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 [10:38:12]MH_I2C_Read... [10:38:12]Read from MH i2c: 01 07 00 72 36 00 00 00 00 00 FF 0F BD [10:38:12]RasterBufferAndPrint [10:38:12]line Счет N : (1)347920 [10:38:12]line ИНН: 02508201610067 [10:38:12]line Контрольно-Кассовый Чек [10:38:12]line ПРОДАЖА [10:38:12]line ТРК (МРК, ГНК) : 71 [10:38:12]line Товар: 2711129700 [10:38:12]line ГАЗ-К-5 [10:38:12]line 20.960 * 33.40 [10:38:12]line = 700.06 [10:38:12]line НДС 12% НСП 1% [10:38:12]line > о реализуемом товаре [10:38:12]line ОКРУГЛЕНИЕ: -0.06 [10:38:12]line ИТОГО: 700.00 [10:38:12]line Внесено: 700.00 [10:38:12]line СДАЧА: 0.00 [10:38:12]line НСП 1% : 6.19 [10:38:12]line НДС 12% : 74.34 [10:38:12]line Наличными: 700.00 [10:38:12]line Безнал.: 0.00 [10:38:12]line Место: АЗС № 108 "Партнер Нефть" [10:38:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:38:12]line СНО: Общий режим [10:38:12]line Чек 99 15.04.2024 10:38 [10:38:12]line Смена: 117 ФФД: 1.0 [10:38:12]line ЗНМ: 0300000027 [10:38:12]line РНМ: 0000138879044617 [10:38:12]line Версия ККМ: 001 [10:38:12]line ФМ: 0000000000963154 [10:38:12]line ФД: 29505 [10:38:12]line ФПД: 172556541365105 [10:38:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T103814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29505&fm=172556541365105&tin=02508201610067®Number=0000138879044617&sum=70000 [10:38:12]OFD Sender: Processing packet 29505 [packets to send 8, broken 7] [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00029505 [10:38:12]OFD Sender: To server: pG, [10:38:12]CommunicateWithHost lk.salyk.kg:30040 [10:38:12]ConnectInit lk.salyk.kg [10:38:12]written 0, free lines is 4095 [10:38:12]Connected sock=10 [10:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA F9 06 01 3E 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 63 00 00 00 F4 03 04 00 96 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 73 00 00 35 04 06 00 9C F0 73 5A 0B 71 C9 A8 02 24 19 0C 6F AC [10:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A0 D7 47 00 D6 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 39 36 33 31 35 34 10 04 04 00 41 73 00 00 F4 03 04 00 37 AE 1C 66 B6 04 01 00 00 A5 93 EC C6 7E 8C 3E 0D [10:38:12]CommunicateWithHost err = 0 [10:38:12]CheckOFDResponse [10:38:12]1017 (14) - 77093643461234 [10:38:12]1041 (16) - 0000000000963154 [10:38:12]1040 (4) - 29505 [10:38:12]1012 (4) - 15.04.2024 04:33 [10:38:12]1206 (1) - 0 [10:38:12]OFD Sender: Remove packet 29505 [10:38:12]ProducePacketName [10:38:12]name=ofd_packets/00029505 [10:38:12]NVStorageDeleteData [10:38:13]Write to MH i2c: 01 00 00 9C 36 D2 [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: 01 07 00 9C 36 00 00 00 00 00 B3 0C 98 [10:38:13]RasterBufferAndPrint [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]line [10:38:13]written 0, free lines is 3257 [10:38:13]MH_Cut [10:38:13]Write to MH i2c: D1 01 00 A3 36 01 AB [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 [10:38:13]MH_I2C_Read... [10:38:13]Read from MH i2c: D1 01 00 A3 36 00 AA [10:38:13]Write to MH i2c: 01 00 00 A4 36 DA [10:38:13]Write i2c OK [10:38:13]MH_I2C_Read... [10:38:13]OFD Sender: No OFD packet to send [10:38:13]*** Cut start [10:38:13]*** Partial cut [10:38:13]*** CUTSNS_PIN = 1 [10:38:13]*** CUTSNS_PIN = 0 [10:38:14]*** Brake cut motor [10:38:14]Read from MH i2c: 01 [10:38:14]MH_I2C_Read... [10:38:14]*** Stop cut motor [10:38:14]*** Cut end [10:38:14]Read from MH i2c: 01 07 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: 01 07 00 A4 36 00 00 00 00 00 FF 0F EF [10:38:14]process_action close_receipt done [10:38:14]requested_data is exist [10:38:14]produce_requested_data [10:38:14]requested_item fm.sn is exist - process it [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 11 00 00 [10:38:14]Write to MH i2c: E2 08 00 A5 36 80 11 00 00 00 00 00 00 55 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 17 00 A5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [10:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:38:14]wFMCommunicate OK [10:38:14]requested_item fd.num is exist - process it [10:38:14]SAM_PROTO_GetFieldsCounters [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 00 00 [10:38:14]Write to MH i2c: E2 08 00 A6 36 80 13 00 00 00 00 00 00 58 [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 62 00 A6 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 73 00 00 0E 04 04 00 75 00 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 E8 [10:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 73 00 00 0E 04 04 00 75 00 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:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetFieldsCounters done [10:38:14]requested_item shift.num is exist - process it [10:38:14]requested_item shift.opened is exist - process it [10:38:14]req_shift_opened [10:38:14]FM_GetShiftState [10:38:14]SAM_PROTO_GetShiftState [10:38:14]wFMCommunicate request_size=4 [10:38:14]MH_SAM_APDU [10:38:14]CAPDU: 80 13 01 00 [10:38:14]Write to MH i2c: E2 08 00 A7 36 80 13 01 00 00 00 00 00 5A [10:38:14]Write i2c OK [10:38:14]MH_I2C_Read... [10:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:14]Read from MH i2c: E2 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 [10:38:14]MH_I2C_Read... [10:38:14]Read from MH i2c: E2 0E 00 A7 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4E [10:38:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:38:14]wFMCommunicate OK [10:38:14]SAM_PROTO_GetShiftState done [10:38:14]FM_GetShiftState done [10:38:14]req_shift_opened done [10:38:14]requested_item shift.open_date is exist - process it [10:38:14]req_shift_open_date [10:38:14]req_shift_open_date done [10:38:14]produce_requested_data done [10:38:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29505,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:38:14]process_action_free close_receipt [10:38:14]json_value_free [10:38:14]json_value_free done [10:38:14]process_json_proto returns [10:38:14]Send response to host [10:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29505,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:38:14]free response buf [10:38:14]execute_script done [10:38:14]execute_script returns [10:38:14]free content buf [10:38:14]Sock 8.Close socket [10:38:14]Sock 8.Thread stoped [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:11]accept exits with 9 [10:39:11]New connection [10:39:11]New thread 3067112804 created [10:39:11]Thread 3066969444 joined [10:39:11]Waiting for new connection... [10:39:11] Sock 9.Parse request [10:39:11]Sock 9.Check first char [10:39:11]Sock 9.First char is OK [10:39:11]request: POST /json_proto HTTP/1.0 [10:39:11]Method: POST [10:39:11]URL: /json_proto [10:39:11]Method is POST - this is cgi request [10:39:11]url: /json_proto [10:39:11]query_string will be loaded in cgi processing [10:39:11]execute_cgi json_proto POST (null) [10:39:11]execute_cgi path=json_proto method=POST [10:39:11]POST find Content-Length [10:39:11]Host: 172.17.33.3:8080 [10:39:11]Content-Length: 805 [10:39:11]Content-Type: application/json [10:39:11] [10:39:11]POST finish read [10:39:11]Found Content-Length = 805 [10:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:11]execute_script... [10:39: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)347921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:11]POST & json_proto [10:39:11]process_json_proto [10:39:11]json parsed OK: [10:39:11]protocol is kg_v1.0 [10:39:11]action value=close_receipt [10:39:11]process_action close_receipt [10:39:11]cmd_close_receipt [10:39:11]MH_GetDate [10:39:11]Write to MH i2c: F0 00 00 A8 36 CD [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 09 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 09 00 A8 36 00 D3 03 1D 66 23 5B 8F 65 A1 [10:39:11]GetLastDocTimeStamp 1713177494 [10:39:11]current date 1713177555 [10:39:11]FM_GetShiftState [10:39:11]SAM_PROTO_GetShiftState [10:39:11]wFMCommunicate request_size=4 [10:39:11]MH_SAM_APDU [10:39:11]CAPDU: 80 13 01 00 [10:39:11]Write to MH i2c: E2 08 00 A9 36 80 13 01 00 00 00 00 00 5C [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:11]Read from MH i2c: E2 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 0E 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 0E 00 A9 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 50 [10:39:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:39:11]wFMCommunicate OK [10:39:11]SAM_PROTO_GetShiftState done [10:39:11]FM_GetShiftState done [10:39:11]opened in 1713140468 [10:39:11]opened+sec_in_day 1713226868 [10:39:11]quantity*price = 200037 [10:39:11]sum+1 = 200039 [10:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 100 15.04.2024 10:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29506 ФПД: 253593762866597 1/tax-web-control/client/api/v1/ticket?date=20240415T103915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29506&fm=253593762866597&tin=02508201610067®Number=0000138879044617&sum=200038 [10:39:12]StoreToDocumentArchive [10:39:12]shift 117 fd 29506 [10:39:12]save to /storage/0117/doc_00029506 [10:39:12]save last doc name /storage/0117/doc_00029506 to /storage/kkm_last_doc_name [10:39:12]save OK [10:39:12]Clear old archive folders... [10:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:12]tlvbuf is B6F01710 [10:39:12]SAM_PROTO_ClearQueue [10:39:12]wFMCommunicate request_size=4 [10:39:12]MH_SAM_APDU [10:39:12]CAPDU: 80 09 00 00 [10:39:12]Write to MH i2c: E2 08 00 B6 36 80 09 00 00 00 00 00 00 5E [10:39:12]Write i2c OK [10:39:12]MH_I2C_Read... [10:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:12]Read from MH i2c: E2 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 03 00 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 03 00 B6 36 00 90 00 60 [10:39:12]RAPDU: 90 00 [10:39:12]wFMCommunicate OK [10:39:12]SAM_PROTO_ClearQueue done [10:39:12]KKMCreateOFDPacket [10:39:12]OFDProtocolAddRootSTLVToBuf [10:39:12]FM_MakeSignedData [10:39:12]FM_MakeSignedData [10:39:12]SAM_PROTO_SignData [10:39:12]wFMCommunicate request_size=4 [10:39:12]MH_SAM_APDU [10:39:12]CAPDU: 80 0D 01 02 [10:39:12]Write to MH i2c: E2 08 00 B7 36 80 0D 01 02 00 00 00 00 66 [10:39:12]Write i2c OK [10:39:12]MH_I2C_Read... [10:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:12]Read from MH i2c: E2 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 03 00 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 03 00 B7 36 00 90 00 61 [10:39:12]RAPDU: 90 00 [10:39:12]wFMCommunicate OK [10:39:12]wFMCommunicate request_size=255 [10:39:12]MH_SAM_APDU [10:39:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D3 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 73 00 00 35 04 06 00 E6 A4 66 27 [10:39:12]Write to MH i2c: E2 02 01 B8 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D3 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 73 00 00 35 04 06 00 E6 A4 66 27 00 00 AE [10:39:12]Write i2c OK [10:39:12]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 B8 36 00 90 00 62 [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]wFMCommunicate request_size=7 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 0D 02 02 02 25 A5 [10:39:13]Write to MH i2c: E2 0A 00 B9 36 80 0D 02 02 02 00 25 A5 00 00 37 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 B9 36 00 90 00 63 [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 0D 03 02 [10:39:13]Write to MH i2c: E2 08 00 BA 36 80 0D 03 02 00 00 00 00 6B [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0B 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0B 00 BA 36 00 1E F0 97 D6 E5 79 E5 6A 90 00 94 [10:39:13]RAPDU: 1E F0 97 D6 E5 79 E5 6A 90 00 [10:39:13]wFMCommunicate OK [10:39:13]SAM_PROTO_SignData done [10:39:13]FM_MakeSignedData done [10:39:13]CreateOFDProtocolMessage [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 11 00 00 [10:39:13]Write to MH i2c: E2 08 00 BB 36 80 11 00 00 00 00 00 00 6B [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 17 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 17 00 BB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [10:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:13]wFMCommunicate OK [10:39:13]CreateOFDProtocolMessage done [10:39:13]OFDSenderStorePacket 29506 [10:39:13]StoreOFDPacket docnum=29506 [10:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 4E 04 01 9F 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D3 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 73 00 00 35 04 06 00 E6 A4 66 27 25 A5 1E F0 97 D6 E5 79 E5 6A [10:39:13]CheckFolder [10:39:13]dirname=/storage/ofd_packets [10:39:13]CheckFolder done [10:39:13]ProducePacketName [10:39:13]name=ofd_packets/00029506 [10:39:13]NVStorageSaveData ofd_packets/00029506 [10:39:13]File name is /storage/ofd_packets/00029506 [10:39:13]Write 298 bytes [10:39:13]NVStorageSaveData done [10:39:13]OFDSenderStorePacket done [10:39:13]KKMCreateOFDPacket done [10:39:13]NVStorageSaveData kkm_last_timestamp [10:39:13]File name is /storage/kkm_last_timestamp [10:39:13]Write 4 bytes [10:39:13]NVStorageSaveData done [10:39:13]ExternCall_PrintAddStr [10:39:13]wPrintStart [10:39:13]Write to MH i2c: 01 00 00 BC 36 F2 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 07 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 07 00 BC 36 00 00 00 00 00 FF 0F 07 [10:39:13]RasterBufferAndPrint [10:39:13]line Счет N : (1)347921 [10:39:13]line ИНН: 02508201610067 [10:39:13]line Контрольно-Кассовый Чек [10:39:13]line ПРОДАЖА [10:39:13]line ТРК (МРК, ГНК) : 51 [10:39:13]line Товар: 2710194210 [10:39:13]line ДТ-К-5 [10:39:13]line 27.440 * 72.90 [10:39:13]line = 2000.38 [10:39:13]line НДС 12% НСП 1% [10:39:13]line > о реализуемом товаре [10:39:13]line ИТОГО: 2000.38 [10:39:13]line НСП 1% : 17.70 [10:39:13]line НДС 12% : 212.43 [10:39:13]line Наличными: 0.00 [10:39:13]line Безнал.: 2000.38 [10:39:13]line Место: АЗС № 108 "Партнер Нефть" [10:39:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:39:13]line СНО: Общий режим [10:39:13]line Чек 100 15.04.2024 10:39 [10:39:13]line Смена: 117 ФФД: 1.0 [10:39:13]line ЗНМ: 0300000027 [10:39:13]line РНМ: 0000138879044617 [10:39:13]line Версия ККМ: 001 [10:39:13]line Платежная система: О! деньги [10:39:13]line ФМ: 0000000000963154 [10:39:13]line ФД: 29506 [10:39:13]line ФПД: 253593762866597 [10:39:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T103915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29506&fm=253593762866597&tin=02508201610067®Number=0000138879044617&sum=200038 [10:39:13]OFD Sender: Processing packet 29506 [packets to send 8, broken 7] [10:39:13]ProducePacketName [10:39:13]name=ofd_packets/00029506 [10:39:13]OFD Sender: To server: pG, [10:39:13]CommunicateWithHost lk.salyk.kg:30040 [10:39:13]ConnectInit lk.salyk.kg [10:39:13]written 0, free lines is 4095 [10:39:13]Connected sock=10 [10:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D8 4E 04 01 9F 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D3 03 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 73 00 00 35 04 06 00 E6 A4 66 27 25 A5 1E F0 97 D6 E5 79 E5 6A [10:39:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 53 3C 47 00 6A 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 39 36 33 31 35 34 10 04 04 00 42 73 00 00 F4 03 04 00 75 AE 1C 66 B6 04 01 00 00 68 1B D8 39 8A D6 CA 5D [10:39:13]CommunicateWithHost err = 0 [10:39:13]CheckOFDResponse [10:39:13]1017 (14) - 77093643461234 [10:39:13]1041 (16) - 0000000000963154 [10:39:13]1040 (4) - 29506 [10:39:13]1012 (4) - 15.04.2024 04:35 [10:39:13]1206 (1) - 0 [10:39:13]OFD Sender: Remove packet 29506 [10:39:13]ProducePacketName [10:39:13]name=ofd_packets/00029506 [10:39:13]NVStorageDeleteData [10:39:14]Write to MH i2c: 01 00 00 E5 36 1B [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 E5 36 00 00 00 00 00 D1 0C FF [10:39:14]RasterBufferAndPrint [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]written 0, free lines is 3285 [10:39:14]MH_Cut [10:39:14]Write to MH i2c: D1 01 00 EC 36 01 F4 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 01 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 01 00 EC 36 00 F3 [10:39:14]Write to MH i2c: 01 00 00 ED 36 23 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]OFD Sender: No OFD packet to send [10:39:14]*** Cut start [10:39:14]*** Partial cut [10:39:14]*** CUTSNS_PIN = 1 [10:39:14]*** CUTSNS_PIN = 0 [10:39:15]*** Brake cut motor [10:39:15]Read from MH i2c: 01 [10:39:15]MH_I2C_Read... [10:39:15]*** Stop cut motor [10:39:15]*** Cut end [10:39:15]Read from MH i2c: 01 07 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: 01 07 00 ED 36 00 00 00 00 00 FF 0F 38 [10:39:15]process_action close_receipt done [10:39:15]requested_data is exist [10:39:15]produce_requested_data [10:39:15]requested_item fm.sn is exist - process it [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 11 00 00 [10:39:15]Write to MH i2c: E2 08 00 EE 36 80 11 00 00 00 00 00 00 9E [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 17 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 17 00 EE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [10:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:15]wFMCommunicate OK [10:39:15]requested_item fd.num is exist - process it [10:39:15]SAM_PROTO_GetFieldsCounters [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 13 00 00 [10:39:15]Write to MH i2c: E2 08 00 EF 36 80 13 00 00 00 00 00 00 A1 [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 62 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 62 00 EF 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 73 00 00 0E 04 04 00 75 00 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 35 [10:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 73 00 00 0E 04 04 00 75 00 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:39:15]wFMCommunicate OK [10:39:15]SAM_PROTO_GetFieldsCounters done [10:39:15]requested_item shift.num is exist - process it [10:39:15]requested_item shift.opened is exist - process it [10:39:15]req_shift_opened [10:39:15]FM_GetShiftState [10:39:15]SAM_PROTO_GetShiftState [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 13 01 00 [10:39:15]Write to MH i2c: E2 08 00 F0 36 80 13 01 00 00 00 00 00 A3 [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:15]Read from MH i2c: E2 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 0E 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: E2 0E 00 F0 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 97 [10:39:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:39:15]wFMCommunicate OK [10:39:15]SAM_PROTO_GetShiftState done [10:39:15]FM_GetShiftState done [10:39:15]req_shift_opened done [10:39:15]requested_item shift.open_date is exist - process it [10:39:15]req_shift_open_date [10:39:15]req_shift_open_date done [10:39:15]produce_requested_data done [10:39:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29506,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:39:15]process_action_free close_receipt [10:39:15]json_value_free [10:39:15]json_value_free done [10:39:15]process_json_proto returns [10:39:15]Send response to host [10:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29506,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:39:15]free response buf [10:39:15]execute_script done [10:39:15]execute_script returns [10:39:15]free content buf [10:39:15]Sock 9.Close socket [10:39:15]Sock 9.Thread stoped [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:06]accept exits with 8 [10:41:06]New connection [10:41:06]New thread 3066969444 created [10:41:06]Thread 3067112804 joined [10:41:06]Waiting for new connection... [10:41:06] Sock 8.Parse request [10:41:06]Sock 8.Check first char [10:41:06]Sock 8.First char is OK [10:41:06]request: POST /json_proto HTTP/1.0 [10:41:06]Method: POST [10:41:06]URL: /json_proto [10:41:06]Method is POST - this is cgi request [10:41:06]url: /json_proto [10:41:06]query_string will be loaded in cgi processing [10:41:06]execute_cgi json_proto POST (null) [10:41:06]execute_cgi path=json_proto method=POST [10:41:06]POST find Content-Length [10:41:06]Host: 172.17.33.3:8080 [10:41:06]Content-Length: 682 [10:41:06]Content-Type: application/json [10:41:06] [10:41:06]POST finish read [10:41:06]Found Content-Length = 682 [10:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.370, "sum" : 980.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:06]execute_script... [10:41: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)347922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.370, "sum" : 980.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 980.00, "payments": [ { "type": 0, "sum" : 980.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:06]POST & json_proto [10:41:06]process_json_proto [10:41:06]json parsed OK: [10:41:06]protocol is kg_v1.0 [10:41:06]action value=close_receipt [10:41:06]process_action close_receipt [10:41:06]cmd_close_receipt [10:41:06]MH_GetDate [10:41:06]Write to MH i2c: F0 00 00 F1 36 16 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: F0 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: F0 09 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: F0 09 00 F1 36 00 46 04 1D 66 23 5B 8F 65 5E [10:41:06]GetLastDocTimeStamp 1713177555 [10:41:06]current date 1713177670 [10:41:06]FM_GetShiftState [10:41:06]SAM_PROTO_GetShiftState [10:41:06]wFMCommunicate request_size=4 [10:41:06]MH_SAM_APDU [10:41:06]CAPDU: 80 13 01 00 [10:41:06]Write to MH i2c: E2 08 00 F2 36 80 13 01 00 00 00 00 00 A5 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:06]Read from MH i2c: E2 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 0E 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: E2 0E 00 F2 36 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 99 [10:41:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:41:06]wFMCommunicate OK [10:41:06]SAM_PROTO_GetShiftState done [10:41:06]FM_GetShiftState done [10:41:06]opened in 1713140468 [10:41:06]opened+sec_in_day 1713226868 [10:41:06]quantity*price = 98095 [10:41:06]sum+1 = 98097 [10:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.96 ИТОГО: 980.00 Внесено: 1000.00 СДАЧА: 20.00 НСП 1% : 8.68 НДС 12% : 104.17 Наличными: 980.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 101 15.04.2024 10:41 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29507 ФПД: 51626859933669 1/tax-web-control/client/api/v1/ticket?date=20240415T104110&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29507&fm=51626859933669&tin=02508201610067®Number=0000138879044617&sum=98000 [10:41:07]StoreToDocumentArchive [10:41:07]shift 117 fd 29507 [10:41:07]save to /storage/0117/doc_00029507 [10:41:07]save last doc name /storage/0117/doc_00029507 to /storage/kkm_last_doc_name [10:41:07]save OK [10:41:07]Clear old archive folders... [10:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:41:07]tlvbuf is 00267060 [10:41:07]SAM_PROTO_ClearQueue [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 09 00 00 [10:41:07]Write to MH i2c: E2 08 00 FF 36 80 09 00 00 00 00 00 00 A7 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 FF 36 00 90 00 A9 [10:41:07]RAPDU: 90 00 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_ClearQueue done [10:41:07]KKMCreateOFDPacket [10:41:07]OFDProtocolAddRootSTLVToBuf [10:41:07]FM_MakeSignedData [10:41:07]FM_MakeSignedData [10:41:07]SAM_PROTO_SignData [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 0D 01 02 [10:41:07]Write to MH i2c: E2 08 00 00 37 80 0D 01 02 00 00 00 00 B0 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 00 37 00 90 00 AB [10:41:07]RAPDU: 90 00 [10:41:07]wFMCommunicate OK [10:41:07]wFMCommunicate request_size=255 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 30 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 46 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 73 00 00 35 04 06 00 2E F4 [10:41:07]Write to MH i2c: E2 02 01 01 37 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 30 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 46 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 73 00 00 35 04 06 00 2E F4 00 00 D9 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 01 37 00 90 00 AC [10:41:07]RAPDU: 90 00 [10:41:07]wFMCommunicate OK [10:41:07]wFMCommunicate request_size=9 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 0D 02 02 04 50 A5 AF E5 [10:41:07]Write to MH i2c: E2 0C 00 02 37 80 0D 02 02 04 00 50 A5 AF E5 00 00 44 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 03 00 02 37 00 90 00 AD [10:41:07]RAPDU: 90 00 [10:41:07]wFMCommunicate OK [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 0D 03 02 [10:41:07]Write to MH i2c: E2 08 00 03 37 80 0D 03 02 00 00 00 00 B5 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0B 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0B 00 03 37 00 5F CC 0A D1 6B 02 AB 33 90 00 07 [10:41:07]RAPDU: 5F CC 0A D1 6B 02 AB 33 90 00 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_SignData done [10:41:07]FM_MakeSignedData done [10:41:07]CreateOFDProtocolMessage [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 11 00 00 [10:41:07]Write to MH i2c: E2 08 00 04 37 80 11 00 00 00 00 00 00 B5 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 04 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [10:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:07]wFMCommunicate OK [10:41:07]CreateOFDProtocolMessage done [10:41:07]OFDSenderStorePacket 29507 [10:41:07]StoreOFDPacket docnum=29507 [10:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A2 6F 06 01 21 2D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 30 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 46 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 73 00 00 35 04 06 00 2E F4 50 A5 AF E5 5F CC 0A D1 6B 02 AB 33 [10:41:07]CheckFolder [10:41:07]dirname=/storage/ofd_packets [10:41:07]CheckFolder done [10:41:07]ProducePacketName [10:41:07]name=ofd_packets/00029507 [10:41:07]NVStorageSaveData ofd_packets/00029507 [10:41:07]File name is /storage/ofd_packets/00029507 [10:41:07]Write 300 bytes [10:41:07]NVStorageSaveData done [10:41:07]OFDSenderStorePacket done [10:41:07]KKMCreateOFDPacket done [10:41:07]NVStorageSaveData kkm_last_timestamp [10:41:07]File name is /storage/kkm_last_timestamp [10:41:07]Write 4 bytes [10:41:07]NVStorageSaveData done [10:41:07]ExternCall_PrintAddStr [10:41:07]wPrintStart [10:41:07]Write to MH i2c: 01 00 00 05 37 3C [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 05 37 00 00 00 00 00 FF 0F 51 [10:41:07]RasterBufferAndPrint [10:41:07]line Счет N : (1)347922 [10:41:07]line ИНН: 02508201610067 [10:41:07]line Контрольно-Кассовый Чек [10:41:07]line ПРОДАЖА [10:41:07]line ТРК (МРК, ГНК) : 71 [10:41:07]line Товар: 2711129700 [10:41:07]line ГАЗ-К-5 [10:41:07]line 29.370 * 33.40 [10:41:07]line = 980.96 [10:41:07]line НДС 12% НСП 1% [10:41:07]line > о реализуемом товаре [10:41:07]line ОКРУГЛЕНИЕ: -0.96 [10:41:07]line ИТОГО: 980.00 [10:41:07]line Внесено: 1000.00 [10:41:07]line СДАЧА: 20.00 [10:41:07]line НСП 1% : 8.68 [10:41:07]line НДС 12% : 104.17 [10:41:07]line Наличными: 980.00 [10:41:07]line Безнал.: 0.00 [10:41:07]line Место: АЗС № 108 "Партнер Нефть" [10:41:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:41:07]line СНО: Общий режим [10:41:07]line Чек 101 15.04.2024 10:41 [10:41:07]line Смена: 117 ФФД: 1.0 [10:41:07]line ЗНМ: 0300000027 [10:41:07]line РНМ: 0000138879044617 [10:41:07]line Версия ККМ: 001 [10:41:07]line ФМ: 0000000000963154 [10:41:07]line ФД: 29507 [10:41:07]line ФПД: 51626859933669 [10:41:07]line 1/tax-web-control/client/api/v1/ticket?date=20240415T104110&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29507&fm=51626859933669&tin=02508201610067®Number=0000138879044617&sum=98000 [10:41:08]OFD Sender: Processing packet 29507 [packets to send 8, broken 7] [10:41:08]ProducePacketName [10:41:08]name=ofd_packets/00029507 [10:41:08]OFD Sender: To server: pG, [10:41:08]CommunicateWithHost lk.salyk.kg:30040 [10:41:08]ConnectInit lk.salyk.kg [10:41:08]written 0, free lines is 4095 [10:41:08]Connected sock=11 [10:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A2 6F 06 01 21 2D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 30 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 28 00 00 00 00 07 04 06 00 D0 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 46 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 73 00 00 35 04 06 00 2E F4 50 A5 AF E5 5F CC 0A D1 6B 02 AB 33 [10:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 29 47 00 8F E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 73 00 00 F4 03 04 00 E7 AE 1C 66 B6 04 01 00 00 4B BB 00 2A E5 F8 05 18 [10:41:08]CommunicateWithHost err = 0 [10:41:08]CheckOFDResponse [10:41:08]1017 (14) - 77093643461234 [10:41:08]1041 (16) - 0000000000963154 [10:41:08]1040 (4) - 29507 [10:41:08]1012 (4) - 15.04.2024 04:36 [10:41:08]1206 (1) - 0 [10:41:08]OFD Sender: Remove packet 29507 [10:41:08]ProducePacketName [10:41:08]name=ofd_packets/00029507 [10:41:08]NVStorageDeleteData [10:41:08]Write to MH i2c: 01 00 00 2F 37 66 [10:41:08]Write i2c OK [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: 01 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: 01 07 00 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: 01 07 00 2F 37 00 00 00 00 00 B9 0C 32 [10:41:08]RasterBufferAndPrint [10:41:08]line [10:41:08]line [10:41:08]line [10:41:08]line [10:41:08]line [10:41:08]written 0, free lines is 3261 [10:41:08]MH_Cut [10:41:08]Write to MH i2c: D1 01 00 36 37 01 3F [10:41:08]Write i2c OK [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: D1 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: D1 01 00 [10:41:08]MH_I2C_Read... [10:41:08]Read from MH i2c: D1 01 00 36 37 00 3E [10:41:08]Write to MH i2c: 01 00 00 37 37 6E [10:41:08]Write i2c OK [10:41:08]MH_I2C_Read... [10:41:08]OFD Sender: No OFD packet to send [10:41:09]*** Cut start [10:41:09]*** Partial cut [10:41:09]*** CUTSNS_PIN = 1 [10:41:09]*** CUTSNS_PIN = 0 [10:41:09]*** Brake cut motor [10:41:10]Read from MH i2c: 01 [10:41:10]MH_I2C_Read... [10:41:10]*** Stop cut motor [10:41:10]*** Cut end [10:41:10]Read from MH i2c: 01 07 00 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [10:41:10]process_action close_receipt done [10:41:10]requested_data is exist [10:41:10]produce_requested_data [10:41:10]requested_item fm.sn is exist - process it [10:41:10]wFMCommunicate request_size=4 [10:41:10]MH_SAM_APDU [10:41:10]CAPDU: 80 11 00 00 [10:41:10]Write to MH i2c: E2 08 00 38 37 80 11 00 00 00 00 00 00 E9 [10:41:10]Write i2c OK [10:41:10]MH_I2C_Read... [10:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:10]Read from MH i2c: E2 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 17 00 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 17 00 38 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [10:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:10]wFMCommunicate OK [10:41:10]requested_item fd.num is exist - process it [10:41:10]SAM_PROTO_GetFieldsCounters [10:41:10]wFMCommunicate request_size=4 [10:41:10]MH_SAM_APDU [10:41:10]CAPDU: 80 13 00 00 [10:41:10]Write to MH i2c: E2 08 00 39 37 80 13 00 00 00 00 00 00 EC [10:41:10]Write i2c OK [10:41:10]MH_I2C_Read... [10:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:10]Read from MH i2c: E2 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 62 00 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 62 00 39 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 73 00 00 0E 04 04 00 75 00 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 84 [10:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 73 00 00 0E 04 04 00 75 00 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:41:10]wFMCommunicate OK [10:41:10]SAM_PROTO_GetFieldsCounters done [10:41:10]requested_item shift.num is exist - process it [10:41:10]requested_item shift.opened is exist - process it [10:41:10]req_shift_opened [10:41:10]FM_GetShiftState [10:41:10]SAM_PROTO_GetShiftState [10:41:10]wFMCommunicate request_size=4 [10:41:10]MH_SAM_APDU [10:41:10]CAPDU: 80 13 01 00 [10:41:10]Write to MH i2c: E2 08 00 3A 37 80 13 01 00 00 00 00 00 EE [10:41:10]Write i2c OK [10:41:10]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 3A 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E2 [10:41:10]RAPDU: 09 00 01 F4 72 1C 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]req_shift_opened done [10:41:10]requested_item shift.open_date is exist - process it [10:41:10]req_shift_open_date [10:41:10]req_shift_open_date done [10:41:10]produce_requested_data done [10:41:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29507,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:41:10]process_action_free close_receipt [10:41:10]json_value_free [10:41:10]json_value_free done [10:41:10]process_json_proto returns [10:41:10]Send response to host [10:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29507,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:41:10]free response buf [10:41:10]execute_script done [10:41:10]execute_script returns [10:41:10]free content buf [10:41:10]Sock 8.Close socket [10:41:10]Sock 8.Thread stoped [10:41:10]accept exits with 9 [10:41:10]New connection [10:41:10]New thread 3067112804 created [10:41:10]Thread 3066969444 joined [10:41:10]Waiting for new connection... [10:41:10] Sock 9.Parse request [10:41:10]Sock 9.Check first char [10:41:10]Sock 9.First char is OK [10:41:10]request: POST /json_proto HTTP/1.0 [10:41:10]Method: POST [10:41:10]URL: /json_proto [10:41:10]Method is POST - this is cgi request [10:41:10]url: /json_proto [10:41:10]query_string will be loaded in cgi processing [10:41:10]execute_cgi json_proto POST (null) [10:41:10]execute_cgi path=json_proto method=POST [10:41:10]POST find Content-Length [10:41:10]Host: 172.17.33.3:8080 [10:41:10]Content-Length: 675 [10:41:10]Content-Type: application/json [10:41:10] [10:41:10]POST finish read [10:41:10]Found Content-Length = 675 [10:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:10]execute_script... [10:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:10]POST & json_proto [10:41:10]process_json_proto [10:41:10]json parsed OK: [10:41:10]protocol is kg_v1.0 [10:41:10]action value=close_receipt [10:41:10]process_action close_receipt [10:41:10]cmd_close_receipt [10:41:10]MH_GetDate [10:41:10]Write to MH i2c: F0 00 00 3B 37 61 [10:41:10]Write i2c OK [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: F0 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: F0 09 00 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: F0 09 00 3B 37 00 4A 04 1D 66 23 5B 8F 65 AD [10:41:10]GetLastDocTimeStamp 1713177670 [10:41:10]current date 1713177674 [10:41:10]FM_GetShiftState [10:41:10]SAM_PROTO_GetShiftState [10:41:10]wFMCommunicate request_size=4 [10:41:10]MH_SAM_APDU [10:41:10]CAPDU: 80 13 01 00 [10:41:10]Write to MH i2c: E2 08 00 3C 37 80 13 01 00 00 00 00 00 F0 [10:41:10]Write i2c OK [10:41:10]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 3C 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E4 [10:41:10]RAPDU: 09 00 01 F4 72 1C 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 1713140468 [10:41:10]opened+sec_in_day 1713226868 [10:41:10]quantity*price = 100016 [10:41:10]sum+1 = 100017 [10:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 102 15.04.2024 10:41 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29508 ФПД: 199537484837266 1/tax-web-control/client/api/v1/ticket?date=20240415T104114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29508&fm=199537484837266&tin=02508201610067®Number=0000138879044617&sum=100000 [10:41:11]StoreToDocumentArchive [10:41:11]shift 117 fd 29508 [10:41:11]save to /storage/0117/doc_00029508 [10:41:11]save last doc name /storage/0117/doc_00029508 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=252 [10:41:11]tlvbuf is 00266F50 [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 49 37 80 09 00 00 00 00 00 00 F2 [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 49 37 00 90 00 F4 [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 4A 37 80 0D 01 02 00 00 00 00 FA [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 4A 37 00 90 00 F5 [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=255 [10:41:12]MH_SAM_APDU [10:41: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4A 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 73 00 00 35 04 06 00 [10:41:12]Write to MH i2c: E2 02 01 4B 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4A 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 73 00 00 35 04 06 00 00 00 39 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 4B 37 00 90 00 F6 [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=11 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 02 02 06 B5 7A 70 E7 31 92 [10:41:12]Write to MH i2c: E2 0E 00 4C 37 80 0D 02 02 06 00 B5 7A 70 E7 31 92 00 00 52 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 03 00 4C 37 00 90 00 F7 [10:41:12]RAPDU: 90 00 [10:41:12]wFMCommunicate OK [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 0D 03 02 [10:41:12]Write to MH i2c: E2 08 00 4D 37 80 0D 03 02 00 00 00 00 FF [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 0B 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 0B 00 4D 37 00 29 9D 93 33 88 F6 39 67 90 00 AA [10:41:12]RAPDU: 29 9D 93 33 88 F6 39 67 90 00 [10:41:12]wFMCommunicate OK [10:41:12]SAM_PROTO_SignData done [10:41:12]FM_MakeSignedData done [10:41:12]CreateOFDProtocolMessage [10:41:12]wFMCommunicate request_size=4 [10:41:12]MH_SAM_APDU [10:41:12]CAPDU: 80 11 00 00 [10:41:12]Write to MH i2c: E2 08 00 4E 37 80 11 00 00 00 00 00 00 FF [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:12]Read from MH i2c: E2 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: E2 17 00 4E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [10:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:12]wFMCommunicate OK [10:41:12]CreateOFDProtocolMessage done [10:41:12]OFDSenderStorePacket 29508 [10:41:12]StoreOFDPacket docnum=29508 [10:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D3 22 08 01 5F 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4A 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 73 00 00 35 04 06 00 B5 7A 70 E7 31 92 29 9D 93 33 88 F6 39 67 [10:41:12]CheckFolder [10:41:12]dirname=/storage/ofd_packets [10:41:12]CheckFolder done [10:41:12]ProducePacketName [10:41:12]name=ofd_packets/00029508 [10:41:12]NVStorageSaveData ofd_packets/00029508 [10:41:12]File name is /storage/ofd_packets/00029508 [10:41:12]Write 302 bytes [10:41:12]NVStorageSaveData done [10:41:12]OFDSenderStorePacket done [10:41:12]KKMCreateOFDPacket done [10:41:12]NVStorageSaveData kkm_last_timestamp [10:41:12]File name is /storage/kkm_last_timestamp [10:41:12]Write 4 bytes [10:41:12]NVStorageSaveData done [10:41:12]ExternCall_PrintAddStr [10:41:12]wPrintStart [10:41:12]Write to MH i2c: 01 00 00 4F 37 86 [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 4F 37 00 00 00 00 00 FF 0F 9B [10:41:12]RasterBufferAndPrint [10:41:12]line Счет N : (1)347923 [10:41:12]line ИНН: 02508201610067 [10:41:12]line Контрольно-Кассовый Чек [10:41:12]line ПРОДАЖА [10:41:12]line ТРК (МРК, ГНК) : 12 [10:41:12]line Товар: 2710124130 [10:41:12]line SUPER-92-К-5 [10:41:12]line 15.200 * 65.80 [10:41:12]line = 1000.16 [10:41:12]line НДС 12% НСП 1% [10:41:12]line > о реализуемом товаре [10:41:12]line ОКРУГЛЕНИЕ: -0.16 [10:41:12]line ИТОГО: 1000.00 [10:41:12]line Внесено: 1000.00 [10:41:12]line СДАЧА: 0.00 [10:41:12]line НСП 1% : 8.85 [10:41:12]line НДС 12% : 106.21 [10:41:12]line Наличными: 1000.00 [10:41:12]line Безнал.: 0.00 [10:41:12]line Место: АЗС № 108 "Партнер Нефть" [10:41:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:41:12]line СНО: Общий режим [10:41:12]line Чек 102 15.04.2024 10:41 [10:41:12]line Смена: 117 ФФД: 1.0 [10:41:12]line ЗНМ: 0300000027 [10:41:12]line РНМ: 0000138879044617 [10:41:12]line Версия ККМ: 001 [10:41:12]line ФМ: 0000000000963154 [10:41:12]line ФД: 29508 [10:41:12]line ФПД: 199537484837266 [10:41:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T104114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29508&fm=199537484837266&tin=02508201610067®Number=0000138879044617&sum=100000 [10:41:12]OFD Sender: Processing packet 29508 [packets to send 8, broken 7] [10:41:12]ProducePacketName [10:41:12]name=ofd_packets/00029508 [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:13]written 0, free lines is 4095 [10:41:13]Connected sock=10 [10:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D3 22 08 01 5F 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4A 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 73 00 00 35 04 06 00 B5 7A 70 E7 31 92 29 9D 93 33 88 F6 39 67 [10:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0C 84 47 00 A4 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 39 36 33 31 35 34 10 04 04 00 44 73 00 00 F4 03 04 00 EC AE 1C 66 B6 04 01 00 00 F8 84 4B D3 EB 92 54 CF [10:41:13]CommunicateWithHost err = 0 [10:41:13]CheckOFDResponse [10:41:13]1017 (14) - 77093643461234 [10:41:13]1041 (16) - 0000000000963154 [10:41:13]1040 (4) - 29508 [10:41:13]1012 (4) - 15.04.2024 04:37 [10:41:13]1206 (1) - 0 [10:41:13]OFD Sender: Remove packet 29508 [10:41:13]ProducePacketName [10:41:13]name=ofd_packets/00029508 [10:41:13]NVStorageDeleteData [10:41:13]Write to MH i2c: 01 00 00 79 37 B0 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: 01 07 00 79 37 00 00 00 00 00 DA 0C 9D [10:41:13]RasterBufferAndPrint [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]line [10:41:13]written 0, free lines is 3300 [10:41:13]MH_Cut [10:41:13]Write to MH i2c: D1 01 00 80 37 01 89 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 01 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: D1 01 00 80 37 00 88 [10:41:13]Write to MH i2c: 01 00 00 81 37 B8 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]OFD Sender: No OFD packet to send [10:41:14]*** Cut start [10:41:14]*** Partial cut [10:41:14]*** CUTSNS_PIN = 1 [10:41:14]*** CUTSNS_PIN = 0 [10:41:14]*** Brake cut motor [10:41:14]Read from MH i2c: 01 [10:41:14]MH_I2C_Read... [10:41:14]*** Stop cut motor [10:41:14]*** Cut end [10:41:14]Read from MH i2c: 01 07 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: 01 07 00 81 37 00 00 00 00 00 FF 0F CD [10:41:14]process_action close_receipt done [10:41:14]requested_data is exist [10:41:14]produce_requested_data [10:41:14]requested_item fm.sn is exist - process it [10:41:14]wFMCommunicate request_size=4 [10:41:14]MH_SAM_APDU [10:41:14]CAPDU: 80 11 00 00 [10:41:14]Write to MH i2c: E2 08 00 82 37 80 11 00 00 00 00 00 00 33 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:14]Read from MH i2c: E2 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 17 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 17 00 82 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [10:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:14]wFMCommunicate OK [10:41:14]requested_item fd.num is exist - process it [10:41:14]SAM_PROTO_GetFieldsCounters [10:41:14]wFMCommunicate request_size=4 [10:41:14]MH_SAM_APDU [10:41:14]CAPDU: 80 13 00 00 [10:41:14]Write to MH i2c: E2 08 00 83 37 80 13 00 00 00 00 00 00 36 [10:41:14]Write i2c OK [10:41:14]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 83 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 73 00 00 0E 04 04 00 75 00 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 D2 [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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 73 00 00 0E 04 04 00 75 00 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: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 84 37 80 13 01 00 00 00 00 00 38 [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 84 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2C [10:41:15]RAPDU: 09 00 01 F4 72 1C 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":"0000000000963154","fd.num":29508,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [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":"0000000000963154","fd.num":29508,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [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 9.Close socket [10:41:15]Sock 9.Thread stoped [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:12]accept exits with 8 [10:43:12]New connection [10:43:12]New thread 3066969444 created [10:43:12]Thread 3067112804 joined [10:43:12]Waiting for new connection... [10:43:12] Sock 8.Parse request [10:43:12]Sock 8.Check first char [10:43:12]Sock 8.First char is OK [10:43:12]request: POST /json_proto HTTP/1.0 [10:43:12]Method: POST [10:43:12]URL: /json_proto [10:43:12]Method is POST - this is cgi request [10:43:12]url: /json_proto [10:43:12]query_string will be loaded in cgi processing [10:43:12]execute_cgi json_proto POST (null) [10:43:12]execute_cgi path=json_proto method=POST [10:43:12]POST find Content-Length [10:43:12]Host: 172.17.33.3:8080 [10:43:12]Content-Length: 682 [10:43:12]Content-Type: application/json [10:43:12] [10:43:12]POST finish read [10:43:12]Found Content-Length = 682 [10:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "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" ] } } [10:43:12]execute_script... [10:43: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)347925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "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" ] } } [10:43:12]POST & json_proto [10:43:12]process_json_proto [10:43:12]json parsed OK: [10:43:12]protocol is kg_v1.0 [10:43:12]action value=close_receipt [10:43:12]process_action close_receipt [10:43:12]cmd_close_receipt [10:43:12]MH_GetDate [10:43:12]Write to MH i2c: F0 00 00 85 37 AB [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 09 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: F0 09 00 85 37 00 C4 04 1D 66 23 5B 8F 65 71 [10:43:12]GetLastDocTimeStamp 1713177674 [10:43:12]current date 1713177796 [10:43:12]FM_GetShiftState [10:43:12]SAM_PROTO_GetShiftState [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 13 01 00 [10:43:12]Write to MH i2c: E2 08 00 86 37 80 13 01 00 00 00 00 00 3A [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 86 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2E [10:43:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:43:12]wFMCommunicate OK [10:43:12]SAM_PROTO_GetShiftState done [10:43:12]FM_GetShiftState done [10:43:12]opened in 1713140468 [10:43:12]opened+sec_in_day 1713226868 [10:43:12]quantity*price = 250047 [10:43:12]sum+1 = 250048 [10:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 103 15.04.2024 10:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29509 ФПД: 266877732552480 1/tax-web-control/client/api/v1/ticket?date=20240415T104316&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29509&fm=266877732552480&tin=02508201610067®Number=0000138879044617&sum=250000 [10:43:13]StoreToDocumentArchive [10:43:13]shift 117 fd 29509 [10:43:13]save to /storage/0117/doc_00029509 [10:43:13]save last doc name /storage/0117/doc_00029509 to /storage/kkm_last_doc_name [10:43:13]save OK [10:43:13]Clear old archive folders... [10:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:13]tlvbuf is B6F01980 [10:43:13]SAM_PROTO_ClearQueue [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 09 00 00 [10:43:13]Write to MH i2c: E2 08 00 93 37 80 09 00 00 00 00 00 00 3C [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 93 37 00 90 00 3E [10:43:13]RAPDU: 90 00 [10:43:13]wFMCommunicate OK [10:43:13]SAM_PROTO_ClearQueue done [10:43:13]KKMCreateOFDPacket [10:43:13]OFDProtocolAddRootSTLVToBuf [10:43:13]FM_MakeSignedData [10:43:13]FM_MakeSignedData [10:43:13]SAM_PROTO_SignData [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 0D 01 02 [10:43:13]Write to MH i2c: E2 08 00 94 37 80 0D 01 02 00 00 00 00 44 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=255 [10:43:14]MH_SAM_APDU [10:43: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 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C4 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 73 00 00 35 04 06 00 F2 [10:43:14]Write to MH i2c: E2 02 01 95 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C4 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 73 00 00 35 04 06 00 F2 00 00 7D [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=10 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 02 02 05 B9 50 72 7F 20 [10:43:14]Write to MH i2c: E2 0D 00 96 37 80 0D 02 02 05 00 B9 50 72 7F 20 00 00 6B [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 96 37 00 90 00 41 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 03 02 [10:43:14]Write to MH i2c: E2 08 00 97 37 80 0D 03 02 00 00 00 00 49 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0B 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0B 00 97 37 00 F7 9D 20 2D 06 71 40 04 90 00 E6 [10:43:14]RAPDU: F7 9D 20 2D 06 71 40 04 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_SignData done [10:43:14]FM_MakeSignedData done [10:43:14]CreateOFDProtocolMessage [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 11 00 00 [10:43:14]Write to MH i2c: E2 08 00 98 37 80 11 00 00 00 00 00 00 49 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 17 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 17 00 98 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [10:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:14]wFMCommunicate OK [10:43:14]CreateOFDProtocolMessage done [10:43:14]OFDSenderStorePacket 29509 [10:43:14]StoreOFDPacket docnum=29509 [10:43:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 8C 07 01 18 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C4 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 73 00 00 35 04 06 00 F2 B9 50 72 7F 20 F7 9D 20 2D 06 71 40 04 [10:43:14]CheckFolder [10:43:14]dirname=/storage/ofd_packets [10:43:14]CheckFolder done [10:43:14]ProducePacketName [10:43:14]name=ofd_packets/00029509 [10:43:14]NVStorageSaveData ofd_packets/00029509 [10:43:14]File name is /storage/ofd_packets/00029509 [10:43:14]Write 301 bytes [10:43:14]NVStorageSaveData done [10:43:14]OFDSenderStorePacket done [10:43:14]KKMCreateOFDPacket done [10:43:14]NVStorageSaveData kkm_last_timestamp [10:43:14]File name is /storage/kkm_last_timestamp [10:43:14]Write 4 bytes [10:43:14]NVStorageSaveData done [10:43:14]ExternCall_PrintAddStr [10:43:14]wPrintStart [10:43:14]Write to MH i2c: 01 00 00 99 37 D0 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 99 37 00 00 00 00 00 FF 0F E5 [10:43:14]RasterBufferAndPrint [10:43:14]line Счет N : (1)347925 [10:43:14]line ИНН: 02508201610067 [10:43:14]line Контрольно-Кассовый Чек [10:43:14]line ПРОДАЖА [10:43:14]line ТРК (МРК, ГНК) : 33 [10:43:14]line Товар: 2710124500 [10:43:14]line Аи-95-К-5 [10:43:14]line 34.300 * 72.90 [10:43:14]line = 2500.47 [10:43:14]line НДС 12% НСП 1% [10:43:14]line > о реализуемом товаре [10:43:14]line ОКРУГЛЕНИЕ: -0.47 [10:43:14]line ИТОГО: 2500.00 [10:43:14]line Внесено: 2500.00 [10:43:14]line СДАЧА: 0.00 [10:43:14]line НСП 1% : 22.13 [10:43:14]line НДС 12% : 265.54 [10:43:14]line Наличными: 2500.00 [10:43:14]line Безнал.: 0.00 [10:43:14]line Место: АЗС № 108 "Партнер Нефть" [10:43:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:43:14]line СНО: Общий режим [10:43:14]line Чек 103 15.04.2024 10:43 [10:43:14]line Смена: 117 ФФД: 1.0 [10:43:14]line ЗНМ: 0300000027 [10:43:14]line РНМ: 0000138879044617 [10:43:14]line Версия ККМ: 001 [10:43:14]line ФМ: 0000000000963154 [10:43:14]line ФД: 29509 [10:43:14]line ФПД: 266877732552480 [10:43:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T104316&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29509&fm=266877732552480&tin=02508201610067®Number=0000138879044617&sum=250000 [10:43:14]written 0, free lines is 4095 [10:43:14]OFD Sender: Processing packet 29509 [packets to send 8, broken 7] [10:43:14]ProducePacketName [10:43:14]name=ofd_packets/00029509 [10:43:14]OFD Sender: To server: pG, [10:43:14]CommunicateWithHost lk.salyk.kg:30040 [10:43:14]ConnectInit lk.salyk.kg [10:43:14]Connected sock=10 [10:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 57 8C 07 01 18 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 C4 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 73 00 00 35 04 06 00 F2 B9 50 72 7F 20 F7 9D 20 2D 06 71 40 04 [10:43:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D9 45 47 00 61 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 39 36 33 31 35 34 10 04 04 00 45 73 00 00 F4 03 04 00 66 AF 1C 66 B6 04 01 00 00 AE E0 EC BD 9E 74 52 21 [10:43:15]CommunicateWithHost err = 0 [10:43:15]CheckOFDResponse [10:43:15]1017 (14) - 77093643461234 [10:43:15]1041 (16) - 0000000000963154 [10:43:15]1040 (4) - 29509 [10:43:15]1012 (4) - 15.04.2024 04:39 [10:43:15]1206 (1) - 0 [10:43:15]OFD Sender: Remove packet 29509 [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00029509 [10:43:15]NVStorageDeleteData [10:43:15]Write to MH i2c: 01 00 00 C3 37 FA [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 C3 37 00 00 00 00 00 C4 0C D1 [10:43:15]RasterBufferAndPrint [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]written 0, free lines is 3272 [10:43:15]MH_Cut [10:43:15]Write to MH i2c: D1 01 00 CA 37 01 D3 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 01 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 01 00 CA 37 00 D2 [10:43:15]Write to MH i2c: 01 00 00 CB 37 02 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]OFD Sender: No OFD packet to send [10:43:16]*** Cut start [10:43:16]*** Partial cut [10:43:16]*** CUTSNS_PIN = 1 [10:43:16]*** CUTSNS_PIN = 0 [10:43:16]*** Brake cut motor [10:43:16]Read from MH i2c: 01 [10:43:16]MH_I2C_Read... [10:43:16]*** Stop cut motor [10:43:16]*** Cut end [10:43:16]Read from MH i2c: 01 07 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 FF 0F 17 [10:43:16]process_action close_receipt done [10:43:16]requested_data is exist [10:43:16]produce_requested_data [10:43:16]requested_item fm.sn is exist - process it [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 11 00 00 [10:43:16]Write to MH i2c: E2 08 00 CC 37 80 11 00 00 00 00 00 00 7D [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 17 00 CC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [10:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:16]wFMCommunicate OK [10:43:16]requested_item fd.num is exist - process it [10:43:16]SAM_PROTO_GetFieldsCounters [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 00 00 [10:43:16]Write to MH i2c: E2 08 00 CD 37 80 13 00 00 00 00 00 00 80 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 62 00 [10:43:16]MH_I2C_Read... [10:43:16]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 73 00 00 0E 04 04 00 75 00 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 20 [10:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 73 00 00 0E 04 04 00 75 00 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:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetFieldsCounters done [10:43:16]requested_item shift.num is exist - process it [10:43:16]requested_item shift.opened is exist - process it [10:43:16]req_shift_opened [10:43:16]FM_GetShiftState [10:43:16]SAM_PROTO_GetShiftState [10:43:16]wFMCommunicate request_size=4 [10:43:16]MH_SAM_APDU [10:43:16]CAPDU: 80 13 01 00 [10:43:16]Write to MH i2c: E2 08 00 CE 37 80 13 01 00 00 00 00 00 82 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:16]Read from MH i2c: E2 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: E2 0E 00 CE 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 76 [10:43:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:43:16]wFMCommunicate OK [10:43:16]SAM_PROTO_GetShiftState done [10:43:16]FM_GetShiftState done [10:43:16]req_shift_opened done [10:43:16]requested_item shift.open_date is exist - process it [10:43:16]req_shift_open_date [10:43:16]req_shift_open_date done [10:43:16]produce_requested_data done [10:43:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29509,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:43:16]process_action_free close_receipt [10:43:16]json_value_free [10:43:16]json_value_free done [10:43:16]process_json_proto returns [10:43:16]Send response to host [10:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29509,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:43:16]free response buf [10:43:16]execute_script done [10:43:16]execute_script returns [10:43:16]free content buf [10:43:16]Sock 8.Close socket [10:43:16]Sock 8.Thread stoped [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]accept exits with 9 [10:44:05]New connection [10:44:05]New thread 3067112804 created [10:44:05]Thread 3066969444 joined [10:44:05]Waiting for new connection... [10:44:05] Sock 9.Parse request [10:44:05]Sock 9.Check first char [10:44:05]Sock 9.First char is OK [10:44:05]request: POST /json_proto HTTP/1.0 [10:44:05]Method: POST [10:44:05]URL: /json_proto [10:44:05]Method is POST - this is cgi request [10:44:05]url: /json_proto [10:44:05]query_string will be loaded in cgi processing [10:44:05]execute_cgi json_proto POST (null) [10:44:05]execute_cgi path=json_proto method=POST [10:44:05]POST find Content-Length [10:44:05]Host: 172.17.33.3:8080 [10:44:05]Content-Length: 822 [10:44:05]Content-Type: application/json [10:44:05] [10:44:05]POST finish read [10:44:05]Found Content-Length = 822 [10:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 35.930, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:05]execute_script... [10:44: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)347924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 35.930, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:05]POST & json_proto [10:44:05]process_json_proto [10:44:05]json parsed OK: [10:44:05]protocol is kg_v1.0 [10:44:05]action value=close_receipt [10:44:05]process_action close_receipt [10:44:05]cmd_close_receipt [10:44:05]MH_GetDate [10:44:05]Write to MH i2c: F0 00 00 CF 37 F5 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: F0 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: F0 09 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: F0 09 00 CF 37 00 F9 04 1D 66 23 5B 8F 65 F0 [10:44:05]GetLastDocTimeStamp 1713177796 [10:44:05]current date 1713177849 [10:44:05]FM_GetShiftState [10:44:05]SAM_PROTO_GetShiftState [10:44:05]wFMCommunicate request_size=4 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 13 01 00 [10:44:05]Write to MH i2c: E2 08 00 D0 37 80 13 01 00 00 00 00 00 84 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 0E 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 0E 00 D0 37 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 78 [10:44:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:44:05]wFMCommunicate OK [10:44:05]SAM_PROTO_GetShiftState done [10:44:05]FM_GetShiftState done [10:44:05]opened in 1713140468 [10:44:05]opened+sec_in_day 1713226868 [10:44:05]quantity*price = 120006 [10:44:05]sum+1 = 120007 [10:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.06 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.06 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 104 15.04.2024 10:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29510 ФПД: 185217603790507 1/tax-web-control/client/api/v1/ticket?date=20240415T104409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29510&fm=185217603790507&tin=02508201610067®Number=0000138879044617&sum=120006 [10:44:06]StoreToDocumentArchive [10:44:06]shift 117 fd 29510 [10:44:06]save to /storage/0117/doc_00029510 [10:44:06]save last doc name /storage/0117/doc_00029510 to /storage/kkm_last_doc_name [10:44:06]save OK [10:44:06]Clear old archive folders... [10:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:44:06]tlvbuf is B6F01350 [10:44:06]SAM_PROTO_ClearQueue [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 09 00 00 [10:44:06]Write to MH i2c: E2 08 00 DD 37 80 09 00 00 00 00 00 00 86 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [10:44:06]RAPDU: 90 00 [10:44:06]wFMCommunicate OK [10:44:06]SAM_PROTO_ClearQueue done [10:44:06]KKMCreateOFDPacket [10:44:06]OFDProtocolAddRootSTLVToBuf [10:44:06]FM_MakeSignedData [10:44:06]FM_MakeSignedData [10:44:06]SAM_PROTO_SignData [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 0D 01 02 [10:44:06]Write to MH i2c: E2 08 00 DE 37 80 0D 01 02 00 00 00 00 8E [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:06]Read from MH i2c: E2 03 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [10:44:06]RAPDU: 90 00 [10:44:06]wFMCommunicate OK [10:44:06]wFMCommunicate request_size=255 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 8C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F9 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 73 00 00 35 04 06 00 A8 74 [10:44:06]Write to MH i2c: E2 02 01 DF 37 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 8C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F9 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 73 00 00 35 04 06 00 A8 74 00 00 8A [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [10:44:06]RAPDU: 90 00 [10:44:06]wFMCommunicate OK [10:44:06]wFMCommunicate request_size=9 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 0D 02 02 04 55 7A E6 AB [10:44:06]Write to MH i2c: E2 0C 00 E0 37 80 0D 02 02 04 00 55 7A E6 AB 00 00 F9 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:06]Read from MH i2c: E2 03 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [10:44:06]RAPDU: 90 00 [10:44:06]wFMCommunicate OK [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 0D 03 02 [10:44:06]Write to MH i2c: E2 08 00 E1 37 80 0D 03 02 00 00 00 00 93 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 0B 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 0B 00 E1 37 00 3C A8 8D AC 1A 45 7D 12 90 00 9F [10:44:06]RAPDU: 3C A8 8D AC 1A 45 7D 12 90 00 [10:44:06]wFMCommunicate OK [10:44:06]SAM_PROTO_SignData done [10:44:06]FM_MakeSignedData done [10:44:06]CreateOFDProtocolMessage [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 11 00 00 [10:44:06]Write to MH i2c: E2 08 00 E2 37 80 11 00 00 00 00 00 00 93 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 17 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 17 00 E2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [10:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:06]wFMCommunicate OK [10:44:06]CreateOFDProtocolMessage done [10:44:06]OFDSenderStorePacket 29510 [10:44:06]StoreOFDPacket docnum=29510 [10:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5E 63 06 01 55 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 8C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F9 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 73 00 00 35 04 06 00 A8 74 55 7A E6 AB 3C A8 8D AC 1A 45 7D 12 [10:44:06]CheckFolder [10:44:06]dirname=/storage/ofd_packets [10:44:06]CheckFolder done [10:44:06]ProducePacketName [10:44:06]name=ofd_packets/00029510 [10:44:06]NVStorageSaveData ofd_packets/00029510 [10:44:06]File name is /storage/ofd_packets/00029510 [10:44:06]Write 300 bytes [10:44:06]NVStorageSaveData done [10:44:06]OFDSenderStorePacket done [10:44:06]KKMCreateOFDPacket done [10:44:06]NVStorageSaveData kkm_last_timestamp [10:44:06]File name is /storage/kkm_last_timestamp [10:44:06]Write 4 bytes [10:44:06]NVStorageSaveData done [10:44:06]ExternCall_PrintAddStr [10:44:06]wPrintStart [10:44:06]Write to MH i2c: 01 00 00 E3 37 1A [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 07 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 07 00 E3 37 00 00 00 00 00 FF 0F 2F [10:44:06]RasterBufferAndPrint [10:44:06]line Счет N : (1)347924 [10:44:06]line ИНН: 02508201610067 [10:44:06]line Контрольно-Кассовый Чек [10:44:06]line ПРОДАЖА [10:44:06]line ТРК (МРК, ГНК) : 71 [10:44:06]line Товар: 2711129700 [10:44:06]line ГАЗ-К-5 [10:44:06]line 35.930 * 33.40 [10:44:06]line = 1200.06 [10:44:06]line НДС 12% НСП 1% [10:44:06]line > о реализуемом товаре [10:44:06]line ИТОГО: 1200.06 [10:44:06]line НСП 1% : 10.62 [10:44:06]line НДС 12% : 127.44 [10:44:06]line Наличными: 0.00 [10:44:06]line Безнал.: 1200.06 [10:44:06]line Место: АЗС № 108 "Партнер Нефть" [10:44:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:44:06]line СНО: Общий режим [10:44:06]line Чек 104 15.04.2024 10:44 [10:44:06]line Смена: 117 ФФД: 1.0 [10:44:06]line ЗНМ: 0300000027 [10:44:06]line РНМ: 0000138879044617 [10:44:06]line Версия ККМ: 001 [10:44:06]line Платежная система: Бакай Банк [10:44:06]line ФМ: 0000000000963154 [10:44:06]line ФД: 29510 [10:44:06]line ФПД: 185217603790507 [10:44:07]line 1/tax-web-control/client/api/v1/ticket?date=20240415T104409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29510&fm=185217603790507&tin=02508201610067®Number=0000138879044617&sum=120006 [10:44:07]OFD Sender: Processing packet 29510 [packets to send 8, broken 7] [10:44:07]ProducePacketName [10:44:07]name=ofd_packets/00029510 [10:44:07]OFD Sender: To server: pG, [10:44:07]CommunicateWithHost lk.salyk.kg:30040 [10:44:07]ConnectInit lk.salyk.kg [10:44:07]written 0, free lines is 4095 [10:44:07]Connected sock=10 [10:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5E 63 06 01 55 50 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 8C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 F9 04 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 73 00 00 35 04 06 00 A8 74 55 7A E6 AB 3C A8 8D AC 1A 45 7D 12 [10:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C5 A3 47 00 34 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 73 00 00 F4 03 04 00 9A AF 1C 66 B6 04 01 00 00 D0 53 76 04 5B 32 67 1F [10:44:07]CommunicateWithHost err = 0 [10:44:07]CheckOFDResponse [10:44:07]1017 (14) - 77093643461234 [10:44:07]1041 (16) - 0000000000963154 [10:44:07]1040 (4) - 29510 [10:44:07]1012 (4) - 15.04.2024 04:39 [10:44:07]1206 (1) - 0 [10:44:07]OFD Sender: Remove packet 29510 [10:44:07]ProducePacketName [10:44:07]name=ofd_packets/00029510 [10:44:07]NVStorageDeleteData [10:44:07]Write to MH i2c: 01 00 00 0C 38 44 [10:44:07]Write i2c OK [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: 01 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: 01 07 00 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: 01 07 00 0C 38 00 00 00 00 00 CF 0C 26 [10:44:07]RasterBufferAndPrint [10:44:07]line [10:44:07]line [10:44:07]line [10:44:07]line [10:44:07]line [10:44:07]written 0, free lines is 3283 [10:44:07]MH_Cut [10:44:07]Write to MH i2c: D1 01 00 13 38 01 1D [10:44:07]Write i2c OK [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: D1 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: D1 01 00 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: D1 01 00 13 38 00 1C [10:44:07]Write to MH i2c: 01 00 00 14 38 4C [10:44:07]Write i2c OK [10:44:07]MH_I2C_Read... [10:44:07]OFD Sender: No OFD packet to send [10:44:08]*** Cut start [10:44:08]*** Partial cut [10:44:08]*** CUTSNS_PIN = 1 [10:44:08]*** CUTSNS_PIN = 0 [10:44:08]*** Brake cut motor [10:44:09]Read from MH i2c: 01 [10:44:09]MH_I2C_Read... [10:44:09]*** Stop cut motor [10:44:09]*** Cut end [10:44:09]Read from MH i2c: 01 07 00 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 FF 0F 61 [10:44:09]process_action close_receipt done [10:44:09]requested_data is exist [10:44:09]produce_requested_data [10:44:09]requested_item fm.sn is exist - process it [10:44:09]wFMCommunicate request_size=4 [10:44:09]MH_SAM_APDU [10:44:09]CAPDU: 80 11 00 00 [10:44:09]Write to MH i2c: E2 08 00 15 38 80 11 00 00 00 00 00 00 C7 [10:44:09]Write i2c OK [10:44:09]MH_I2C_Read... [10:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:09]Read from MH i2c: E2 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 17 00 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 17 00 15 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [10:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:09]wFMCommunicate OK [10:44:09]requested_item fd.num is exist - process it [10:44:09]SAM_PROTO_GetFieldsCounters [10:44:09]wFMCommunicate request_size=4 [10:44:09]MH_SAM_APDU [10:44:09]CAPDU: 80 13 00 00 [10:44:09]Write to MH i2c: E2 08 00 16 38 80 13 00 00 00 00 00 00 CA [10:44:09]Write i2c OK [10:44:09]MH_I2C_Read... [10:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:09]Read from MH i2c: E2 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 62 00 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 62 00 16 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 73 00 00 0E 04 04 00 75 00 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 6E [10:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:09]wFMCommunicate OK [10:44:09]SAM_PROTO_GetFieldsCounters done [10:44:09]requested_item shift.num is exist - process it [10:44:09]requested_item shift.opened is exist - process it [10:44:09]req_shift_opened [10:44:09]FM_GetShiftState [10:44:09]SAM_PROTO_GetShiftState [10:44:09]wFMCommunicate request_size=4 [10:44:09]MH_SAM_APDU [10:44:09]CAPDU: 80 13 01 00 [10:44:09]Write to MH i2c: E2 08 00 17 38 80 13 01 00 00 00 00 00 CC [10:44:09]Write i2c OK [10:44:09]MH_I2C_Read... [10:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:09]Read from MH i2c: E2 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 0E 00 [10:44:09]MH_I2C_Read... [10:44:09]Read from MH i2c: E2 0E 00 17 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [10:44:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:44:09]wFMCommunicate OK [10:44:09]SAM_PROTO_GetShiftState done [10:44:09]FM_GetShiftState done [10:44:09]req_shift_opened done [10:44:09]requested_item shift.open_date is exist - process it [10:44:09]req_shift_open_date [10:44:09]req_shift_open_date done [10:44:09]produce_requested_data done [10:44:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29510,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:44:09]process_action_free close_receipt [10:44:09]json_value_free [10:44:09]json_value_free done [10:44:09]process_json_proto returns [10:44:09]Send response to host [10:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29510,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:44:09]free response buf [10:44:09]execute_script done [10:44:09]execute_script returns [10:44:09]free content buf [10:44:09]Sock 9.Close socket [10:44:09]Sock 9.Thread stoped [10:44:12]OFD Sender: No OFD packet to send [10:44:17]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:54]accept exits with 8 [10:44:54]New connection [10:44:54]New thread 3066969444 created [10:44:54]Thread 3067112804 joined [10:44:54]Waiting for new connection... [10:44:54] Sock 8.Parse request [10:44:54]Sock 8.Check first char [10:44:54]Sock 8.First char is OK [10:44:54]request: POST /json_proto HTTP/1.0 [10:44:54]Method: POST [10:44:54]URL: /json_proto [10:44:54]Method is POST - this is cgi request [10:44:54]url: /json_proto [10:44:54]query_string will be loaded in cgi processing [10:44:54]execute_cgi json_proto POST (null) [10:44:54]execute_cgi path=json_proto method=POST [10:44:54]POST find Content-Length [10:44:54]Host: 172.17.33.3:8080 [10:44:54]Content-Length: 678 [10:44:54]Content-Type: application/json [10:44:54] [10:44:54]POST finish read [10:44:54]Found Content-Length = 678 [10:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.430, "sum" : 870.26, "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" ] } } [10:44:54]execute_script... [10:44: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)347926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.430, "sum" : 870.26, "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" ] } } [10:44:54]POST & json_proto [10:44:54]process_json_proto [10:44:54]json parsed OK: [10:44:54]protocol is kg_v1.0 [10:44:54]action value=close_receipt [10:44:54]process_action close_receipt [10:44:54]cmd_close_receipt [10:44:54]MH_GetDate [10:44:54]Write to MH i2c: F0 00 00 18 38 3F [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 18 38 00 2A 05 1D 66 23 5B 8F 65 6C [10:44:54]GetLastDocTimeStamp 1713177849 [10:44:54]current date 1713177898 [10:44:54]FM_GetShiftState [10:44:54]SAM_PROTO_GetShiftState [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 13 01 00 [10:44:54]Write to MH i2c: E2 08 00 19 38 80 13 01 00 00 00 00 00 CE [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 19 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C2 [10:44:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:44:54]wFMCommunicate OK [10:44:54]SAM_PROTO_GetShiftState done [10:44:54]FM_GetShiftState done [10:44:54]opened in 1713140468 [10:44:54]opened+sec_in_day 1713226868 [10:44:54]quantity*price = 87026 [10:44:54]sum+1 = 87027 [10:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.42 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 105 15.04.2024 10:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29511 ФПД: 21079748789777 1/tax-web-control/client/api/v1/ticket?date=20240415T104458&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29511&fm=21079748789777&tin=02508201610067®Number=0000138879044617&sum=87000 [10:44:55]StoreToDocumentArchive [10:44:55]shift 117 fd 29511 [10:44:55]save to /storage/0117/doc_00029511 [10:44:55]save last doc name /storage/0117/doc_00029511 to /storage/kkm_last_doc_name [10:44:55]save OK [10:44:55]Clear old archive folders... [10:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:55]tlvbuf is 00266E90 [10:44:55]SAM_PROTO_ClearQueue [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 09 00 00 [10:44:55]Write to MH i2c: E2 08 00 26 38 80 09 00 00 00 00 00 00 D0 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 26 38 00 90 00 D2 [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]SAM_PROTO_ClearQueue done [10:44:55]KKMCreateOFDPacket [10:44:55]OFDProtocolAddRootSTLVToBuf [10:44:55]FM_MakeSignedData [10:44:55]FM_MakeSignedData [10:44:55]SAM_PROTO_SignData [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 01 02 [10:44:55]Write to MH i2c: E2 08 00 27 38 80 0D 01 02 00 00 00 00 D8 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 27 38 00 90 00 D3 [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=255 [10:44:55]MH_SAM_APDU [10:44: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 76 34 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F2 53 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 1A 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 69 00 00 00 F4 03 04 00 2A 05 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 73 00 00 35 04 06 00 13 [10:44:55]Write to MH i2c: E2 02 01 28 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 76 34 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F2 53 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 1A 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 69 00 00 00 F4 03 04 00 2A 05 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 73 00 00 35 04 06 00 13 00 00 50 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=10 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 02 02 05 2C 02 F0 46 11 [10:44:55]Write to MH i2c: E2 0D 00 29 38 80 0D 02 02 05 00 2C 02 F0 46 11 00 00 5A [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 29 38 00 90 00 D5 [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 03 02 [10:44:55]Write to MH i2c: E2 08 00 2A 38 80 0D 03 02 00 00 00 00 DD [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 0B 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 0B 00 2A 38 00 2F 96 D2 AC C2 EA 26 49 90 00 3C [10:44:55]RAPDU: 2F 96 D2 AC C2 EA 26 49 90 00 [10:44:55]wFMCommunicate OK [10:44:55]SAM_PROTO_SignData done [10:44:55]FM_MakeSignedData done [10:44:55]CreateOFDProtocolMessage [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 11 00 00 [10:44:55]Write to MH i2c: E2 08 00 2B 38 80 11 00 00 00 00 00 00 DD [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 17 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 17 00 2B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [10:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:55]wFMCommunicate OK [10:44:55]CreateOFDProtocolMessage done [10:44:55]OFDSenderStorePacket 29511 [10:44:55]StoreOFDPacket docnum=29511 [10:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 A4 07 01 1D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F2 53 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 1A 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 69 00 00 00 F4 03 04 00 2A 05 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 73 00 00 35 04 06 00 13 2C 02 F0 46 11 2F 96 D2 AC C2 EA 26 49 [10:44:55]CheckFolder [10:44:55]dirname=/storage/ofd_packets [10:44:55]CheckFolder done [10:44:55]ProducePacketName [10:44:55]name=ofd_packets/00029511 [10:44:55]NVStorageSaveData ofd_packets/00029511 [10:44:55]File name is /storage/ofd_packets/00029511 [10:44:55]Write 301 bytes [10:44:55]NVStorageSaveData done [10:44:55]OFDSenderStorePacket done [10:44:55]KKMCreateOFDPacket done [10:44:55]NVStorageSaveData kkm_last_timestamp [10:44:55]File name is /storage/kkm_last_timestamp [10:44:55]Write 4 bytes [10:44:55]NVStorageSaveData done [10:44:55]ExternCall_PrintAddStr [10:44:55]wPrintStart [10:44:55]Write to MH i2c: 01 00 00 2C 38 64 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 07 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 07 00 2C 38 00 00 00 00 00 FF 0F 79 [10:44:55]RasterBufferAndPrint [10:44:55]line Счет N : (1)347926 [10:44:55]line ИНН: 02508201610067 [10:44:55]line Контрольно-Кассовый Чек [10:44:55]line ПРОДАЖА [10:44:55]line ТРК (МРК, ГНК) : 13 [10:44:55]line Товар: 2710124130 [10:44:55]line Аи-92-К-5 [10:44:55]line 13.430 * 64.80 [10:44:55]line = 870.26 [10:44:55]line НДС 12% НСП 1% [10:44:55]line > о реализуемом товаре [10:44:55]line ОКРУГЛЕНИЕ: -0.26 [10:44:55]line ИТОГО: 870.00 [10:44:55]line Внесено: 870.00 [10:44:55]line СДАЧА: 0.00 [10:44:55]line НСП 1% : 7.70 [10:44:55]line НДС 12% : 92.42 [10:44:55]line Наличными: 870.00 [10:44:55]line Безнал.: 0.00 [10:44:55]line Место: АЗС № 108 "Партнер Нефть" [10:44:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:44:55]line СНО: Общий режим [10:44:55]line Чек 105 15.04.2024 10:44 [10:44:55]line Смена: 117 ФФД: 1.0 [10:44:55]line ЗНМ: 0300000027 [10:44:55]line РНМ: 0000138879044617 [10:44:55]line Версия ККМ: 001 [10:44:55]line ФМ: 0000000000963154 [10:44:55]line ФД: 29511 [10:44:55]line ФПД: 21079748789777 [10:44:56]line 1/tax-web-control/client/api/v1/ticket?date=20240415T104458&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29511&fm=21079748789777&tin=02508201610067®Number=0000138879044617&sum=87000 [10:44:56]OFD Sender: Processing packet 29511 [packets to send 8, broken 7] [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00029511 [10:44:56]OFD Sender: To server: pG, [10:44:56]CommunicateWithHost lk.salyk.kg:30040 [10:44:56]ConnectInit lk.salyk.kg [10:44:56]written 0, free lines is 4095 [10:44:56]Connected sock=10 [10:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 A4 07 01 1D 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F2 53 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 1A 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 69 00 00 00 F4 03 04 00 2A 05 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 73 00 00 35 04 06 00 13 2C 02 F0 46 11 2F 96 D2 AC C2 EA 26 49 [10:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA BC 47 00 7B 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 39 36 33 31 35 34 10 04 04 00 47 73 00 00 F4 03 04 00 CB AF 1C 66 B6 04 01 00 00 84 14 3B DA 83 39 86 C4 [10:44:56]CommunicateWithHost err = 0 [10:44:56]CheckOFDResponse [10:44:56]1017 (14) - 77093643461234 [10:44:56]1041 (16) - 0000000000963154 [10:44:56]1040 (4) - 29511 [10:44:56]1012 (4) - 15.04.2024 04:40 [10:44:56]1206 (1) - 0 [10:44:56]OFD Sender: Remove packet 29511 [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00029511 [10:44:56]NVStorageDeleteData [10:44:56]Write to MH i2c: 01 00 00 56 38 8E [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 56 38 00 00 00 00 00 C5 0C 66 [10:44:56]RasterBufferAndPrint [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]written 0, free lines is 3276 [10:44:56]MH_Cut [10:44:56]Write to MH i2c: D1 01 00 5D 38 01 67 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 5D 38 00 66 [10:44:56]Write to MH i2c: 01 00 00 5E 38 96 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:57]OFD Sender: No OFD packet to send [10:44:57]*** Cut start [10:44:57]*** Partial cut [10:44:57]*** CUTSNS_PIN = 1 [10:44:57]*** CUTSNS_PIN = 0 [10:44:57]*** Brake cut motor [10:44:58]Read from MH i2c: 01 [10:44:58]MH_I2C_Read... [10:44:58]*** Stop cut motor [10:44:58]*** Cut end [10:44:58]Read from MH i2c: 01 07 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 07 00 5E 38 00 00 00 00 00 FF 0F AB [10:44:58]process_action close_receipt done [10:44:58]requested_data is exist [10:44:58]produce_requested_data [10:44:58]requested_item fm.sn is exist - process it [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 11 00 00 [10:44:58]Write to MH i2c: E2 08 00 5F 38 80 11 00 00 00 00 00 00 11 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 5F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [10:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:58]wFMCommunicate OK [10:44:58]requested_item fd.num is exist - process it [10:44:58]SAM_PROTO_GetFieldsCounters [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 00 00 [10:44:58]Write to MH i2c: E2 08 00 60 38 80 13 00 00 00 00 00 00 14 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 60 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 73 00 00 0E 04 04 00 75 00 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 BC [10:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetFieldsCounters done [10:44:58]requested_item shift.num is exist - process it [10:44:58]requested_item shift.opened is exist - process it [10:44:58]req_shift_opened [10:44:58]FM_GetShiftState [10:44:58]SAM_PROTO_GetShiftState [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 01 00 [10:44:58]Write to MH i2c: E2 08 00 61 38 80 13 01 00 00 00 00 00 16 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0E 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0E 00 61 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0A [10:44:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetShiftState done [10:44:58]FM_GetShiftState done [10:44:58]req_shift_opened done [10:44:58]requested_item shift.open_date is exist - process it [10:44:58]req_shift_open_date [10:44:58]req_shift_open_date done [10:44:58]produce_requested_data done [10:44:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29511,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:44:58]process_action_free close_receipt [10:44:58]json_value_free [10:44:58]json_value_free done [10:44:58]process_json_proto returns [10:44:58]Send response to host [10:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29511,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:44:58]free response buf [10:44:58]execute_script done [10:44:58]execute_script returns [10:44:58]free content buf [10:44:58]Sock 8.Close socket [10:44:58]Sock 8.Thread stoped [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10: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:21]accept exits with 9 [10:50:21]New connection [10:50:21]New thread 3067112804 created [10:50:21]Thread 3066969444 joined [10:50:21]Waiting for new connection... [10:50:21] Sock 9.Parse request [10:50:21]Sock 9.Check first char [10:50:21]Sock 9.First char is OK [10:50:21]request: POST /json_proto HTTP/1.0 [10:50:21]Method: POST [10:50:21]URL: /json_proto [10:50:21]Method is POST - this is cgi request [10:50:21]url: /json_proto [10:50:21]query_string will be loaded in cgi processing [10:50:21]execute_cgi json_proto POST (null) [10:50:21]execute_cgi path=json_proto method=POST [10:50:21]POST find Content-Length [10:50:21]Host: 172.17.33.3:8080 [10:50:21]Content-Length: 677 [10:50:21]Content-Type: application/json [10:50:21] [10:50:21]POST finish read [10:50:21]Found Content-Length = 677 [10:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:21]execute_script... [10:50:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:21]POST & json_proto [10:50:21]process_json_proto [10:50:21]json parsed OK: [10:50:21]protocol is kg_v1.0 [10:50:21]action value=close_receipt [10:50:21]process_action close_receipt [10:50:21]cmd_close_receipt [10:50:21]MH_GetDate [10:50:21]Write to MH i2c: F0 00 00 62 38 89 [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: F0 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: F0 09 00 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: F0 09 00 62 38 00 72 06 1D 66 23 5B 8F 65 FF [10:50:21]GetLastDocTimeStamp 1713177898 [10:50:21]current date 1713178226 [10:50:21]FM_GetShiftState [10:50:21]SAM_PROTO_GetShiftState [10:50:21]wFMCommunicate request_size=4 [10:50:21]MH_SAM_APDU [10:50:21]CAPDU: 80 13 01 00 [10:50:21]Write to MH i2c: E2 08 00 63 38 80 13 01 00 00 00 00 00 18 [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:21]Read from MH i2c: E2 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: E2 0E 00 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: E2 0E 00 63 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0C [10:50:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:50:21]wFMCommunicate OK [10:50:21]SAM_PROTO_GetShiftState done [10:50:21]FM_GetShiftState done [10:50:21]opened in 1713140468 [10:50:21]opened+sec_in_day 1713226868 [10:50:21]quantity*price = 50025 [10:50:21]sum+1 = 50027 [10:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 106 15.04.2024 10:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29512 ФПД: 37931951210842 1/tax-web-control/client/api/v1/ticket?date=20240415T105026&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29512&fm=37931951210842&tin=02508201610067®Number=0000138879044617&sum=50000 [10:50:23]StoreToDocumentArchive [10:50:23]shift 117 fd 29512 [10:50:23]save to /storage/0117/doc_00029512 [10:50:23]save last doc name /storage/0117/doc_00029512 to /storage/kkm_last_doc_name [10:50:23]save OK [10:50:23]Clear old archive folders... [10:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:23]tlvbuf is B6F01A90 [10:50:23]SAM_PROTO_ClearQueue [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 09 00 00 [10:50:23]Write to MH i2c: E2 08 00 70 38 80 09 00 00 00 00 00 00 1A [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 70 38 00 90 00 1C [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_ClearQueue done [10:50:23]KKMCreateOFDPacket [10:50:23]OFDProtocolAddRootSTLVToBuf [10:50:23]FM_MakeSignedData [10:50:23]FM_MakeSignedData [10:50:23]SAM_PROTO_SignData [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 01 02 [10:50:23]Write to MH i2c: E2 08 00 71 38 80 0D 01 02 00 00 00 00 22 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 71 38 00 90 00 1D [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=255 [10:50:23]MH_SAM_APDU [10:50: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 06 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 73 00 00 35 04 06 00 22 [10:50:23]Write to MH i2c: E2 02 01 72 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 06 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 73 00 00 35 04 06 00 22 00 00 92 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 72 38 00 90 00 1E [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=10 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 02 02 05 7F B8 7A 41 5A [10:50:23]Write to MH i2c: E2 0D 00 73 38 80 0D 02 02 05 00 7F B8 7A 41 5A 00 00 7B [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 03 00 73 38 00 90 00 1F [10:50:23]RAPDU: 90 00 [10:50:23]wFMCommunicate OK [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 0D 03 02 [10:50:23]Write to MH i2c: E2 08 00 74 38 80 0D 03 02 00 00 00 00 27 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0B 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0B 00 74 38 00 42 98 EA FC 74 5C 83 29 90 00 64 [10:50:23]RAPDU: 42 98 EA FC 74 5C 83 29 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_SignData done [10:50:23]FM_MakeSignedData done [10:50:23]CreateOFDProtocolMessage [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 11 00 00 [10:50:23]Write to MH i2c: E2 08 00 75 38 80 11 00 00 00 00 00 00 27 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 75 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [10:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:23]wFMCommunicate OK [10:50:23]CreateOFDProtocolMessage done [10:50:23]OFDSenderStorePacket 29512 [10:50:23]StoreOFDPacket docnum=29512 [10:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 62 07 01 91 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 06 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 73 00 00 35 04 06 00 22 7F B8 7A 41 5A 42 98 EA FC 74 5C 83 29 [10:50:23]CheckFolder [10:50:23]dirname=/storage/ofd_packets [10:50:23]CheckFolder done [10:50:23]ProducePacketName [10:50:23]name=ofd_packets/00029512 [10:50:23]NVStorageSaveData ofd_packets/00029512 [10:50:23]File name is /storage/ofd_packets/00029512 [10:50:23]Write 301 bytes [10:50:23]NVStorageSaveData done [10:50:23]OFDSenderStorePacket done [10:50:23]KKMCreateOFDPacket done [10:50:23]NVStorageSaveData kkm_last_timestamp [10:50:23]File name is /storage/kkm_last_timestamp [10:50:23]Write 4 bytes [10:50:23]NVStorageSaveData done [10:50:23]ExternCall_PrintAddStr [10:50:23]wPrintStart [10:50:23]Write to MH i2c: 01 00 00 76 38 AE [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 76 38 00 00 00 00 00 FF 0F C3 [10:50:23]RasterBufferAndPrint [10:50:23]line Счет N : (1)347927 [10:50:23]line ИНН: 02508201610067 [10:50:23]line Контрольно-Кассовый Чек [10:50:23]line ПРОДАЖА [10:50:23]line ТРК (МРК, ГНК) : 23 [10:50:23]line Товар: 2710124130 [10:50:23]line Аи-92-К-5 [10:50:23]line 7.720 * 64.80 [10:50:23]line = 500.26 [10:50:23]line НДС 12% НСП 1% [10:50:23]line > о реализуемом товаре [10:50:23]line ОКРУГЛЕНИЕ: -0.26 [10:50:23]line ИТОГО: 500.00 [10:50:23]line Внесено: 500.00 [10:50:23]line СДАЧА: 0.00 [10:50:23]line НСП 1% : 4.43 [10:50:23]line НДС 12% : 53.12 [10:50:23]line Наличными: 500.00 [10:50:23]line Безнал.: 0.00 [10:50:23]line Место: АЗС № 108 "Партнер Нефть" [10:50:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:50:23]line СНО: Общий режим [10:50:23]line Чек 106 15.04.2024 10:50 [10:50:23]line Смена: 117 ФФД: 1.0 [10:50:23]line ЗНМ: 0300000027 [10:50:23]line РНМ: 0000138879044617 [10:50:23]line Версия ККМ: 001 [10:50:23]line ФМ: 0000000000963154 [10:50:23]line ФД: 29512 [10:50:23]line ФПД: 37931951210842 [10:50:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T105026&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29512&fm=37931951210842&tin=02508201610067®Number=0000138879044617&sum=50000 [10:50:23]OFD Sender: Processing packet 29512 [packets to send 8, broken 7] [10:50:23]ProducePacketName [10:50:23]name=ofd_packets/00029512 [10:50:23]OFD Sender: To server: pG, [10:50:23]CommunicateWithHost lk.salyk.kg:30040 [10:50:23]ConnectInit lk.salyk.kg [10:50:23]written 0, free lines is 4095 [10:50:24]Connected sock=10 [10:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 62 07 01 91 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 06 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 73 00 00 35 04 06 00 22 7F B8 7A 41 5A 42 98 EA FC 74 5C 83 29 [10:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 53 74 47 00 E8 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 73 00 00 F4 03 04 00 13 B1 1C 66 B6 04 01 00 00 6D 4E 50 4E 51 AE B7 8C [10:50:24]CommunicateWithHost err = 0 [10:50:24]CheckOFDResponse [10:50:24]1017 (14) - 77093643461234 [10:50:24]1041 (16) - 0000000000963154 [10:50:24]1040 (4) - 29512 [10:50:24]1012 (4) - 15.04.2024 04:46 [10:50:24]1206 (1) - 0 [10:50:24]OFD Sender: Remove packet 29512 [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00029512 [10:50:24]NVStorageDeleteData [10:50:24]Write to MH i2c: 01 00 00 A0 38 D8 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 BC 0C A7 [10:50:24]RasterBufferAndPrint [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]line [10:50:24]written 0, free lines is 3265 [10:50:24]MH_Cut [10:50:24]Write to MH i2c: D1 01 00 A7 38 01 B1 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 01 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: D1 01 00 A7 38 00 B0 [10:50:24]Write to MH i2c: 01 00 00 A8 38 E0 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]OFD Sender: No OFD packet to send [10:50:25]*** Cut start [10:50:25]*** Partial cut [10:50:25]*** CUTSNS_PIN = 1 [10:50:25]*** CUTSNS_PIN = 0 [10:50:25]*** Brake cut motor [10:50:25]Read from MH i2c: 01 [10:50:25]MH_I2C_Read... [10:50:25]*** Stop cut motor [10:50:25]*** Cut end [10:50:25]Read from MH i2c: 01 07 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 A8 38 00 00 00 00 00 FF 0F F5 [10:50:25]process_action close_receipt done [10:50:25]requested_data is exist [10:50:25]produce_requested_data [10:50:25]requested_item fm.sn is exist - process it [10:50:25]wFMCommunicate request_size=4 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 11 00 00 [10:50:25]Write to MH i2c: E2 08 00 A9 38 80 11 00 00 00 00 00 00 5B [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:25]Read from MH i2c: E2 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 17 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 17 00 A9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [10:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:25]wFMCommunicate OK [10:50:25]requested_item fd.num is exist - process it [10:50:25]SAM_PROTO_GetFieldsCounters [10:50:25]wFMCommunicate request_size=4 [10:50:25]MH_SAM_APDU [10:50:25]CAPDU: 80 13 00 00 [10:50:25]Write to MH i2c: E2 08 00 AA 38 80 13 00 00 00 00 00 00 5E [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 62 00 [10:50:26]MH_I2C_Read... [10:50:26]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 73 00 00 0E 04 04 00 75 00 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 0A [10:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetFieldsCounters done [10:50:26]requested_item shift.num is exist - process it [10:50:26]requested_item shift.opened is exist - process it [10:50:26]req_shift_opened [10:50:26]FM_GetShiftState [10:50:26]SAM_PROTO_GetShiftState [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 13 01 00 [10:50:26]Write to MH i2c: E2 08 00 AB 38 80 13 01 00 00 00 00 00 60 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 0E 00 AB 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 54 [10:50:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:50:26]wFMCommunicate OK [10:50:26]SAM_PROTO_GetShiftState done [10:50:26]FM_GetShiftState done [10:50:26]req_shift_opened done [10:50:26]requested_item shift.open_date is exist - process it [10:50:26]req_shift_open_date [10:50:26]req_shift_open_date done [10:50:26]produce_requested_data done [10:50:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29512,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:50:26]process_action_free close_receipt [10:50:26]json_value_free [10:50:26]json_value_free done [10:50:26]process_json_proto returns [10:50:26]Send response to host [10:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29512,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:50:26]free response buf [10:50:26]execute_script done [10:50:26]execute_script returns [10:50:26]free content buf [10:50:26]Sock 9.Close socket [10:50:26]Sock 9.Thread stoped [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:04]int [10:51:04]Write to MH i2c: 01 00 00 AC 38 E4 [10:51:04]*** FLAG_PRN_KEY set [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 AC 38 00 08 00 00 00 FF 0F 01 [10:51:04]state=0 [10:51:04]Key pressed [10:51:04]Feed [10:51:04]Write to MH i2c: D8 00 00 AD 38 BC [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D8 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D8 01 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: D8 01 00 AD 38 00 BD [10:51:04]int [10:51:04]Write to MH i2c: 01 00 00 AE 38 E6 [10:51:04]Write i2c OK [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 [10:51:04]MH_I2C_Read... [10:51:04]Read from MH i2c: 01 07 00 AE 38 00 48 00 00 00 3C 00 71 [10:51:04]state=2 [10:51:04]Key pressed [10:51:05]int [10:51:05]Write to MH i2c: 01 00 00 AF 38 E7 [10:51:05]*** FLAG_PRN_KEY reset [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 AF 38 00 00 00 00 00 F6 0F F3 [10:51:05]state=2 [10:51:05]Stop feed [10:51:06]int [10:51:06]Write to MH i2c: 01 00 00 B0 38 E8 [10:51:06]*** FLAG_PRN_KEY set [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 B0 38 00 08 00 00 00 FF 0F 05 [10:51:06]state=0 [10:51:06]Key pressed [10:51:06]Feed [10:51:06]Write to MH i2c: D8 00 00 B1 38 C0 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D8 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D8 01 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: D8 01 00 B1 38 00 C1 [10:51:06]int [10:51:06]Write to MH i2c: 01 00 00 B2 38 EA [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 B2 38 00 48 00 00 00 3C 00 75 [10:51:06]state=2 [10:51:06]Key pressed [10:51:06]int [10:51:06]Write to MH i2c: 01 00 00 B3 38 EB [10:51:06]*** FLAG_PRN_KEY reset [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 B3 38 00 00 00 00 00 F6 0F F7 [10:51:06]state=2 [10:51:06]Stop feed [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:43]accept exits with 8 [10:54:43]New connection [10:54:43]New thread 3066969444 created [10:54:43]Thread 3067112804 joined [10:54:43]Waiting for new connection... [10:54:43] Sock 8.Parse request [10:54:43]Sock 8.Check first char [10:54:43]Sock 8.First char is OK [10:54:43]request: POST /json_proto HTTP/1.0 [10:54:43]Method: POST [10:54:43]URL: /json_proto [10:54:43]Method is POST - this is cgi request [10:54:43]url: /json_proto [10:54:43]query_string will be loaded in cgi processing [10:54:43]execute_cgi json_proto POST (null) [10:54:43]execute_cgi path=json_proto method=POST [10:54:43]POST find Content-Length [10:54:43]Host: 172.17.33.3:8080 [10:54:43]Content-Length: 678 [10:54:43]Content-Type: application/json [10:54:43] [10:54:43]POST finish read [10:54:43]Found Content-Length = 678 [10:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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:54:43]execute_script... [10:54: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)347928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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:54:43]POST & json_proto [10:54:43]process_json_proto [10:54:43]json parsed OK: [10:54:43]protocol is kg_v1.0 [10:54:43]action value=close_receipt [10:54:43]process_action close_receipt [10:54:43]cmd_close_receipt [10:54:43]MH_GetDate [10:54:43]Write to MH i2c: F0 00 00 B4 38 DB [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: F0 09 00 B4 38 00 77 07 1D 66 23 5B 8F 65 57 [10:54:43]GetLastDocTimeStamp 1713178226 [10:54:43]current date 1713178487 [10:54:43]FM_GetShiftState [10:54:43]SAM_PROTO_GetShiftState [10:54:43]wFMCommunicate request_size=4 [10:54:43]MH_SAM_APDU [10:54:43]CAPDU: 80 13 01 00 [10:54:43]Write to MH i2c: E2 08 00 B5 38 80 13 01 00 00 00 00 00 6A [10:54:43]Write i2c OK [10:54:43]MH_I2C_Read... [10:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:43]Read from MH i2c: E2 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 [10:54:43]MH_I2C_Read... [10:54:43]Read from MH i2c: E2 0E 00 B5 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5E [10:54:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:54:43]wFMCommunicate OK [10:54:43]SAM_PROTO_GetShiftState done [10:54:43]FM_GetShiftState done [10:54:43]opened in 1713140468 [10:54:43]opened+sec_in_day 1713226868 [10:54:43]quantity*price = 70048 [10:54:43]sum+1 = 70050 [10:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 107 15.04.2024 10:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29513 ФПД: 59628152939981 1/tax-web-control/client/api/v1/ticket?date=20240415T105447&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29513&fm=59628152939981&tin=02508201610067®Number=0000138879044617&sum=70000 [10:54:44]StoreToDocumentArchive [10:54:44]shift 117 fd 29513 [10:54:44]save to /storage/0117/doc_00029513 [10:54:44]save last doc name /storage/0117/doc_00029513 to /storage/kkm_last_doc_name [10:54:44]save OK [10:54:44]Clear old archive folders... [10:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:44]tlvbuf is B6F7F9D0 [10:54:44]SAM_PROTO_ClearQueue [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 09 00 00 [10:54:44]Write to MH i2c: E2 08 00 C2 38 80 09 00 00 00 00 00 00 6C [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 C2 38 00 90 00 6E [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]SAM_PROTO_ClearQueue done [10:54:44]KKMCreateOFDPacket [10:54:44]OFDProtocolAddRootSTLVToBuf [10:54:44]FM_MakeSignedData [10:54:44]FM_MakeSignedData [10:54:44]SAM_PROTO_SignData [10:54:44]wFMCommunicate request_size=4 [10:54:44]MH_SAM_APDU [10:54:44]CAPDU: 80 0D 01 02 [10:54:44]Write to MH i2c: E2 08 00 C3 38 80 0D 01 02 00 00 00 00 74 [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:44]Read from MH i2c: E2 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 [10:54:44]MH_I2C_Read... [10:54:44]Read from MH i2c: E2 03 00 C3 38 00 90 00 6F [10:54:44]RAPDU: 90 00 [10:54:44]wFMCommunicate OK [10:54:44]wFMCommunicate request_size=255 [10:54:44]MH_SAM_APDU [10:54: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 6B 00 00 00 F4 03 04 00 77 07 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 73 00 00 35 04 06 00 36 [10:54:44]Write to MH i2c: E2 02 01 C4 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 6B 00 00 00 F4 03 04 00 77 07 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 73 00 00 35 04 06 00 36 00 00 8C [10:54:44]Write i2c OK [10:54:44]MH_I2C_Read... [10:54:44]OFD Sender: No OFD packet to send [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 C4 38 00 90 00 70 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=10 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 02 02 05 3B 42 DF E5 CD [10:54:45]Write to MH i2c: E2 0D 00 C5 38 80 0D 02 02 05 00 3B 42 DF E5 CD 00 00 8F [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 03 00 C5 38 00 90 00 71 [10:54:45]RAPDU: 90 00 [10:54:45]wFMCommunicate OK [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 0D 03 02 [10:54:45]Write to MH i2c: E2 08 00 C6 38 80 0D 03 02 00 00 00 00 79 [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 0B 00 C6 38 00 07 8B 00 06 DE 42 BB 86 90 00 73 [10:54:45]RAPDU: 07 8B 00 06 DE 42 BB 86 90 00 [10:54:45]wFMCommunicate OK [10:54:45]SAM_PROTO_SignData done [10:54:45]FM_MakeSignedData done [10:54:45]CreateOFDProtocolMessage [10:54:45]wFMCommunicate request_size=4 [10:54:45]MH_SAM_APDU [10:54:45]CAPDU: 80 11 00 00 [10:54:45]Write to MH i2c: E2 08 00 C7 38 80 11 00 00 00 00 00 00 79 [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:45]Read from MH i2c: E2 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: E2 17 00 C7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [10:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:45]wFMCommunicate OK [10:54:45]CreateOFDProtocolMessage done [10:54:45]OFDSenderStorePacket 29513 [10:54:45]StoreOFDPacket docnum=29513 [10:54:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 15 07 01 64 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 6B 00 00 00 F4 03 04 00 77 07 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 73 00 00 35 04 06 00 36 3B 42 DF E5 CD 07 8B 00 06 DE 42 BB 86 [10:54:45]CheckFolder [10:54:45]dirname=/storage/ofd_packets [10:54:45]CheckFolder done [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00029513 [10:54:45]NVStorageSaveData ofd_packets/00029513 [10:54:45]File name is /storage/ofd_packets/00029513 [10:54:45]Write 301 bytes [10:54:45]NVStorageSaveData done [10:54:45]OFDSenderStorePacket done [10:54:45]KKMCreateOFDPacket done [10:54:45]NVStorageSaveData kkm_last_timestamp [10:54:45]File name is /storage/kkm_last_timestamp [10:54:45]Write 4 bytes [10:54:45]NVStorageSaveData done [10:54:45]ExternCall_PrintAddStr [10:54:45]wPrintStart [10:54:45]Write to MH i2c: 01 00 00 C8 38 00 [10:54:45]Write i2c OK [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 [10:54:45]MH_I2C_Read... [10:54:45]Read from MH i2c: 01 07 00 C8 38 00 00 00 00 00 FF 0F 15 [10:54:45]RasterBufferAndPrint [10:54:45]line Счет N : (1)347928 [10:54:45]line ИНН: 02508201610067 [10:54:45]line Контрольно-Кассовый Чек [10:54:45]line ПРОДАЖА [10:54:45]line ТРК (МРК, ГНК) : 23 [10:54:45]line Товар: 2710124130 [10:54:45]line Аи-92-К-5 [10:54:45]line 10.810 * 64.80 [10:54:45]line = 700.49 [10:54:45]line НДС 12% НСП 1% [10:54:45]line > о реализуемом товаре [10:54:45]line ОКРУГЛЕНИЕ: -0.49 [10:54:45]line ИТОГО: 700.00 [10:54:45]line Внесено: 700.00 [10:54:45]line СДАЧА: 0.00 [10:54:45]line НСП 1% : 6.20 [10:54:45]line НДС 12% : 74.39 [10:54:45]line Наличными: 700.00 [10:54:45]line Безнал.: 0.00 [10:54:45]line Место: АЗС № 108 "Партнер Нефть" [10:54:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:54:45]line СНО: Общий режим [10:54:45]line Чек 107 15.04.2024 10:54 [10:54:45]line Смена: 117 ФФД: 1.0 [10:54:45]line ЗНМ: 0300000027 [10:54:45]line РНМ: 0000138879044617 [10:54:45]line Версия ККМ: 001 [10:54:45]line ФМ: 0000000000963154 [10:54:45]line ФД: 29513 [10:54:45]line ФПД: 59628152939981 [10:54:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T105447&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29513&fm=59628152939981&tin=02508201610067®Number=0000138879044617&sum=70000 [10:54:45]OFD Sender: Processing packet 29513 [packets to send 8, broken 7] [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00029513 [10:54:45]OFD Sender: To server: pG, [10:54:45]CommunicateWithHost lk.salyk.kg:30040 [10:54:45]ConnectInit lk.salyk.kg [10:54:45]written 0, free lines is 4095 [10:54:45]Connected sock=10 [10:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 15 07 01 64 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 6B 00 00 00 F4 03 04 00 77 07 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 73 00 00 35 04 06 00 36 3B 42 DF E5 CD 07 8B 00 06 DE 42 BB 86 [10:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E0 B6 47 00 6A 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 39 36 33 31 35 34 10 04 04 00 49 73 00 00 F4 03 04 00 18 B2 1C 66 B6 04 01 00 00 78 23 20 C3 FE 26 EA 41 [10:54:45]CommunicateWithHost err = 0 [10:54:45]CheckOFDResponse [10:54:45]1017 (14) - 77093643461234 [10:54:45]1041 (16) - 0000000000963154 [10:54:45]1040 (4) - 29513 [10:54:45]1012 (4) - 15.04.2024 04:50 [10:54:45]1206 (1) - 0 [10:54:45]OFD Sender: Remove packet 29513 [10:54:45]ProducePacketName [10:54:45]name=ofd_packets/00029513 [10:54:45]NVStorageDeleteData [10:54:46]Write to MH i2c: 01 00 00 F2 38 2A [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: 01 07 00 F2 38 00 00 00 00 00 C3 0C 00 [10:54:46]RasterBufferAndPrint [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]line [10:54:46]written 0, free lines is 3273 [10:54:46]MH_Cut [10:54:46]Write to MH i2c: D1 01 00 F9 38 01 03 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 [10:54:46]MH_I2C_Read... [10:54:46]Read from MH i2c: D1 01 00 F9 38 00 02 [10:54:46]Write to MH i2c: 01 00 00 FA 38 32 [10:54:46]Write i2c OK [10:54:46]MH_I2C_Read... [10:54:46]OFD Sender: No OFD packet to send [10:54:46]*** Cut start [10:54:46]*** Partial cut [10:54:46]*** CUTSNS_PIN = 1 [10:54:46]*** CUTSNS_PIN = 0 [10:54:47]*** Brake cut motor [10:54:47]Read from MH i2c: 01 [10:54:47]MH_I2C_Read... [10:54:47]*** Stop cut motor [10:54:47]*** Cut end [10:54:47]Read from MH i2c: 01 07 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: 01 07 00 FA 38 00 00 00 00 00 FF 0F 47 [10:54:47]process_action close_receipt done [10:54:47]requested_data is exist [10:54:47]produce_requested_data [10:54:47]requested_item fm.sn is exist - process it [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 11 00 00 [10:54:47]Write to MH i2c: E2 08 00 FB 38 80 11 00 00 00 00 00 00 AD [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 17 00 FB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [10:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:47]wFMCommunicate OK [10:54:47]requested_item fd.num is exist - process it [10:54:47]SAM_PROTO_GetFieldsCounters [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 00 00 [10:54:47]Write to MH i2c: E2 08 00 FC 38 80 13 00 00 00 00 00 00 B0 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 62 00 FC 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 73 00 00 0E 04 04 00 75 00 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 60 [10:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetFieldsCounters done [10:54:47]requested_item shift.num is exist - process it [10:54:47]requested_item shift.opened is exist - process it [10:54:47]req_shift_opened [10:54:47]FM_GetShiftState [10:54:47]SAM_PROTO_GetShiftState [10:54:47]wFMCommunicate request_size=4 [10:54:47]MH_SAM_APDU [10:54:47]CAPDU: 80 13 01 00 [10:54:47]Write to MH i2c: E2 08 00 FD 38 80 13 01 00 00 00 00 00 B2 [10:54:47]Write i2c OK [10:54:47]MH_I2C_Read... [10:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:47]Read from MH i2c: E2 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 [10:54:47]MH_I2C_Read... [10:54:47]Read from MH i2c: E2 0E 00 FD 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A6 [10:54:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:54:47]wFMCommunicate OK [10:54:47]SAM_PROTO_GetShiftState done [10:54:47]FM_GetShiftState done [10:54:47]req_shift_opened done [10:54:47]requested_item shift.open_date is exist - process it [10:54:47]req_shift_open_date [10:54:47]req_shift_open_date done [10:54:47]produce_requested_data done [10:54:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29513,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:54:47]process_action_free close_receipt [10:54:47]json_value_free [10:54:47]json_value_free done [10:54:47]process_json_proto returns [10:54:47]Send response to host [10:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29513,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:54:47]free response buf [10:54:47]execute_script done [10:54:47]execute_script returns [10:54:47]free content buf [10:54:47]Sock 8.Close socket [10:54:47]Sock 8.Thread stoped [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:52]accept exits with 9 [10:58:52]New connection [10:58:52]New thread 3067112804 created [10:58:52]Thread 3066969444 joined [10:58:52]Waiting for new connection... [10:58:52] Sock 9.Parse request [10:58:52]Sock 9.Check first char [10:58:52]Sock 9.First char is OK [10:58:52]request: POST /json_proto HTTP/1.0 [10:58:52]Method: POST [10:58:52]URL: /json_proto [10:58:52]Method is POST - this is cgi request [10:58:52]url: /json_proto [10:58:52]query_string will be loaded in cgi processing [10:58:52]execute_cgi json_proto POST (null) [10:58:52]execute_cgi path=json_proto method=POST [10:58:52]POST find Content-Length [10:58:52]Host: 172.17.33.3:8080 [10:58:52]Content-Length: 808 [10:58:52]Content-Type: application/json [10:58:52] [10:58:52]POST finish read [10:58:52]Found Content-Length = 808 [10:58:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 30.220, "sum" : 2203.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2203.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:52]execute_script... [10:58:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 30.220, "sum" : 2203.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2203.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:52]POST & json_proto [10:58:52]process_json_proto [10:58:52]json parsed OK: [10:58:52]protocol is kg_v1.0 [10:58:52]action value=close_receipt [10:58:52]process_action close_receipt [10:58:52]cmd_close_receipt [10:58:52]MH_GetDate [10:58:52]Write to MH i2c: F0 00 00 FE 38 25 [10:58:52]Write i2c OK [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 09 00 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: F0 09 00 FE 38 00 70 08 1D 66 23 5B 8F 65 9B [10:58:52]GetLastDocTimeStamp 1713178487 [10:58:52]current date 1713178736 [10:58:52]FM_GetShiftState [10:58:52]SAM_PROTO_GetShiftState [10:58:52]wFMCommunicate request_size=4 [10:58:52]MH_SAM_APDU [10:58:52]CAPDU: 80 13 01 00 [10:58:52]Write to MH i2c: E2 08 00 FF 38 80 13 01 00 00 00 00 00 B4 [10:58:52]Write i2c OK [10:58:52]MH_I2C_Read... [10:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:52]Read from MH i2c: E2 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: E2 0E 00 [10:58:52]MH_I2C_Read... [10:58:52]Read from MH i2c: E2 0E 00 FF 38 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A8 [10:58:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:58:52]wFMCommunicate OK [10:58:52]SAM_PROTO_GetShiftState done [10:58:52]FM_GetShiftState done [10:58:52]opened in 1713140468 [10:58:52]opened+sec_in_day 1713226868 [10:58:52]quantity*price = 220303 [10:58:52]sum+1 = 220305 [10:58:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2203.04 НСП 1% : 19.50 НДС 12% : 233.95 Наличными: 0.00 Безнал.: 2203.04 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 108 15.04.2024 10:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29514 ФПД: 33085682013344 1/tax-web-control/client/api/v1/ticket?date=20240415T105856&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29514&fm=33085682013344&tin=02508201610067®Number=0000138879044617&sum=220304 [10:58:53]StoreToDocumentArchive [10:58:53]shift 117 fd 29514 [10:58:53]save to /storage/0117/doc_00029514 [10:58:53]save last doc name /storage/0117/doc_00029514 to /storage/kkm_last_doc_name [10:58:53]save OK [10:58:53]Clear old archive folders... [10:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:53]tlvbuf is 002478D0 [10:58:53]SAM_PROTO_ClearQueue [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 09 00 00 [10:58:53]Write to MH i2c: E2 08 00 0C 39 80 09 00 00 00 00 00 00 B7 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 0C 39 00 90 00 B9 [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]SAM_PROTO_ClearQueue done [10:58:53]KKMCreateOFDPacket [10:58:53]OFDProtocolAddRootSTLVToBuf [10:58:53]FM_MakeSignedData [10:58:53]FM_MakeSignedData [10:58:53]SAM_PROTO_SignData [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 01 02 [10:58:53]Write to MH i2c: E2 08 00 0D 39 80 0D 01 02 00 00 00 00 BF [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 0D 39 00 90 00 BA [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=255 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 76 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 90 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 70 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 73 00 00 35 04 06 00 1E [10:58:53]Write to MH i2c: E2 02 01 0E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 76 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 90 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 70 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 73 00 00 35 04 06 00 1E 00 00 E9 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 0E 39 00 90 00 BB [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=10 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 02 02 05 17 5C 52 D4 A0 [10:58:53]Write to MH i2c: E2 0D 00 0F 39 80 0D 02 02 05 00 17 5C 52 D4 A0 00 00 05 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 03 00 0F 39 00 90 00 BC [10:58:53]RAPDU: 90 00 [10:58:53]wFMCommunicate OK [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 0D 03 02 [10:58:53]Write to MH i2c: E2 08 00 10 39 80 0D 03 02 00 00 00 00 C4 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0B 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0B 00 10 39 00 9B 57 AA 4C 7D 97 BD E6 90 00 64 [10:58:53]RAPDU: 9B 57 AA 4C 7D 97 BD E6 90 00 [10:58:53]wFMCommunicate OK [10:58:53]SAM_PROTO_SignData done [10:58:53]FM_MakeSignedData done [10:58:53]CreateOFDProtocolMessage [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 11 00 00 [10:58:53]Write to MH i2c: E2 08 00 11 39 80 11 00 00 00 00 00 00 C4 [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 17 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 17 00 11 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [10:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:58:53]wFMCommunicate OK [10:58:53]CreateOFDProtocolMessage done [10:58:53]OFDSenderStorePacket 29514 [10:58:53]StoreOFDPacket docnum=29514 [10:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 4E 07 01 36 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 76 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 90 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 70 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 73 00 00 35 04 06 00 1E 17 5C 52 D4 A0 9B 57 AA 4C 7D 97 BD E6 [10:58:53]CheckFolder [10:58:53]dirname=/storage/ofd_packets [10:58:53]CheckFolder done [10:58:53]ProducePacketName [10:58:53]name=ofd_packets/00029514 [10:58:53]NVStorageSaveData ofd_packets/00029514 [10:58:53]File name is /storage/ofd_packets/00029514 [10:58:53]Write 301 bytes [10:58:53]NVStorageSaveData done [10:58:53]OFDSenderStorePacket done [10:58:53]KKMCreateOFDPacket done [10:58:53]NVStorageSaveData kkm_last_timestamp [10:58:53]File name is /storage/kkm_last_timestamp [10:58:53]Write 4 bytes [10:58:53]NVStorageSaveData done [10:58:53]ExternCall_PrintAddStr [10:58:53]wPrintStart [10:58:53]Write to MH i2c: 01 00 00 12 39 4B [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: 01 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: 01 07 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: 01 07 00 12 39 00 00 00 00 00 FF 0F 60 [10:58:53]RasterBufferAndPrint [10:58:53]line Счет N : (1)347929 [10:58:53]line ИНН: 02508201610067 [10:58:53]line Контрольно-Кассовый Чек [10:58:53]line ПРОДАЖА [10:58:53]line ТРК (МРК, ГНК) : 33 [10:58:53]line Товар: 2710124500 [10:58:53]line Аи-95-К-5 [10:58:53]line 30.220 * 72.90 [10:58:53]line = 2203.04 [10:58:53]line НДС 12% НСП 1% [10:58:53]line > о реализуемом товаре [10:58:53]line ИТОГО: 2203.04 [10:58:53]line НСП 1% : 19.50 [10:58:53]line НДС 12% : 233.95 [10:58:53]line Наличными: 0.00 [10:58:53]line Безнал.: 2203.04 [10:58:53]line Место: АЗС № 108 "Партнер Нефть" [10:58:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:58:53]line СНО: Общий режим [10:58:53]line Чек 108 15.04.2024 10:58 [10:58:53]line Смена: 117 ФФД: 1.0 [10:58:53]line ЗНМ: 0300000027 [10:58:53]line РНМ: 0000138879044617 [10:58:53]line Версия ККМ: 001 [10:58:53]line Платежная система: О! деньги [10:58:53]line ФМ: 0000000000963154 [10:58:53]line ФД: 29514 [10:58:54]line ФПД: 33085682013344 [10:58:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T105856&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29514&fm=33085682013344&tin=02508201610067®Number=0000138879044617&sum=220304 [10:58:54]OFD Sender: Processing packet 29514 [packets to send 8, broken 7] [10:58:54]ProducePacketName [10:58:54]name=ofd_packets/00029514 [10:58:54]OFD Sender: To server: pG, [10:58:54]CommunicateWithHost lk.salyk.kg:30040 [10:58:54]ConnectInit lk.salyk.kg [10:58:54]written 0, free lines is 4095 [10:58:54]Connected sock=10 [10:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 4E 07 01 36 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 76 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 90 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 70 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 73 00 00 35 04 06 00 1E 17 5C 52 D4 A0 9B 57 AA 4C 7D 97 BD E6 [10:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 11 47 00 A0 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 73 00 00 F4 03 04 00 11 B3 1C 66 B6 04 01 00 00 4D 61 CA 20 C6 96 C6 B9 [10:58:54]CommunicateWithHost err = 0 [10:58:54]CheckOFDResponse [10:58:54]1017 (14) - 77093643461234 [10:58:54]1041 (16) - 0000000000963154 [10:58:54]1040 (4) - 29514 [10:58:54]1012 (4) - 15.04.2024 04:54 [10:58:54]1206 (1) - 0 [10:58:54]OFD Sender: Remove packet 29514 [10:58:54]ProducePacketName [10:58:54]name=ofd_packets/00029514 [10:58:54]NVStorageDeleteData [10:58:54]Write to MH i2c: 01 00 00 3B 39 74 [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 3B 39 00 00 00 00 00 D0 0C 57 [10:58:54]RasterBufferAndPrint [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]written 0, free lines is 3284 [10:58:54]MH_Cut [10:58:54]Write to MH i2c: D1 01 00 42 39 01 4D [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 42 39 00 4C [10:58:54]Write to MH i2c: 01 00 00 43 39 7C [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]OFD Sender: No OFD packet to send [10:58:55]*** Cut start [10:58:55]*** Partial cut [10:58:55]*** CUTSNS_PIN = 1 [10:58:55]*** CUTSNS_PIN = 0 [10:58:55]*** Brake cut motor [10:58:56]Read from MH i2c: 01 [10:58:56]MH_I2C_Read... [10:58:56]*** Stop cut motor [10:58:56]*** Cut end [10:58:56]Read from MH i2c: 01 07 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 43 39 00 00 00 00 00 FF 0F 91 [10:58:56]process_action close_receipt done [10:58:56]requested_data is exist [10:58:56]produce_requested_data [10:58:56]requested_item fm.sn is exist - process it [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 11 00 00 [10:58:56]Write to MH i2c: E2 08 00 44 39 80 11 00 00 00 00 00 00 F7 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 17 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 17 00 44 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [10:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:58:56]wFMCommunicate OK [10:58:56]requested_item fd.num is exist - process it [10:58:56]SAM_PROTO_GetFieldsCounters [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 13 00 00 [10:58:56]Write to MH i2c: E2 08 00 45 39 80 13 00 00 00 00 00 00 FA [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 62 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 62 00 45 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 73 00 00 0E 04 04 00 75 00 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 AE [10:58:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:56]wFMCommunicate OK [10:58:56]SAM_PROTO_GetFieldsCounters done [10:58:56]requested_item shift.num is exist - process it [10:58:56]requested_item shift.opened is exist - process it [10:58:56]req_shift_opened [10:58:56]FM_GetShiftState [10:58:56]SAM_PROTO_GetShiftState [10:58:56]wFMCommunicate request_size=4 [10:58:56]MH_SAM_APDU [10:58:56]CAPDU: 80 13 01 00 [10:58:56]Write to MH i2c: E2 08 00 46 39 80 13 01 00 00 00 00 00 FC [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:56]Read from MH i2c: E2 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: E2 0E 00 46 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F0 [10:58:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [10:58:56]wFMCommunicate OK [10:58:56]SAM_PROTO_GetShiftState done [10:58:56]FM_GetShiftState done [10:58:56]req_shift_opened done [10:58:56]requested_item shift.open_date is exist - process it [10:58:56]req_shift_open_date [10:58:56]req_shift_open_date done [10:58:56]produce_requested_data done [10:58:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29514,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [10:58:56]process_action_free close_receipt [10:58:56]json_value_free [10:58:56]json_value_free done [10:58:56]process_json_proto returns [10:58:56]Send response to host [10:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29514,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [10:58:56]free response buf [10:58:56]execute_script done [10:58:56]execute_script returns [10:58:56]free content buf [10:58:56]Sock 9.Close socket [10:58:56]Sock 9.Thread stoped [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59: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:10]accept exits with 8 [11:01:10]New connection [11:01:10]New thread 3066969444 created [11:01:10]Thread 3067112804 joined [11:01:10]Waiting for new connection... [11:01:10] Sock 8.Parse request [11:01:10]Sock 8.Check first char [11:01:10]Sock 8.First char is OK [11:01:10]request: POST /json_proto HTTP/1.0 [11:01:10]Method: POST [11:01:10]URL: /json_proto [11:01:10]Method is POST - this is cgi request [11:01:10]url: /json_proto [11:01:10]query_string will be loaded in cgi processing [11:01:10]execute_cgi json_proto POST (null) [11:01:10]execute_cgi path=json_proto method=POST [11:01:10]POST find Content-Length [11:01:10]Host: 172.17.33.3:8080 [11:01:10]Content-Length: 674 [11:01:10]Content-Type: application/json [11:01:10] [11:01:10]POST finish read [11:01:10]Found Content-Length = 674 [11:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:10]execute_script... [11:01: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)347930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:10]POST & json_proto [11:01:10]process_json_proto [11:01:10]json parsed OK: [11:01:10]protocol is kg_v1.0 [11:01:10]action value=close_receipt [11:01:10]process_action close_receipt [11:01:10]cmd_close_receipt [11:01:10]MH_GetDate [11:01:10]Write to MH i2c: F0 00 00 47 39 6F [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: F0 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: F0 09 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: F0 09 00 47 39 00 FA 08 1D 66 23 5B 8F 65 6F [11:01:10]GetLastDocTimeStamp 1713178736 [11:01:10]current date 1713178874 [11:01:10]FM_GetShiftState [11:01:10]SAM_PROTO_GetShiftState [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 13 01 00 [11:01:10]Write to MH i2c: E2 08 00 48 39 80 13 01 00 00 00 00 00 FE [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0E 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0E 00 48 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F2 [11:01:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_GetShiftState done [11:01:10]FM_GetShiftState done [11:01:10]opened in 1713140468 [11:01:10]opened+sec_in_day 1713226868 [11:01:10]quantity*price = 30034 [11:01:10]sum+1 = 30036 [11:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 109 15.04.2024 11:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29515 ФПД: 80285001375008 1/tax-web-control/client/api/v1/ticket?date=20240415T110114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29515&fm=80285001375008&tin=02508201610067®Number=0000138879044617&sum=30000 [11:01:11]StoreToDocumentArchive [11:01:11]shift 117 fd 29515 [11:01:11]save to /storage/0117/doc_00029515 [11:01:11]save last doc name /storage/0117/doc_00029515 to /storage/kkm_last_doc_name [11:01:11]save OK [11:01:11]Clear old archive folders... [11:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:11]tlvbuf is B6F01D10 [11:01:11]SAM_PROTO_ClearQueue [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 09 00 00 [11:01:11]Write to MH i2c: E2 08 00 55 39 80 09 00 00 00 00 00 00 00 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:11]Read from MH i2c: E2 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 [11:01:11]MH_I2C_Read... [11:01:11]Read from MH i2c: E2 03 00 55 39 00 90 00 02 [11:01:11]RAPDU: 90 00 [11:01:11]wFMCommunicate OK [11:01:11]SAM_PROTO_ClearQueue done [11:01:11]KKMCreateOFDPacket [11:01:11]OFDProtocolAddRootSTLVToBuf [11:01:11]FM_MakeSignedData [11:01:11]FM_MakeSignedData [11:01:11]SAM_PROTO_SignData [11:01:11]wFMCommunicate request_size=4 [11:01:11]MH_SAM_APDU [11:01:11]CAPDU: 80 0D 01 02 [11:01:11]Write to MH i2c: E2 08 00 56 39 80 0D 01 02 00 00 00 00 08 [11:01:11]Write i2c OK [11:01:11]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 56 39 00 90 00 03 [11:01:12]RAPDU: 90 00 [11:01:12]wFMCommunicate OK [11:01:12]wFMCommunicate request_size=255 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FA 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 73 00 00 35 04 06 00 49 04 CE FC [11:01:12]Write to MH i2c: E2 02 01 57 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FA 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 73 00 00 35 04 06 00 49 04 CE FC 00 00 1B [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 57 39 00 90 00 04 [11:01:12]RAPDU: 90 00 [11:01:12]wFMCommunicate OK [11:01:12]wFMCommunicate request_size=7 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 0D 02 02 02 DD 20 [11:01:12]Write to MH i2c: E2 0A 00 58 39 80 0D 02 02 02 00 DD 20 00 00 0C [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 03 00 58 39 00 90 00 05 [11:01:12]RAPDU: 90 00 [11:01:12]wFMCommunicate OK [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 0D 03 02 [11:01:12]Write to MH i2c: E2 08 00 59 39 80 0D 03 02 00 00 00 00 0D [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0B 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0B 00 59 39 00 5A A0 1A CA DA BE B6 6F 90 00 A9 [11:01:12]RAPDU: 5A A0 1A CA DA BE B6 6F 90 00 [11:01:12]wFMCommunicate OK [11:01:12]SAM_PROTO_SignData done [11:01:12]FM_MakeSignedData done [11:01:12]CreateOFDProtocolMessage [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 11 00 00 [11:01:12]Write to MH i2c: E2 08 00 5A 39 80 11 00 00 00 00 00 00 0D [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 17 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 17 00 5A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [11:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:01:12]wFMCommunicate OK [11:01:12]CreateOFDProtocolMessage done [11:01:12]OFDSenderStorePacket 29515 [11:01:12]StoreOFDPacket docnum=29515 [11:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 05 74 04 01 5F EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FA 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 73 00 00 35 04 06 00 49 04 CE FC DD 20 5A A0 1A CA DA BE B6 6F [11:01:12]CheckFolder [11:01:12]dirname=/storage/ofd_packets [11:01:12]CheckFolder done [11:01:12]ProducePacketName [11:01:12]name=ofd_packets/00029515 [11:01:12]NVStorageSaveData ofd_packets/00029515 [11:01:12]File name is /storage/ofd_packets/00029515 [11:01:12]Write 298 bytes [11:01:12]NVStorageSaveData done [11:01:12]OFDSenderStorePacket done [11:01:12]KKMCreateOFDPacket done [11:01:12]NVStorageSaveData kkm_last_timestamp [11:01:12]File name is /storage/kkm_last_timestamp [11:01:12]Write 4 bytes [11:01:12]NVStorageSaveData done [11:01:12]ExternCall_PrintAddStr [11:01:12]wPrintStart [11:01:12]Write to MH i2c: 01 00 00 5B 39 94 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 5B 39 00 00 00 00 00 FF 0F A9 [11:01:12]RasterBufferAndPrint [11:01:12]line Счет N : (1)347930 [11:01:12]line ИНН: 02508201610067 [11:01:12]line Контрольно-Кассовый Чек [11:01:12]line ПРОДАЖА [11:01:12]line ТРК (МРК, ГНК) : 21 [11:01:12]line Товар: 2710194210 [11:01:12]line ДТ-К-5 [11:01:12]line 4.120 * 72.90 [11:01:12]line = 300.35 [11:01:12]line НДС 12% НСП 1% [11:01:12]line > о реализуемом товаре [11:01:12]line ОКРУГЛЕНИЕ: -0.35 [11:01:12]line ИТОГО: 300.00 [11:01:12]line Внесено: 300.00 [11:01:12]line СДАЧА: 0.00 [11:01:12]line НСП 1% : 2.66 [11:01:12]line НДС 12% : 31.90 [11:01:12]line Наличными: 300.00 [11:01:12]line Безнал.: 0.00 [11:01:12]line Место: АЗС № 108 "Партнер Нефть" [11:01:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:01:12]line СНО: Общий режим [11:01:12]line Чек 109 15.04.2024 11:01 [11:01:12]line Смена: 117 ФФД: 1.0 [11:01:12]line ЗНМ: 0300000027 [11:01:12]line РНМ: 0000138879044617 [11:01:12]line Версия ККМ: 001 [11:01:12]line ФМ: 0000000000963154 [11:01:12]line ФД: 29515 [11:01:12]line ФПД: 80285001375008 [11:01:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T110114&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29515&fm=80285001375008&tin=02508201610067®Number=0000138879044617&sum=30000 [11:01:12]OFD Sender: Processing packet 29515 [packets to send 8, broken 7] [11:01:12]ProducePacketName [11:01:12]name=ofd_packets/00029515 [11:01:12]OFD Sender: To server: pG, [11:01:12]CommunicateWithHost lk.salyk.kg:30040 [11:01:12]ConnectInit lk.salyk.kg [11:01:12]written 0, free lines is 4095 [11:01:12]Connected sock=10 [11:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 05 74 04 01 5F EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FA 08 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 73 00 00 35 04 06 00 49 04 CE FC DD 20 5A A0 1A CA DA BE B6 6F [11:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 25 47 00 6E 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 39 36 33 31 35 34 10 04 04 00 4B 73 00 00 F4 03 04 00 9C B3 1C 66 B6 04 01 00 00 79 7F C3 F0 A2 E8 DC 6C [11:01:13]CommunicateWithHost err = 0 [11:01:13]CheckOFDResponse [11:01:13]1017 (14) - 77093643461234 [11:01:13]1041 (16) - 0000000000963154 [11:01:13]1040 (4) - 29515 [11:01:13]1012 (4) - 15.04.2024 04:57 [11:01:13]1206 (1) - 0 [11:01:13]OFD Sender: Remove packet 29515 [11:01:13]ProducePacketName [11:01:13]name=ofd_packets/00029515 [11:01:13]NVStorageDeleteData [11:01:13]Write to MH i2c: 01 00 00 85 39 BE [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: 01 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: 01 07 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: 01 07 00 85 39 00 00 00 00 00 B7 0C 88 [11:01:13]RasterBufferAndPrint [11:01:13]line [11:01:13]line [11:01:13]line [11:01:13]line [11:01:13]line [11:01:13]written 0, free lines is 3260 [11:01:13]MH_Cut [11:01:13]Write to MH i2c: D1 01 00 8C 39 01 97 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: D1 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: D1 01 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: D1 01 00 8C 39 00 96 [11:01:13]Write to MH i2c: 01 00 00 8D 39 C6 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]OFD Sender: No OFD packet to send [11:01:14]*** Cut start [11:01:14]*** Partial cut [11:01:14]*** CUTSNS_PIN = 1 [11:01:14]*** CUTSNS_PIN = 0 [11:01:14]*** Brake cut motor [11:01:14]Read from MH i2c: 01 [11:01:14]MH_I2C_Read... [11:01:14]*** Stop cut motor [11:01:14]*** Cut end [11:01:14]Read from MH i2c: 01 07 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 8D 39 00 00 00 00 00 FF 0F DB [11:01:14]process_action close_receipt done [11:01:14]requested_data is exist [11:01:14]produce_requested_data [11:01:14]requested_item fm.sn is exist - process it [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 11 00 00 [11:01:14]Write to MH i2c: E2 08 00 8E 39 80 11 00 00 00 00 00 00 41 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 17 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 17 00 8E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [11:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:01:14]wFMCommunicate OK [11:01:14]requested_item fd.num is exist - process it [11:01:14]SAM_PROTO_GetFieldsCounters [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 13 00 00 [11:01:14]Write to MH i2c: E2 08 00 8F 39 80 13 00 00 00 00 00 00 44 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 62 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 62 00 8F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 73 00 00 0E 04 04 00 75 00 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 FC [11:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 73 00 00 0E 04 04 00 75 00 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:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_GetFieldsCounters done [11:01:14]requested_item shift.num is exist - process it [11:01:14]requested_item shift.opened is exist - process it [11:01:14]req_shift_opened [11:01:14]FM_GetShiftState [11:01:14]SAM_PROTO_GetShiftState [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 13 01 00 [11:01:14]Write to MH i2c: E2 08 00 90 39 80 13 01 00 00 00 00 00 46 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0E 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0E 00 90 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3A [11:01:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_GetShiftState done [11:01:14]FM_GetShiftState done [11:01:14]req_shift_opened done [11:01:14]requested_item shift.open_date is exist - process it [11:01:14]req_shift_open_date [11:01:14]req_shift_open_date done [11:01:14]produce_requested_data done [11:01:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29515,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:01:14]process_action_free close_receipt [11:01:14]json_value_free [11:01:14]json_value_free done [11:01:14]process_json_proto returns [11:01:14]Send response to host [11:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29515,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:01:14]free response buf [11:01:14]execute_script done [11:01:14]execute_script returns [11:01:14]free content buf [11:01:14]Sock 8.Close socket [11:01:14]Sock 8.Thread stoped [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:03]accept exits with 9 [11:03:03]New connection [11:03:03]New thread 3067112804 created [11:03:03]Thread 3066969444 joined [11:03:03]Waiting for new connection... [11:03:03] Sock 9.Parse request [11:03:03]Sock 9.Check first char [11:03:03]Sock 9.First char is OK [11:03:03]request: POST /json_proto HTTP/1.0 [11:03:03]Method: POST [11:03:03]URL: /json_proto [11:03:03]Method is POST - this is cgi request [11:03:03]url: /json_proto [11:03:03]query_string will be loaded in cgi processing [11:03:03]execute_cgi json_proto POST (null) [11:03:03]execute_cgi path=json_proto method=POST [11:03:03]POST find Content-Length [11:03:03]Host: 172.17.33.3:8080 [11:03:03]Content-Length: 682 [11:03:03]Content-Type: application/json [11:03:03] [11:03:03]POST finish read [11:03:03]Found Content-Length = 682 [11:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:03]execute_script... [11:03: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)347931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:03]POST & json_proto [11:03:03]process_json_proto [11:03:03]json parsed OK: [11:03:03]protocol is kg_v1.0 [11:03:03]action value=close_receipt [11:03:03]process_action close_receipt [11:03:03]cmd_close_receipt [11:03:03]MH_GetDate [11:03:03]Write to MH i2c: F0 00 00 91 39 B9 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: F0 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: F0 09 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: F0 09 00 91 39 00 6C 09 1D 66 23 5B 8F 65 2C [11:03:03]GetLastDocTimeStamp 1713178874 [11:03:03]current date 1713178988 [11:03:03]FM_GetShiftState [11:03:03]SAM_PROTO_GetShiftState [11:03:03]wFMCommunicate request_size=4 [11:03:03]MH_SAM_APDU [11:03:03]CAPDU: 80 13 01 00 [11:03:03]Write to MH i2c: E2 08 00 92 39 80 13 01 00 00 00 00 00 48 [11:03:03]Write i2c OK [11:03:03]MH_I2C_Read... [11:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:03]Read from MH i2c: E2 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0E 00 [11:03:03]MH_I2C_Read... [11:03:03]Read from MH i2c: E2 0E 00 92 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3C [11:03:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:03:03]wFMCommunicate OK [11:03:03]SAM_PROTO_GetShiftState done [11:03:03]FM_GetShiftState done [11:03:03]opened in 1713140468 [11:03:03]opened+sec_in_day 1713226868 [11:03:03]quantity*price = 100051 [11:03:03]sum+1 = 100052 [11:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 110 15.04.2024 11:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29516 ФПД: 108022614799745 1/tax-web-control/client/api/v1/ticket?date=20240415T110308&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29516&fm=108022614799745&tin=02508201610067®Number=0000138879044617&sum=100000 [11:03:05]StoreToDocumentArchive [11:03:05]shift 117 fd 29516 [11:03:05]save to /storage/0117/doc_00029516 [11:03:05]save last doc name /storage/0117/doc_00029516 to /storage/kkm_last_doc_name [11:03:05]save OK [11:03:05]Clear old archive folders... [11:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:05]tlvbuf is B6F7C430 [11:03:05]SAM_PROTO_ClearQueue [11:03:05]wFMCommunicate request_size=4 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 09 00 00 [11:03:05]Write to MH i2c: E2 08 00 9F 39 80 09 00 00 00 00 00 00 4A [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 9F 39 00 90 00 4C [11:03:05]RAPDU: 90 00 [11:03:05]wFMCommunicate OK [11:03:05]SAM_PROTO_ClearQueue done [11:03:05]KKMCreateOFDPacket [11:03:05]OFDProtocolAddRootSTLVToBuf [11:03:05]FM_MakeSignedData [11:03:05]FM_MakeSignedData [11:03:05]SAM_PROTO_SignData [11:03:05]wFMCommunicate request_size=4 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 0D 01 02 [11:03:05]Write to MH i2c: E2 08 00 A0 39 80 0D 01 02 00 00 00 00 52 [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 A0 39 00 90 00 4D [11:03:05]RAPDU: 90 00 [11:03:05]wFMCommunicate OK [11:03:05]wFMCommunicate request_size=255 [11:03:05]MH_SAM_APDU [11:03: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 73 00 00 35 04 06 00 62 [11:03:05]Write to MH i2c: E2 02 01 A1 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 73 00 00 35 04 06 00 62 00 00 34 [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 A1 39 00 90 00 4E [11:03:05]RAPDU: 90 00 [11:03:05]wFMCommunicate OK [11:03:05]wFMCommunicate request_size=10 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 0D 02 02 05 3E F9 95 35 81 [11:03:05]Write to MH i2c: E2 0D 00 A2 39 80 0D 02 02 05 00 3E F9 95 35 81 00 00 E1 [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 03 00 A2 39 00 90 00 4F [11:03:05]RAPDU: 90 00 [11:03:05]wFMCommunicate OK [11:03:05]wFMCommunicate request_size=4 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 0D 03 02 [11:03:05]Write to MH i2c: E2 08 00 A3 39 80 0D 03 02 00 00 00 00 57 [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 0B 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 0B 00 A3 39 00 19 7A 0F 47 CF 1F 63 1E 90 00 B0 [11:03:05]RAPDU: 19 7A 0F 47 CF 1F 63 1E 90 00 [11:03:05]wFMCommunicate OK [11:03:05]SAM_PROTO_SignData done [11:03:05]FM_MakeSignedData done [11:03:05]CreateOFDProtocolMessage [11:03:05]wFMCommunicate request_size=4 [11:03:05]MH_SAM_APDU [11:03:05]CAPDU: 80 11 00 00 [11:03:05]Write to MH i2c: E2 08 00 A4 39 80 11 00 00 00 00 00 00 57 [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:05]Read from MH i2c: E2 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 17 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: E2 17 00 A4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [11:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:03:05]wFMCommunicate OK [11:03:05]CreateOFDProtocolMessage done [11:03:05]OFDSenderStorePacket 29516 [11:03:05]StoreOFDPacket docnum=29516 [11:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5C 27 07 01 36 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 73 00 00 35 04 06 00 62 3E F9 95 35 81 19 7A 0F 47 CF 1F 63 1E [11:03:05]CheckFolder [11:03:05]dirname=/storage/ofd_packets [11:03:05]CheckFolder done [11:03:05]ProducePacketName [11:03:05]name=ofd_packets/00029516 [11:03:05]NVStorageSaveData ofd_packets/00029516 [11:03:05]File name is /storage/ofd_packets/00029516 [11:03:05]Write 301 bytes [11:03:05]NVStorageSaveData done [11:03:05]OFDSenderStorePacket done [11:03:05]KKMCreateOFDPacket done [11:03:05]NVStorageSaveData kkm_last_timestamp [11:03:05]File name is /storage/kkm_last_timestamp [11:03:05]Write 4 bytes [11:03:05]NVStorageSaveData done [11:03:05]ExternCall_PrintAddStr [11:03:05]wPrintStart [11:03:05]Write to MH i2c: 01 00 00 A5 39 DE [11:03:05]Write i2c OK [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: 01 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: 01 07 00 [11:03:05]MH_I2C_Read... [11:03:05]Read from MH i2c: 01 07 00 A5 39 00 00 00 00 00 FF 0F F3 [11:03:05]RasterBufferAndPrint [11:03:05]line Счет N : (1)347931 [11:03:05]line ИНН: 02508201610067 [11:03:05]line Контрольно-Кассовый Чек [11:03:05]line ПРОДАЖА [11:03:05]line ТРК (МРК, ГНК) : 13 [11:03:05]line Товар: 2710124130 [11:03:05]line Аи-92-К-5 [11:03:05]line 15.440 * 64.80 [11:03:05]line = 1000.51 [11:03:05]line НДС 12% НСП 1% [11:03:05]line > о реализуемом товаре [11:03:05]line ОКРУГЛЕНИЕ: -0.51 [11:03:05]line ИТОГО: 1000.00 [11:03:05]line Внесено: 1000.00 [11:03:05]line СДАЧА: 0.00 [11:03:05]line НСП 1% : 8.85 [11:03:05]line НДС 12% : 106.25 [11:03:05]line Наличными: 1000.00 [11:03:05]line Безнал.: 0.00 [11:03:05]line Место: АЗС № 108 "Партнер Нефть" [11:03:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:03:05]line СНО: Общий режим [11:03:05]line Чек 110 15.04.2024 11:03 [11:03:05]line Смена: 117 ФФД: 1.0 [11:03:05]line ЗНМ: 0300000027 [11:03:05]line РНМ: 0000138879044617 [11:03:05]line Версия ККМ: 001 [11:03:05]line ФМ: 0000000000963154 [11:03:05]line ФД: 29516 [11:03:05]line ФПД: 108022614799745 [11:03:05]line 1/tax-web-control/client/api/v1/ticket?date=20240415T110308&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29516&fm=108022614799745&tin=02508201610067®Number=0000138879044617&sum=100000 [11:03:05]OFD Sender: Processing packet 29516 [packets to send 8, broken 7] [11:03:05]ProducePacketName [11:03:05]name=ofd_packets/00029516 [11:03:05]OFD Sender: To server: pG, [11:03:05]CommunicateWithHost lk.salyk.kg:30040 [11:03:05]ConnectInit lk.salyk.kg [11:03:05]written 0, free lines is 4095 [11:03:06]Connected sock=10 [11:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5C 27 07 01 36 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 73 00 00 35 04 06 00 62 3E F9 95 35 81 19 7A 0F 47 CF 1F 63 1E [11:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 78 47 00 A7 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 39 36 33 31 35 34 10 04 04 00 4C 73 00 00 F4 03 04 00 0D B4 1C 66 B6 04 01 00 00 F9 A7 9C 95 BB 20 63 76 [11:03:06]CommunicateWithHost err = 0 [11:03:06]CheckOFDResponse [11:03:06]1017 (14) - 77093643461234 [11:03:06]1041 (16) - 0000000000963154 [11:03:06]1040 (4) - 29516 [11:03:06]1012 (4) - 15.04.2024 04:58 [11:03:06]1206 (1) - 0 [11:03:06]OFD Sender: Remove packet 29516 [11:03:06]ProducePacketName [11:03:06]name=ofd_packets/00029516 [11:03:06]NVStorageDeleteData [11:03:06]Write to MH i2c: 01 00 00 CF 39 08 [11:03:06]Write i2c OK [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: 01 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: 01 07 00 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: 01 07 00 CF 39 00 00 00 00 00 C0 0C DB [11:03:06]RasterBufferAndPrint [11:03:06]line [11:03:06]line [11:03:06]line [11:03:06]line [11:03:06]line [11:03:06]written 0, free lines is 3268 [11:03:06]MH_Cut [11:03:06]Write to MH i2c: D1 01 00 D6 39 01 E1 [11:03:06]Write i2c OK [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: D1 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: D1 01 00 [11:03:06]MH_I2C_Read... [11:03:06]Read from MH i2c: D1 01 00 D6 39 00 E0 [11:03:06]Write to MH i2c: 01 00 00 D7 39 10 [11:03:06]Write i2c OK [11:03:06]MH_I2C_Read... [11:03:06]OFD Sender: No OFD packet to send [11:03:07]*** Cut start [11:03:07]*** Partial cut [11:03:07]*** CUTSNS_PIN = 1 [11:03:07]*** CUTSNS_PIN = 0 [11:03:07]*** Brake cut motor [11:03:07]Read from MH i2c: 01 [11:03:07]MH_I2C_Read... [11:03:07]*** Stop cut motor [11:03:07]*** Cut end [11:03:07]Read from MH i2c: 01 07 00 [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: 01 07 00 D7 39 00 00 00 00 00 FF 0F 25 [11:03:07]process_action close_receipt done [11:03:07]requested_data is exist [11:03:07]produce_requested_data [11:03:07]requested_item fm.sn is exist - process it [11:03:07]wFMCommunicate request_size=4 [11:03:07]MH_SAM_APDU [11:03:07]CAPDU: 80 11 00 00 [11:03:07]Write to MH i2c: E2 08 00 D8 39 80 11 00 00 00 00 00 00 8B [11:03:07]Write i2c OK [11:03:07]MH_I2C_Read... [11:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:07]Read from MH i2c: E2 [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: E2 17 00 [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: E2 17 00 D8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [11:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:03:07]wFMCommunicate OK [11:03:07]requested_item fd.num is exist - process it [11:03:07]SAM_PROTO_GetFieldsCounters [11:03:07]wFMCommunicate request_size=4 [11:03:07]MH_SAM_APDU [11:03:07]CAPDU: 80 13 00 00 [11:03:07]Write to MH i2c: E2 08 00 D9 39 80 13 00 00 00 00 00 00 8E [11:03:07]Write i2c OK [11:03:07]MH_I2C_Read... [11:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:08]Read from MH i2c: E2 [11:03:08]MH_I2C_Read... [11:03:08]Read from MH i2c: E2 62 00 [11:03:08]MH_I2C_Read... [11:03:08]Read from MH i2c: E2 62 00 D9 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 73 00 00 0E 04 04 00 75 00 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:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 73 00 00 0E 04 04 00 75 00 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:03:08]wFMCommunicate OK [11:03:08]SAM_PROTO_GetFieldsCounters done [11:03:08]requested_item shift.num is exist - process it [11:03:08]requested_item shift.opened is exist - process it [11:03:08]req_shift_opened [11:03:08]FM_GetShiftState [11:03:08]SAM_PROTO_GetShiftState [11:03:08]wFMCommunicate request_size=4 [11:03:08]MH_SAM_APDU [11:03:08]CAPDU: 80 13 01 00 [11:03:08]Write to MH i2c: E2 08 00 DA 39 80 13 01 00 00 00 00 00 90 [11:03:08]Write i2c OK [11:03:08]MH_I2C_Read... [11:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:08]Read from MH i2c: E2 [11:03:08]MH_I2C_Read... [11:03:08]Read from MH i2c: E2 0E 00 [11:03:08]MH_I2C_Read... [11:03:08]Read from MH i2c: E2 0E 00 DA 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 84 [11:03:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:03:08]wFMCommunicate OK [11:03:08]SAM_PROTO_GetShiftState done [11:03:08]FM_GetShiftState done [11:03:08]req_shift_opened done [11:03:08]requested_item shift.open_date is exist - process it [11:03:08]req_shift_open_date [11:03:08]req_shift_open_date done [11:03:08]produce_requested_data done [11:03:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29516,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:03:08]process_action_free close_receipt [11:03:08]json_value_free [11:03:08]json_value_free done [11:03:08]process_json_proto returns [11:03:08]Send response to host [11:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29516,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:03:08]free response buf [11:03:08]execute_script done [11:03:08]execute_script returns [11:03:08]free content buf [11:03:08]Sock 9.Close socket [11:03:08]Sock 9.Thread stoped [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:15]accept exits with 8 [11:05:15]New connection [11:05:15]New thread 3066969444 created [11:05:15]Thread 3067112804 joined [11:05:15]Waiting for new connection... [11:05:15] Sock 8.Parse request [11:05:15]Sock 8.Check first char [11:05:15]Sock 8.First char is OK [11:05:15]request: POST /json_proto HTTP/1.0 [11:05:15]Method: POST [11:05:15]URL: /json_proto [11:05:15]Method is POST - this is cgi request [11:05:15]url: /json_proto [11:05:15]query_string will be loaded in cgi processing [11:05:15]execute_cgi json_proto POST (null) [11:05:15]execute_cgi path=json_proto method=POST [11:05:15]POST find Content-Length [11:05:15]Host: 172.17.33.3:8080 [11:05:15]Content-Length: 679 [11:05:15]Content-Type: application/json [11:05:15] [11:05:15]POST finish read [11:05:15]Found Content-Length = 679 [11:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:05:15]execute_script... [11:05: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)347932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:05:15]POST & json_proto [11:05:15]process_json_proto [11:05:15]json parsed OK: [11:05:15]protocol is kg_v1.0 [11:05:15]action value=close_receipt [11:05:15]process_action close_receipt [11:05:15]cmd_close_receipt [11:05:15]MH_GetDate [11:05:15]Write to MH i2c: F0 00 00 DB 39 03 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: F0 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: F0 09 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: F0 09 00 DB 39 00 EF 09 1D 66 23 5B 8F 65 F9 [11:05:15]GetLastDocTimeStamp 1713178988 [11:05:15]current date 1713179119 [11:05:15]FM_GetShiftState [11:05:15]SAM_PROTO_GetShiftState [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 13 01 00 [11:05:15]Write to MH i2c: E2 08 00 DC 39 80 13 01 00 00 00 00 00 92 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0E 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0E 00 DC 39 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 86 [11:05:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:05:15]wFMCommunicate OK [11:05:15]SAM_PROTO_GetShiftState done [11:05:15]FM_GetShiftState done [11:05:15]opened in 1713140468 [11:05:15]opened+sec_in_day 1713226868 [11:05:15]quantity*price = 100018 [11:05:15]sum+1 = 100020 [11:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 111 15.04.2024 11:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29517 ФПД: 245382201608439 1/tax-web-control/client/api/v1/ticket?date=20240415T110520&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29517&fm=245382201608439&tin=02508201610067®Number=0000138879044617&sum=100000 [11:05:16]StoreToDocumentArchive [11:05:16]shift 117 fd 29517 [11:05:16]save to /storage/0117/doc_00029517 [11:05:16]save last doc name /storage/0117/doc_00029517 to /storage/kkm_last_doc_name [11:05:16]save OK [11:05:16]Clear old archive folders... [11:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:16]tlvbuf is 002AA510 [11:05:16]SAM_PROTO_ClearQueue [11:05:16]wFMCommunicate request_size=4 [11:05:16]MH_SAM_APDU [11:05:16]CAPDU: 80 09 00 00 [11:05:16]Write to MH i2c: E2 08 00 E9 39 80 09 00 00 00 00 00 00 94 [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 E9 39 00 90 00 96 [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_ClearQueue done [11:05:17]KKMCreateOFDPacket [11:05:17]OFDProtocolAddRootSTLVToBuf [11:05:17]FM_MakeSignedData [11:05:17]FM_MakeSignedData [11:05:17]SAM_PROTO_SignData [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 01 02 [11:05:17]Write to MH i2c: E2 08 00 EA 39 80 0D 01 02 00 00 00 00 9C [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 EA 39 00 90 00 97 [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=255 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F0 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 73 00 00 35 04 06 00 DF 2C 7E F6 [11:05:17]Write to MH i2c: E2 02 01 EB 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F0 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 73 00 00 35 04 06 00 DF 2C 7E F6 00 00 BE [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 EB 39 00 90 00 98 [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=7 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 02 02 02 08 F7 [11:05:17]Write to MH i2c: E2 0A 00 EC 39 80 0D 02 02 02 00 08 F7 00 00 A2 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 03 00 EC 39 00 90 00 99 [11:05:17]RAPDU: 90 00 [11:05:17]wFMCommunicate OK [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 0D 03 02 [11:05:17]Write to MH i2c: E2 08 00 ED 39 80 0D 03 02 00 00 00 00 A1 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0B 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 0B 00 ED 39 00 6C D7 DC 97 B2 E4 3D E1 90 00 0C [11:05:17]RAPDU: 6C D7 DC 97 B2 E4 3D E1 90 00 [11:05:17]wFMCommunicate OK [11:05:17]SAM_PROTO_SignData done [11:05:17]FM_MakeSignedData done [11:05:17]CreateOFDProtocolMessage [11:05:17]wFMCommunicate request_size=4 [11:05:17]MH_SAM_APDU [11:05:17]CAPDU: 80 11 00 00 [11:05:17]Write to MH i2c: E2 08 00 EE 39 80 11 00 00 00 00 00 00 A1 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:17]Read from MH i2c: E2 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 17 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: E2 17 00 EE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [11:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:05:17]wFMCommunicate OK [11:05:17]CreateOFDProtocolMessage done [11:05:17]OFDSenderStorePacket 29517 [11:05:17]StoreOFDPacket docnum=29517 [11:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 48 E1 04 01 94 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F0 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 73 00 00 35 04 06 00 DF 2C 7E F6 08 F7 6C D7 DC 97 B2 E4 3D E1 [11:05:17]CheckFolder [11:05:17]dirname=/storage/ofd_packets [11:05:17]CheckFolder done [11:05:17]ProducePacketName [11:05:17]name=ofd_packets/00029517 [11:05:17]NVStorageSaveData ofd_packets/00029517 [11:05:17]File name is /storage/ofd_packets/00029517 [11:05:17]Write 298 bytes [11:05:17]NVStorageSaveData done [11:05:17]OFDSenderStorePacket done [11:05:17]KKMCreateOFDPacket done [11:05:17]NVStorageSaveData kkm_last_timestamp [11:05:17]File name is /storage/kkm_last_timestamp [11:05:17]Write 4 bytes [11:05:17]NVStorageSaveData done [11:05:17]ExternCall_PrintAddStr [11:05:17]wPrintStart [11:05:17]Write to MH i2c: 01 00 00 EF 39 28 [11:05:17]Write i2c OK [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 07 00 [11:05:17]MH_I2C_Read... [11:05:17]Read from MH i2c: 01 07 00 EF 39 00 00 00 00 00 FF 0F 3D [11:05:17]RasterBufferAndPrint [11:05:17]line Счет N : (1)347932 [11:05:17]line ИНН: 02508201610067 [11:05:17]line Контрольно-Кассовый Чек [11:05:17]line ПРОДАЖА [11:05:17]line ТРК (МРК, ГНК) : 51 [11:05:17]line Товар: 2710194210 [11:05:17]line ДТ-К-5 [11:05:17]line 13.720 * 72.90 [11:05:17]line = 1000.19 [11:05:17]line НДС 12% НСП 1% [11:05:17]line > о реализуемом товаре [11:05:17]line ОКРУГЛЕНИЕ: -0.19 [11:05:17]line ИТОГО: 1000.00 [11:05:17]line Внесено: 1000.00 [11:05:17]line СДАЧА: 0.00 [11:05:17]line НСП 1% : 8.85 [11:05:17]line НДС 12% : 106.21 [11:05:17]line Наличными: 1000.00 [11:05:17]line Безнал.: 0.00 [11:05:17]line Место: АЗС № 108 "Партнер Нефть" [11:05:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:05:17]line СНО: Общий режим [11:05:17]line Чек 111 15.04.2024 11:05 [11:05:17]line Смена: 117 ФФД: 1.0 [11:05:17]line ЗНМ: 0300000027 [11:05:17]line РНМ: 0000138879044617 [11:05:17]line Версия ККМ: 001 [11:05:17]line ФМ: 0000000000963154 [11:05:17]line ФД: 29517 [11:05:17]line ФПД: 245382201608439 [11:05:17]line 1/tax-web-control/client/api/v1/ticket?date=20240415T110520&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29517&fm=245382201608439&tin=02508201610067®Number=0000138879044617&sum=100000 [11:05:17]OFD Sender: Processing packet 29517 [packets to send 8, broken 7] [11:05:17]ProducePacketName [11:05:17]name=ofd_packets/00029517 [11:05:17]OFD Sender: To server: pG, [11:05:17]CommunicateWithHost lk.salyk.kg:30040 [11:05:17]ConnectInit lk.salyk.kg [11:05:17]written 0, free lines is 4095 [11:05:17]Connected sock=10 [11:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 48 E1 04 01 94 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F0 09 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 73 00 00 35 04 06 00 DF 2C 7E F6 08 F7 6C D7 DC 97 B2 E4 3D E1 [11:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6D 3D 47 00 31 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 39 36 33 31 35 34 10 04 04 00 4D 73 00 00 F4 03 04 00 91 B4 1C 66 B6 04 01 00 00 17 40 8E B9 4A 00 FC 59 [11:05:18]CommunicateWithHost err = 0 [11:05:18]CheckOFDResponse [11:05:18]1017 (14) - 77093643461234 [11:05:18]1041 (16) - 0000000000963154 [11:05:18]1040 (4) - 29517 [11:05:18]1012 (4) - 15.04.2024 05:01 [11:05:18]1206 (1) - 0 [11:05:18]OFD Sender: Remove packet 29517 [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00029517 [11:05:18]NVStorageDeleteData [11:05:18]Write to MH i2c: 01 00 00 19 3A 53 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 19 3A 00 00 00 00 00 C8 0C 2E [11:05:18]RasterBufferAndPrint [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]line [11:05:18]written 0, free lines is 3278 [11:05:18]MH_Cut [11:05:18]Write to MH i2c: D1 01 00 20 3A 01 2C [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 01 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: D1 01 00 20 3A 00 2B [11:05:18]Write to MH i2c: 01 00 00 21 3A 5B [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]OFD Sender: No OFD packet to send [11:05:19]*** Cut start [11:05:19]*** Partial cut [11:05:19]*** CUTSNS_PIN = 1 [11:05:19]*** CUTSNS_PIN = 0 [11:05:19]*** Brake cut motor [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]*** Stop cut motor [11:05:19]*** Cut end [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 21 3A 00 00 00 00 00 FF 0F 70 [11:05:19]process_action close_receipt done [11:05:19]requested_data is exist [11:05:19]produce_requested_data [11:05:19]requested_item fm.sn is exist - process it [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 11 00 00 [11:05:19]Write to MH i2c: E2 08 00 22 3A 80 11 00 00 00 00 00 00 D6 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 17 00 22 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [11:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:05:19]wFMCommunicate OK [11:05:19]requested_item fd.num is exist - process it [11:05:19]SAM_PROTO_GetFieldsCounters [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 13 00 00 [11:05:19]Write to MH i2c: E2 08 00 23 3A 80 13 00 00 00 00 00 00 D9 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 62 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 62 00 23 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 73 00 00 0E 04 04 00 75 00 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:05:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 73 00 00 0E 04 04 00 75 00 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:05:19]wFMCommunicate OK [11:05:19]SAM_PROTO_GetFieldsCounters done [11:05:19]requested_item shift.num is exist - process it [11:05:19]requested_item shift.opened is exist - process it [11:05:19]req_shift_opened [11:05:19]FM_GetShiftState [11:05:19]SAM_PROTO_GetShiftState [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 13 01 00 [11:05:19]Write to MH i2c: E2 08 00 24 3A 80 13 01 00 00 00 00 00 DB [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0E 00 24 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CF [11:05:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_GetShiftState done [11:05:20]FM_GetShiftState done [11:05:20]req_shift_opened done [11:05:20]requested_item shift.open_date is exist - process it [11:05:20]req_shift_open_date [11:05:20]req_shift_open_date done [11:05:20]produce_requested_data done [11:05:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29517,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:05:20]process_action_free close_receipt [11:05:20]json_value_free [11:05:20]json_value_free done [11:05:20]process_json_proto returns [11:05:20]Send response to host [11:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29517,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:05:20]free response buf [11:05:20]execute_script done [11:05:20]execute_script returns [11:05:20]free content buf [11:05:20]Sock 8.Close socket [11:05:20]Sock 8.Thread stoped [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:56]accept exits with 9 [11:09:56]New connection [11:09:56]New thread 3067112804 created [11:09:56]Thread 3066969444 joined [11:09:56]Waiting for new connection... [11:09:56] Sock 9.Parse request [11:09:56]Sock 9.Check first char [11:09:56]Sock 9.First char is OK [11:09:56]request: POST /json_proto HTTP/1.0 [11:09:56]Method: POST [11:09:56]URL: /json_proto [11:09:56]Method is POST - this is cgi request [11:09:56]url: /json_proto [11:09:56]query_string will be loaded in cgi processing [11:09:56]execute_cgi json_proto POST (null) [11:09:56]execute_cgi path=json_proto method=POST [11:09:56]POST find Content-Length [11:09:56]Host: 172.17.33.3:8080 [11:09:56]Content-Length: 811 [11:09:56]Content-Type: application/json [11:09:56] [11:09:56]POST finish read [11:09:56]Found Content-Length = 811 [11:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 40.750, "sum" : 1361.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1361.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:56]execute_script... [11:09: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)347933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 40.750, "sum" : 1361.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1361.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:56]POST & json_proto [11:09:56]process_json_proto [11:09:56]json parsed OK: [11:09:56]protocol is kg_v1.0 [11:09:56]action value=close_receipt [11:09:56]process_action close_receipt [11:09:56]cmd_close_receipt [11:09:56]MH_GetDate [11:09:56]Write to MH i2c: F0 00 00 25 3A 4E [11:09:56]Write i2c OK [11:09:56]MH_I2C_Read... [11:09:56]Read from MH i2c: F0 [11:09:56]MH_I2C_Read... [11:09:56]Read from MH i2c: F0 09 00 [11:09:56]MH_I2C_Read... [11:09:56]Read from MH i2c: F0 09 00 25 3A 00 08 0B 1D 66 23 5B 8F 65 5F [11:09:56]GetLastDocTimeStamp 1713179120 [11:09:56]current date 1713179400 [11:09:56]FM_GetShiftState [11:09:56]SAM_PROTO_GetShiftState [11:09:56]wFMCommunicate request_size=4 [11:09:56]MH_SAM_APDU [11:09:56]CAPDU: 80 13 01 00 [11:09:56]Write to MH i2c: E2 08 00 26 3A 80 13 01 00 00 00 00 00 DD [11:09:56]Write i2c OK [11:09:56]MH_I2C_Read... [11:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:56]Read from MH i2c: E2 [11:09:56]MH_I2C_Read... [11:09:56]Read from MH i2c: E2 0E 00 [11:09:56]MH_I2C_Read... [11:09:56]Read from MH i2c: E2 0E 00 26 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D1 [11:09:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:09:56]wFMCommunicate OK [11:09:56]SAM_PROTO_GetShiftState done [11:09:56]FM_GetShiftState done [11:09:56]opened in 1713140468 [11:09:56]opened+sec_in_day 1713226868 [11:09:56]quantity*price = 136105 [11:09:56]sum+1 = 136106 [11:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1361.05 НСП 1% : 12.04 НДС 12% : 144.54 Наличными: 0.00 Безнал.: 1361.05 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 112 15.04.2024 11:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29518 ФПД: 52437081902948 1/tax-web-control/client/api/v1/ticket?date=20240415T111000&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29518&fm=52437081902948&tin=02508201610067®Number=0000138879044617&sum=136105 [11:09:57]StoreToDocumentArchive [11:09:57]shift 117 fd 29518 [11:09:57]save to /storage/0117/doc_00029518 [11:09:57]save last doc name /storage/0117/doc_00029518 to /storage/kkm_last_doc_name [11:09:57]save OK [11:09:57]Clear old archive folders... [11:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:09:57]tlvbuf is B6DCF550 [11:09:57]SAM_PROTO_ClearQueue [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 09 00 00 [11:09:57]Write to MH i2c: E2 08 00 33 3A 80 09 00 00 00 00 00 00 DF [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 33 3A 00 90 00 E1 [11:09:57]RAPDU: 90 00 [11:09:57]wFMCommunicate OK [11:09:57]SAM_PROTO_ClearQueue done [11:09:57]KKMCreateOFDPacket [11:09:57]OFDProtocolAddRootSTLVToBuf [11:09:57]FM_MakeSignedData [11:09:57]FM_MakeSignedData [11:09:57]SAM_PROTO_SignData [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 0D 01 02 [11:09:57]Write to MH i2c: E2 08 00 34 3A 80 0D 01 02 00 00 00 00 E7 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 34 3A 00 90 00 E2 [11:09:57]RAPDU: 90 00 [11:09:57]wFMCommunicate OK [11:09:57]wFMCommunicate request_size=255 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 9F 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 A9 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 08 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 73 00 00 35 04 06 00 2F B0 [11:09:57]Write to MH i2c: E2 02 01 35 3A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 9F 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 A9 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 08 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 73 00 00 35 04 06 00 2F B0 00 00 5F [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 35 3A 00 90 00 E3 [11:09:57]RAPDU: 90 00 [11:09:57]wFMCommunicate OK [11:09:57]wFMCommunicate request_size=9 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 0D 02 02 04 F5 A3 CF 64 [11:09:57]Write to MH i2c: E2 0C 00 36 3A 80 0D 02 02 04 00 F5 A3 CF 64 00 00 BD [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 03 00 36 3A 00 90 00 E4 [11:09:57]RAPDU: 90 00 [11:09:57]wFMCommunicate OK [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 0D 03 02 [11:09:57]Write to MH i2c: E2 08 00 37 3A 80 0D 03 02 00 00 00 00 EC [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 0B 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 0B 00 37 3A 00 47 26 C7 47 0F 9B FC 0C 90 00 1A [11:09:57]RAPDU: 47 26 C7 47 0F 9B FC 0C 90 00 [11:09:57]wFMCommunicate OK [11:09:57]SAM_PROTO_SignData done [11:09:57]FM_MakeSignedData done [11:09:57]CreateOFDProtocolMessage [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 11 00 00 [11:09:57]Write to MH i2c: E2 08 00 38 3A 80 11 00 00 00 00 00 00 EC [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 17 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 17 00 38 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [11:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:09:58]wFMCommunicate OK [11:09:58]CreateOFDProtocolMessage done [11:09:58]OFDSenderStorePacket 29518 [11:09:58]StoreOFDPacket docnum=29518 [11:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 16 2D 06 01 8B 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 9F 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 A9 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 08 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 73 00 00 35 04 06 00 2F B0 F5 A3 CF 64 47 26 C7 47 0F 9B FC 0C [11:09:58]CheckFolder [11:09:58]dirname=/storage/ofd_packets [11:09:58]CheckFolder done [11:09:58]ProducePacketName [11:09:58]name=ofd_packets/00029518 [11:09:58]NVStorageSaveData ofd_packets/00029518 [11:09:58]File name is /storage/ofd_packets/00029518 [11:09:58]Write 300 bytes [11:09:58]NVStorageSaveData done [11:09:58]OFDSenderStorePacket done [11:09:58]KKMCreateOFDPacket done [11:09:58]NVStorageSaveData kkm_last_timestamp [11:09:58]File name is /storage/kkm_last_timestamp [11:09:58]Write 4 bytes [11:09:58]NVStorageSaveData done [11:09:58]ExternCall_PrintAddStr [11:09:58]wPrintStart [11:09:58]Write to MH i2c: 01 00 00 39 3A 73 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 39 3A 00 00 00 00 00 FF 0F 88 [11:09:58]RasterBufferAndPrint [11:09:58]line Счет N : (1)347933 [11:09:58]line ИНН: 02508201610067 [11:09:58]line Контрольно-Кассовый Чек [11:09:58]line ПРОДАЖА [11:09:58]line ТРК (МРК, ГНК) : 71 [11:09:58]line Товар: 2711129700 [11:09:58]line ГАЗ-К-5 [11:09:58]line 40.750 * 33.40 [11:09:58]line = 1361.05 [11:09:58]line НДС 12% НСП 1% [11:09:58]line > о реализуемом товаре [11:09:58]line ИТОГО: 1361.05 [11:09:58]line НСП 1% : 12.04 [11:09:58]line НДС 12% : 144.54 [11:09:58]line Наличными: 0.00 [11:09:58]line Безнал.: 1361.05 [11:09:58]line Место: АЗС № 108 "Партнер Нефть" [11:09:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:09:58]line СНО: Общий режим [11:09:58]line Чек 112 15.04.2024 11:10 [11:09:58]line Смена: 117 ФФД: 1.0 [11:09:58]line ЗНМ: 0300000027 [11:09:58]line РНМ: 0000138879044617 [11:09:58]line Версия ККМ: 001 [11:09:58]line Платежная система: О! деньги [11:09:58]line ФМ: 0000000000963154 [11:09:58]line ФД: 29518 [11:09:58]line ФПД: 52437081902948 [11:09:58]line 1/tax-web-control/client/api/v1/ticket?date=20240415T111000&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29518&fm=52437081902948&tin=02508201610067®Number=0000138879044617&sum=136105 [11:09:58]OFD Sender: Processing packet 29518 [packets to send 8, broken 7] [11:09:58]ProducePacketName [11:09:58]name=ofd_packets/00029518 [11:09:58]OFD Sender: To server: pG, [11:09:58]CommunicateWithHost lk.salyk.kg:30040 [11:09:58]ConnectInit lk.salyk.kg [11:09:58]written 0, free lines is 4095 [11:09:58]Connected sock=10 [11:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 16 2D 06 01 8B 6C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 2E 9F 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 A9 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 08 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 73 00 00 35 04 06 00 2F B0 F5 A3 CF 64 47 26 C7 47 0F 9B FC 0C [11:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D E6 47 00 45 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 39 36 33 31 35 34 10 04 04 00 4E 73 00 00 F4 03 04 00 A9 B5 1C 66 B6 04 01 00 00 4D D0 BE 50 CD 3B DA AE [11:09:58]CommunicateWithHost err = 0 [11:09:58]CheckOFDResponse [11:09:58]1017 (14) - 77093643461234 [11:09:58]1041 (16) - 0000000000963154 [11:09:58]1040 (4) - 29518 [11:09:58]1012 (4) - 15.04.2024 05:05 [11:09:58]1206 (1) - 0 [11:09:58]OFD Sender: Remove packet 29518 [11:09:58]ProducePacketName [11:09:58]name=ofd_packets/00029518 [11:09:58]NVStorageDeleteData [11:09:58]Write to MH i2c: 01 00 00 62 3A 9C [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: 01 07 00 62 3A 00 00 00 00 00 DC 0C 8B [11:09:58]RasterBufferAndPrint [11:09:58]line [11:09:58]line [11:09:58]line [11:09:58]line [11:09:58]line [11:09:58]written 0, free lines is 3300 [11:09:58]MH_Cut [11:09:58]Write to MH i2c: D1 01 00 69 3A 01 75 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: D1 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: D1 01 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: D1 01 00 69 3A 00 74 [11:09:58]Write to MH i2c: 01 00 00 6A 3A A4 [11:09:58]Write i2c OK [11:09:58]MH_I2C_Read... [11:09:59]OFD Sender: No OFD packet to send [11:09:59]*** Cut start [11:09:59]*** Partial cut [11:09:59]*** CUTSNS_PIN = 1 [11:09:59]*** CUTSNS_PIN = 0 [11:09:59]*** Brake cut motor [11:10:00]Read from MH i2c: 01 [11:10:00]MH_I2C_Read... [11:10:00]*** Stop cut motor [11:10:00]*** Cut end [11:10:00]Read from MH i2c: 01 07 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 6A 3A 00 00 00 00 00 FF 0F B9 [11:10:00]process_action close_receipt done [11:10:00]requested_data is exist [11:10:00]produce_requested_data [11:10:00]requested_item fm.sn is exist - process it [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 11 00 00 [11:10:00]Write to MH i2c: E2 08 00 6B 3A 80 11 00 00 00 00 00 00 1F [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 17 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 17 00 6B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [11:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:00]wFMCommunicate OK [11:10:00]requested_item fd.num is exist - process it [11:10:00]SAM_PROTO_GetFieldsCounters [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 13 00 00 [11:10:00]Write to MH i2c: E2 08 00 6C 3A 80 13 00 00 00 00 00 00 22 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 62 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 62 00 6C 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 73 00 00 0E 04 04 00 75 00 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 E6 [11:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 73 00 00 0E 04 04 00 75 00 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:10:00]wFMCommunicate OK [11:10:00]SAM_PROTO_GetFieldsCounters done [11:10:00]requested_item shift.num is exist - process it [11:10:00]requested_item shift.opened is exist - process it [11:10:00]req_shift_opened [11:10:00]FM_GetShiftState [11:10:00]SAM_PROTO_GetShiftState [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 13 01 00 [11:10:00]Write to MH i2c: E2 08 00 6D 3A 80 13 01 00 00 00 00 00 24 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 0E 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 0E 00 6D 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 18 [11:10:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:10:00]wFMCommunicate OK [11:10:00]SAM_PROTO_GetShiftState done [11:10:00]FM_GetShiftState done [11:10:00]req_shift_opened done [11:10:00]requested_item shift.open_date is exist - process it [11:10:00]req_shift_open_date [11:10:00]req_shift_open_date done [11:10:00]produce_requested_data done [11:10:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29518,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:10:00]process_action_free close_receipt [11:10:00]json_value_free [11:10:00]json_value_free done [11:10:00]process_json_proto returns [11:10:00]Send response to host [11:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29518,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:10:00]free response buf [11:10:00]execute_script done [11:10:00]execute_script returns [11:10:00]free content buf [11:10:00]Sock 9.Close socket [11:10:00]Sock 9.Thread stoped [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:48]accept exits with 8 [11:10:48]New connection [11:10:48]New thread 3066969444 created [11:10:48]Thread 3067112804 joined [11:10:48]Waiting for new connection... [11:10:48] Sock 8.Parse request [11:10:48]Sock 8.Check first char [11:10:48]Sock 8.First char is OK [11:10:48]request: POST /json_proto HTTP/1.0 [11:10:48]Method: POST [11:10:48]URL: /json_proto [11:10:48]Method is POST - this is cgi request [11:10:48]url: /json_proto [11:10:48]query_string will be loaded in cgi processing [11:10:48]execute_cgi json_proto POST (null) [11:10:48]execute_cgi path=json_proto method=POST [11:10:48]POST find Content-Length [11:10:48]Host: 172.17.33.3:8080 [11:10:48]Content-Length: 677 [11:10:48]Content-Type: application/json [11:10:48] [11:10:48]POST finish read [11:10:48]Found Content-Length = 677 [11:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.180, "sum" : 530.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:48]execute_script... [11:10: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)347935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.180, "sum" : 530.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:48]POST & json_proto [11:10:48]process_json_proto [11:10:48]json parsed OK: [11:10:48]protocol is kg_v1.0 [11:10:48]action value=close_receipt [11:10:48]process_action close_receipt [11:10:48]cmd_close_receipt [11:10:48]MH_GetDate [11:10:48]Write to MH i2c: F0 00 00 6E 3A 97 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: F0 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: F0 09 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: F0 09 00 6E 3A 00 3C 0B 1D 66 23 5B 8F 65 DC [11:10:48]GetLastDocTimeStamp 1713179400 [11:10:48]current date 1713179452 [11:10:48]FM_GetShiftState [11:10:48]SAM_PROTO_GetShiftState [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 13 01 00 [11:10:48]Write to MH i2c: E2 08 00 6F 3A 80 13 01 00 00 00 00 00 26 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0E 00 6F 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1A [11:10:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_GetShiftState done [11:10:48]FM_GetShiftState done [11:10:48]opened in 1713140468 [11:10:48]opened+sec_in_day 1713226868 [11:10:48]quantity*price = 53006 [11:10:48]sum+1 = 53007 [11:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.29 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 113 15.04.2024 11:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29519 ФПД: 83270695807013 1/tax-web-control/client/api/v1/ticket?date=20240415T111052&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29519&fm=83270695807013&tin=02508201610067®Number=0000138879044617&sum=53000 [11:10:49]StoreToDocumentArchive [11:10:49]shift 117 fd 29519 [11:10:49]save to /storage/0117/doc_00029519 [11:10:49]save last doc name /storage/0117/doc_00029519 to /storage/kkm_last_doc_name [11:10:49]save OK [11:10:49]Clear old archive folders... [11:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:49]tlvbuf is B6F7FA50 [11:10:49]SAM_PROTO_ClearQueue [11:10:49]wFMCommunicate request_size=4 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 09 00 00 [11:10:49]Write to MH i2c: E2 08 00 7C 3A 80 09 00 00 00 00 00 00 28 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [11:10:49]RAPDU: 90 00 [11:10:49]wFMCommunicate OK [11:10:49]SAM_PROTO_ClearQueue done [11:10:49]KKMCreateOFDPacket [11:10:49]OFDProtocolAddRootSTLVToBuf [11:10:49]FM_MakeSignedData [11:10:49]FM_MakeSignedData [11:10:49]SAM_PROTO_SignData [11:10:49]wFMCommunicate request_size=4 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 0D 01 02 [11:10:49]Write to MH i2c: E2 08 00 7D 3A 80 0D 01 02 00 00 00 00 30 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 7D 3A 00 90 00 2B [11:10:49]RAPDU: 90 00 [11:10:49]wFMCommunicate OK [11:10:49]wFMCommunicate request_size=255 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3C 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 73 00 00 35 04 06 00 4B [11:10:49]Write to MH i2c: E2 02 01 7E 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3C 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 73 00 00 35 04 06 00 4B 00 00 03 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 7E 3A 00 90 00 2C [11:10:49]RAPDU: 90 00 [11:10:49]wFMCommunicate OK [11:10:49]wFMCommunicate request_size=10 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 0D 02 02 05 BB F8 3E 68 25 [11:10:49]Write to MH i2c: E2 0D 00 7F 3A 80 0D 02 02 05 00 BB F8 3E 68 25 00 00 BB [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 03 00 7F 3A 00 90 00 2D [11:10:49]RAPDU: 90 00 [11:10:49]wFMCommunicate OK [11:10:49]wFMCommunicate request_size=4 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 0D 03 02 [11:10:49]Write to MH i2c: E2 08 00 80 3A 80 0D 03 02 00 00 00 00 35 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 0B 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 0B 00 80 3A 00 0A 8A 02 FA 95 48 9D 26 90 00 66 [11:10:49]RAPDU: 0A 8A 02 FA 95 48 9D 26 90 00 [11:10:49]wFMCommunicate OK [11:10:49]SAM_PROTO_SignData done [11:10:49]FM_MakeSignedData done [11:10:49]CreateOFDProtocolMessage [11:10:49]wFMCommunicate request_size=4 [11:10:49]MH_SAM_APDU [11:10:49]CAPDU: 80 11 00 00 [11:10:49]Write to MH i2c: E2 08 00 81 3A 80 11 00 00 00 00 00 00 35 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:49]Read from MH i2c: E2 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 17 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: E2 17 00 81 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [11:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:49]wFMCommunicate OK [11:10:49]CreateOFDProtocolMessage done [11:10:49]OFDSenderStorePacket 29519 [11:10:49]StoreOFDPacket docnum=29519 [11:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 35 07 01 D5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3C 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 73 00 00 35 04 06 00 4B BB F8 3E 68 25 0A 8A 02 FA 95 48 9D 26 [11:10:49]CheckFolder [11:10:49]dirname=/storage/ofd_packets [11:10:49]CheckFolder done [11:10:49]ProducePacketName [11:10:49]name=ofd_packets/00029519 [11:10:49]NVStorageSaveData ofd_packets/00029519 [11:10:49]File name is /storage/ofd_packets/00029519 [11:10:49]Write 301 bytes [11:10:49]NVStorageSaveData done [11:10:49]OFDSenderStorePacket done [11:10:49]KKMCreateOFDPacket done [11:10:49]NVStorageSaveData kkm_last_timestamp [11:10:49]File name is /storage/kkm_last_timestamp [11:10:49]Write 4 bytes [11:10:49]NVStorageSaveData done [11:10:49]ExternCall_PrintAddStr [11:10:49]wPrintStart [11:10:49]Write to MH i2c: 01 00 00 82 3A BC [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 82 3A 00 00 00 00 00 FF 0F D1 [11:10:49]RasterBufferAndPrint [11:10:49]line Счет N : (1)347935 [11:10:49]line ИНН: 02508201610067 [11:10:49]line Контрольно-Кассовый Чек [11:10:49]line ПРОДАЖА [11:10:49]line ТРК (МРК, ГНК) : 42 [11:10:49]line Товар: 2710124130 [11:10:49]line Аи-92-К-5 [11:10:49]line 8.180 * 64.80 [11:10:49]line = 530.06 [11:10:49]line НДС 12% НСП 1% [11:10:49]line > о реализуемом товаре [11:10:49]line ОКРУГЛЕНИЕ: -0.06 [11:10:49]line ИТОГО: 530.00 [11:10:49]line Внесено: 530.00 [11:10:49]line СДАЧА: 0.00 [11:10:49]line НСП 1% : 4.69 [11:10:49]line НДС 12% : 56.29 [11:10:49]line Наличными: 530.00 [11:10:49]line Безнал.: 0.00 [11:10:49]line Место: АЗС № 108 "Партнер Нефть" [11:10:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:10:49]line СНО: Общий режим [11:10:49]line Чек 113 15.04.2024 11:10 [11:10:49]line Смена: 117 ФФД: 1.0 [11:10:49]line ЗНМ: 0300000027 [11:10:49]line РНМ: 0000138879044617 [11:10:49]line Версия ККМ: 001 [11:10:49]line ФМ: 0000000000963154 [11:10:49]line ФД: 29519 [11:10:49]line ФПД: 83270695807013 [11:10:50]line 1/tax-web-control/client/api/v1/ticket?date=20240415T111052&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29519&fm=83270695807013&tin=02508201610067®Number=0000138879044617&sum=53000 [11:10:50]OFD Sender: Processing packet 29519 [packets to send 8, broken 7] [11:10:50]ProducePacketName [11:10:50]name=ofd_packets/00029519 [11:10:50]OFD Sender: To server: pG, [11:10:50]CommunicateWithHost lk.salyk.kg:30040 [11:10:50]ConnectInit lk.salyk.kg [11:10:50]written 0, free lines is 4095 [11:10:50]Connected sock=9 [11:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 22 35 07 01 D5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 1F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3C 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 73 00 00 35 04 06 00 4B BB F8 3E 68 25 0A 8A 02 FA 95 48 9D 26 [11:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A2 13 47 00 EE C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 73 00 00 F4 03 04 00 DD B5 1C 66 B6 04 01 00 00 ED D3 C5 BD 2C 7B 5E 3B [11:10:50]CommunicateWithHost err = 0 [11:10:50]CheckOFDResponse [11:10:50]1017 (14) - 77093643461234 [11:10:50]1041 (16) - 0000000000963154 [11:10:50]1040 (4) - 29519 [11:10:50]1012 (4) - 15.04.2024 05:06 [11:10:50]1206 (1) - 0 [11:10:50]OFD Sender: Remove packet 29519 [11:10:50]ProducePacketName [11:10:50]name=ofd_packets/00029519 [11:10:50]NVStorageDeleteData [11:10:50]Write to MH i2c: 01 00 00 AC 3A E6 [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: 01 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: 01 07 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: 01 07 00 AC 3A 00 00 00 00 00 CD 0C C6 [11:10:50]RasterBufferAndPrint [11:10:50]line [11:10:50]line [11:10:50]line [11:10:50]line [11:10:50]line [11:10:50]written 0, free lines is 3284 [11:10:50]MH_Cut [11:10:50]Write to MH i2c: D1 01 00 B3 3A 01 BF [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: D1 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: D1 01 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: D1 01 00 B3 3A 00 BE [11:10:50]Write to MH i2c: 01 00 00 B4 3A EE [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:51]OFD Sender: No OFD packet to send [11:10:51]*** Cut start [11:10:51]*** Partial cut [11:10:51]*** CUTSNS_PIN = 1 [11:10:51]*** CUTSNS_PIN = 0 [11:10:51]*** Brake cut motor [11:10:52]Read from MH i2c: 01 [11:10:52]MH_I2C_Read... [11:10:52]*** Stop cut motor [11:10:52]*** Cut end [11:10:52]Read from MH i2c: 01 07 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: 01 07 00 B4 3A 00 00 00 00 00 FF 0F 03 [11:10:52]process_action close_receipt done [11:10:52]requested_data is exist [11:10:52]produce_requested_data [11:10:52]requested_item fm.sn is exist - process it [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 11 00 00 [11:10:52]Write to MH i2c: E2 08 00 B5 3A 80 11 00 00 00 00 00 00 69 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 B5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [11:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:52]wFMCommunicate OK [11:10:52]requested_item fd.num is exist - process it [11:10:52]SAM_PROTO_GetFieldsCounters [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 00 00 [11:10:52]Write to MH i2c: E2 08 00 B6 3A 80 13 00 00 00 00 00 00 6C [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 62 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 62 00 B6 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 73 00 00 0E 04 04 00 75 00 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 34 [11:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 73 00 00 0E 04 04 00 75 00 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:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetFieldsCounters done [11:10:52]requested_item shift.num is exist - process it [11:10:52]requested_item shift.opened is exist - process it [11:10:52]req_shift_opened [11:10:52]FM_GetShiftState [11:10:52]SAM_PROTO_GetShiftState [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 01 00 [11:10:52]Write to MH i2c: E2 08 00 B7 3A 80 13 01 00 00 00 00 00 6E [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 B7 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 62 [11:10:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetShiftState done [11:10:52]FM_GetShiftState done [11:10:52]req_shift_opened done [11:10:52]requested_item shift.open_date is exist - process it [11:10:52]req_shift_open_date [11:10:52]req_shift_open_date done [11:10:52]produce_requested_data done [11:10:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29519,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:10:52]process_action_free close_receipt [11:10:52]json_value_free [11:10:52]json_value_free done [11:10:52]process_json_proto returns [11:10:52]Send response to host [11:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29519,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:10:52]free response buf [11:10:52]execute_script done [11:10:52]execute_script returns [11:10:52]free content buf [11:10:52]Sock 8.Close socket [11:10:52]Sock 8.Thread stoped [11:10:52]accept exits with 10 [11:10:52]New connection [11:10:52]New thread 3067112804 created [11:10:52]Thread 3066969444 joined [11:10:52]Waiting for new connection... [11:10:52] Sock 10.Parse request [11:10:52]Sock 10.Check first char [11:10:52]Sock 10.First char is OK [11:10:52]request: POST /json_proto HTTP/1.0 [11:10:52]Method: POST [11:10:52]URL: /json_proto [11:10:52]Method is POST - this is cgi request [11:10:52]url: /json_proto [11:10:52]query_string will be loaded in cgi processing [11:10:52]execute_cgi json_proto POST (null) [11:10:52]execute_cgi path=json_proto method=POST [11:10:52]POST find Content-Length [11:10:52]Host: 172.17.33.3:8080 [11:10:52]Content-Length: 679 [11:10:52]Content-Type: application/json [11:10:52] [11:10:52]POST finish read [11:10:52]Found Content-Length = 679 [11:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:52]execute_script... [11:10:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:52]POST & json_proto [11:10:52]process_json_proto [11:10:52]json parsed OK: [11:10:52]protocol is kg_v1.0 [11:10:52]action value=close_receipt [11:10:52]process_action close_receipt [11:10:52]cmd_close_receipt [11:10:52]MH_GetDate [11:10:52]Write to MH i2c: F0 00 00 B8 3A E1 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 09 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 09 00 B8 3A 00 41 0B 1D 66 23 5B 8F 65 2B [11:10:52]GetLastDocTimeStamp 1713179452 [11:10:52]current date 1713179457 [11:10:52]FM_GetShiftState [11:10:52]SAM_PROTO_GetShiftState [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 01 00 [11:10:52]Write to MH i2c: E2 08 00 B9 3A 80 13 01 00 00 00 00 00 70 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 B9 3A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 64 [11:10:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetShiftState done [11:10:52]FM_GetShiftState done [11:10:52]opened in 1713140468 [11:10:52]opened+sec_in_day 1713226868 [11:10:52]quantity*price = 80028 [11:10:52]sum+1 = 80029 [11:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 1000.00 СДАЧА: 200.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 114 15.04.2024 11:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29520 ФПД: 63427086039498 1/tax-web-control/client/api/v1/ticket?date=20240415T111057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29520&fm=63427086039498&tin=02508201610067®Number=0000138879044617&sum=80000 [11:10:53]StoreToDocumentArchive [11:10:53]shift 117 fd 29520 [11:10:53]save to /storage/0117/doc_00029520 [11:10:53]save last doc name /storage/0117/doc_00029520 to /storage/kkm_last_doc_name [11:10:53]save OK [11:10:53]Clear old archive folders... [11:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:53]tlvbuf is B6F7F940 [11:10:53]SAM_PROTO_ClearQueue [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 09 00 00 [11:10:53]Write to MH i2c: E2 08 00 C6 3A 80 09 00 00 00 00 00 00 72 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 C6 3A 00 90 00 74 [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]SAM_PROTO_ClearQueue done [11:10:53]KKMCreateOFDPacket [11:10:53]OFDProtocolAddRootSTLVToBuf [11:10:53]FM_MakeSignedData [11:10:53]FM_MakeSignedData [11:10:53]SAM_PROTO_SignData [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 0D 01 02 [11:10:53]Write to MH i2c: E2 08 00 C7 3A 80 0D 01 02 00 00 00 00 7A [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 C7 3A 00 90 00 75 [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]wFMCommunicate request_size=255 [11:10:53]MH_SAM_APDU [11:10: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 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 72 00 00 00 F4 03 04 00 41 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 73 00 00 35 04 06 00 39 [11:10:53]Write to MH i2c: E2 02 01 C8 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 72 00 00 00 F4 03 04 00 41 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 73 00 00 35 04 06 00 39 00 00 8A [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 C8 3A 00 90 00 76 [11:10:54]RAPDU: 90 00 [11:10:54]wFMCommunicate OK [11:10:54]wFMCommunicate request_size=10 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 0D 02 02 05 AF C4 EE B9 CA [11:10:54]Write to MH i2c: E2 0D 00 C9 3A 80 0D 02 02 05 00 AF C4 EE B9 CA 00 00 6B [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 C9 3A 00 90 00 77 [11:10:54]RAPDU: 90 00 [11:10:54]wFMCommunicate OK [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 0D 03 02 [11:10:54]Write to MH i2c: E2 08 00 CA 3A 80 0D 03 02 00 00 00 00 7F [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0B 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0B 00 CA 3A 00 92 22 6A DE 84 3A A3 AC 90 00 89 [11:10:54]RAPDU: 92 22 6A DE 84 3A A3 AC 90 00 [11:10:54]wFMCommunicate OK [11:10:54]SAM_PROTO_SignData done [11:10:54]FM_MakeSignedData done [11:10:54]CreateOFDProtocolMessage [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 11 00 00 [11:10:54]Write to MH i2c: E2 08 00 CB 3A 80 11 00 00 00 00 00 00 7F [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 CB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [11:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:54]wFMCommunicate OK [11:10:54]CreateOFDProtocolMessage done [11:10:54]OFDSenderStorePacket 29520 [11:10:54]StoreOFDPacket docnum=29520 [11:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B CE 07 01 DD A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 72 00 00 00 F4 03 04 00 41 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 73 00 00 35 04 06 00 39 AF C4 EE B9 CA 92 22 6A DE 84 3A A3 AC [11:10:54]CheckFolder [11:10:54]dirname=/storage/ofd_packets [11:10:54]CheckFolder done [11:10:54]ProducePacketName [11:10:54]name=ofd_packets/00029520 [11:10:54]NVStorageSaveData ofd_packets/00029520 [11:10:54]File name is /storage/ofd_packets/00029520 [11:10:54]Write 301 bytes [11:10:54]NVStorageSaveData done [11:10:54]OFDSenderStorePacket done [11:10:54]KKMCreateOFDPacket done [11:10:54]NVStorageSaveData kkm_last_timestamp [11:10:54]File name is /storage/kkm_last_timestamp [11:10:54]Write 4 bytes [11:10:54]NVStorageSaveData done [11:10:54]ExternCall_PrintAddStr [11:10:54]wPrintStart [11:10:54]Write to MH i2c: 01 00 00 CC 3A 06 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 CC 3A 00 00 00 00 00 FF 0F 1B [11:10:54]RasterBufferAndPrint [11:10:54]line Счет N : (1)347934 [11:10:54]line ИНН: 02508201610067 [11:10:54]line Контрольно-Кассовый Чек [11:10:54]line ПРОДАЖА [11:10:54]line ТРК (МРК, ГНК) : 32 [11:10:54]line Товар: 2710124130 [11:10:54]line Аи-92-К-5 [11:10:54]line 12.350 * 64.80 [11:10:54]line = 800.28 [11:10:54]line НДС 12% НСП 1% [11:10:54]line > о реализуемом товаре [11:10:54]line ОКРУГЛЕНИЕ: -0.28 [11:10:54]line ИТОГО: 800.00 [11:10:54]line Внесено: 1000.00 [11:10:54]line СДАЧА: 200.00 [11:10:54]line НСП 1% : 7.08 [11:10:54]line НДС 12% : 84.98 [11:10:54]line Наличными: 800.00 [11:10:54]line Безнал.: 0.00 [11:10:54]line Место: АЗС № 108 "Партнер Нефть" [11:10:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:10:54]line СНО: Общий режим [11:10:54]line Чек 114 15.04.2024 11:10 [11:10:54]line Смена: 117 ФФД: 1.0 [11:10:54]line ЗНМ: 0300000027 [11:10:54]line РНМ: 0000138879044617 [11:10:54]line Версия ККМ: 001 [11:10:54]line ФМ: 0000000000963154 [11:10:54]line ФД: 29520 [11:10:54]line ФПД: 63427086039498 [11:10:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T111057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29520&fm=63427086039498&tin=02508201610067®Number=0000138879044617&sum=80000 [11:10:55]written 0, free lines is 4095 [11:10:55]OFD Sender: Processing packet 29520 [packets to send 8, broken 7] [11:10:55]ProducePacketName [11:10:55]name=ofd_packets/00029520 [11:10:55]OFD Sender: To server: pG, [11:10:55]CommunicateWithHost lk.salyk.kg:30040 [11:10:55]ConnectInit lk.salyk.kg [11:10:55]Connected sock=9 [11:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B CE 07 01 DD A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 72 00 00 00 F4 03 04 00 41 0B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 73 00 00 35 04 06 00 39 AF C4 EE B9 CA 92 22 6A DE 84 3A A3 AC [11:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 E3 47 00 9D 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 39 36 33 31 35 34 10 04 04 00 50 73 00 00 F4 03 04 00 E2 B5 1C 66 B6 04 01 00 00 7B E1 85 3A 03 EB FB 0B [11:10:55]CommunicateWithHost err = 0 [11:10:55]CheckOFDResponse [11:10:55]1017 (14) - 77093643461234 [11:10:55]1041 (16) - 0000000000963154 [11:10:55]1040 (4) - 29520 [11:10:55]1012 (4) - 15.04.2024 05:06 [11:10:55]1206 (1) - 0 [11:10:55]OFD Sender: Remove packet 29520 [11:10:55]ProducePacketName [11:10:55]name=ofd_packets/00029520 [11:10:55]NVStorageDeleteData [11:10:55]Write to MH i2c: 01 00 00 F6 3A 30 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 07 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 07 00 F6 3A 00 00 00 00 00 CA 0C 0D [11:10:55]RasterBufferAndPrint [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]written 0, free lines is 3286 [11:10:55]MH_Cut [11:10:55]Write to MH i2c: D1 01 00 FD 3A 01 09 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 01 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 01 00 FD 3A 00 08 [11:10:55]Write to MH i2c: 01 00 00 FE 3A 38 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:56]OFD Sender: No OFD packet to send [11:10:56]*** Cut start [11:10:56]*** Partial cut [11:10:56]*** CUTSNS_PIN = 1 [11:10:56]*** CUTSNS_PIN = 0 [11:10:56]*** Brake cut motor [11:10:57]Read from MH i2c: 01 [11:10:57]MH_I2C_Read... [11:10:57]*** Stop cut motor [11:10:57]*** Cut end [11:10:57]Read from MH i2c: 01 07 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: 01 07 00 FE 3A 00 00 00 00 00 FF 0F 4D [11:10:57]process_action close_receipt done [11:10:57]requested_data is exist [11:10:57]produce_requested_data [11:10:57]requested_item fm.sn is exist - process it [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 11 00 00 [11:10:57]Write to MH i2c: E2 08 00 FF 3A 80 11 00 00 00 00 00 00 B3 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 17 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 17 00 FF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [11:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:57]wFMCommunicate OK [11:10:57]requested_item fd.num is exist - process it [11:10:57]SAM_PROTO_GetFieldsCounters [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 00 00 [11:10:57]Write to MH i2c: E2 08 00 00 3B 80 13 00 00 00 00 00 00 B7 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 62 00 [11:10:57]MH_I2C_Read... [11:10:57]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 73 00 00 0E 04 04 00 75 00 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 83 [11:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 73 00 00 0E 04 04 00 75 00 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:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetFieldsCounters done [11:10:57]requested_item shift.num is exist - process it [11:10:57]requested_item shift.opened is exist - process it [11:10:57]req_shift_opened [11:10:57]FM_GetShiftState [11:10:57]SAM_PROTO_GetShiftState [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 01 00 [11:10:57]Write to MH i2c: E2 08 00 01 3B 80 13 01 00 00 00 00 00 B9 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 01 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AD [11:10:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]req_shift_opened done [11:10:57]requested_item shift.open_date is exist - process it [11:10:57]req_shift_open_date [11:10:57]req_shift_open_date done [11:10:57]produce_requested_data done [11:10:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29520,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:10:57]process_action_free close_receipt [11:10:57]json_value_free [11:10:57]json_value_free done [11:10:57]process_json_proto returns [11:10:57]Send response to host [11:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29520,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:10:57]free response buf [11:10:57]execute_script done [11:10:57]execute_script returns [11:10:57]free content buf [11:10:57]Sock 10.Close socket [11:10:57]Sock 10.Thread stoped [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:09]int [11:14:09]Write to MH i2c: 01 00 00 02 3B 3D [11:14:09]*** FLAG_PRN_KEY set [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 02 3B 00 08 00 00 00 FF 0F 5A [11:14:09]state=0 [11:14:09]Key pressed [11:14:09]Feed [11:14:09]Write to MH i2c: D8 00 00 03 3B 15 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D8 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D8 01 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D8 01 00 03 3B 00 16 [11:14:09]int [11:14:09]Write to MH i2c: 01 00 00 04 3B 3F [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 04 3B 00 48 00 00 00 3C 00 CA [11:14:09]state=2 [11:14:09]Key pressed [11:14:09]int [11:14:09]Write to MH i2c: 01 00 00 05 3B 40 [11:14:09]*** FLAG_PRN_KEY reset [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 05 3B 00 00 00 00 00 F6 0F 4C [11:14:09]state=2 [11:14:09]Stop feed [11:14:10]int [11:14:10]Write to MH i2c: 01 00 00 06 3B 41 [11:14:10]*** FLAG_PRN_KEY set [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 06 3B 00 08 00 00 00 FF 0F 5E [11:14:10]state=0 [11:14:10]Key pressed [11:14:10]Feed [11:14:10]Write to MH i2c: D8 00 00 07 3B 19 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D8 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D8 01 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: D8 01 00 07 3B 00 1A [11:14:10]int [11:14:10]Write to MH i2c: 01 00 00 08 3B 43 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 08 3B 00 48 00 00 00 3C 00 CE [11:14:10]state=2 [11:14:10]Key pressed [11:14:10]int [11:14:10]Write to MH i2c: 01 00 00 09 3B 44 [11:14:10]*** FLAG_PRN_KEY reset [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 09 3B 00 00 00 00 00 F6 0F 50 [11:14:10]state=2 [11:14:10]Stop feed [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:32]accept exits with 8 [11:14:32]New connection [11:14:32]New thread 3066969444 created [11:14:32]Thread 3067112804 joined [11:14:32]Waiting for new connection... [11:14:32] Sock 8.Parse request [11:14:32]Sock 8.Check first char [11:14:32]Sock 8.First char is OK [11:14:32]request: POST /json_proto HTTP/1.0 [11:14:32]Method: POST [11:14:32]URL: /json_proto [11:14:32]Method is POST - this is cgi request [11:14:32]url: /json_proto [11:14:32]query_string will be loaded in cgi processing [11:14:32]execute_cgi json_proto POST (null) [11:14:32]execute_cgi path=json_proto method=POST [11:14:32]POST find Content-Length [11:14:32]Host: 172.17.33.3:8080 [11:14:32]Content-Length: 1202 [11:14:32]Content-Type: application/json [11:14:32] [11:14:32]POST finish read [11:14:32]Found Content-Length = 1202 [11:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347938\u000A15.04.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.810 x 64.80\u000A\u0418\u0422\u041E\u0413: 700.49\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\u000A3859004\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:32]execute_script... [11:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347938\u000A15.04.2024 10:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.810 x 64.80\u000A\u0418\u0422\u041E\u0413: 700.49\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\u000A3859004\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:32]POST & json_proto [11:14:32]process_json_proto [11:14:32]json parsed OK: [11:14:32]protocol is kg_v1.0 [11:14:32]action value=print_text [11:14:32]process_action print_text [11:14:32]cmd_print_text [11:14:32]ExternCall_PrintAddStr [11:14:32]wPrintStart [11:14:32]Write to MH i2c: 01 00 00 0A 3B 45 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 0A 3B 00 00 00 00 00 FF 0F 5A [11:14:32]RasterBufferAndPrint [11:14:32]line *****ТОВАРНЫЙ ЧЕК***** [11:14:32]line АЗС 108 [11:14:32]line Партнер нефть [11:14:32]line 02508201610067 [11:14:32]line Кассир : Джумагулова Н. [11:14:32]line Счет N : (1)347938 [11:14:32]line 15.04.2024 10:56 [11:14:32]line ПРОДАЖА [11:14:32]line ТРК (МРК, ГНК): 32 [11:14:32]line Вид ГСМ : 2710124130 [11:14:32]line Аи-92-К-5 [11:14:32]line 10.810 x 64.80 [11:14:32]line ИТОГ: 700.49 [11:14:32]line Тип оплаты: Талоны: Партнер нефть [11:14:32]line 3859004 [11:14:32]line ______________________ [11:14:32]line (подпись) [11:14:32]written 0, free lines is 4095 [11:14:32]Write to MH i2c: 01 00 00 1F 3B 5A [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: 01 07 00 1F 3B 00 00 00 00 00 F9 0D 67 [11:14:32]RasterBufferAndPrint [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]line [11:14:32]written 0, free lines is 3579 [11:14:32]MH_Cut [11:14:32]Write to MH i2c: D1 01 00 26 3B 01 33 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 01 00 [11:14:32]MH_I2C_Read... [11:14:32]Read from MH i2c: D1 01 00 26 3B 00 32 [11:14:32]Write to MH i2c: 01 00 00 27 3B 62 [11:14:32]Write i2c OK [11:14:32]MH_I2C_Read... [11:14:33]*** Cut start [11:14:33]*** Partial cut [11:14:33]*** CUTSNS_PIN = 1 [11:14:33]*** CUTSNS_PIN = 0 [11:14:33]*** Brake cut motor [11:14:33]Read from MH i2c: 01 [11:14:33]MH_I2C_Read... [11:14:33]*** Stop cut motor [11:14:33]*** Cut end [11:14:33]Read from MH i2c: 01 07 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: 01 07 00 27 3B 00 00 00 00 00 FF 0F 77 [11:14:33]process_action print_text done [11:14:33]requested_data is exist [11:14:33]produce_requested_data [11:14:33]requested_item fm.sn is exist - process it [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 11 00 00 [11:14:33]Write to MH i2c: E2 08 00 28 3B 80 11 00 00 00 00 00 00 DD [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:33]Read from MH i2c: E2 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 17 00 [11:14:33]MH_I2C_Read... [11:14:33]Read from MH i2c: E2 17 00 28 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [11:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:14:33]wFMCommunicate OK [11:14:33]requested_item fd.num is exist - process it [11:14:33]SAM_PROTO_GetFieldsCounters [11:14:33]wFMCommunicate request_size=4 [11:14:33]MH_SAM_APDU [11:14:33]CAPDU: 80 13 00 00 [11:14:33]Write to MH i2c: E2 08 00 29 3B 80 13 00 00 00 00 00 00 E0 [11:14:33]Write i2c OK [11:14:33]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 62 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 62 00 29 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 73 00 00 0E 04 04 00 75 00 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 AC [11:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 73 00 00 0E 04 04 00 75 00 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:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_GetFieldsCounters done [11:14:34]requested_item shift.num is exist - process it [11:14:34]requested_item shift.opened is exist - process it [11:14:34]req_shift_opened [11:14:34]FM_GetShiftState [11:14:34]SAM_PROTO_GetShiftState [11:14:34]wFMCommunicate request_size=4 [11:14:34]MH_SAM_APDU [11:14:34]CAPDU: 80 13 01 00 [11:14:34]Write to MH i2c: E2 08 00 2A 3B 80 13 01 00 00 00 00 00 E2 [11:14:34]Write i2c OK [11:14:34]MH_I2C_Read... [11:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:34]Read from MH i2c: E2 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0E 00 [11:14:34]MH_I2C_Read... [11:14:34]Read from MH i2c: E2 0E 00 2A 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D6 [11:14:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:14:34]wFMCommunicate OK [11:14:34]SAM_PROTO_GetShiftState done [11:14:34]FM_GetShiftState done [11:14:34]req_shift_opened done [11:14:34]requested_item shift.open_date is exist - process it [11:14:34]req_shift_open_date [11:14:34]req_shift_open_date done [11:14:34]produce_requested_data done [11:14:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29520,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:14:34]process_action_free print_text [11:14:34]json_value_free [11:14:34]json_value_free done [11:14:34]process_json_proto returns [11:14:34]Send response to host [11:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29520,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:14:34]free response buf [11:14:34]execute_script done [11:14:34]execute_script returns [11:14:34]free content buf [11:14:34]Sock 8.Close socket [11:14:34]Sock 8.Thread stoped [11:14:36]OFD Sender: No OFD packet to send [11:14:38]accept exits with 9 [11:14:38]New connection [11:14:38]New thread 3067112804 created [11:14:38]Thread 3066969444 joined [11:14:38]Waiting for new connection... [11:14:38] Sock 9.Parse request [11:14:38]Sock 9.Check first char [11:14:38]Sock 9.First char is OK [11:14:38]request: POST /json_proto HTTP/1.0 [11:14:38]Method: POST [11:14:38]URL: /json_proto [11:14:38]Method is POST - this is cgi request [11:14:38]url: /json_proto [11:14:38]query_string will be loaded in cgi processing [11:14:38]execute_cgi json_proto POST (null) [11:14:38]execute_cgi path=json_proto method=POST [11:14:38]POST find Content-Length [11:14:38]Host: 172.17.33.3:8080 [11:14:38]Content-Length: 834 [11:14:38]Content-Type: application/json [11:14:38] [11:14:38]POST finish read [11:14:38]Found Content-Length = 834 [11:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.530, "sum" : 890.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 890.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:38]execute_script... [11:14:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.530, "sum" : 890.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 890.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:38]POST & json_proto [11:14:38]process_json_proto [11:14:38]json parsed OK: [11:14:38]protocol is kg_v1.0 [11:14:38]action value=close_receipt [11:14:38]process_action close_receipt [11:14:38]cmd_close_receipt [11:14:38]MH_GetDate [11:14:38]Write to MH i2c: F0 00 00 2B 3B 55 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: F0 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: F0 09 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: F0 09 00 2B 3B 00 22 0C 1D 66 23 5B 8F 65 81 [11:14:38]GetLastDocTimeStamp 1713179457 [11:14:38]current date 1713179682 [11:14:38]FM_GetShiftState [11:14:38]SAM_PROTO_GetShiftState [11:14:38]wFMCommunicate request_size=4 [11:14:38]MH_SAM_APDU [11:14:38]CAPDU: 80 13 01 00 [11:14:38]Write to MH i2c: E2 08 00 2C 3B 80 13 01 00 00 00 00 00 E4 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:38]Read from MH i2c: E2 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 0E 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: E2 0E 00 2C 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D8 [11:14:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:14:38]wFMCommunicate OK [11:14:38]SAM_PROTO_GetShiftState done [11:14:38]FM_GetShiftState done [11:14:38]opened in 1713140468 [11:14:38]opened+sec_in_day 1713226868 [11:14:38]quantity*price = 89027 [11:14:38]sum+1 = 89028 [11:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 890.27 НСП 1% : 7.88 НДС 12% : 94.54 Наличными: 0.00 Безнал.: 890.27 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 115 15.04.2024 11:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29521 ФПД: 95722687954358 1/tax-web-control/client/api/v1/ticket?date=20240415T111443&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29521&fm=95722687954358&tin=02508201610067®Number=0000138879044617&sum=89027 [11:14:39]StoreToDocumentArchive [11:14:39]shift 117 fd 29521 [11:14:39]save to /storage/0117/doc_00029521 [11:14:39]save last doc name /storage/0117/doc_00029521 to /storage/kkm_last_doc_name [11:14:39]save OK [11:14:39]Clear old archive folders... [11:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:14:39]tlvbuf is 0026ECD0 [11:14:39]SAM_PROTO_ClearQueue [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 09 00 00 [11:14:39]Write to MH i2c: E2 08 00 39 3B 80 09 00 00 00 00 00 00 E6 [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 03 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 03 00 39 3B 00 90 00 E8 [11:14:39]RAPDU: 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_ClearQueue done [11:14:39]KKMCreateOFDPacket [11:14:39]OFDProtocolAddRootSTLVToBuf [11:14:39]FM_MakeSignedData [11:14:39]FM_MakeSignedData [11:14:39]SAM_PROTO_SignData [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 0D 01 02 [11:14:39]Write to MH i2c: E2 08 00 3A 3B 80 0D 01 02 00 00 00 00 EE [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [11:14:40]RAPDU: 90 00 [11:14:40]wFMCommunicate OK [11:14:40]wFMCommunicate request_size=255 [11:14:40]MH_SAM_APDU [11:14: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C3 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 EE 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 23 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 73 00 00 35 04 06 00 [11:14:40]Write to MH i2c: E2 02 01 3B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C3 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 EE 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 23 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 73 00 00 35 04 06 00 00 00 7E [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [11:14:40]RAPDU: 90 00 [11:14:40]wFMCommunicate OK [11:14:40]wFMCommunicate request_size=11 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 0D 02 02 06 57 0F 2C CF FD B6 [11:14:40]Write to MH i2c: E2 0E 00 3C 3B 80 0D 02 02 06 00 57 0F 2C CF FD B6 00 00 11 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 03 00 3C 3B 00 90 00 EB [11:14:40]RAPDU: 90 00 [11:14:40]wFMCommunicate OK [11:14:40]wFMCommunicate request_size=4 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 0D 03 02 [11:14:40]Write to MH i2c: E2 08 00 3D 3B 80 0D 03 02 00 00 00 00 F3 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0B 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0B 00 3D 3B 00 5D 88 EF D1 E4 4B 7F 17 90 00 5E [11:14:40]RAPDU: 5D 88 EF D1 E4 4B 7F 17 90 00 [11:14:40]wFMCommunicate OK [11:14:40]SAM_PROTO_SignData done [11:14:40]FM_MakeSignedData done [11:14:40]CreateOFDProtocolMessage [11:14:40]wFMCommunicate request_size=4 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 11 00 00 [11:14:40]Write to MH i2c: E2 08 00 3E 3B 80 11 00 00 00 00 00 00 F3 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 17 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 17 00 3E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [11:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:14:40]wFMCommunicate OK [11:14:40]CreateOFDProtocolMessage done [11:14:40]OFDSenderStorePacket 29521 [11:14:40]StoreOFDPacket docnum=29521 [11:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 78 F4 08 01 AC EC 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C3 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 EE 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 23 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 73 00 00 35 04 06 00 57 0F 2C CF FD B6 5D 88 EF D1 E4 4B 7F 17 [11:14:40]CheckFolder [11:14:40]dirname=/storage/ofd_packets [11:14:40]CheckFolder done [11:14:40]ProducePacketName [11:14:40]name=ofd_packets/00029521 [11:14:40]NVStorageSaveData ofd_packets/00029521 [11:14:40]File name is /storage/ofd_packets/00029521 [11:14:40]Write 302 bytes [11:14:40]NVStorageSaveData done [11:14:40]OFDSenderStorePacket done [11:14:40]KKMCreateOFDPacket done [11:14:40]NVStorageSaveData kkm_last_timestamp [11:14:40]File name is /storage/kkm_last_timestamp [11:14:40]Write 4 bytes [11:14:40]NVStorageSaveData done [11:14:40]ExternCall_PrintAddStr [11:14:40]wPrintStart [11:14:40]Write to MH i2c: 01 00 00 3F 3B 7A [11:14:40]OFD Sender: Processing packet 29521 [packets to send 8, broken 7] [11:14:40]ProducePacketName [11:14:40]name=ofd_packets/00029521 [11:14:40]OFD Sender: To server: pG, [11:14:40]CommunicateWithHost lk.salyk.kg:30040 [11:14:40]ConnectInit lk.salyk.kg [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 07 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 07 00 3F 3B 00 00 00 00 00 FF 0F 8F [11:14:40]RasterBufferAndPrint [11:14:40]line Счет N : (1)347937 [11:14:40]line ИНН: 02508201610067 [11:14:40]line Контрольно-Кассовый Чек [11:14:40]line ПРОДАЖА [11:14:40]line ТРК (МРК, ГНК) : 12 [11:14:40]line Товар: 2710124130 [11:14:40]line SUPER-92-К-5 [11:14:40]line 13.530 * 65.80 [11:14:40]line = 890.27 [11:14:40]line НДС 12% НСП 1% [11:14:40]line > о реализуемом товаре [11:14:40]line ИТОГО: 890.27 [11:14:40]line НСП 1% : 7.88 [11:14:40]line НДС 12% : 94.54 [11:14:40]line Наличными: 0.00 [11:14:40]line Безнал.: 890.27 [11:14:40]line Место: АЗС № 108 "Партнер Нефть" [11:14:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:14:40]line СНО: Общий режим [11:14:40]line Чек 115 15.04.2024 11:14 [11:14:40]line Смена: 117 ФФД: 1.0 [11:14:40]line ЗНМ: 0300000027 [11:14:40]line РНМ: 0000138879044617 [11:14:40]line Версия ККМ: 001 [11:14:40]line Платежная система: АКБ Кыргызстан [11:14:40]line ФМ: 0000000000963154 [11:14:40]line ФД: 29521 [11:14:40]line ФПД: 95722687954358 [11:14:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T111443&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29521&fm=95722687954358&tin=02508201610067®Number=0000138879044617&sum=89027 [11:14:40]Connected sock=10 [11:14:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 78 F4 08 01 AC EC 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C3 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 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 EE 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 23 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 73 00 00 35 04 06 00 57 0F 2C CF FD B6 5D 88 EF D1 E4 4B 7F 17 [11:14:40]written 0, free lines is 4095 [11:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 77 3F 47 00 B8 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 39 36 33 31 35 34 10 04 04 00 51 73 00 00 F4 03 04 00 C4 B6 1C 66 B6 04 01 00 00 BC 68 63 C4 6E 90 3A 28 [11:14:40]CommunicateWithHost err = 0 [11:14:40]CheckOFDResponse [11:14:40]1017 (14) - 77093643461234 [11:14:40]1041 (16) - 0000000000963154 [11:14:40]1040 (4) - 29521 [11:14:40]1012 (4) - 15.04.2024 05:10 [11:14:40]1206 (1) - 0 [11:14:40]OFD Sender: Remove packet 29521 [11:14:40]ProducePacketName [11:14:40]name=ofd_packets/00029521 [11:14:40]NVStorageDeleteData [11:14:41]Write to MH i2c: 01 00 00 68 3B A3 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 07 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: 01 07 00 68 3B 00 00 00 00 00 E2 0C 98 [11:14:41]RasterBufferAndPrint [11:14:41]line [11:14:41]line [11:14:41]line [11:14:41]line [11:14:41]line [11:14:41]written 0, free lines is 3304 [11:14:41]MH_Cut [11:14:41]Write to MH i2c: D1 01 00 6F 3B 01 7C [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: D1 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: D1 01 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: D1 01 00 6F 3B 00 7B [11:14:41]Write to MH i2c: 01 00 00 70 3B AB [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]OFD Sender: No OFD packet to send [11:14:42]*** Cut start [11:14:42]*** Partial cut [11:14:42]*** CUTSNS_PIN = 1 [11:14:42]*** CUTSNS_PIN = 0 [11:14:42]*** Brake cut motor [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]*** Stop cut motor [11:14:42]*** Cut end [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 70 3B 00 00 00 00 00 FF 0F C0 [11:14:42]process_action close_receipt done [11:14:42]requested_data is exist [11:14:42]produce_requested_data [11:14:42]requested_item fm.sn is exist - process it [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 11 00 00 [11:14:42]Write to MH i2c: E2 08 00 71 3B 80 11 00 00 00 00 00 00 26 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 71 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [11:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:14:42]wFMCommunicate OK [11:14:42]requested_item fd.num is exist - process it [11:14:42]SAM_PROTO_GetFieldsCounters [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 13 00 00 [11:14:42]Write to MH i2c: E2 08 00 72 3B 80 13 00 00 00 00 00 00 29 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 62 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 62 00 72 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 73 00 00 0E 04 04 00 75 00 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 F9 [11:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 73 00 00 0E 04 04 00 75 00 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:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_GetFieldsCounters done [11:14:42]requested_item shift.num is exist - process it [11:14:42]requested_item shift.opened is exist - process it [11:14:42]req_shift_opened [11:14:42]FM_GetShiftState [11:14:42]SAM_PROTO_GetShiftState [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 13 01 00 [11:14:42]Write to MH i2c: E2 08 00 73 3B 80 13 01 00 00 00 00 00 2B [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0E 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0E 00 73 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1F [11:14:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_GetShiftState done [11:14:42]FM_GetShiftState done [11:14:42]req_shift_opened done [11:14:42]requested_item shift.open_date is exist - process it [11:14:42]req_shift_open_date [11:14:42]req_shift_open_date done [11:14:42]produce_requested_data done [11:14:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29521,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:14:42]process_action_free close_receipt [11:14:42]json_value_free [11:14:42]json_value_free done [11:14:42]process_json_proto returns [11:14:42]Send response to host [11:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29521,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:14:42]free response buf [11:14:42]execute_script done [11:14:42]execute_script returns [11:14:42]free content buf [11:14:42]Sock 9.Close socket [11:14:42]Sock 9.Thread stoped [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:25]accept exits with 8 [11:16:25]New connection [11:16:25]New thread 3066969444 created [11:16:25]Thread 3067112804 joined [11:16:25]Waiting for new connection... [11:16:25] Sock 8.Parse request [11:16:25]Sock 8.Check first char [11:16:25]Sock 8.First char is OK [11:16:25]request: POST /json_proto HTTP/1.0 [11:16:25]Method: POST [11:16:25]URL: /json_proto [11:16:25]Method is POST - this is cgi request [11:16:25]url: /json_proto [11:16:25]query_string will be loaded in cgi processing [11:16:25]execute_cgi json_proto POST (null) [11:16:25]execute_cgi path=json_proto method=POST [11:16:25]POST find Content-Length [11:16:25]Host: 172.17.33.3:8080 [11:16:25]Content-Length: 685 [11:16:25]Content-Type: application/json [11:16:25] [11:16:25]POST finish read [11:16:25]Found Content-Length = 685 [11:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:16:25]execute_script... [11:16: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)347936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:16:25]POST & json_proto [11:16:25]process_json_proto [11:16:25]json parsed OK: [11:16:25]protocol is kg_v1.0 [11:16:25]action value=close_receipt [11:16:25]process_action close_receipt [11:16:25]cmd_close_receipt [11:16:25]MH_GetDate [11:16:25]Write to MH i2c: F0 00 00 74 3B 9E [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 09 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: F0 09 00 74 3B 00 8E 0C 1D 66 23 5B 8F 65 36 [11:16:25]GetLastDocTimeStamp 1713179683 [11:16:25]current date 1713179790 [11:16:25]FM_GetShiftState [11:16:25]SAM_PROTO_GetShiftState [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 13 01 00 [11:16:25]Write to MH i2c: E2 08 00 75 3B 80 13 01 00 00 00 00 00 2D [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0E 00 75 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [11:16:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_GetShiftState done [11:16:25]FM_GetShiftState done [11:16:25]opened in 1713140468 [11:16:25]opened+sec_in_day 1713226868 [11:16:25]quantity*price = 150032 [11:16:25]sum+1 = 150034 [11:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 116 15.04.2024 11:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29522 ФПД: 17845370028852 1/tax-web-control/client/api/v1/ticket?date=20240415T111630&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29522&fm=17845370028852&tin=02508201610067®Number=0000138879044617&sum=150000 [11:16:27]StoreToDocumentArchive [11:16:27]shift 117 fd 29522 [11:16:27]save to /storage/0117/doc_00029522 [11:16:27]save last doc name /storage/0117/doc_00029522 to /storage/kkm_last_doc_name [11:16:27]save OK [11:16:27]Clear old archive folders... [11:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:16:27]tlvbuf is B6DCF300 [11:16:27]SAM_PROTO_ClearQueue [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 09 00 00 [11:16:27]Write to MH i2c: E2 08 00 82 3B 80 09 00 00 00 00 00 00 2F [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 82 3B 00 90 00 31 [11:16:27]RAPDU: 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_ClearQueue done [11:16:27]KKMCreateOFDPacket [11:16:27]OFDProtocolAddRootSTLVToBuf [11:16:27]FM_MakeSignedData [11:16:27]FM_MakeSignedData [11:16:27]SAM_PROTO_SignData [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 0D 01 02 [11:16:27]Write to MH i2c: E2 08 00 83 3B 80 0D 01 02 00 00 00 00 37 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 83 3B 00 90 00 32 [11:16:27]RAPDU: 90 00 [11:16:27]wFMCommunicate OK [11:16:27]wFMCommunicate request_size=255 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 74 00 00 00 F4 03 04 00 8E 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 73 00 00 35 04 06 00 10 3A [11:16:27]Write to MH i2c: E2 02 01 84 3B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 74 00 00 00 F4 03 04 00 8E 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 73 00 00 35 04 06 00 10 3A 00 00 E6 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 84 3B 00 90 00 33 [11:16:27]RAPDU: 90 00 [11:16:27]wFMCommunicate OK [11:16:27]wFMCommunicate request_size=9 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 0D 02 02 04 F2 F1 03 34 [11:16:27]Write to MH i2c: E2 0C 00 85 3B 80 0D 02 02 04 00 F2 F1 03 34 00 00 5C [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 03 00 85 3B 00 90 00 34 [11:16:27]RAPDU: 90 00 [11:16:27]wFMCommunicate OK [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 0D 03 02 [11:16:27]Write to MH i2c: E2 08 00 86 3B 80 0D 03 02 00 00 00 00 3C [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0B 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0B 00 86 3B 00 71 6E 86 F5 C3 1F 5A A2 90 00 75 [11:16:27]RAPDU: 71 6E 86 F5 C3 1F 5A A2 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_SignData done [11:16:27]FM_MakeSignedData done [11:16:27]CreateOFDProtocolMessage [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 11 00 00 [11:16:27]Write to MH i2c: E2 08 00 87 3B 80 11 00 00 00 00 00 00 3C [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 87 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [11:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:16:27]wFMCommunicate OK [11:16:27]CreateOFDProtocolMessage done [11:16:27]OFDSenderStorePacket 29522 [11:16:27]StoreOFDPacket docnum=29522 [11:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D5 0F 06 01 A1 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 74 00 00 00 F4 03 04 00 8E 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 73 00 00 35 04 06 00 10 3A F2 F1 03 34 71 6E 86 F5 C3 1F 5A A2 [11:16:27]CheckFolder [11:16:27]dirname=/storage/ofd_packets [11:16:27]CheckFolder done [11:16:27]ProducePacketName [11:16:27]name=ofd_packets/00029522 [11:16:27]NVStorageSaveData ofd_packets/00029522 [11:16:27]File name is /storage/ofd_packets/00029522 [11:16:27]Write 300 bytes [11:16:27]NVStorageSaveData done [11:16:27]OFDSenderStorePacket done [11:16:27]KKMCreateOFDPacket done [11:16:27]NVStorageSaveData kkm_last_timestamp [11:16:27]File name is /storage/kkm_last_timestamp [11:16:27]Write 4 bytes [11:16:27]NVStorageSaveData done [11:16:27]ExternCall_PrintAddStr [11:16:27]wPrintStart [11:16:27]Write to MH i2c: 01 00 00 88 3B C3 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 88 3B 00 00 00 00 00 FF 0F D8 [11:16:27]RasterBufferAndPrint [11:16:27]line Счет N : (1)347936 [11:16:27]line ИНН: 02508201610067 [11:16:27]line Контрольно-Кассовый Чек [11:16:27]line ПРОДАЖА [11:16:27]line ТРК (МРК, ГНК) : 71 [11:16:27]line Товар: 2711129700 [11:16:27]line ГАЗ-К-5 [11:16:27]line 44.920 * 33.40 [11:16:27]line = 1500.33 [11:16:27]line НДС 12% НСП 1% [11:16:27]line > о реализуемом товаре [11:16:27]line ОКРУГЛЕНИЕ: -0.33 [11:16:27]line ИТОГО: 1500.00 [11:16:27]line Внесено: 1500.00 [11:16:27]line СДАЧА: 0.00 [11:16:27]line НСП 1% : 13.28 [11:16:27]line НДС 12% : 159.33 [11:16:27]line Наличными: 1500.00 [11:16:27]line Безнал.: 0.00 [11:16:27]line Место: АЗС № 108 "Партнер Нефть" [11:16:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:16:27]line СНО: Общий режим [11:16:27]line Чек 116 15.04.2024 11:16 [11:16:27]line Смена: 117 ФФД: 1.0 [11:16:27]line ЗНМ: 0300000027 [11:16:27]line РНМ: 0000138879044617 [11:16:27]line Версия ККМ: 001 [11:16:27]line ФМ: 0000000000963154 [11:16:27]line ФД: 29522 [11:16:27]line ФПД: 17845370028852 [11:16:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T111630&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29522&fm=17845370028852&tin=02508201610067®Number=0000138879044617&sum=150000 [11:16:27]OFD Sender: Processing packet 29522 [packets to send 8, broken 7] [11:16:27]ProducePacketName [11:16:27]name=ofd_packets/00029522 [11:16:27]OFD Sender: To server: pG, [11:16:27]CommunicateWithHost lk.salyk.kg:30040 [11:16:27]ConnectInit lk.salyk.kg [11:16:27]written 0, free lines is 4095 [11:16:27]Connected sock=10 [11:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D5 0F 06 01 A1 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 74 00 00 00 F4 03 04 00 8E 0C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 73 00 00 35 04 06 00 10 3A F2 F1 03 34 71 6E 86 F5 C3 1F 5A A2 [11:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 98 DC 47 00 36 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 73 00 00 F4 03 04 00 2F B7 1C 66 B6 04 01 00 00 9F FD 0D EB 09 D4 B9 DE [11:16:28]CommunicateWithHost err = 0 [11:16:28]CheckOFDResponse [11:16:28]1017 (14) - 77093643461234 [11:16:28]1041 (16) - 0000000000963154 [11:16:28]1040 (4) - 29522 [11:16:28]1012 (4) - 15.04.2024 05:12 [11:16:28]1206 (1) - 0 [11:16:28]OFD Sender: Remove packet 29522 [11:16:28]ProducePacketName [11:16:28]name=ofd_packets/00029522 [11:16:28]NVStorageDeleteData [11:16:28]Write to MH i2c: 01 00 00 B2 3B ED [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: 01 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: 01 07 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: 01 07 00 B2 3B 00 00 00 00 00 BB 0C BB [11:16:28]RasterBufferAndPrint [11:16:28]line [11:16:28]line [11:16:28]line [11:16:28]line [11:16:28]line [11:16:28]written 0, free lines is 3264 [11:16:28]MH_Cut [11:16:28]Write to MH i2c: D1 01 00 B9 3B 01 C6 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: D1 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: D1 01 00 [11:16:28]MH_I2C_Read... [11:16:28]Read from MH i2c: D1 01 00 B9 3B 00 C5 [11:16:28]Write to MH i2c: 01 00 00 BA 3B F5 [11:16:28]Write i2c OK [11:16:28]MH_I2C_Read... [11:16:28]OFD Sender: No OFD packet to send [11:16:29]*** Cut start [11:16:29]*** Partial cut [11:16:29]*** CUTSNS_PIN = 1 [11:16:29]*** CUTSNS_PIN = 0 [11:16:29]*** Brake cut motor [11:16:29]Read from MH i2c: 01 [11:16:29]MH_I2C_Read... [11:16:29]*** Stop cut motor [11:16:29]*** Cut end [11:16:29]Read from MH i2c: 01 07 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: 01 07 00 BA 3B 00 00 00 00 00 FF 0F 0A [11:16:29]process_action close_receipt done [11:16:29]requested_data is exist [11:16:29]produce_requested_data [11:16:29]requested_item fm.sn is exist - process it [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 11 00 00 [11:16:29]Write to MH i2c: E2 08 00 BB 3B 80 11 00 00 00 00 00 00 70 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 17 00 BB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [11:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:16:29]wFMCommunicate OK [11:16:29]requested_item fd.num is exist - process it [11:16:29]SAM_PROTO_GetFieldsCounters [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 13 00 00 [11:16:29]Write to MH i2c: E2 08 00 BC 3B 80 13 00 00 00 00 00 00 73 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 62 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 62 00 BC 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 73 00 00 0E 04 04 00 75 00 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 47 [11:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_GetFieldsCounters done [11:16:30]requested_item shift.num is exist - process it [11:16:30]requested_item shift.opened is exist - process it [11:16:30]req_shift_opened [11:16:30]FM_GetShiftState [11:16:30]SAM_PROTO_GetShiftState [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 13 01 00 [11:16:30]Write to MH i2c: E2 08 00 BD 3B 80 13 01 00 00 00 00 00 75 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0E 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0E 00 BD 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 69 [11:16:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:16:30]wFMCommunicate OK [11:16:30]SAM_PROTO_GetShiftState done [11:16:30]FM_GetShiftState done [11:16:30]req_shift_opened done [11:16:30]requested_item shift.open_date is exist - process it [11:16:30]req_shift_open_date [11:16:30]req_shift_open_date done [11:16:30]produce_requested_data done [11:16:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29522,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:16:30]process_action_free close_receipt [11:16:30]json_value_free [11:16:30]json_value_free done [11:16:30]process_json_proto returns [11:16:30]Send response to host [11:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29522,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:16:30]free response buf [11:16:30]execute_script done [11:16:30]execute_script returns [11:16:30]free content buf [11:16:30]Sock 8.Close socket [11:16:30]Sock 8.Thread stoped [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:46]int [11:16:46]Write to MH i2c: 01 00 00 BE 3B F9 [11:16:46]*** FLAG_PRN_KEY set [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 BE 3B 00 08 00 00 00 FF 0F 16 [11:16:46]state=0 [11:16:46]Key pressed [11:16:46]Feed [11:16:46]Write to MH i2c: D8 00 00 BF 3B D1 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 BF 3B 00 D2 [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C0 3B FB [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C0 3B 00 48 00 00 00 3C 00 86 [11:16:46]state=2 [11:16:46]Key pressed [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C1 3B FC [11:16:46]*** FLAG_PRN_KEY reset [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C1 3B 00 00 00 00 00 F5 0F 07 [11:16:46]state=2 [11:16:46]Stop feed [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C2 3B FD [11:16:46]*** FLAG_PRN_KEY set [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C2 3B 00 08 00 00 00 FF 0F 1A [11:16:46]state=0 [11:16:46]Key pressed [11:16:46]Feed [11:16:46]Write to MH i2c: D8 00 00 C3 3B D5 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 C3 3B 00 D6 [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C4 3B FF [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C4 3B 00 48 00 00 00 3C 00 8A [11:16:46]state=2 [11:16:46]Key pressed [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C5 3B 00 [11:16:46]*** FLAG_PRN_KEY reset [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C5 3B 00 00 00 00 00 F5 0F 0B [11:16:46]state=2 [11:16:46]Stop feed [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C6 3B 01 [11:16:46]*** FLAG_PRN_KEY set [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C6 3B 00 08 00 00 00 FF 0F 1E [11:16:46]state=0 [11:16:46]Key pressed [11:16:46]Feed [11:16:46]Write to MH i2c: D8 00 00 C7 3B D9 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D8 01 00 C7 3B 00 DA [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C8 3B 03 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C8 3B 00 48 00 00 00 3C 00 8E [11:16:46]state=2 [11:16:46]Key pressed [11:16:46]int [11:16:46]Write to MH i2c: 01 00 00 C9 3B 04 [11:16:46]*** FLAG_PRN_KEY reset [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 C9 3B 00 00 00 00 00 F5 0F 0F [11:16:46]state=2 [11:16:46]Stop feed [11:16:47]int [11:16:47]Write to MH i2c: 01 00 00 CA 3B 05 [11:16:47]*** FLAG_PRN_KEY set [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 CA 3B 00 08 00 00 00 FF 0F 22 [11:16:47]state=0 [11:16:47]Key pressed [11:16:47]Feed [11:16:47]Write to MH i2c: D8 00 00 CB 3B DD [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D8 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D8 01 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D8 01 00 CB 3B 00 DE [11:16:47]int [11:16:47]Write to MH i2c: 01 00 00 CC 3B 07 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 CC 3B 00 48 00 00 00 3C 00 92 [11:16:47]state=2 [11:16:47]Key pressed [11:16:47]int [11:16:47]Write to MH i2c: 01 00 00 CD 3B 08 [11:16:47]*** FLAG_PRN_KEY reset [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 F5 0F 13 [11:16:47]state=2 [11:16:47]Stop feed [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:01]accept exits with 9 [11:18:01]New connection [11:18:01]New thread 3067112804 created [11:18:01]Thread 3066969444 joined [11:18:01]Waiting for new connection... [11:18:01] Sock 9.Parse request [11:18:01]Sock 9.Check first char [11:18:01]Sock 9.First char is OK [11:18:01]request: POST /json_proto HTTP/1.0 [11:18:01]Method: POST [11:18:01]URL: /json_proto [11:18:01]Method is POST - this is cgi request [11:18:01]url: /json_proto [11:18:01]query_string will be loaded in cgi processing [11:18:01]execute_cgi json_proto POST (null) [11:18:01]execute_cgi path=json_proto method=POST [11:18:01]POST find Content-Length [11:18:01]Host: 172.17.33.3:8080 [11:18:01]Content-Length: 1210 [11:18:01]Content-Type: application/json [11:18:01] [11:18:01]POST finish read [11:18:01]Found Content-Length = 1210 [11:18:01]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347939\u000A15.04.2024 10:59\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-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A43219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:01]execute_script... [11:18:01]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347939\u000A15.04.2024 10:59\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-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A43219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:01]POST & json_proto [11:18:01]process_json_proto [11:18:01]json parsed OK: [11:18:01]protocol is kg_v1.0 [11:18:01]action value=print_text [11:18:01]process_action print_text [11:18:01]cmd_print_text [11:18:01]ExternCall_PrintAddStr [11:18:01]wPrintStart [11:18:01]Write to MH i2c: 01 00 00 CE 3B 09 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 07 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 07 00 CE 3B 00 00 00 00 00 FF 0F 1E [11:18:01]RasterBufferAndPrint [11:18:01]line *****ТОВАРНЫЙ ЧЕК***** [11:18:01]line АЗС 108 [11:18:01]line Партнер нефть [11:18:01]line 02508201610067 [11:18:01]line Кассир : Джумагулова Н. [11:18:01]line Счет N : (1)347939 [11:18:01]line 15.04.2024 10:59 [11:18:01]line ПРОДАЖА [11:18:01]line ТРК (МРК, ГНК): 21 [11:18:01]line Вид ГСМ : 2710194210 [11:18:01]line ДТ-К-5 [11:18:01]line 30.000 x 72.90 [11:18:01]line ИТОГ: 2187.00 [11:18:01]line Тип оплаты: Талоны: Топливная Карта [11:18:01]line 43219 [11:18:01]line ______________________ [11:18:01]line (подпись) [11:18:01]written 0, free lines is 4095 [11:18:01]Write to MH i2c: 01 00 00 E3 3B 1E [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 07 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: 01 07 00 E3 3B 00 00 00 00 00 F6 0D 28 [11:18:01]RasterBufferAndPrint [11:18:01]line [11:18:01]line [11:18:01]line [11:18:01]line [11:18:01]line [11:18:01]written 0, free lines is 3576 [11:18:01]MH_Cut [11:18:01]Write to MH i2c: D1 01 00 EA 3B 01 F7 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: D1 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: D1 01 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: D1 01 00 EA 3B 00 F6 [11:18:01]Write to MH i2c: 01 00 00 EB 3B 26 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:02]*** Cut start [11:18:02]*** Partial cut [11:18:02]*** CUTSNS_PIN = 1 [11:18:02]*** CUTSNS_PIN = 0 [11:18:02]*** Brake cut motor [11:18:02]Read from MH i2c: 01 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 07 00 [11:18:02]MH_I2C_Read... [11:18:02]*** Stop cut motor [11:18:02]*** Cut end [11:18:02]Read from MH i2c: 01 07 00 EB 3B 00 00 00 00 00 FF 0F 3B [11:18:02]process_action print_text done [11:18:02]requested_data is exist [11:18:02]produce_requested_data [11:18:02]requested_item fm.sn is exist - process it [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 11 00 00 [11:18:02]Write to MH i2c: E2 08 00 EC 3B 80 11 00 00 00 00 00 00 A1 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 EC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [11:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:18:02]wFMCommunicate OK [11:18:02]requested_item fd.num is exist - process it [11:18:02]SAM_PROTO_GetFieldsCounters [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 13 00 00 [11:18:02]Write to MH i2c: E2 08 00 ED 3B 80 13 00 00 00 00 00 00 A4 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 62 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 62 00 ED 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 73 00 00 0E 04 04 00 75 00 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 78 [11:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:02]wFMCommunicate OK [11:18:02]SAM_PROTO_GetFieldsCounters done [11:18:02]requested_item shift.num is exist - process it [11:18:02]requested_item shift.opened is exist - process it [11:18:02]req_shift_opened [11:18:02]FM_GetShiftState [11:18:02]SAM_PROTO_GetShiftState [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 13 01 00 [11:18:02]Write to MH i2c: E2 08 00 EE 3B 80 13 01 00 00 00 00 00 A6 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:03]Read from MH i2c: E2 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 0E 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 0E 00 EE 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9A [11:18:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:18:03]wFMCommunicate OK [11:18:03]SAM_PROTO_GetShiftState done [11:18:03]FM_GetShiftState done [11:18:03]req_shift_opened done [11:18:03]requested_item shift.open_date is exist - process it [11:18:03]req_shift_open_date [11:18:03]req_shift_open_date done [11:18:03]produce_requested_data done [11:18:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29522,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:18:03]process_action_free print_text [11:18:03]json_value_free [11:18:03]json_value_free done [11:18:03]process_json_proto returns [11:18:03]Send response to host [11:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29522,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:18:03]free response buf [11:18:03]execute_script done [11:18:03]execute_script returns [11:18:03]free content buf [11:18:03]Sock 9.Close socket [11:18:03]Sock 9.Thread stoped [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:46]accept exits with 8 [11:21:46]New connection [11:21:46]New thread 3066969444 created [11:21:46]Thread 3067112804 joined [11:21:46]Waiting for new connection... [11:21:46] Sock 8.Parse request [11:21:46]Sock 8.Check first char [11:21:46]Sock 8.First char is OK [11:21:46]request: POST /json_proto HTTP/1.0 [11:21:46]Method: POST [11:21:46]URL: /json_proto [11:21:46]Method is POST - this is cgi request [11:21:46]url: /json_proto [11:21:46]query_string will be loaded in cgi processing [11:21:46]execute_cgi json_proto POST (null) [11:21:46]execute_cgi path=json_proto method=POST [11:21:46]POST find Content-Length [11:21:46]Host: 172.17.33.3:8080 [11:21:46]Content-Length: 671 [11:21:46]Content-Type: application/json [11:21:46] [11:21:46]POST finish read [11:21:46]Found Content-Length = 671 [11:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [11:21:46]execute_script... [11:21: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)347940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [11:21:46]POST & json_proto [11:21:46]process_json_proto [11:21:46]json parsed OK: [11:21:46]protocol is kg_v1.0 [11:21:46]action value=close_receipt [11:21:46]process_action close_receipt [11:21:46]cmd_close_receipt [11:21:46]MH_GetDate [11:21:46]Write to MH i2c: F0 00 00 EF 3B 19 [11:21:46]Write i2c OK [11:21:46]MH_I2C_Read... [11:21:46]Read from MH i2c: F0 [11:21:46]MH_I2C_Read... [11:21:46]Read from MH i2c: F0 09 00 [11:21:46]MH_I2C_Read... [11:21:46]Read from MH i2c: F0 09 00 EF 3B 00 CF 0D 1D 66 23 5B 8F 65 F3 [11:21:46]GetLastDocTimeStamp 1713179790 [11:21:46]current date 1713180111 [11:21:46]FM_GetShiftState [11:21:46]SAM_PROTO_GetShiftState [11:21:46]wFMCommunicate request_size=4 [11:21:46]MH_SAM_APDU [11:21:46]CAPDU: 80 13 01 00 [11:21:46]Write to MH i2c: E2 08 00 F0 3B 80 13 01 00 00 00 00 00 A8 [11:21:46]Write i2c OK [11:21:46]MH_I2C_Read... [11:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:46]Read from MH i2c: E2 [11:21:46]MH_I2C_Read... [11:21:46]Read from MH i2c: E2 0E 00 [11:21:46]MH_I2C_Read... [11:21:46]Read from MH i2c: E2 0E 00 F0 3B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9C [11:21:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:21:46]wFMCommunicate OK [11:21:46]SAM_PROTO_GetShiftState done [11:21:46]FM_GetShiftState done [11:21:46]opened in 1713140468 [11:21:46]opened+sec_in_day 1713226868 [11:21:46]quantity*price = 67050 [11:21:46]sum+1 = 67051 [11:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.20 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 117 15.04.2024 11:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29523 ФПД: 33031199231601 1/tax-web-control/client/api/v1/ticket?date=20240415T112151&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29523&fm=33031199231601&tin=02508201610067®Number=0000138879044617&sum=67000 [11:21:48]StoreToDocumentArchive [11:21:48]shift 117 fd 29523 [11:21:48]save to /storage/0117/doc_00029523 [11:21:48]save last doc name /storage/0117/doc_00029523 to /storage/kkm_last_doc_name [11:21:48]save OK [11:21:48]Clear old archive folders... [11:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:21:48]tlvbuf is B6F7F930 [11:21:48]SAM_PROTO_ClearQueue [11:21:48]wFMCommunicate request_size=4 [11:21:48]MH_SAM_APDU [11:21:48]CAPDU: 80 09 00 00 [11:21:48]Write to MH i2c: E2 08 00 FD 3B 80 09 00 00 00 00 00 00 AA [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 FD 3B 00 90 00 AC [11:21:48]RAPDU: 90 00 [11:21:48]wFMCommunicate OK [11:21:48]SAM_PROTO_ClearQueue done [11:21:48]KKMCreateOFDPacket [11:21:48]OFDProtocolAddRootSTLVToBuf [11:21:48]FM_MakeSignedData [11:21:48]FM_MakeSignedData [11:21:48]SAM_PROTO_SignData [11:21:48]wFMCommunicate request_size=4 [11:21:48]MH_SAM_APDU [11:21:48]CAPDU: 80 0D 01 02 [11:21:48]Write to MH i2c: E2 08 00 FE 3B 80 0D 01 02 00 00 00 00 B2 [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 FE 3B 00 90 00 AD [11:21:48]RAPDU: 90 00 [11:21:48]wFMCommunicate OK [11:21:48]wFMCommunicate request_size=255 [11:21:48]MH_SAM_APDU [11:21: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 75 00 00 00 F4 03 04 00 CF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 73 00 00 35 04 06 00 [11:21:48]Write to MH i2c: E2 02 01 FF 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 75 00 00 00 F4 03 04 00 CF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 73 00 00 35 04 06 00 00 00 FE [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 FF 3B 00 90 00 AE [11:21:48]RAPDU: 90 00 [11:21:48]wFMCommunicate OK [11:21:48]wFMCommunicate request_size=11 [11:21:48]MH_SAM_APDU [11:21:48]CAPDU: 80 0D 02 02 06 1E 0A AC E5 8E 71 [11:21:48]Write to MH i2c: E2 0E 00 00 3C 80 0D 02 02 06 00 1E 0A AC E5 8E 71 00 00 7A [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 03 00 00 3C 00 90 00 B0 [11:21:48]RAPDU: 90 00 [11:21:48]wFMCommunicate OK [11:21:48]wFMCommunicate request_size=4 [11:21:48]MH_SAM_APDU [11:21:48]CAPDU: 80 0D 03 02 [11:21:48]Write to MH i2c: E2 08 00 01 3C 80 0D 03 02 00 00 00 00 B8 [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 0B 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 0B 00 01 3C 00 0D 44 CC B2 9A 1E 38 CC 90 00 44 [11:21:48]RAPDU: 0D 44 CC B2 9A 1E 38 CC 90 00 [11:21:48]wFMCommunicate OK [11:21:48]SAM_PROTO_SignData done [11:21:48]FM_MakeSignedData done [11:21:48]CreateOFDProtocolMessage [11:21:48]wFMCommunicate request_size=4 [11:21:48]MH_SAM_APDU [11:21:48]CAPDU: 80 11 00 00 [11:21:48]Write to MH i2c: E2 08 00 02 3C 80 11 00 00 00 00 00 00 B8 [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:48]Read from MH i2c: E2 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 17 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: E2 17 00 02 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [11:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:48]wFMCommunicate OK [11:21:48]CreateOFDProtocolMessage done [11:21:48]OFDSenderStorePacket 29523 [11:21:48]StoreOFDPacket docnum=29523 [11:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F4 B1 08 01 3B F7 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 75 00 00 00 F4 03 04 00 CF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 73 00 00 35 04 06 00 1E 0A AC E5 8E 71 0D 44 CC B2 9A 1E 38 CC [11:21:48]CheckFolder [11:21:48]dirname=/storage/ofd_packets [11:21:48]CheckFolder done [11:21:48]ProducePacketName [11:21:48]name=ofd_packets/00029523 [11:21:48]NVStorageSaveData ofd_packets/00029523 [11:21:48]File name is /storage/ofd_packets/00029523 [11:21:48]Write 302 bytes [11:21:48]NVStorageSaveData done [11:21:48]OFDSenderStorePacket done [11:21:48]KKMCreateOFDPacket done [11:21:48]NVStorageSaveData kkm_last_timestamp [11:21:48]File name is /storage/kkm_last_timestamp [11:21:48]Write 4 bytes [11:21:48]NVStorageSaveData done [11:21:48]ExternCall_PrintAddStr [11:21:48]wPrintStart [11:21:48]Write to MH i2c: 01 00 00 03 3C 3F [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 07 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 07 00 03 3C 00 00 00 00 00 FF 0F 54 [11:21:48]RasterBufferAndPrint [11:21:48]line Счет N : (1)347940 [11:21:48]line ИНН: 02508201610067 [11:21:48]line Контрольно-Кассовый Чек [11:21:48]line ПРОДАЖА [11:21:48]line ТРК (МРК, ГНК) : 22 [11:21:48]line Товар: 2710124130 [11:21:48]line SUPER-92-К-5 [11:21:48]line 10.190 * 65.80 [11:21:48]line = 670.50 [11:21:48]line НДС 12% НСП 1% [11:21:48]line > о реализуемом товаре [11:21:48]line ОКРУГЛЕНИЕ: -0.50 [11:21:48]line ИТОГО: 670.00 [11:21:48]line Внесено: 670.00 [11:21:48]line СДАЧА: 0.00 [11:21:48]line НСП 1% : 5.93 [11:21:48]line НДС 12% : 71.20 [11:21:48]line Наличными: 670.00 [11:21:48]line Безнал.: 0.00 [11:21:48]line Место: АЗС № 108 "Партнер Нефть" [11:21:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:21:48]line СНО: Общий режим [11:21:48]line Чек 117 15.04.2024 11:21 [11:21:48]line Смена: 117 ФФД: 1.0 [11:21:48]line ЗНМ: 0300000027 [11:21:48]line РНМ: 0000138879044617 [11:21:48]line Версия ККМ: 001 [11:21:48]line ФМ: 0000000000963154 [11:21:48]line ФД: 29523 [11:21:48]line ФПД: 33031199231601 [11:21:48]line 1/tax-web-control/client/api/v1/ticket?date=20240415T112151&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29523&fm=33031199231601&tin=02508201610067®Number=0000138879044617&sum=67000 [11:21:48]OFD Sender: Processing packet 29523 [packets to send 8, broken 7] [11:21:48]ProducePacketName [11:21:48]name=ofd_packets/00029523 [11:21:48]OFD Sender: To server: pG, [11:21:48]CommunicateWithHost lk.salyk.kg:30040 [11:21:48]ConnectInit lk.salyk.kg [11:21:48]written 0, free lines is 4095 [11:21:49]Connected sock=10 [11:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F4 B1 08 01 3B F7 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 75 00 00 00 F4 03 04 00 CF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 73 00 00 35 04 06 00 1E 0A AC E5 8E 71 0D 44 CC B2 9A 1E 38 CC [11:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 B0 47 00 5E 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 39 36 33 31 35 34 10 04 04 00 53 73 00 00 F4 03 04 00 70 B8 1C 66 B6 04 01 00 00 A0 8B 9F 0F 6E 60 85 02 [11:21:49]CommunicateWithHost err = 0 [11:21:49]CheckOFDResponse [11:21:49]1017 (14) - 77093643461234 [11:21:49]1041 (16) - 0000000000963154 [11:21:49]1040 (4) - 29523 [11:21:49]1012 (4) - 15.04.2024 05:17 [11:21:49]1206 (1) - 0 [11:21:49]OFD Sender: Remove packet 29523 [11:21:49]ProducePacketName [11:21:49]name=ofd_packets/00029523 [11:21:49]NVStorageDeleteData [11:21:49]Write to MH i2c: 01 00 00 2D 3C 69 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: 01 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: 01 07 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: 01 07 00 2D 3C 00 00 00 00 00 BD 0C 39 [11:21:49]RasterBufferAndPrint [11:21:49]line [11:21:49]line [11:21:49]line [11:21:49]line [11:21:49]line [11:21:49]written 0, free lines is 3265 [11:21:49]MH_Cut [11:21:49]Write to MH i2c: D1 01 00 34 3C 01 42 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: D1 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: D1 01 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: D1 01 00 34 3C 00 41 [11:21:49]Write to MH i2c: 01 00 00 35 3C 71 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]OFD Sender: No OFD packet to send [11:21:50]*** Cut start [11:21:50]*** Partial cut [11:21:50]*** CUTSNS_PIN = 1 [11:21:50]*** CUTSNS_PIN = 0 [11:21:50]*** Brake cut motor [11:21:50]Read from MH i2c: 01 [11:21:50]MH_I2C_Read... [11:21:50]*** Stop cut motor [11:21:50]*** Cut end [11:21:50]Read from MH i2c: 01 07 00 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: 01 07 00 35 3C 00 00 00 00 00 FF 0F 86 [11:21:50]process_action close_receipt done [11:21:50]requested_data is exist [11:21:50]produce_requested_data [11:21:50]requested_item fm.sn is exist - process it [11:21:50]wFMCommunicate request_size=4 [11:21:50]MH_SAM_APDU [11:21:50]CAPDU: 80 11 00 00 [11:21:50]Write to MH i2c: E2 08 00 36 3C 80 11 00 00 00 00 00 00 EC [11:21:50]Write i2c OK [11:21:50]MH_I2C_Read... [11:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:50]Read from MH i2c: E2 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 17 00 [11:21:50]MH_I2C_Read... [11:21:50]Read from MH i2c: E2 17 00 36 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [11:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:50]wFMCommunicate OK [11:21:50]requested_item fd.num is exist - process it [11:21:50]SAM_PROTO_GetFieldsCounters [11:21:50]wFMCommunicate request_size=4 [11:21:50]MH_SAM_APDU [11:21:50]CAPDU: 80 13 00 00 [11:21:50]Write to MH i2c: E2 08 00 37 3C 80 13 00 00 00 00 00 00 EF [11:21:50]Write i2c OK [11:21:50]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 62 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 62 00 37 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 73 00 00 0E 04 04 00 75 00 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 C7 [11:21:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_GetFieldsCounters done [11:21:51]requested_item shift.num is exist - process it [11:21:51]requested_item shift.opened is exist - process it [11:21:51]req_shift_opened [11:21:51]FM_GetShiftState [11:21:51]SAM_PROTO_GetShiftState [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 13 01 00 [11:21:51]Write to MH i2c: E2 08 00 38 3C 80 13 01 00 00 00 00 00 F1 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0E 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0E 00 38 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E5 [11:21:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_GetShiftState done [11:21:51]FM_GetShiftState done [11:21:51]req_shift_opened done [11:21:51]requested_item shift.open_date is exist - process it [11:21:51]req_shift_open_date [11:21:51]req_shift_open_date done [11:21:51]produce_requested_data done [11:21:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29523,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:21:51]process_action_free close_receipt [11:21:51]json_value_free [11:21:51]json_value_free done [11:21:51]process_json_proto returns [11:21:51]Send response to host [11:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29523,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:21:51]free response buf [11:21:51]execute_script done [11:21:51]execute_script returns [11:21:51]free content buf [11:21:51]Sock 8.Close socket [11:21:51]Sock 8.Thread stoped [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:03]accept exits with 9 [11:22:03]New connection [11:22:03]New thread 3067112804 created [11:22:03]Thread 3066969444 joined [11:22:03]Waiting for new connection... [11:22:03] Sock 9.Parse request [11:22:03]Sock 9.Check first char [11:22:03]Sock 9.First char is OK [11:22:03]request: POST /json_proto HTTP/1.0 [11:22:03]Method: POST [11:22:03]URL: /json_proto [11:22:03]Method is POST - this is cgi request [11:22:03]url: /json_proto [11:22:03]query_string will be loaded in cgi processing [11:22:03]execute_cgi json_proto POST (null) [11:22:03]execute_cgi path=json_proto method=POST [11:22:03]POST find Content-Length [11:22:03]Host: 172.17.33.3:8080 [11:22:03]Content-Length: 682 [11:22:03]Content-Type: application/json [11:22:03] [11:22:03]POST finish read [11:22:03]Found Content-Length = 682 [11:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:03]execute_script... [11: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)347942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:03]POST & json_proto [11:22:03]process_json_proto [11:22:03]json parsed OK: [11:22:03]protocol is kg_v1.0 [11:22:03]action value=close_receipt [11:22:03]process_action close_receipt [11:22:03]cmd_close_receipt [11:22:03]MH_GetDate [11:22:03]Write to MH i2c: F0 00 00 39 3C 64 [11:22:03]Write i2c OK [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: F0 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: F0 09 00 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: F0 09 00 39 3C 00 DF 0D 1D 66 23 5B 8F 65 4E [11:22:03]GetLastDocTimeStamp 1713180111 [11:22:03]current date 1713180127 [11:22:03]FM_GetShiftState [11:22:03]SAM_PROTO_GetShiftState [11:22:03]wFMCommunicate request_size=4 [11:22:03]MH_SAM_APDU [11:22:03]CAPDU: 80 13 01 00 [11:22:03]Write to MH i2c: E2 08 00 3A 3C 80 13 01 00 00 00 00 00 F3 [11:22:03]Write i2c OK [11:22:03]MH_I2C_Read... [11:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:03]Read from MH i2c: E2 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: E2 0E 00 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: E2 0E 00 3A 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E7 [11:22:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:22:03]wFMCommunicate OK [11:22:03]SAM_PROTO_GetShiftState done [11:22:03]FM_GetShiftState done [11:22:03]opened in 1713140468 [11:22:03]opened+sec_in_day 1713226868 [11:22:03]quantity*price = 100051 [11:22:03]sum+1 = 100052 [11:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 118 15.04.2024 11:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29524 ФПД: 141548007204498 1/tax-web-control/client/api/v1/ticket?date=20240415T112207&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29524&fm=141548007204498&tin=02508201610067®Number=0000138879044617&sum=100000 [11:22:04]StoreToDocumentArchive [11:22:04]shift 117 fd 29524 [11:22:04]save to /storage/0117/doc_00029524 [11:22:04]save last doc name /storage/0117/doc_00029524 to /storage/kkm_last_doc_name [11:22:04]save OK [11:22:04]Clear old archive folders... [11:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:04]tlvbuf is B6F7F530 [11:22:04]SAM_PROTO_ClearQueue [11:22:04]wFMCommunicate request_size=4 [11:22:04]MH_SAM_APDU [11:22:04]CAPDU: 80 09 00 00 [11:22:04]Write to MH i2c: E2 08 00 47 3C 80 09 00 00 00 00 00 00 F5 [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:04]Read from MH i2c: E2 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 03 00 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 03 00 47 3C 00 90 00 F7 [11:22:04]RAPDU: 90 00 [11:22:04]wFMCommunicate OK [11:22:04]SAM_PROTO_ClearQueue done [11:22:04]KKMCreateOFDPacket [11:22:04]OFDProtocolAddRootSTLVToBuf [11:22:04]FM_MakeSignedData [11:22:04]FM_MakeSignedData [11:22:04]SAM_PROTO_SignData [11:22:04]wFMCommunicate request_size=4 [11:22:04]MH_SAM_APDU [11:22:04]CAPDU: 80 0D 01 02 [11:22:04]Write to MH i2c: E2 08 00 48 3C 80 0D 01 02 00 00 00 00 FD [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:04]OFD Sender: No OFD packet to send [11:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:04]Read from MH i2c: E2 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 03 00 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 03 00 48 3C 00 90 00 F8 [11:22:04]RAPDU: 90 00 [11:22:04]wFMCommunicate OK [11:22:04]wFMCommunicate request_size=255 [11:22:04]MH_SAM_APDU [11:22: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 73 00 00 35 04 06 00 80 [11:22:04]Write to MH i2c: E2 02 01 49 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 73 00 00 35 04 06 00 80 00 00 84 [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 03 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 03 00 49 3C 00 90 00 F9 [11:22:05]RAPDU: 90 00 [11:22:05]wFMCommunicate OK [11:22:05]wFMCommunicate request_size=10 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 0D 02 02 05 BC B6 B0 26 92 [11:22:05]Write to MH i2c: E2 0D 00 4A 3C 80 0D 02 02 05 00 BC B6 B0 26 92 00 00 E4 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 03 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 03 00 4A 3C 00 90 00 FA [11:22:05]RAPDU: 90 00 [11:22:05]wFMCommunicate OK [11:22:05]wFMCommunicate request_size=4 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 0D 03 02 [11:22:05]Write to MH i2c: E2 08 00 4B 3C 80 0D 03 02 00 00 00 00 02 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0B 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0B 00 4B 3C 00 F7 AD 99 A0 AD 07 66 77 90 00 71 [11:22:05]RAPDU: F7 AD 99 A0 AD 07 66 77 90 00 [11:22:05]wFMCommunicate OK [11:22:05]SAM_PROTO_SignData done [11:22:05]FM_MakeSignedData done [11:22:05]CreateOFDProtocolMessage [11:22:05]wFMCommunicate request_size=4 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 11 00 00 [11:22:05]Write to MH i2c: E2 08 00 4C 3C 80 11 00 00 00 00 00 00 02 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 17 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 17 00 4C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [11:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:22:05]wFMCommunicate OK [11:22:05]CreateOFDProtocolMessage done [11:22:05]OFDSenderStorePacket 29524 [11:22:05]StoreOFDPacket docnum=29524 [11:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4A 4F 07 01 C2 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 73 00 00 35 04 06 00 80 BC B6 B0 26 92 F7 AD 99 A0 AD 07 66 77 [11:22:05]CheckFolder [11:22:05]dirname=/storage/ofd_packets [11:22:05]CheckFolder done [11:22:05]ProducePacketName [11:22:05]name=ofd_packets/00029524 [11:22:05]NVStorageSaveData ofd_packets/00029524 [11:22:05]File name is /storage/ofd_packets/00029524 [11:22:05]Write 301 bytes [11:22:05]NVStorageSaveData done [11:22:05]OFDSenderStorePacket done [11:22:05]KKMCreateOFDPacket done [11:22:05]NVStorageSaveData kkm_last_timestamp [11:22:05]File name is /storage/kkm_last_timestamp [11:22:05]Write 4 bytes [11:22:05]NVStorageSaveData done [11:22:05]ExternCall_PrintAddStr [11:22:05]wPrintStart [11:22:05]Write to MH i2c: 01 00 00 4D 3C 89 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 07 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 07 00 4D 3C 00 00 00 00 00 FF 0F 9E [11:22:05]RasterBufferAndPrint [11:22:05]line Счет N : (1)347942 [11:22:05]line ИНН: 02508201610067 [11:22:05]line Контрольно-Кассовый Чек [11:22:05]line ПРОДАЖА [11:22:05]line ТРК (МРК, ГНК) : 42 [11:22:05]line Товар: 2710124130 [11:22:05]line Аи-92-К-5 [11:22:05]line 15.440 * 64.80 [11:22:05]line = 1000.51 [11:22:05]line НДС 12% НСП 1% [11:22:05]line > о реализуемом товаре [11:22:05]line ОКРУГЛЕНИЕ: -0.51 [11:22:05]line ИТОГО: 1000.00 [11:22:05]line Внесено: 1000.00 [11:22:05]line СДАЧА: 0.00 [11:22:05]line НСП 1% : 8.85 [11:22:05]line НДС 12% : 106.25 [11:22:05]line Наличными: 1000.00 [11:22:05]line Безнал.: 0.00 [11:22:05]line Место: АЗС № 108 "Партнер Нефть" [11:22:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:22:05]line СНО: Общий режим [11:22:05]line Чек 118 15.04.2024 11:22 [11:22:05]line Смена: 117 ФФД: 1.0 [11:22:05]line ЗНМ: 0300000027 [11:22:05]line РНМ: 0000138879044617 [11:22:05]line Версия ККМ: 001 [11:22:05]line ФМ: 0000000000963154 [11:22:05]line ФД: 29524 [11:22:05]line ФПД: 141548007204498 [11:22:05]line 1/tax-web-control/client/api/v1/ticket?date=20240415T112207&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29524&fm=141548007204498&tin=02508201610067®Number=0000138879044617&sum=100000 [11:22:05]written 0, free lines is 4095 [11:22:05]OFD Sender: Processing packet 29524 [packets to send 8, broken 7] [11:22:05]ProducePacketName [11:22:05]name=ofd_packets/00029524 [11:22:05]OFD Sender: To server: pG, [11:22:05]CommunicateWithHost lk.salyk.kg:30040 [11:22:05]ConnectInit lk.salyk.kg [11:22:05]Connected sock=10 [11:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4A 4F 07 01 C2 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 DF 0D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 73 00 00 35 04 06 00 80 BC B6 B0 26 92 F7 AD 99 A0 AD 07 66 77 [11:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 93 FA 47 00 0F 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 39 36 33 31 35 34 10 04 04 00 54 73 00 00 F4 03 04 00 80 B8 1C 66 B6 04 01 00 00 4D 05 94 52 2E 5E F5 53 [11:22:05]CommunicateWithHost err = 0 [11:22:05]CheckOFDResponse [11:22:05]1017 (14) - 77093643461234 [11:22:05]1041 (16) - 0000000000963154 [11:22:05]1040 (4) - 29524 [11:22:05]1012 (4) - 15.04.2024 05:17 [11:22:05]1206 (1) - 0 [11:22:05]OFD Sender: Remove packet 29524 [11:22:05]ProducePacketName [11:22:05]name=ofd_packets/00029524 [11:22:05]NVStorageDeleteData [11:22:05]Write to MH i2c: 01 00 00 77 3C B3 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 07 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 07 00 77 3C 00 00 00 00 00 C0 0C 86 [11:22:05]RasterBufferAndPrint [11:22:05]line [11:22:05]line [11:22:05]line [11:22:05]line [11:22:05]line [11:22:05]written 0, free lines is 3269 [11:22:05]MH_Cut [11:22:05]Write to MH i2c: D1 01 00 7E 3C 01 8C [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: D1 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: D1 01 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: D1 01 00 7E 3C 00 8B [11:22:05]Write to MH i2c: 01 00 00 7F 3C BB [11:22:06]Write i2c OK [11:22:06]MH_I2C_Read... [11:22:06]OFD Sender: No OFD packet to send [11:22:06]*** Cut start [11:22:06]*** Partial cut [11:22:06]*** CUTSNS_PIN = 1 [11:22:06]*** CUTSNS_PIN = 0 [11:22:07]*** Brake cut motor [11:22:07]Read from MH i2c: 01 [11:22:07]MH_I2C_Read... [11:22:07]*** Stop cut motor [11:22:07]*** Cut end [11:22:07]Read from MH i2c: 01 07 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: 01 07 00 7F 3C 00 00 00 00 00 FF 0F D0 [11:22:07]process_action close_receipt done [11:22:07]requested_data is exist [11:22:07]produce_requested_data [11:22:07]requested_item fm.sn is exist - process it [11:22:07]wFMCommunicate request_size=4 [11:22:07]MH_SAM_APDU [11:22:07]CAPDU: 80 11 00 00 [11:22:07]Write to MH i2c: E2 08 00 80 3C 80 11 00 00 00 00 00 00 36 [11:22:07]Write i2c OK [11:22:07]MH_I2C_Read... [11:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:07]Read from MH i2c: E2 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 17 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 17 00 80 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [11:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:22:07]wFMCommunicate OK [11:22:07]requested_item fd.num is exist - process it [11:22:07]SAM_PROTO_GetFieldsCounters [11:22:07]wFMCommunicate request_size=4 [11:22:07]MH_SAM_APDU [11:22:07]CAPDU: 80 13 00 00 [11:22:07]Write to MH i2c: E2 08 00 81 3C 80 13 00 00 00 00 00 00 39 [11:22:07]Write i2c OK [11:22:07]MH_I2C_Read... [11:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:07]Read from MH i2c: E2 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 62 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 62 00 81 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 73 00 00 0E 04 04 00 75 00 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 15 [11:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:07]wFMCommunicate OK [11:22:07]SAM_PROTO_GetFieldsCounters done [11:22:07]requested_item shift.num is exist - process it [11:22:07]requested_item shift.opened is exist - process it [11:22:07]req_shift_opened [11:22:07]FM_GetShiftState [11:22:07]SAM_PROTO_GetShiftState [11:22:07]wFMCommunicate request_size=4 [11:22:07]MH_SAM_APDU [11:22:07]CAPDU: 80 13 01 00 [11:22:07]Write to MH i2c: E2 08 00 82 3C 80 13 01 00 00 00 00 00 3B [11:22:07]Write i2c OK [11:22:07]MH_I2C_Read... [11:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:07]Read from MH i2c: E2 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 0E 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 0E 00 82 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2F [11:22:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:22:07]wFMCommunicate OK [11:22:07]SAM_PROTO_GetShiftState done [11:22:07]FM_GetShiftState done [11:22:07]req_shift_opened done [11:22:07]requested_item shift.open_date is exist - process it [11:22:07]req_shift_open_date [11:22:07]req_shift_open_date done [11:22:07]produce_requested_data done [11:22:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29524,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:22:07]process_action_free close_receipt [11:22:07]json_value_free [11:22:07]json_value_free done [11:22:07]process_json_proto returns [11:22:07]Send response to host [11:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29524,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:22:07]free response buf [11:22:07]execute_script done [11:22:07]execute_script returns [11:22:07]free content buf [11:22:07]Sock 9.Close socket [11:22:07]Sock 9.Thread stoped [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 83 3C BF [11:23:34]*** FLAG_PRN_KEY set [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 83 3C 00 08 00 00 00 FF 0F DC [11:23:34]state=0 [11:23:34]Key pressed [11:23:34]Feed [11:23:34]Write to MH i2c: D8 00 00 84 3C 97 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 84 3C 00 98 [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 85 3C C1 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 85 3C 00 48 00 00 00 3C 00 4C [11:23:34]state=2 [11:23:34]Key pressed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 86 3C C2 [11:23:34]*** FLAG_PRN_KEY reset [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 86 3C 00 00 00 00 00 F6 0F CE [11:23:34]state=2 [11:23:34]Stop feed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 87 3C C3 [11:23:34]*** FLAG_PRN_KEY set [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 87 3C 00 08 00 00 00 FF 0F E0 [11:23:34]state=0 [11:23:34]Key pressed [11:23:34]Feed [11:23:34]Write to MH i2c: D8 00 00 88 3C 9B [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 88 3C 00 9C [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 89 3C C5 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 89 3C 00 48 00 00 00 3C 00 50 [11:23:34]state=2 [11:23:34]Key pressed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 8A 3C C6 [11:23:34]*** FLAG_PRN_KEY reset [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 8A 3C 00 00 00 00 00 F6 0F D2 [11:23:34]state=2 [11:23:34]Stop feed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 8B 3C C7 [11:23:34]*** FLAG_PRN_KEY set [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 8B 3C 00 08 00 00 00 FF 0F E4 [11:23:34]state=0 [11:23:34]Key pressed [11:23:34]Feed [11:23:34]Write to MH i2c: D8 00 00 8C 3C 9F [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 8C 3C 00 A0 [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 8D 3C C9 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 8D 3C 00 48 00 00 00 3C 00 54 [11:23:34]state=2 [11:23:34]Key pressed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 8E 3C CA [11:23:34]*** FLAG_PRN_KEY reset [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 8E 3C 00 00 00 00 00 F5 0F D5 [11:23:34]state=2 [11:23:34]Stop feed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 8F 3C CB [11:23:34]*** FLAG_PRN_KEY set [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 8F 3C 00 08 00 00 00 FF 0F E8 [11:23:34]state=0 [11:23:34]Key pressed [11:23:34]Feed [11:23:34]Write to MH i2c: D8 00 00 90 3C A3 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: D8 01 00 90 3C 00 A4 [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 91 3C CD [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 91 3C 00 48 00 00 00 3C 00 58 [11:23:34]state=2 [11:23:34]Key pressed [11:23:34]int [11:23:34]Write to MH i2c: 01 00 00 92 3C CE [11:23:34]*** FLAG_PRN_KEY reset [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 92 3C 00 00 00 00 00 F5 0F D9 [11:23:34]state=2 [11:23:34]Stop feed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 93 3C CF [11:23:35]*** FLAG_PRN_KEY set [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 93 3C 00 08 00 00 00 FF 0F EC [11:23:35]state=0 [11:23:35]Key pressed [11:23:35]Feed [11:23:35]Write to MH i2c: D8 00 00 94 3C A7 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 94 3C 00 A8 [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 95 3C D1 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 95 3C 00 48 00 00 00 3C 00 5C [11:23:35]state=2 [11:23:35]Key pressed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 96 3C D2 [11:23:35]*** FLAG_PRN_KEY reset [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 96 3C 00 00 00 00 00 F5 0F DD [11:23:35]state=2 [11:23:35]Stop feed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 97 3C D3 [11:23:35]*** FLAG_PRN_KEY set [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 97 3C 00 08 00 00 00 FF 0F F0 [11:23:35]state=0 [11:23:35]Key pressed [11:23:35]Feed [11:23:35]Write to MH i2c: D8 00 00 98 3C AB [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 98 3C 00 AC [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 99 3C D5 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 99 3C 00 48 00 00 00 3C 00 60 [11:23:35]state=2 [11:23:35]Key pressed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 9A 3C D6 [11:23:35]*** FLAG_PRN_KEY reset [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 9A 3C 00 00 00 00 00 F5 0F E1 [11:23:35]state=2 [11:23:35]Stop feed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 9B 3C D7 [11:23:35]*** FLAG_PRN_KEY set [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 9B 3C 00 08 00 00 00 FF 0F F4 [11:23:35]state=0 [11:23:35]Key pressed [11:23:35]Feed [11:23:35]Write to MH i2c: D8 00 00 9C 3C AF [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 9C 3C 00 B0 [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 9D 3C D9 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 9D 3C 00 48 00 00 00 3C 00 64 [11:23:35]state=2 [11:23:35]Key pressed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 9E 3C DA [11:23:35]*** FLAG_PRN_KEY reset [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 F5 0F E5 [11:23:35]state=2 [11:23:35]Stop feed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 9F 3C DB [11:23:35]*** FLAG_PRN_KEY set [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 9F 3C 00 08 00 00 00 FF 0F F8 [11:23:35]state=0 [11:23:35]Key pressed [11:23:35]Feed [11:23:35]Write to MH i2c: D8 00 00 A0 3C B3 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 A0 3C 00 B4 [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 A1 3C DD [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 A1 3C 00 48 00 00 00 3C 00 68 [11:23:35]state=2 [11:23:35]Key pressed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 A2 3C DE [11:23:35]*** FLAG_PRN_KEY reset [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 A2 3C 00 00 00 00 00 F5 0F E9 [11:23:35]state=2 [11:23:35]Stop feed [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 A3 3C DF [11:23:35]*** FLAG_PRN_KEY set [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 A3 3C 00 08 00 00 00 FF 0F FC [11:23:35]state=0 [11:23:35]Key pressed [11:23:35]Feed [11:23:35]Write to MH i2c: D8 00 00 A4 3C B7 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: D8 01 00 A4 3C 00 B8 [11:23:35]int [11:23:35]Write to MH i2c: 01 00 00 A5 3C E1 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 A5 3C 00 48 00 00 00 3C 00 6C [11:23:35]state=2 [11:23:35]Key pressed [11:23:36]int [11:23:36]Write to MH i2c: 01 00 00 A6 3C E2 [11:23:36]*** FLAG_PRN_KEY reset [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 A6 3C 00 00 00 00 00 F6 0F EE [11:23:36]state=2 [11:23:36]Stop feed [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]accept exits with 8 [11:25:01]New connection [11:25:01]New thread 3066969444 created [11:25:01]Thread 3067112804 joined [11:25:01]Waiting for new connection... [11:25:01] Sock 8.Parse request [11:25:01]Sock 8.Check first char [11:25:01]Sock 8.First char is OK [11:25:01]request: POST /json_proto HTTP/1.0 [11:25:01]Method: POST [11:25:01]URL: /json_proto [11:25:01]Method is POST - this is cgi request [11:25:01]url: /json_proto [11:25:01]query_string will be loaded in cgi processing [11:25:01]execute_cgi json_proto POST (null) [11:25:01]execute_cgi path=json_proto method=POST [11:25:01]POST find Content-Length [11:25:01]Host: 172.17.33.3:8080 [11:25:01]Content-Length: 822 [11:25:01]Content-Type: application/json [11:25:01] [11:25:01]POST finish read [11:25:01]Found Content-Length = 822 [11:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:01]execute_script... [11:25: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)347941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:01]POST & json_proto [11:25:01]process_json_proto [11:25:01]json parsed OK: [11:25:01]protocol is kg_v1.0 [11:25:01]action value=close_receipt [11:25:01]process_action close_receipt [11:25:01]cmd_close_receipt [11:25:01]MH_GetDate [11:25:01]Write to MH i2c: F0 00 00 A7 3C D2 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 09 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: F0 09 00 A7 3C 00 91 0E 1D 66 23 5B 8F 65 6F [11:25:01]GetLastDocTimeStamp 1713180127 [11:25:01]current date 1713180305 [11:25:01]FM_GetShiftState [11:25:01]SAM_PROTO_GetShiftState [11:25:01]wFMCommunicate request_size=4 [11:25:01]MH_SAM_APDU [11:25:01]CAPDU: 80 13 01 00 [11:25:01]Write to MH i2c: E2 08 00 A8 3C 80 13 01 00 00 00 00 00 61 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:01]Read from MH i2c: E2 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: E2 0E 00 A8 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 55 [11:25:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:25:01]wFMCommunicate OK [11:25:01]SAM_PROTO_GetShiftState done [11:25:01]FM_GetShiftState done [11:25:01]opened in 1713140468 [11:25:01]opened+sec_in_day 1713226868 [11:25:01]quantity*price = 150032 [11:25:01]sum+1 = 150034 [11:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 119 15.04.2024 11:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29525 ФПД: 276938171137515 1/tax-web-control/client/api/v1/ticket?date=20240415T112505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29525&fm=276938171137515&tin=02508201610067®Number=0000138879044617&sum=150033 [11:25:02]StoreToDocumentArchive [11:25:02]shift 117 fd 29525 [11:25:02]save to /storage/0117/doc_00029525 [11:25:02]save last doc name /storage/0117/doc_00029525 to /storage/kkm_last_doc_name [11:25:02]save OK [11:25:02]Clear old archive folders... [11:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:25:02]tlvbuf is B6F7C880 [11:25:02]SAM_PROTO_ClearQueue [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 09 00 00 [11:25:02]Write to MH i2c: E2 08 00 B5 3C 80 09 00 00 00 00 00 00 63 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 B5 3C 00 90 00 65 [11:25:02]RAPDU: 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_ClearQueue done [11:25:02]KKMCreateOFDPacket [11:25:02]OFDProtocolAddRootSTLVToBuf [11:25:02]FM_MakeSignedData [11:25:02]FM_MakeSignedData [11:25:02]SAM_PROTO_SignData [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 0D 01 02 [11:25:02]Write to MH i2c: E2 08 00 B6 3C 80 0D 01 02 00 00 00 00 6B [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 B6 3C 00 90 00 66 [11:25:02]RAPDU: 90 00 [11:25:02]wFMCommunicate OK [11:25:02]wFMCommunicate request_size=255 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 0E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 73 00 00 35 04 06 00 FB DF [11:25:02]Write to MH i2c: E2 02 01 B7 3C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 0E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 73 00 00 35 04 06 00 FB DF 00 00 F9 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 B7 3C 00 90 00 67 [11:25:02]RAPDU: 90 00 [11:25:02]wFMCommunicate OK [11:25:02]wFMCommunicate request_size=9 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 0D 02 02 04 B1 50 BD EB [11:25:02]Write to MH i2c: E2 0C 00 B8 3C 80 0D 02 02 04 00 B1 50 BD EB 00 00 1F [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 03 00 B8 3C 00 90 00 68 [11:25:02]RAPDU: 90 00 [11:25:02]wFMCommunicate OK [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 0D 03 02 [11:25:02]Write to MH i2c: E2 08 00 B9 3C 80 0D 03 02 00 00 00 00 70 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0B 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0B 00 B9 3C 00 9F 5E D3 F3 20 00 BD 02 90 00 13 [11:25:02]RAPDU: 9F 5E D3 F3 20 00 BD 02 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_SignData done [11:25:02]FM_MakeSignedData done [11:25:02]CreateOFDProtocolMessage [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 11 00 00 [11:25:02]Write to MH i2c: E2 08 00 BA 3C 80 11 00 00 00 00 00 00 70 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 BA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [11:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:25:03]wFMCommunicate OK [11:25:03]CreateOFDProtocolMessage done [11:25:03]OFDSenderStorePacket 29525 [11:25:03]StoreOFDPacket docnum=29525 [11:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D7 25 06 01 4C 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 0E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 73 00 00 35 04 06 00 FB DF B1 50 BD EB 9F 5E D3 F3 20 00 BD 02 [11:25:03]CheckFolder [11:25:03]dirname=/storage/ofd_packets [11:25:03]CheckFolder done [11:25:03]ProducePacketName [11:25:03]name=ofd_packets/00029525 [11:25:03]NVStorageSaveData ofd_packets/00029525 [11:25:03]File name is /storage/ofd_packets/00029525 [11:25:03]Write 300 bytes [11:25:03]NVStorageSaveData done [11:25:03]OFDSenderStorePacket done [11:25:03]KKMCreateOFDPacket done [11:25:03]NVStorageSaveData kkm_last_timestamp [11:25:03]File name is /storage/kkm_last_timestamp [11:25:03]Write 4 bytes [11:25:03]NVStorageSaveData done [11:25:03]ExternCall_PrintAddStr [11:25:03]wPrintStart [11:25:03]Write to MH i2c: 01 00 00 BB 3C F7 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 BB 3C 00 00 00 00 00 FF 0F 0C [11:25:03]RasterBufferAndPrint [11:25:03]line Счет N : (1)347941 [11:25:03]line ИНН: 02508201610067 [11:25:03]line Контрольно-Кассовый Чек [11:25:03]line ПРОДАЖА [11:25:03]line ТРК (МРК, ГНК) : 71 [11:25:03]line Товар: 2711129700 [11:25:03]line ГАЗ-К-5 [11:25:03]line 44.920 * 33.40 [11:25:03]line = 1500.33 [11:25:03]line НДС 12% НСП 1% [11:25:03]line > о реализуемом товаре [11:25:03]line ИТОГО: 1500.33 [11:25:03]line НСП 1% : 13.28 [11:25:03]line НДС 12% : 159.33 [11:25:03]line Наличными: 0.00 [11:25:03]line Безнал.: 1500.33 [11:25:03]line Место: АЗС № 108 "Партнер Нефть" [11:25:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:25:03]line СНО: Общий режим [11:25:03]line Чек 119 15.04.2024 11:25 [11:25:03]line Смена: 117 ФФД: 1.0 [11:25:03]line ЗНМ: 0300000027 [11:25:03]line РНМ: 0000138879044617 [11:25:03]line Версия ККМ: 001 [11:25:03]line Платежная система: Бакай Банк [11:25:03]line ФМ: 0000000000963154 [11:25:03]line ФД: 29525 [11:25:03]line ФПД: 276938171137515 [11:25:03]line 1/tax-web-control/client/api/v1/ticket?date=20240415T112505&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29525&fm=276938171137515&tin=02508201610067®Number=0000138879044617&sum=150033 [11:25:03]OFD Sender: Processing packet 29525 [packets to send 8, broken 7] [11:25:03]ProducePacketName [11:25:03]name=ofd_packets/00029525 [11:25:03]OFD Sender: To server: pG, [11:25:03]CommunicateWithHost lk.salyk.kg:30040 [11:25:03]ConnectInit lk.salyk.kg [11:25:03]written 0, free lines is 4095 [11:25:03]Connected sock=11 [11:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D7 25 06 01 4C 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 91 0E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 73 00 00 35 04 06 00 FB DF B1 50 BD EB 9F 5E D3 F3 20 00 BD 02 [11:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA 2D 47 00 C3 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 39 36 33 31 35 34 10 04 04 00 55 73 00 00 F4 03 04 00 32 B9 1C 66 B6 04 01 00 00 AD 6C 92 B9 98 DA 2C 36 [11:25:03]CommunicateWithHost err = 0 [11:25:03]CheckOFDResponse [11:25:03]1017 (14) - 77093643461234 [11:25:03]1041 (16) - 0000000000963154 [11:25:03]1040 (4) - 29525 [11:25:03]1012 (4) - 15.04.2024 05:20 [11:25:03]1206 (1) - 0 [11:25:03]OFD Sender: Remove packet 29525 [11:25:03]ProducePacketName [11:25:03]name=ofd_packets/00029525 [11:25:03]NVStorageDeleteData [11:25:03]Write to MH i2c: 01 00 00 E4 3C 20 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 E4 3C 00 00 00 00 00 D2 0C 05 [11:25:03]RasterBufferAndPrint [11:25:03]line [11:25:03]line [11:25:03]line [11:25:03]line [11:25:03]line [11:25:03]written 0, free lines is 3286 [11:25:03]MH_Cut [11:25:03]Write to MH i2c: D1 01 00 EB 3C 01 F9 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: D1 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: D1 01 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: D1 01 00 EB 3C 00 F8 [11:25:03]Write to MH i2c: 01 00 00 EC 3C 28 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:04]OFD Sender: No OFD packet to send [11:25:04]*** Cut start [11:25:04]*** Partial cut [11:25:04]*** CUTSNS_PIN = 1 [11:25:04]*** CUTSNS_PIN = 0 [11:25:04]*** Brake cut motor [11:25:05]Read from MH i2c: 01 [11:25:05]MH_I2C_Read... [11:25:05]*** Stop cut motor [11:25:05]*** Cut end [11:25:05]Read from MH i2c: 01 07 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 EC 3C 00 00 00 00 00 FF 0F 3D [11:25:05]process_action close_receipt done [11:25:05]requested_data is exist [11:25:05]produce_requested_data [11:25:05]requested_item fm.sn is exist - process it [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 11 00 00 [11:25:05]Write to MH i2c: E2 08 00 ED 3C 80 11 00 00 00 00 00 00 A3 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 ED 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [11:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:25:05]wFMCommunicate OK [11:25:05]requested_item fd.num is exist - process it [11:25:05]SAM_PROTO_GetFieldsCounters [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 13 00 00 [11:25:05]Write to MH i2c: E2 08 00 EE 3C 80 13 00 00 00 00 00 00 A6 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 62 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 62 00 EE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 73 00 00 0E 04 04 00 75 00 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 86 [11:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:05]wFMCommunicate OK [11:25:05]SAM_PROTO_GetFieldsCounters done [11:25:05]requested_item shift.num is exist - process it [11:25:05]requested_item shift.opened is exist - process it [11:25:05]req_shift_opened [11:25:05]FM_GetShiftState [11:25:05]SAM_PROTO_GetShiftState [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 13 01 00 [11:25:05]Write to MH i2c: E2 08 00 EF 3C 80 13 01 00 00 00 00 00 A8 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0E 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0E 00 EF 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9C [11:25:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:25:05]wFMCommunicate OK [11:25:05]SAM_PROTO_GetShiftState done [11:25:05]FM_GetShiftState done [11:25:05]req_shift_opened done [11:25:05]requested_item shift.open_date is exist - process it [11:25:05]req_shift_open_date [11:25:05]req_shift_open_date done [11:25:05]produce_requested_data done [11:25:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29525,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:25:05]process_action_free close_receipt [11:25:05]json_value_free [11:25:05]json_value_free done [11:25:05]process_json_proto returns [11:25:05]Send response to host [11:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29525,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:25:05]free response buf [11:25:05]execute_script done [11:25:05]execute_script returns [11:25:05]free content buf [11:25:05]Sock 8.Close socket [11:25:05]Sock 8.Thread stoped [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:41]accept exits with 9 [11:28:41]New connection [11:28:41]New thread 3067112804 created [11:28:41]Thread 3066969444 joined [11:28:41]Waiting for new connection... [11:28:41] Sock 9.Parse request [11:28:41]Sock 9.Check first char [11:28:41]Sock 9.First char is OK [11:28:41]request: POST /json_proto HTTP/1.0 [11:28:41]Method: POST [11:28:41]URL: /json_proto [11:28:41]Method is POST - this is cgi request [11:28:41]url: /json_proto [11:28:41]query_string will be loaded in cgi processing [11:28:41]execute_cgi json_proto POST (null) [11:28:41]execute_cgi path=json_proto method=POST [11:28:41]POST find Content-Length [11:28:41]Host: 172.17.33.3:8080 [11:28:41]Content-Length: 685 [11:28:41]Content-Type: application/json [11:28:41] [11:28:41]POST finish read [11:28:41]Found Content-Length = 685 [11:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:28:41]execute_script... [11:28: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)347943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:28:41]POST & json_proto [11:28:41]process_json_proto [11:28:41]json parsed OK: [11:28:41]protocol is kg_v1.0 [11:28:41]action value=close_receipt [11:28:41]process_action close_receipt [11:28:41]cmd_close_receipt [11:28:41]MH_GetDate [11:28:41]Write to MH i2c: F0 00 00 F0 3C 1B [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 F0 3C 00 6E 0F 1D 66 23 5B 8F 65 96 [11:28:41]GetLastDocTimeStamp 1713180305 [11:28:41]current date 1713180526 [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 F1 3C 80 13 01 00 00 00 00 00 AA [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 F1 3C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9E [11:28:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetShiftState done [11:28:41]FM_GetShiftState done [11:28:41]opened in 1713140468 [11:28:41]opened+sec_in_day 1713226868 [11:28:41]quantity*price = 150032 [11:28:41]sum+1 = 150034 [11:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 120 15.04.2024 11:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29526 ФПД: 119182925343522 1/tax-web-control/client/api/v1/ticket?date=20240415T112846&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29526&fm=119182925343522&tin=02508201610067®Number=0000138879044617&sum=150000 [11:28:43]StoreToDocumentArchive [11:28:43]shift 117 fd 29526 [11:28:43]save to /storage/0117/doc_00029526 [11:28:43]save last doc name /storage/0117/doc_00029526 to /storage/kkm_last_doc_name [11:28:43]save OK [11:28:43]Clear old archive folders... [11:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:28:43]tlvbuf is B6F7C7C0 [11:28:43]SAM_PROTO_ClearQueue [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 09 00 00 [11:28:43]Write to MH i2c: E2 08 00 FE 3C 80 09 00 00 00 00 00 00 AC [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 FE 3C 00 90 00 AE [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_ClearQueue done [11:28:43]KKMCreateOFDPacket [11:28:43]OFDProtocolAddRootSTLVToBuf [11:28:43]FM_MakeSignedData [11:28:43]FM_MakeSignedData [11:28:43]SAM_PROTO_SignData [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 01 02 [11:28:43]Write to MH i2c: E2 08 00 FF 3C 80 0D 01 02 00 00 00 00 B4 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 FF 3C 00 90 00 AF [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=255 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 78 00 00 00 F4 03 04 00 6E 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 73 00 00 35 04 06 00 6C 65 [11:28:43]Write to MH i2c: E2 02 01 00 3D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 78 00 00 00 F4 03 04 00 6E 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 73 00 00 35 04 06 00 6C 65 00 00 D6 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 00 3D 00 90 00 B1 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=9 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 04 6F ED AB 22 [11:28:43]Write to MH i2c: E2 0C 00 01 3D 80 0D 02 02 04 00 6F ED AB 22 00 00 E9 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 01 3D 00 90 00 B2 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 03 02 [11:28:43]Write to MH i2c: E2 08 00 02 3D 80 0D 03 02 00 00 00 00 BA [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 02 3D 00 73 6C 1B D0 B5 39 AC 8C 90 00 AB [11:28:43]RAPDU: 73 6C 1B D0 B5 39 AC 8C 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_SignData done [11:28:43]FM_MakeSignedData done [11:28:43]CreateOFDProtocolMessage [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 11 00 00 [11:28:43]Write to MH i2c: E2 08 00 03 3D 80 11 00 00 00 00 00 00 BA [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 03 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [11:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:43]wFMCommunicate OK [11:28:43]CreateOFDProtocolMessage done [11:28:43]OFDSenderStorePacket 29526 [11:28:43]StoreOFDPacket docnum=29526 [11:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 8A BE 06 01 65 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 78 00 00 00 F4 03 04 00 6E 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 73 00 00 35 04 06 00 6C 65 6F ED AB 22 73 6C 1B D0 B5 39 AC 8C [11:28:43]CheckFolder [11:28:43]dirname=/storage/ofd_packets [11:28:43]CheckFolder done [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00029526 [11:28:43]NVStorageSaveData ofd_packets/00029526 [11:28:43]File name is /storage/ofd_packets/00029526 [11:28:43]Write 300 bytes [11:28:43]NVStorageSaveData done [11:28:43]OFDSenderStorePacket done [11:28:43]KKMCreateOFDPacket done [11:28:43]NVStorageSaveData kkm_last_timestamp [11:28:43]File name is /storage/kkm_last_timestamp [11:28:43]Write 4 bytes [11:28:43]NVStorageSaveData done [11:28:43]ExternCall_PrintAddStr [11:28:43]wPrintStart [11:28:43]Write to MH i2c: 01 00 00 04 3D 41 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 04 3D 00 00 00 00 00 FF 0F 56 [11:28:43]RasterBufferAndPrint [11:28:43]line Счет N : (1)347943 [11:28:43]line ИНН: 02508201610067 [11:28:43]line Контрольно-Кассовый Чек [11:28:43]line ПРОДАЖА [11:28:43]line ТРК (МРК, ГНК) : 71 [11:28:43]line Товар: 2711129700 [11:28:43]line ГАЗ-К-5 [11:28:43]line 44.920 * 33.40 [11:28:43]line = 1500.33 [11:28:43]line НДС 12% НСП 1% [11:28:43]line > о реализуемом товаре [11:28:43]line ОКРУГЛЕНИЕ: -0.33 [11:28:43]line ИТОГО: 1500.00 [11:28:43]line Внесено: 1500.00 [11:28:43]line СДАЧА: 0.00 [11:28:43]line НСП 1% : 13.28 [11:28:43]line НДС 12% : 159.33 [11:28:43]line Наличными: 1500.00 [11:28:43]line Безнал.: 0.00 [11:28:43]line Место: АЗС № 108 "Партнер Нефть" [11:28:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:43]line СНО: Общий режим [11:28:43]line Чек 120 15.04.2024 11:28 [11:28:43]line Смена: 117 ФФД: 1.0 [11:28:43]line ЗНМ: 0300000027 [11:28:43]line РНМ: 0000138879044617 [11:28:43]line Версия ККМ: 001 [11:28:43]line ФМ: 0000000000963154 [11:28:43]line ФД: 29526 [11:28:43]line ФПД: 119182925343522 [11:28:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T112846&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29526&fm=119182925343522&tin=02508201610067®Number=0000138879044617&sum=150000 [11:28:43]written 0, free lines is 4095 [11:28:43]OFD Sender: Processing packet 29526 [packets to send 8, broken 7] [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00029526 [11:28:43]OFD Sender: To server: pG, [11:28:43]CommunicateWithHost lk.salyk.kg:30040 [11:28:43]ConnectInit lk.salyk.kg [11:28:43]Connected sock=11 [11:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 8A BE 06 01 65 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 78 00 00 00 F4 03 04 00 6E 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 73 00 00 35 04 06 00 6C 65 6F ED AB 22 73 6C 1B D0 B5 39 AC 8C [11:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 44 71 47 00 6E 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 39 36 33 31 35 34 10 04 04 00 56 73 00 00 F4 03 04 00 0F BA 1C 66 B6 04 01 00 00 63 D9 EF 38 F6 55 3C 2F [11:28:43]CommunicateWithHost err = 0 [11:28:43]CheckOFDResponse [11:28:43]1017 (14) - 77093643461234 [11:28:43]1041 (16) - 0000000000963154 [11:28:43]1040 (4) - 29526 [11:28:43]1012 (4) - 15.04.2024 05:24 [11:28:43]1206 (1) - 0 [11:28:43]OFD Sender: Remove packet 29526 [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00029526 [11:28:43]NVStorageDeleteData [11:28:43]Write to MH i2c: 01 00 00 2E 3D 6B [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 2E 3D 00 00 00 00 00 C6 0C 44 [11:28:43]RasterBufferAndPrint [11:28:43]line [11:28:43]line [11:28:43]line [11:28:43]line [11:28:43]line [11:28:43]written 0, free lines is 3274 [11:28:44]MH_Cut [11:28:44]Write to MH i2c: D1 01 00 35 3D 01 44 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 35 3D 00 43 [11:28:44]Write to MH i2c: 01 00 00 36 3D 73 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]OFD Sender: No OFD packet to send [11:28:44]*** Cut start [11:28:44]*** Partial cut [11:28:44]*** CUTSNS_PIN = 1 [11:28:44]*** CUTSNS_PIN = 0 [11:28:45]*** Brake cut motor [11:28:45]Read from MH i2c: 01 [11:28:45]MH_I2C_Read... [11:28:45]*** Stop cut motor [11:28:45]*** Cut end [11:28:45]Read from MH i2c: 01 07 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 36 3D 00 00 00 00 00 FF 0F 88 [11:28:45]process_action close_receipt done [11:28:45]requested_data is exist [11:28:45]produce_requested_data [11:28:45]requested_item fm.sn is exist - process it [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 11 00 00 [11:28:45]Write to MH i2c: E2 08 00 37 3D 80 11 00 00 00 00 00 00 EE [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 37 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [11:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:45]wFMCommunicate OK [11:28:45]requested_item fd.num is exist - process it [11:28:45]SAM_PROTO_GetFieldsCounters [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 00 00 [11:28:45]Write to MH i2c: E2 08 00 38 3D 80 13 00 00 00 00 00 00 F1 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 38 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 73 00 00 0E 04 04 00 75 00 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 D5 [11:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetFieldsCounters done [11:28:45]requested_item shift.num is exist - process it [11:28:45]requested_item shift.opened is exist - process it [11:28:45]req_shift_opened [11:28:45]FM_GetShiftState [11:28:45]SAM_PROTO_GetShiftState [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 01 00 [11:28:45]Write to MH i2c: E2 08 00 39 3D 80 13 01 00 00 00 00 00 F3 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 39 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E7 [11:28:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetShiftState done [11:28:45]FM_GetShiftState done [11:28:45]req_shift_opened done [11:28:45]requested_item shift.open_date is exist - process it [11:28:45]req_shift_open_date [11:28:45]req_shift_open_date done [11:28:45]produce_requested_data done [11:28:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29526,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:28:45]process_action_free close_receipt [11:28:45]json_value_free [11:28:45]json_value_free done [11:28:45]process_json_proto returns [11:28:45]Send response to host [11:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29526,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:28:45]free response buf [11:28:45]execute_script done [11:28:45]execute_script returns [11:28:45]free content buf [11:28:45]Sock 9.Close socket [11:28:45]Sock 9.Thread stoped [11:28:49]OFD Sender: No OFD packet to send [11:28:52]accept exits with 8 [11:28:52]New connection [11:28:52]New thread 3066969444 created [11:28:52]Thread 3067112804 joined [11:28:52]Waiting for new connection... [11:28:52] Sock 8.Parse request [11:28:52]Sock 8.Check first char [11:28:52]Sock 8.First char is OK [11:28:52]request: POST /json_proto HTTP/1.0 [11:28:52]Method: POST [11:28:52]URL: /json_proto [11:28:52]Method is POST - this is cgi request [11:28:52]url: /json_proto [11:28:52]query_string will be loaded in cgi processing [11:28:52]execute_cgi json_proto POST (null) [11:28:52]execute_cgi path=json_proto method=POST [11:28:52]POST find Content-Length [11:28:52]Host: 172.17.33.3:8080 [11:28:52]Content-Length: 741 [11:28:52]Content-Type: application/json [11:28:52] [11:28:52]POST finish read [11:28:52]Found Content-Length = 741 [11:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29526, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:28:52]execute_script... [11:28:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29526, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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:28:52]POST & json_proto [11:28:52]process_json_proto [11:28:52]json parsed OK: [11:28:52]protocol is kg_v1.0 [11:28:52]action value=close_receipt [11:28:52]process_action close_receipt [11:28:52]cmd_close_receipt [11:28:52]MH_GetDate [11:28:52]Write to MH i2c: F0 00 00 3A 3D 66 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: F0 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: F0 09 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: F0 09 00 3A 3D 00 79 0F 1D 66 23 5B 8F 65 EC [11:28:52]GetLastDocTimeStamp 1713180526 [11:28:52]current date 1713180537 [11:28:52]FM_GetShiftState [11:28:52]SAM_PROTO_GetShiftState [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 13 01 00 [11:28:52]Write to MH i2c: E2 08 00 3B 3D 80 13 01 00 00 00 00 00 F5 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:53]Read from MH i2c: E2 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: E2 0E 00 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: E2 0E 00 3B 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E9 [11:28:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:28:53]wFMCommunicate OK [11:28:53]SAM_PROTO_GetShiftState done [11:28:53]FM_GetShiftState done [11:28:53]opened in 1713140468 [11:28:53]opened+sec_in_day 1713226868 [11:28:53]quantity*price = 150032 [11:28:53]sum+1 = 150034 [11:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 121 15.04.2024 11:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29526 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29527 ФПД: 92099840789294 1/tax-web-control/client/api/v1/ticket?date=20240415T112857&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29527&fm=92099840789294&tin=02508201610067®Number=0000138879044617&sum=150000 [11:28:54]StoreToDocumentArchive [11:28:54]shift 117 fd 29527 [11:28:54]save to /storage/0117/doc_00029527 [11:28:54]save last doc name /storage/0117/doc_00029527 to /storage/kkm_last_doc_name [11:28:54]save OK [11:28:54]Clear old archive folders... [11:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:28:54]tlvbuf is 00247CA0 [11:28:54]SAM_PROTO_ClearQueue [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 09 00 00 [11:28:54]Write to MH i2c: E2 08 00 4A 3D 80 09 00 00 00 00 00 00 F9 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 4A 3D 00 90 00 FB [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]SAM_PROTO_ClearQueue done [11:28:54]KKMCreateOFDPacket [11:28:54]OFDProtocolAddRootSTLVToBuf [11:28:54]FM_MakeSignedData [11:28:54]FM_MakeSignedData [11:28:54]SAM_PROTO_SignData [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 01 02 [11:28:54]Write to MH i2c: E2 08 00 4B 3D 80 0D 01 02 00 00 00 00 01 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 4B 3D 00 90 00 FC [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]wFMCommunicate request_size=255 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 79 00 00 00 F4 03 04 00 79 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 56 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 [11:28:54]Write to MH i2c: E2 02 01 4C 3D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 79 00 00 00 F4 03 04 00 79 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 56 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 00 00 EF [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]OFD Sender: No OFD packet to send [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 4C 3D 00 90 00 FD [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]wFMCommunicate request_size=37 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 73 00 00 35 04 06 00 53 C3 AA 4B 4B 2E [11:28:54]Write to MH i2c: E2 28 00 4D 3D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 73 00 00 35 04 06 00 53 C3 AA 4B 4B 2E 00 00 A5 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 4D 3D 00 90 00 FE [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 03 02 [11:28:54]Write to MH i2c: E2 08 00 4E 3D 80 0D 03 02 00 00 00 00 06 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 0B 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 0B 00 4E 3D 00 83 D6 5F 40 8A D5 F1 32 90 00 81 [11:28:54]RAPDU: 83 D6 5F 40 8A D5 F1 32 90 00 [11:28:54]wFMCommunicate OK [11:28:54]SAM_PROTO_SignData done [11:28:54]FM_MakeSignedData done [11:28:54]CreateOFDProtocolMessage [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 11 00 00 [11:28:54]Write to MH i2c: E2 08 00 4F 3D 80 11 00 00 00 00 00 00 06 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 17 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 17 00 4F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [11:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:54]wFMCommunicate OK [11:28:54]CreateOFDProtocolMessage done [11:28:54]OFDSenderStorePacket 29527 [11:28:54]StoreOFDPacket docnum=29527 [11:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2A 01 00 00 E1 C7 22 01 AC EA 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 79 00 00 00 F4 03 04 00 79 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 56 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 73 00 00 35 04 06 00 53 C3 AA 4B 4B 2E 83 D6 5F 40 8A D5 F1 32 [11:28:54]CheckFolder [11:28:54]dirname=/storage/ofd_packets [11:28:54]CheckFolder done [11:28:54]ProducePacketName [11:28:54]name=ofd_packets/00029527 [11:28:54]NVStorageSaveData ofd_packets/00029527 [11:28:54]File name is /storage/ofd_packets/00029527 [11:28:54]Write 328 bytes [11:28:54]NVStorageSaveData done [11:28:54]OFDSenderStorePacket done [11:28:54]KKMCreateOFDPacket done [11:28:54]NVStorageSaveData kkm_last_timestamp [11:28:54]File name is /storage/kkm_last_timestamp [11:28:54]Write 4 bytes [11:28:54]NVStorageSaveData done [11:28:54]ExternCall_PrintAddStr [11:28:54]wPrintStart [11:28:54]Write to MH i2c: 01 00 00 50 3D 8D [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 50 3D 00 00 00 00 00 FF 0F A2 [11:28:54]RasterBufferAndPrint [11:28:54]line Счет N : (1)347943 [11:28:54]line ИНН: 02508201610067 [11:28:54]line Контрольно-Кассовый Чек [11:28:54]line ВОЗВРАТ ПРОДАЖИ [11:28:54]line ТРК (МРК, ГНК) : 71 [11:28:54]line Товар: 2711129700 [11:28:54]line ГАЗ-К-5 [11:28:54]line 44.920 * 33.40 [11:28:54]line = 1500.33 [11:28:54]line НДС 12% НСП 1% [11:28:54]line > о реализуемом товаре [11:28:54]line ОКРУГЛЕНИЕ: -0.33 [11:28:54]line ИТОГО: 1500.00 [11:28:54]line НСП 1% : 13.28 [11:28:54]line НДС 12% : 159.33 [11:28:54]line Наличными: 1500.00 [11:28:54]line Безнал.: 0.00 [11:28:54]line Место: АЗС № 108 "Партнер Нефть" [11:28:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:54]line СНО: Общий режим [11:28:54]line Чек 121 15.04.2024 11:28 [11:28:54]line Смена: 117 ФФД: 1.0 [11:28:54]line ЗНМ: 0300000027 [11:28:54]line РНМ: 0000138879044617 [11:28:54]line Версия ККМ: 001 [11:28:54]line ФД осн.: 29526 [11:28:54]line ФМ осн.: 0000000000963154 [11:28:54]line ФМ: 0000000000963154 [11:28:54]line ФД: 29527 [11:28:54]line ФПД: 92099840789294 [11:28:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T112857&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29527&fm=92099840789294&tin=02508201610067®Number=0000138879044617&sum=150000 [11:28:55]OFD Sender: Processing packet 29527 [packets to send 8, broken 7] [11:28:55]ProducePacketName [11:28:55]name=ofd_packets/00029527 [11:28:55]OFD Sender: To server: pG, [11:28:55]CommunicateWithHost lk.salyk.kg:30040 [11:28:55]ConnectInit lk.salyk.kg [11:28:55]written 0, free lines is 4095 [11:28:55]Connected sock=10 [11:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2A 01 00 00 E1 C7 22 01 AC EA 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 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 79 00 00 00 F4 03 04 00 79 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 56 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 73 00 00 35 04 06 00 53 C3 AA 4B 4B 2E 83 D6 5F 40 8A D5 F1 32 [11:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F 72 47 00 C9 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 39 36 33 31 35 34 10 04 04 00 57 73 00 00 F4 03 04 00 1A BA 1C 66 B6 04 01 00 00 3E 5E CD E3 38 4C A2 50 [11:28:55]CommunicateWithHost err = 0 [11:28:55]CheckOFDResponse [11:28:55]1017 (14) - 77093643461234 [11:28:55]1041 (16) - 0000000000963154 [11:28:55]1040 (4) - 29527 [11:28:55]1012 (4) - 15.04.2024 05:24 [11:28:55]1206 (1) - 0 [11:28:55]OFD Sender: Remove packet 29527 [11:28:55]ProducePacketName [11:28:55]name=ofd_packets/00029527 [11:28:55]NVStorageDeleteData [11:28:55]Write to MH i2c: 01 00 00 7A 3D B7 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [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]Read from MH i2c: 01 07 00 7A 3D 00 00 00 00 00 C9 0C 93 [11:28:55]RasterBufferAndPrint [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]written 0, free lines is 3279 [11:28:55]MH_Cut [11:28:55]Write to MH i2c: D1 01 00 81 3D 01 90 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 01 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 01 00 81 3D 00 8F [11:28:55]Write to MH i2c: 01 00 00 82 3D BF [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]OFD Sender: No OFD packet to send [11:28:56]*** Cut start [11:28:56]*** Partial cut [11:28:56]*** CUTSNS_PIN = 1 [11:28:56]*** CUTSNS_PIN = 0 [11:28:56]*** Brake cut motor [11:28:57]Read from MH i2c: 01 [11:28:57]MH_I2C_Read... [11:28:57]*** Stop cut motor [11:28:57]*** Cut end [11:28:57]Read from MH i2c: 01 07 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: 01 07 00 82 3D 00 00 00 00 00 FF 0F D4 [11:28:57]process_action close_receipt done [11:28:57]requested_data is exist [11:28:57]produce_requested_data [11:28:57]requested_item fm.sn is exist - process it [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 11 00 00 [11:28:57]Write to MH i2c: E2 08 00 83 3D 80 11 00 00 00 00 00 00 3A [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 17 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 17 00 83 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [11:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:57]wFMCommunicate OK [11:28:57]requested_item fd.num is exist - process it [11:28:57]SAM_PROTO_GetFieldsCounters [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 13 00 00 [11:28:57]Write to MH i2c: E2 08 00 84 3D 80 13 00 00 00 00 00 00 3D [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 62 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 62 00 84 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 73 00 00 0E 04 04 00 75 00 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 25 [11:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:57]wFMCommunicate OK [11:28:57]SAM_PROTO_GetFieldsCounters done [11:28:57]requested_item shift.num is exist - process it [11:28:57]requested_item shift.opened is exist - process it [11:28:57]req_shift_opened [11:28:57]FM_GetShiftState [11:28:57]SAM_PROTO_GetShiftState [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 13 01 00 [11:28:57]Write to MH i2c: E2 08 00 85 3D 80 13 01 00 00 00 00 00 3F [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 85 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [11:28:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:28:57]wFMCommunicate OK [11:28:57]SAM_PROTO_GetShiftState done [11:28:57]FM_GetShiftState done [11:28:57]req_shift_opened done [11:28:57]requested_item shift.open_date is exist - process it [11:28:57]req_shift_open_date [11:28:57]req_shift_open_date done [11:28:57]produce_requested_data done [11:28:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29527,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:28:57]process_action_free close_receipt [11:28:57]json_value_free [11:28:57]json_value_free done [11:28:57]process_json_proto returns [11:28:57]Send response to host [11:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29527,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:28:57]free response buf [11:28:57]execute_script done [11:28:57]execute_script returns [11:28:57]free content buf [11:28:57]Sock 8.Close socket [11:28:57]Sock 8.Thread stoped [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:03]accept exits with 9 [11:30:03]New connection [11:30:03]New thread 3067112804 created [11:30:03]Thread 3066969444 joined [11:30:03]Waiting for new connection... [11:30:03] Sock 9.Parse request [11:30:03]Sock 9.Check first char [11:30:03]Sock 9.First char is OK [11:30:03]request: POST /json_proto HTTP/1.0 [11:30:03]Method: POST [11:30:03]URL: /json_proto [11:30:03]Method is POST - this is cgi request [11:30:03]url: /json_proto [11:30:03]query_string will be loaded in cgi processing [11:30:03]execute_cgi json_proto POST (null) [11:30:03]execute_cgi path=json_proto method=POST [11:30:03]POST find Content-Length [11:30:03]Host: 172.17.33.3:8080 [11:30:03]Content-Length: 677 [11:30:03]Content-Type: application/json [11:30:03] [11:30:03]POST finish read [11:30:03]Found Content-Length = 677 [11:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:03]execute_script... [11:30: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)347944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:03]POST & json_proto [11:30:03]process_json_proto [11:30:03]json parsed OK: [11:30:03]protocol is kg_v1.0 [11:30:03]action value=close_receipt [11:30:03]process_action close_receipt [11:30:03]cmd_close_receipt [11:30:03]MH_GetDate [11:30:03]Write to MH i2c: F0 00 00 86 3D B2 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: F0 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: F0 09 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: F0 09 00 86 3D 00 BF 0F 1D 66 23 5B 8F 65 7E [11:30:03]GetLastDocTimeStamp 1713180537 [11:30:03]current date 1713180607 [11:30:03]FM_GetShiftState [11:30:03]SAM_PROTO_GetShiftState [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 01 00 [11:30:03]Write to MH i2c: E2 08 00 87 3D 80 13 01 00 00 00 00 00 41 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 87 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 35 [11:30:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_GetShiftState done [11:30:03]FM_GetShiftState done [11:30:03]opened in 1713140468 [11:30:03]opened+sec_in_day 1713226868 [11:30:03]quantity*price = 50025 [11:30:03]sum+1 = 50027 [11:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 122 15.04.2024 11:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29528 ФПД: 80443230749903 1/tax-web-control/client/api/v1/ticket?date=20240415T113008&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29528&fm=80443230749903&tin=02508201610067®Number=0000138879044617&sum=50000 [11:30:04]StoreToDocumentArchive [11:30:04]shift 117 fd 29528 [11:30:04]save to /storage/0117/doc_00029528 [11:30:04]save last doc name /storage/0117/doc_00029528 to /storage/kkm_last_doc_name [11:30:04]save OK [11:30:04]Clear old archive folders... [11:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:04]tlvbuf is B6F01A60 [11:30:04]SAM_PROTO_ClearQueue [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 09 00 00 [11:30:04]Write to MH i2c: E2 08 00 94 3D 80 09 00 00 00 00 00 00 43 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 94 3D 00 90 00 45 [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_ClearQueue done [11:30:04]KKMCreateOFDPacket [11:30:04]OFDProtocolAddRootSTLVToBuf [11:30:04]FM_MakeSignedData [11:30:04]FM_MakeSignedData [11:30:04]SAM_PROTO_SignData [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 0D 01 02 [11:30:04]Write to MH i2c: E2 08 00 95 3D 80 0D 01 02 00 00 00 00 4B [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 03 00 95 3D 00 90 00 46 [11:30:04]RAPDU: 90 00 [11:30:04]wFMCommunicate OK [11:30:04]wFMCommunicate request_size=255 [11:30:04]MH_SAM_APDU [11:30: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C0 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 73 00 00 35 04 06 00 49 [11:30:04]Write to MH i2c: E2 02 01 96 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C0 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 73 00 00 35 04 06 00 49 00 00 59 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 96 3D 00 90 00 47 [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]wFMCommunicate request_size=10 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 0D 02 02 05 29 A6 31 84 CF [11:30:05]Write to MH i2c: E2 0D 00 97 3D 80 0D 02 02 05 00 29 A6 31 84 CF 00 00 AB [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 97 3D 00 90 00 48 [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 0D 03 02 [11:30:05]Write to MH i2c: E2 08 00 98 3D 80 0D 03 02 00 00 00 00 50 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0B 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0B 00 98 3D 00 73 0C 9A 81 69 B1 24 57 90 00 80 [11:30:05]RAPDU: 73 0C 9A 81 69 B1 24 57 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_SignData done [11:30:05]FM_MakeSignedData done [11:30:05]CreateOFDProtocolMessage [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 11 00 00 [11:30:05]Write to MH i2c: E2 08 00 99 3D 80 11 00 00 00 00 00 00 50 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 17 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 17 00 99 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [11:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:05]wFMCommunicate OK [11:30:05]CreateOFDProtocolMessage done [11:30:05]OFDSenderStorePacket 29528 [11:30:05]StoreOFDPacket docnum=29528 [11:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 73 07 01 37 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C0 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 73 00 00 35 04 06 00 49 29 A6 31 84 CF 73 0C 9A 81 69 B1 24 57 [11:30:05]CheckFolder [11:30:05]dirname=/storage/ofd_packets [11:30:05]CheckFolder done [11:30:05]ProducePacketName [11:30:05]name=ofd_packets/00029528 [11:30:05]NVStorageSaveData ofd_packets/00029528 [11:30:05]File name is /storage/ofd_packets/00029528 [11:30:05]Write 301 bytes [11:30:05]NVStorageSaveData done [11:30:05]OFDSenderStorePacket done [11:30:05]KKMCreateOFDPacket done [11:30:05]NVStorageSaveData kkm_last_timestamp [11:30:05]File name is /storage/kkm_last_timestamp [11:30:05]Write 4 bytes [11:30:05]NVStorageSaveData done [11:30:05]ExternCall_PrintAddStr [11:30:05]wPrintStart [11:30:05]Write to MH i2c: 01 00 00 9A 3D D7 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 9A 3D 00 00 00 00 00 FF 0F EC [11:30:05]RasterBufferAndPrint [11:30:05]line Счет N : (1)347944 [11:30:05]line ИНН: 02508201610067 [11:30:05]line Контрольно-Кассовый Чек [11:30:05]line ПРОДАЖА [11:30:05]line ТРК (МРК, ГНК) : 32 [11:30:05]line Товар: 2710124130 [11:30:05]line Аи-92-К-5 [11:30:05]line 7.720 * 64.80 [11:30:05]line = 500.26 [11:30:05]line НДС 12% НСП 1% [11:30:05]line > о реализуемом товаре [11:30:05]line ОКРУГЛЕНИЕ: -0.26 [11:30:05]line ИТОГО: 500.00 [11:30:05]line Внесено: 500.00 [11:30:05]line СДАЧА: 0.00 [11:30:05]line НСП 1% : 4.43 [11:30:05]line НДС 12% : 53.12 [11:30:05]line Наличными: 500.00 [11:30:05]line Безнал.: 0.00 [11:30:05]line Место: АЗС № 108 "Партнер Нефть" [11:30:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:30:05]line СНО: Общий режим [11:30:05]line Чек 122 15.04.2024 11:30 [11:30:05]line Смена: 117 ФФД: 1.0 [11:30:05]line ЗНМ: 0300000027 [11:30:05]line РНМ: 0000138879044617 [11:30:05]line Версия ККМ: 001 [11:30:05]line ФМ: 0000000000963154 [11:30:05]line ФД: 29528 [11:30:05]line ФПД: 80443230749903 [11:30:05]line 1/tax-web-control/client/api/v1/ticket?date=20240415T113008&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29528&fm=80443230749903&tin=02508201610067®Number=0000138879044617&sum=50000 [11:30:05]OFD Sender: Processing packet 29528 [packets to send 8, broken 7] [11:30:05]ProducePacketName [11:30:05]name=ofd_packets/00029528 [11:30:05]OFD Sender: To server: pG, [11:30:05]CommunicateWithHost lk.salyk.kg:30040 [11:30:05]ConnectInit lk.salyk.kg [11:30:05]written 0, free lines is 4095 [11:30:05]Connected sock=10 [11:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 73 07 01 37 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C0 0F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 73 00 00 35 04 06 00 49 29 A6 31 84 CF 73 0C 9A 81 69 B1 24 57 [11:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C 85 47 00 E3 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 39 36 33 31 35 34 10 04 04 00 58 73 00 00 F4 03 04 00 61 BA 1C 66 B6 04 01 00 00 C4 C8 A9 F3 6F 42 5D F3 [11:30:06]CommunicateWithHost err = 0 [11:30:06]CheckOFDResponse [11:30:06]1017 (14) - 77093643461234 [11:30:06]1041 (16) - 0000000000963154 [11:30:06]1040 (4) - 29528 [11:30:06]1012 (4) - 15.04.2024 05:25 [11:30:06]1206 (1) - 0 [11:30:06]OFD Sender: Remove packet 29528 [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00029528 [11:30:06]NVStorageDeleteData [11:30:06]Write to MH i2c: 01 00 00 C4 3D 01 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 C4 3D 00 00 00 00 00 BC 0C D0 [11:30:06]RasterBufferAndPrint [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]written 0, free lines is 3267 [11:30:06]MH_Cut [11:30:06]Write to MH i2c: D1 01 00 CB 3D 01 DA [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 01 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 01 00 CB 3D 00 D9 [11:30:06]Write to MH i2c: 01 00 00 CC 3D 09 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]OFD Sender: No OFD packet to send [11:30:06]*** Cut start [11:30:06]*** Partial cut [11:30:06]*** CUTSNS_PIN = 1 [11:30:07]*** CUTSNS_PIN = 0 [11:30:07]*** Brake cut motor [11:30:07]Read from MH i2c: 01 [11:30:07]MH_I2C_Read... [11:30:07]*** Stop cut motor [11:30:07]*** Cut end [11:30:07]Read from MH i2c: 01 07 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: 01 07 00 CC 3D 00 00 00 00 00 FF 0F 1E [11:30:07]process_action close_receipt done [11:30:07]requested_data is exist [11:30:07]produce_requested_data [11:30:07]requested_item fm.sn is exist - process it [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 11 00 00 [11:30:07]Write to MH i2c: E2 08 00 CD 3D 80 11 00 00 00 00 00 00 84 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:07]Read from MH i2c: E2 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 17 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 17 00 CD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [11:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:30:07]wFMCommunicate OK [11:30:07]requested_item fd.num is exist - process it [11:30:07]SAM_PROTO_GetFieldsCounters [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 13 00 00 [11:30:07]Write to MH i2c: E2 08 00 CE 3D 80 13 00 00 00 00 00 00 87 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:07]Read from MH i2c: E2 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 62 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 62 00 CE 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 73 00 00 0E 04 04 00 75 00 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 73 [11:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:07]wFMCommunicate OK [11:30:07]SAM_PROTO_GetFieldsCounters done [11:30:07]requested_item shift.num is exist - process it [11:30:07]requested_item shift.opened is exist - process it [11:30:07]req_shift_opened [11:30:07]FM_GetShiftState [11:30:07]SAM_PROTO_GetShiftState [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 13 01 00 [11:30:07]Write to MH i2c: E2 08 00 CF 3D 80 13 01 00 00 00 00 00 89 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:07]Read from MH i2c: E2 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 0E 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 0E 00 CF 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [11:30:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:30:07]wFMCommunicate OK [11:30:07]SAM_PROTO_GetShiftState done [11:30:07]FM_GetShiftState done [11:30:07]req_shift_opened done [11:30:07]requested_item shift.open_date is exist - process it [11:30:07]req_shift_open_date [11:30:07]req_shift_open_date done [11:30:07]produce_requested_data done [11:30:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29528,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:30:07]process_action_free close_receipt [11:30:07]json_value_free [11:30:07]json_value_free done [11:30:07]process_json_proto returns [11:30:07]Send response to host [11:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29528,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:30:07]free response buf [11:30:07]execute_script done [11:30:07]execute_script returns [11:30:07]free content buf [11:30:07]Sock 9.Close socket [11:30:07]Sock 9.Thread stoped [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:32:57]accept exits with 8 [11:32:57]New connection [11:32:57]New thread 3066969444 created [11:32:57]Thread 3067112804 joined [11:32:57]Waiting for new connection... [11:32:57] Sock 8.Parse request [11:32:57]Sock 8.Check first char [11:32:57]Sock 8.First char is OK [11:32:57]request: POST /json_proto HTTP/1.0 [11:32:57]Method: POST [11:32:57]URL: /json_proto [11:32:57]Method is POST - this is cgi request [11:32:57]url: /json_proto [11:32:57]query_string will be loaded in cgi processing [11:32:57]execute_cgi json_proto POST (null) [11:32:57]execute_cgi path=json_proto method=POST [11:32:57]POST find Content-Length [11:32:57]Host: 172.17.33.3:8080 [11:32:57]Content-Length: 675 [11:32:57]Content-Type: application/json [11:32:57] [11:32:57]POST finish read [11:32:57]Found Content-Length = 675 [11:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:57]execute_script... [11:32: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)347945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:57]POST & json_proto [11:32:57]process_json_proto [11:32:57]json parsed OK: [11:32:57]protocol is kg_v1.0 [11:32:57]action value=close_receipt [11:32:57]process_action close_receipt [11:32:57]cmd_close_receipt [11:32:57]MH_GetDate [11:32:57]Write to MH i2c: F0 00 00 D0 3D FC [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: F0 09 00 D0 3D 00 6D 10 1D 66 23 5B 8F 65 77 [11:32:57]GetLastDocTimeStamp 1713180608 [11:32:57]current date 1713180781 [11:32:57]FM_GetShiftState [11:32:57]SAM_PROTO_GetShiftState [11:32:57]wFMCommunicate request_size=4 [11:32:57]MH_SAM_APDU [11:32:57]CAPDU: 80 13 01 00 [11:32:57]Write to MH i2c: E2 08 00 D1 3D 80 13 01 00 00 00 00 00 8B [11:32:57]Write i2c OK [11:32:57]MH_I2C_Read... [11:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:57]Read from MH i2c: E2 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 0E 00 [11:32:57]MH_I2C_Read... [11:32:57]Read from MH i2c: E2 0E 00 D1 3D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7F [11:32:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:32:57]wFMCommunicate OK [11:32:57]SAM_PROTO_GetShiftState done [11:32:57]FM_GetShiftState done [11:32:57]opened in 1713140468 [11:32:57]opened+sec_in_day 1713226868 [11:32:57]quantity*price = 100016 [11:32:57]sum+1 = 100017 [11:32:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 123 15.04.2024 11:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29529 ФПД: 120738196089289 1/tax-web-control/client/api/v1/ticket?date=20240415T113301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29529&fm=120738196089289&tin=02508201610067®Number=0000138879044617&sum=100000 [11:32:58]StoreToDocumentArchive [11:32:58]shift 117 fd 29529 [11:32:58]save to /storage/0117/doc_00029529 [11:32:58]save last doc name /storage/0117/doc_00029529 to /storage/kkm_last_doc_name [11:32:58]save OK [11:32:58]Clear old archive folders... [11:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:32:58]tlvbuf is B6F013A0 [11:32:58]SAM_PROTO_ClearQueue [11:32:58]wFMCommunicate request_size=4 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 09 00 00 [11:32:58]Write to MH i2c: E2 08 00 DE 3D 80 09 00 00 00 00 00 00 8D [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 DE 3D 00 90 00 8F [11:32:58]RAPDU: 90 00 [11:32:58]wFMCommunicate OK [11:32:58]SAM_PROTO_ClearQueue done [11:32:58]KKMCreateOFDPacket [11:32:58]OFDProtocolAddRootSTLVToBuf [11:32:58]FM_MakeSignedData [11:32:58]FM_MakeSignedData [11:32:58]SAM_PROTO_SignData [11:32:58]wFMCommunicate request_size=4 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 0D 01 02 [11:32:58]Write to MH i2c: E2 08 00 DF 3D 80 0D 01 02 00 00 00 00 95 [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 DF 3D 00 90 00 90 [11:32:58]RAPDU: 90 00 [11:32:58]wFMCommunicate OK [11:32:58]wFMCommunicate request_size=255 [11:32:58]MH_SAM_APDU [11:32: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 10 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 73 00 00 35 04 06 00 [11:32:58]Write to MH i2c: E2 02 01 E0 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 10 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 73 00 00 35 04 06 00 00 00 2D [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 E0 3D 00 90 00 91 [11:32:58]RAPDU: 90 00 [11:32:58]wFMCommunicate OK [11:32:58]wFMCommunicate request_size=11 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 0D 02 02 06 6D CF 8D 49 E9 C9 [11:32:58]Write to MH i2c: E2 0E 00 E1 3D 80 0D 02 02 06 00 6D CF 8D 49 E9 C9 00 00 68 [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:58]Read from MH i2c: E2 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 [11:32:58]MH_I2C_Read... [11:32:58]Read from MH i2c: E2 03 00 E1 3D 00 90 00 92 [11:32:58]RAPDU: 90 00 [11:32:58]wFMCommunicate OK [11:32:58]wFMCommunicate request_size=4 [11:32:58]MH_SAM_APDU [11:32:58]CAPDU: 80 0D 03 02 [11:32:58]Write to MH i2c: E2 08 00 E2 3D 80 0D 03 02 00 00 00 00 9A [11:32:58]Write i2c OK [11:32:58]MH_I2C_Read... [11:32:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0B 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 0B 00 E2 3D 00 E3 93 9A 09 CC 0C D0 79 90 00 D5 [11:32:59]RAPDU: E3 93 9A 09 CC 0C D0 79 90 00 [11:32:59]wFMCommunicate OK [11:32:59]SAM_PROTO_SignData done [11:32:59]FM_MakeSignedData done [11:32:59]CreateOFDProtocolMessage [11:32:59]wFMCommunicate request_size=4 [11:32:59]MH_SAM_APDU [11:32:59]CAPDU: 80 11 00 00 [11:32:59]Write to MH i2c: E2 08 00 E3 3D 80 11 00 00 00 00 00 00 9A [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:59]Read from MH i2c: E2 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 17 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: E2 17 00 E3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [11:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:32:59]wFMCommunicate OK [11:32:59]CreateOFDProtocolMessage done [11:32:59]OFDSenderStorePacket 29529 [11:32:59]StoreOFDPacket docnum=29529 [11:32:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EC DB 08 01 F1 3F 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 10 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 73 00 00 35 04 06 00 6D CF 8D 49 E9 C9 E3 93 9A 09 CC 0C D0 79 [11:32:59]CheckFolder [11:32:59]dirname=/storage/ofd_packets [11:32:59]CheckFolder done [11:32:59]ProducePacketName [11:32:59]name=ofd_packets/00029529 [11:32:59]NVStorageSaveData ofd_packets/00029529 [11:32:59]File name is /storage/ofd_packets/00029529 [11:32:59]Write 302 bytes [11:32:59]NVStorageSaveData done [11:32:59]OFDSenderStorePacket done [11:32:59]KKMCreateOFDPacket done [11:32:59]NVStorageSaveData kkm_last_timestamp [11:32:59]File name is /storage/kkm_last_timestamp [11:32:59]Write 4 bytes [11:32:59]NVStorageSaveData done [11:32:59]ExternCall_PrintAddStr [11:32:59]wPrintStart [11:32:59]Write to MH i2c: 01 00 00 E4 3D 21 [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 07 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 07 00 E4 3D 00 00 00 00 00 FF 0F 36 [11:32:59]RasterBufferAndPrint [11:32:59]line Счет N : (1)347945 [11:32:59]line ИНН: 02508201610067 [11:32:59]line Контрольно-Кассовый Чек [11:32:59]line ПРОДАЖА [11:32:59]line ТРК (МРК, ГНК) : 31 [11:32:59]line Товар: 2710124130 [11:32:59]line SUPER-92-К-5 [11:32:59]line 15.200 * 65.80 [11:32:59]line = 1000.16 [11:32:59]line НДС 12% НСП 1% [11:32:59]line > о реализуемом товаре [11:32:59]line ОКРУГЛЕНИЕ: -0.16 [11:32:59]line ИТОГО: 1000.00 [11:32:59]line Внесено: 1000.00 [11:32:59]line СДАЧА: 0.00 [11:32:59]line НСП 1% : 8.85 [11:32:59]line НДС 12% : 106.21 [11:32:59]line Наличными: 1000.00 [11:32:59]line Безнал.: 0.00 [11:32:59]line Место: АЗС № 108 "Партнер Нефть" [11:32:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:32:59]line СНО: Общий режим [11:32:59]line Чек 123 15.04.2024 11:33 [11:32:59]line Смена: 117 ФФД: 1.0 [11:32:59]line ЗНМ: 0300000027 [11:32:59]line РНМ: 0000138879044617 [11:32:59]line Версия ККМ: 001 [11:32:59]line ФМ: 0000000000963154 [11:32:59]line ФД: 29529 [11:32:59]line ФПД: 120738196089289 [11:32:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T113301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29529&fm=120738196089289&tin=02508201610067®Number=0000138879044617&sum=100000 [11:32:59]OFD Sender: Processing packet 29529 [packets to send 8, broken 7] [11:32:59]ProducePacketName [11:32:59]name=ofd_packets/00029529 [11:32:59]OFD Sender: To server: pG, [11:32:59]CommunicateWithHost lk.salyk.kg:30040 [11:32:59]ConnectInit lk.salyk.kg [11:32:59]written 0, free lines is 4095 [11:32:59]Connected sock=10 [11:32:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EC DB 08 01 F1 3F 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 10 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 73 00 00 35 04 06 00 6D CF 8D 49 E9 C9 E3 93 9A 09 CC 0C D0 79 [11:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 24 03 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 59 73 00 00 F4 03 04 00 0E BB 1C 66 B6 04 01 00 00 9C 98 E1 16 44 88 47 8B [11:32:59]CommunicateWithHost err = 0 [11:32:59]CheckOFDResponse [11:32:59]1017 (14) - 77093643461234 [11:32:59]1041 (16) - 0000000000963154 [11:32:59]1040 (4) - 29529 [11:32:59]1012 (4) - 15.04.2024 05:28 [11:32:59]1206 (1) - 0 [11:32:59]OFD Sender: Remove packet 29529 [11:32:59]ProducePacketName [11:32:59]name=ofd_packets/00029529 [11:32:59]NVStorageDeleteData [11:32:59]Write to MH i2c: 01 00 00 0E 3E 4C [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 07 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: 01 07 00 0E 3E 00 00 00 00 00 C6 0C 25 [11:32:59]RasterBufferAndPrint [11:32:59]line [11:32:59]line [11:32:59]line [11:32:59]line [11:32:59]line [11:32:59]written 0, free lines is 3276 [11:32:59]MH_Cut [11:32:59]Write to MH i2c: D1 01 00 15 3E 01 25 [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: D1 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: D1 01 00 [11:32:59]MH_I2C_Read... [11:32:59]Read from MH i2c: D1 01 00 15 3E 00 24 [11:32:59]Write to MH i2c: 01 00 00 16 3E 54 [11:32:59]Write i2c OK [11:32:59]MH_I2C_Read... [11:33:00]OFD Sender: No OFD packet to send [11:33:00]*** Cut start [11:33:00]*** Partial cut [11:33:00]*** CUTSNS_PIN = 1 [11:33:00]*** CUTSNS_PIN = 0 [11:33:00]*** Brake cut motor [11:33:01]Read from MH i2c: 01 [11:33:01]MH_I2C_Read... [11:33:01]*** Stop cut motor [11:33:01]*** Cut end [11:33:01]Read from MH i2c: 01 07 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 16 3E 00 00 00 00 00 FF 0F 69 [11:33:01]process_action close_receipt done [11:33:01]requested_data is exist [11:33:01]produce_requested_data [11:33:01]requested_item fm.sn is exist - process it [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 11 00 00 [11:33:01]Write to MH i2c: E2 08 00 17 3E 80 11 00 00 00 00 00 00 CF [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 17 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [11:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:33:01]wFMCommunicate OK [11:33:01]requested_item fd.num is exist - process it [11:33:01]SAM_PROTO_GetFieldsCounters [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 13 00 00 [11:33:01]Write to MH i2c: E2 08 00 18 3E 80 13 00 00 00 00 00 00 D2 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 62 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 62 00 18 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 73 00 00 0E 04 04 00 75 00 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 C2 [11:33:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_GetFieldsCounters done [11:33:01]requested_item shift.num is exist - process it [11:33:01]requested_item shift.opened is exist - process it [11:33:01]req_shift_opened [11:33:01]FM_GetShiftState [11:33:01]SAM_PROTO_GetShiftState [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 13 01 00 [11:33:01]Write to MH i2c: E2 08 00 19 3E 80 13 01 00 00 00 00 00 D4 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0E 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0E 00 19 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [11:33:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_GetShiftState done [11:33:01]FM_GetShiftState done [11:33:01]req_shift_opened done [11:33:01]requested_item shift.open_date is exist - process it [11:33:01]req_shift_open_date [11:33:01]req_shift_open_date done [11:33:01]produce_requested_data done [11:33:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29529,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:33:01]process_action_free close_receipt [11:33:01]json_value_free [11:33:01]json_value_free done [11:33:01]process_json_proto returns [11:33:01]Send response to host [11:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29529,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:33:01]free response buf [11:33:01]execute_script done [11:33:01]execute_script returns [11:33:01]free content buf [11:33:01]Sock 8.Close socket [11:33:01]Sock 8.Thread stoped [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:13]int [11:34:13]Write to MH i2c: 01 00 00 1A 3E 58 [11:34:13]*** FLAG_PRN_KEY set [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 1A 3E 00 08 00 00 00 FF 0F 75 [11:34:13]state=0 [11:34:13]Key pressed [11:34:13]Feed [11:34:13]Write to MH i2c: D8 00 00 1B 3E 30 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D8 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D8 01 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D8 01 00 1B 3E 00 31 [11:34:13]int [11:34:13]Write to MH i2c: 01 00 00 1C 3E 5A [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: 01 07 00 1C 3E 00 48 00 00 00 3C 00 E5 [11:34:13]state=2 [11:34:13]Key pressed [11:34:14]int [11:34:14]Write to MH i2c: 01 00 00 1D 3E 5B [11:34:14]*** FLAG_PRN_KEY reset [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 1D 3E 00 00 00 00 00 F6 0F 67 [11:34:14]state=2 [11:34:14]Stop feed [11:34:14]int [11:34:14]Write to MH i2c: 01 00 00 1E 3E 5C [11:34:14]*** FLAG_PRN_KEY set [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 1E 3E 00 08 00 00 00 FF 0F 79 [11:34:14]state=0 [11:34:14]Key pressed [11:34:14]Feed [11:34:14]Write to MH i2c: D8 00 00 1F 3E 34 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: D8 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: D8 01 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: D8 01 00 1F 3E 00 35 [11:34:14]int [11:34:14]Write to MH i2c: 01 00 00 20 3E 5E [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 20 3E 00 48 00 00 00 3C 00 E9 [11:34:14]state=2 [11:34:14]Key pressed [11:34:15]int [11:34:15]Write to MH i2c: 01 00 00 21 3E 5F [11:34:15]*** FLAG_PRN_KEY reset [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 21 3E 00 00 00 00 00 F6 0F 6B [11:34:15]state=2 [11:34:15]Stop feed [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:32]accept exits with 9 [11:38:32]New connection [11:38:32]New thread 3067112804 created [11:38:32]Thread 3066969444 joined [11:38:32]Waiting for new connection... [11:38:32] Sock 9.Parse request [11:38:32]Sock 9.Check first char [11:38:32]Sock 9.First char is OK [11:38:32]request: POST /json_proto HTTP/1.0 [11:38:32]Method: POST [11:38:32]URL: /json_proto [11:38:32]Method is POST - this is cgi request [11:38:32]url: /json_proto [11:38:32]query_string will be loaded in cgi processing [11:38:32]execute_cgi json_proto POST (null) [11:38:32]execute_cgi path=json_proto method=POST [11:38:32]POST find Content-Length [11:38:32]Host: 172.17.33.3:8080 [11:38:32]Content-Length: 682 [11:38:32]Content-Type: application/json [11:38:32] [11:38:32]POST finish read [11:38:32]Found Content-Length = 682 [11:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 28.280, "sum" : 944.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 944.00, "payments": [ { "type": 0, "sum" : 944.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:32]execute_script... [11:38: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)347947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 28.280, "sum" : 944.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 944.00, "payments": [ { "type": 0, "sum" : 944.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:32]POST & json_proto [11:38:32]process_json_proto [11:38:32]json parsed OK: [11:38:32]protocol is kg_v1.0 [11:38:32]action value=close_receipt [11:38:32]process_action close_receipt [11:38:32]cmd_close_receipt [11:38:32]MH_GetDate [11:38:32]Write to MH i2c: F0 00 00 22 3E 4F [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 09 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 09 00 22 3E 00 BC 11 1D 66 23 5B 8F 65 1A [11:38:32]GetLastDocTimeStamp 1713180781 [11:38:32]current date 1713181116 [11:38:32]FM_GetShiftState [11:38:32]SAM_PROTO_GetShiftState [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 13 01 00 [11:38:32]Write to MH i2c: E2 08 00 23 3E 80 13 01 00 00 00 00 00 DE [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:32]Read from MH i2c: E2 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 0E 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 0E 00 23 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D2 [11:38:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:38:32]wFMCommunicate OK [11:38:32]SAM_PROTO_GetShiftState done [11:38:32]FM_GetShiftState done [11:38:32]opened in 1713140468 [11:38:32]opened+sec_in_day 1713226868 [11:38:32]quantity*price = 94455 [11:38:32]sum+1 = 94456 [11:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 944.00 Внесено: 1000.00 СДАЧА: 56.00 НСП 1% : 8.36 НДС 12% : 100.31 Наличными: 944.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 124 15.04.2024 11:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29530 ФПД: 45612928308411 1/tax-web-control/client/api/v1/ticket?date=20240415T113836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29530&fm=45612928308411&tin=02508201610067®Number=0000138879044617&sum=94400 [11:38:33]StoreToDocumentArchive [11:38:33]shift 117 fd 29530 [11:38:33]save to /storage/0117/doc_00029530 [11:38:33]save last doc name /storage/0117/doc_00029530 to /storage/kkm_last_doc_name [11:38:33]save OK [11:38:33]Clear old archive folders... [11:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:38:33]tlvbuf is B6DCF150 [11:38:33]SAM_PROTO_ClearQueue [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 09 00 00 [11:38:33]Write to MH i2c: E2 08 00 30 3E 80 09 00 00 00 00 00 00 E0 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 30 3E 00 90 00 E2 [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_ClearQueue done [11:38:33]KKMCreateOFDPacket [11:38:33]OFDProtocolAddRootSTLVToBuf [11:38:33]FM_MakeSignedData [11:38:33]FM_MakeSignedData [11:38:33]SAM_PROTO_SignData [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 01 02 [11:38:33]Write to MH i2c: E2 08 00 31 3E 80 0D 01 02 00 00 00 00 E8 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]wFMCommunicate request_size=255 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 F7 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 27 00 00 00 00 07 04 06 00 C0 70 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BC 11 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 73 00 00 35 04 06 00 29 7C [11:38:33]Write to MH i2c: E2 02 01 32 3E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 F7 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 27 00 00 00 00 07 04 06 00 C0 70 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BC 11 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 73 00 00 35 04 06 00 29 7C 00 00 D8 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]wFMCommunicate request_size=9 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 02 02 04 16 63 94 BB [11:38:33]Write to MH i2c: E2 0C 00 33 3E 80 0D 02 02 04 00 16 63 94 BB 00 00 BB [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 03 02 [11:38:33]Write to MH i2c: E2 08 00 34 3E 80 0D 03 02 00 00 00 00 ED [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0B 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0B 00 34 3E 00 FE 76 54 AC 4E 0A 59 E4 90 00 F7 [11:38:33]RAPDU: FE 76 54 AC 4E 0A 59 E4 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_SignData done [11:38:33]FM_MakeSignedData done [11:38:33]CreateOFDProtocolMessage [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 11 00 00 [11:38:33]Write to MH i2c: E2 08 00 35 3E 80 11 00 00 00 00 00 00 ED [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 35 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [11:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:38:33]wFMCommunicate OK [11:38:33]CreateOFDProtocolMessage done [11:38:33]OFDSenderStorePacket 29530 [11:38:33]StoreOFDPacket docnum=29530 [11:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1B A4 06 01 3A 42 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 F7 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 27 00 00 00 00 07 04 06 00 C0 70 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BC 11 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 73 00 00 35 04 06 00 29 7C 16 63 94 BB FE 76 54 AC 4E 0A 59 E4 [11:38:33]CheckFolder [11:38:33]dirname=/storage/ofd_packets [11:38:33]CheckFolder done [11:38:33]ProducePacketName [11:38:33]name=ofd_packets/00029530 [11:38:33]NVStorageSaveData ofd_packets/00029530 [11:38:33]File name is /storage/ofd_packets/00029530 [11:38:33]Write 300 bytes [11:38:33]NVStorageSaveData done [11:38:33]OFDSenderStorePacket done [11:38:33]KKMCreateOFDPacket done [11:38:33]NVStorageSaveData kkm_last_timestamp [11:38:33]File name is /storage/kkm_last_timestamp [11:38:33]Write 4 bytes [11:38:33]NVStorageSaveData done [11:38:33]ExternCall_PrintAddStr [11:38:33]wPrintStart [11:38:33]Write to MH i2c: 01 00 00 36 3E 74 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 07 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 07 00 36 3E 00 00 00 00 00 FF 0F 89 [11:38:33]RasterBufferAndPrint [11:38:33]line Счет N : (1)347947 [11:38:34]line ИНН: 02508201610067 [11:38:34]line Контрольно-Кассовый Чек [11:38:34]line ПРОДАЖА [11:38:34]line ТРК (МРК, ГНК) : 71 [11:38:34]line Товар: 2711129700 [11:38:34]line ГАЗ-К-5 [11:38:34]line 28.280 * 33.40 [11:38:34]line = 944.55 [11:38:34]line НДС 12% НСП 1% [11:38:34]line > о реализуемом товаре [11:38:34]line ОКРУГЛЕНИЕ: -0.55 [11:38:34]line ИТОГО: 944.00 [11:38:34]line Внесено: 1000.00 [11:38:34]line СДАЧА: 56.00 [11:38:34]line НСП 1% : 8.36 [11:38:34]line НДС 12% : 100.31 [11:38:34]line Наличными: 944.00 [11:38:34]line Безнал.: 0.00 [11:38:34]line Место: АЗС № 108 "Партнер Нефть" [11:38:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:38:34]line СНО: Общий режим [11:38:34]line Чек 124 15.04.2024 11:38 [11:38:34]line Смена: 117 ФФД: 1.0 [11:38:34]line ЗНМ: 0300000027 [11:38:34]line РНМ: 0000138879044617 [11:38:34]line Версия ККМ: 001 [11:38:34]line ФМ: 0000000000963154 [11:38:34]line ФД: 29530 [11:38:34]line ФПД: 45612928308411 [11:38:34]line 1/tax-web-control/client/api/v1/ticket?date=20240415T113836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29530&fm=45612928308411&tin=02508201610067®Number=0000138879044617&sum=94400 [11:38:34]OFD Sender: Processing packet 29530 [packets to send 8, broken 7] [11:38:34]ProducePacketName [11:38:34]name=ofd_packets/00029530 [11:38:34]OFD Sender: To server: pG, [11:38:34]CommunicateWithHost lk.salyk.kg:30040 [11:38:34]ConnectInit lk.salyk.kg [11:38:34]written 0, free lines is 4095 [11:38:34]Connected sock=8 [11:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1B A4 06 01 3A 42 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 6E 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 F7 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 70 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 27 00 00 00 00 07 04 06 00 C0 70 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 BC 11 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 73 00 00 35 04 06 00 29 7C 16 63 94 BB FE 76 54 AC 4E 0A 59 E4 [11:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 2A 47 00 4C 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 39 36 33 31 35 34 10 04 04 00 5A 73 00 00 F4 03 04 00 5D BC 1C 66 B6 04 01 00 00 77 26 42 0F 91 92 71 DA [11:38:34]CommunicateWithHost err = 0 [11:38:34]CheckOFDResponse [11:38:34]1017 (14) - 77093643461234 [11:38:34]1041 (16) - 0000000000963154 [11:38:34]1040 (4) - 29530 [11:38:34]1012 (4) - 15.04.2024 05:34 [11:38:34]1206 (1) - 0 [11:38:34]OFD Sender: Remove packet 29530 [11:38:34]ProducePacketName [11:38:34]name=ofd_packets/00029530 [11:38:34]NVStorageDeleteData [11:38:34]Write to MH i2c: 01 00 00 60 3E 9E [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 07 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 07 00 60 3E 00 00 00 00 00 C2 0C 73 [11:38:34]RasterBufferAndPrint [11:38:34]line [11:38:34]line [11:38:34]line [11:38:34]line [11:38:34]line [11:38:34]written 0, free lines is 3272 [11:38:34]MH_Cut [11:38:34]Write to MH i2c: D1 01 00 67 3E 01 77 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: D1 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: D1 01 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: D1 01 00 67 3E 00 76 [11:38:34]Write to MH i2c: 01 00 00 68 3E A6 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:35]OFD Sender: No OFD packet to send [11:38:35]*** Cut start [11:38:35]*** Partial cut [11:38:35]*** CUTSNS_PIN = 1 [11:38:35]*** CUTSNS_PIN = 0 [11:38:35]*** Brake cut motor [11:38:36]Read from MH i2c: 01 [11:38:36]MH_I2C_Read... [11:38:36]*** Stop cut motor [11:38:36]*** Cut end [11:38:36]Read from MH i2c: 01 07 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: 01 07 00 68 3E 00 00 00 00 00 FF 0F BB [11:38:36]process_action close_receipt done [11:38:36]requested_data is exist [11:38:36]produce_requested_data [11:38:36]requested_item fm.sn is exist - process it [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 11 00 00 [11:38:36]Write to MH i2c: E2 08 00 69 3E 80 11 00 00 00 00 00 00 21 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 17 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 17 00 69 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [11:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:38:36]wFMCommunicate OK [11:38:36]requested_item fd.num is exist - process it [11:38:36]SAM_PROTO_GetFieldsCounters [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 13 00 00 [11:38:36]Write to MH i2c: E2 08 00 6A 3E 80 13 00 00 00 00 00 00 24 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 62 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 62 00 6A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 73 00 00 0E 04 04 00 75 00 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 18 [11:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 73 00 00 0E 04 04 00 75 00 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 [11:38:36]wFMCommunicate OK [11:38:36]SAM_PROTO_GetFieldsCounters done [11:38:36]requested_item shift.num is exist - process it [11:38:36]requested_item shift.opened is exist - process it [11:38:36]req_shift_opened [11:38:36]FM_GetShiftState [11:38:36]SAM_PROTO_GetShiftState [11:38:36]wFMCommunicate request_size=4 [11:38:36]MH_SAM_APDU [11:38:36]CAPDU: 80 13 01 00 [11:38:36]Write to MH i2c: E2 08 00 6B 3E 80 13 01 00 00 00 00 00 26 [11:38:36]Write i2c OK [11:38:36]MH_I2C_Read... [11:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:36]Read from MH i2c: E2 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 0E 00 [11:38:36]MH_I2C_Read... [11:38:36]Read from MH i2c: E2 0E 00 6B 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1A [11:38:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:38:36]wFMCommunicate OK [11:38:36]SAM_PROTO_GetShiftState done [11:38:36]FM_GetShiftState done [11:38:36]req_shift_opened done [11:38:36]requested_item shift.open_date is exist - process it [11:38:36]req_shift_open_date [11:38:36]req_shift_open_date done [11:38:36]produce_requested_data done [11:38:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29530,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:38:36]process_action_free close_receipt [11:38:36]json_value_free [11:38:36]json_value_free done [11:38:36]process_json_proto returns [11:38:36]Send response to host [11:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29530,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:38:36]free response buf [11:38:36]execute_script done [11:38:36]execute_script returns [11:38:36]free content buf [11:38:36]Sock 9.Close socket [11:38:36]Sock 9.Thread stoped [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:04]accept exits with 10 [11:47:04]New connection [11:47:04]New thread 3066969444 created [11:47:04]Thread 3067112804 joined [11:47:04]Waiting for new connection... [11:47:04] Sock 10.Parse request [11:47:04]Sock 10.Check first char [11:47:04]Sock 10.First char is OK [11:47:04]request: POST /json_proto HTTP/1.0 [11:47:04]Method: POST [11:47:04]URL: /json_proto [11:47:04]Method is POST - this is cgi request [11:47:04]url: /json_proto [11:47:04]query_string will be loaded in cgi processing [11:47:04]execute_cgi json_proto POST (null) [11:47:04]execute_cgi path=json_proto method=POST [11:47:04]POST find Content-Length [11:47:04]Host: 172.17.33.3:8080 [11:47:04]Content-Length: 678 [11:47:04]Content-Type: application/json [11:47:04] [11:47:04]POST finish read [11:47:04]Found Content-Length = 678 [11:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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:47:04]execute_script... [11:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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:47:04]POST & json_proto [11:47:04]process_json_proto [11:47:04]json parsed OK: [11:47:04]protocol is kg_v1.0 [11:47:04]action value=close_receipt [11:47:04]process_action close_receipt [11:47:04]cmd_close_receipt [11:47:04]MH_GetDate [11:47:04]Write to MH i2c: F0 00 00 6C 3E 99 [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 09 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: F0 09 00 6C 3E 00 BC 13 1D 66 23 5B 8F 65 66 [11:47:04]GetLastDocTimeStamp 1713181116 [11:47:04]current date 1713181628 [11:47:04]FM_GetShiftState [11:47:04]SAM_PROTO_GetShiftState [11:47:04]wFMCommunicate request_size=4 [11:47:04]MH_SAM_APDU [11:47:04]CAPDU: 80 13 01 00 [11:47:04]Write to MH i2c: E2 08 00 6D 3E 80 13 01 00 00 00 00 00 28 [11:47:04]Write i2c OK [11:47:04]MH_I2C_Read... [11:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:04]Read from MH i2c: E2 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: E2 0E 00 [11:47:04]MH_I2C_Read... [11:47:04]Read from MH i2c: E2 0E 00 6D 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1C [11:47:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:47:04]wFMCommunicate OK [11:47:04]SAM_PROTO_GetShiftState done [11:47:04]FM_GetShiftState done [11:47:04]opened in 1713140468 [11:47:04]opened+sec_in_day 1713226868 [11:47:04]quantity*price = 65059 [11:47:04]sum+1 = 65060 [11:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 125 15.04.2024 11:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29531 ФПД: 277662471804354 1/tax-web-control/client/api/v1/ticket?date=20240415T114708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29531&fm=277662471804354&tin=02508201610067®Number=0000138879044617&sum=65000 [11:47:05]StoreToDocumentArchive [11:47:05]shift 117 fd 29531 [11:47:05]save to /storage/0117/doc_00029531 [11:47:05]save last doc name /storage/0117/doc_00029531 to /storage/kkm_last_doc_name [11:47:05]save OK [11:47:05]Clear old archive folders... [11:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:05]tlvbuf is 002A6F70 [11:47:05]SAM_PROTO_ClearQueue [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 09 00 00 [11:47:05]Write to MH i2c: E2 08 00 7A 3E 80 09 00 00 00 00 00 00 2A [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 7A 3E 00 90 00 2C [11:47:05]RAPDU: 90 00 [11:47:05]wFMCommunicate OK [11:47:05]SAM_PROTO_ClearQueue done [11:47:05]KKMCreateOFDPacket [11:47:05]OFDProtocolAddRootSTLVToBuf [11:47:05]FM_MakeSignedData [11:47:05]FM_MakeSignedData [11:47:05]SAM_PROTO_SignData [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 0D 01 02 [11:47:05]Write to MH i2c: E2 08 00 7B 3E 80 0D 01 02 00 00 00 00 32 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 7B 3E 00 90 00 2D [11:47:05]RAPDU: 90 00 [11:47:05]wFMCommunicate OK [11:47:05]wFMCommunicate request_size=255 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 73 00 00 35 04 06 00 FC [11:47:05]Write to MH i2c: E2 02 01 7C 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 73 00 00 35 04 06 00 FC 00 00 73 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 03 00 7C 3E 00 90 00 2E [11:47:05]RAPDU: 90 00 [11:47:05]wFMCommunicate OK [11:47:05]wFMCommunicate request_size=10 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 0D 02 02 05 88 54 FF D5 C2 [11:47:05]Write to MH i2c: E2 0D 00 7D 3E 80 0D 02 02 05 00 88 54 FF D5 C2 00 00 B1 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 7D 3E 00 90 00 2F [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 03 02 [11:47:06]Write to MH i2c: E2 08 00 7E 3E 80 0D 03 02 00 00 00 00 37 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 7E 3E 00 C8 66 A5 C6 FA 48 E9 D5 90 00 D1 [11:47:06]RAPDU: C8 66 A5 C6 FA 48 E9 D5 90 00 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_SignData done [11:47:06]FM_MakeSignedData done [11:47:06]CreateOFDProtocolMessage [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 11 00 00 [11:47:06]Write to MH i2c: E2 08 00 7F 3E 80 11 00 00 00 00 00 00 37 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 7F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [11:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:06]wFMCommunicate OK [11:47:06]CreateOFDProtocolMessage done [11:47:06]OFDSenderStorePacket 29531 [11:47:06]StoreOFDPacket docnum=29531 [11:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 EE 07 01 50 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 73 00 00 35 04 06 00 FC 88 54 FF D5 C2 C8 66 A5 C6 FA 48 E9 D5 [11:47:06]CheckFolder [11:47:06]dirname=/storage/ofd_packets [11:47:06]CheckFolder done [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00029531 [11:47:06]NVStorageSaveData ofd_packets/00029531 [11:47:06]File name is /storage/ofd_packets/00029531 [11:47:06]Write 301 bytes [11:47:06]NVStorageSaveData done [11:47:06]OFDSenderStorePacket done [11:47:06]KKMCreateOFDPacket done [11:47:06]NVStorageSaveData kkm_last_timestamp [11:47:06]File name is /storage/kkm_last_timestamp [11:47:06]Write 4 bytes [11:47:06]NVStorageSaveData done [11:47:06]ExternCall_PrintAddStr [11:47:06]wPrintStart [11:47:06]Write to MH i2c: 01 00 00 80 3E BE [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 80 3E 00 00 00 00 00 FF 0F D3 [11:47:06]RasterBufferAndPrint [11:47:06]line Счет N : (1)347948 [11:47:06]line ИНН: 02508201610067 [11:47:06]line Контрольно-Кассовый Чек [11:47:06]line ПРОДАЖА [11:47:06]line ТРК (МРК, ГНК) : 42 [11:47:06]line Товар: 2710124130 [11:47:06]line Аи-92-К-5 [11:47:06]line 10.040 * 64.80 [11:47:06]line = 650.59 [11:47:06]line НДС 12% НСП 1% [11:47:06]line > о реализуемом товаре [11:47:06]line ОКРУГЛЕНИЕ: -0.59 [11:47:06]line ИТОГО: 650.00 [11:47:06]line Внесено: 650.00 [11:47:06]line СДАЧА: 0.00 [11:47:06]line НСП 1% : 5.76 [11:47:06]line НДС 12% : 69.09 [11:47:06]line Наличными: 650.00 [11:47:06]line Безнал.: 0.00 [11:47:06]line Место: АЗС № 108 "Партнер Нефть" [11:47:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:47:06]line СНО: Общий режим [11:47:06]line Чек 125 15.04.2024 11:47 [11:47:06]line Смена: 117 ФФД: 1.0 [11:47:06]line ЗНМ: 0300000027 [11:47:06]line РНМ: 0000138879044617 [11:47:06]line Версия ККМ: 001 [11:47:06]line ФМ: 0000000000963154 [11:47:06]line ФД: 29531 [11:47:06]line ФПД: 277662471804354 [11:47:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T114708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29531&fm=277662471804354&tin=02508201610067®Number=0000138879044617&sum=65000 [11:47:06]OFD Sender: Processing packet 29531 [packets to send 8, broken 7] [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00029531 [11:47:06]OFD Sender: To server: pG, [11:47:06]CommunicateWithHost lk.salyk.kg:30040 [11:47:06]ConnectInit lk.salyk.kg [11:47:06]written 0, free lines is 4095 [11:47:06]Connected sock=9 [11:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 EE 07 01 50 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 73 00 00 35 04 06 00 FC 88 54 FF D5 C2 C8 66 A5 C6 FA 48 E9 D5 [11:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 16 92 47 00 23 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 73 00 00 F4 03 04 00 5D BE 1C 66 B6 04 01 00 00 92 45 5C 81 AF 23 48 37 [11:47:06]CommunicateWithHost err = 0 [11:47:06]CheckOFDResponse [11:47:06]1017 (14) - 77093643461234 [11:47:06]1041 (16) - 0000000000963154 [11:47:06]1040 (4) - 29531 [11:47:06]1012 (4) - 15.04.2024 05:42 [11:47:06]1206 (1) - 0 [11:47:06]OFD Sender: Remove packet 29531 [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00029531 [11:47:06]NVStorageDeleteData [11:47:06]Write to MH i2c: 01 00 00 AA 3E E8 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 AA 3E 00 00 00 00 00 BB 0C B6 [11:47:06]RasterBufferAndPrint [11:47:06]line [11:47:06]line [11:47:06]line [11:47:06]line [11:47:06]line [11:47:06]written 0, free lines is 3264 [11:47:06]MH_Cut [11:47:06]Write to MH i2c: D1 01 00 B1 3E 01 C1 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: D1 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: D1 01 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: D1 01 00 B1 3E 00 C0 [11:47:06]Write to MH i2c: 01 00 00 B2 3E F0 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:07]OFD Sender: No OFD packet to send [11:47:07]*** Cut start [11:47:07]*** Partial cut [11:47:07]*** CUTSNS_PIN = 1 [11:47:07]*** CUTSNS_PIN = 0 [11:47:08]*** Brake cut motor [11:47:08]Read from MH i2c: 01 [11:47:08]MH_I2C_Read... [11:47:08]*** Stop cut motor [11:47:08]*** Cut end [11:47:08]Read from MH i2c: 01 07 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 FF 0F 05 [11:47:08]process_action close_receipt done [11:47:08]requested_data is exist [11:47:08]produce_requested_data [11:47:08]requested_item fm.sn is exist - process it [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 11 00 00 [11:47:08]Write to MH i2c: E2 08 00 B3 3E 80 11 00 00 00 00 00 00 6B [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 17 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 17 00 B3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [11:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:47:08]wFMCommunicate OK [11:47:08]requested_item fd.num is exist - process it [11:47:08]SAM_PROTO_GetFieldsCounters [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 13 00 00 [11:47:08]Write to MH i2c: E2 08 00 B4 3E 80 13 00 00 00 00 00 00 6E [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 62 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 62 00 B4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 73 00 00 0E 04 04 00 75 00 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 66 [11:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 73 00 00 0E 04 04 00 75 00 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 [11:47:08]wFMCommunicate OK [11:47:08]SAM_PROTO_GetFieldsCounters done [11:47:08]requested_item shift.num is exist - process it [11:47:08]requested_item shift.opened is exist - process it [11:47:08]req_shift_opened [11:47:08]FM_GetShiftState [11:47:08]SAM_PROTO_GetShiftState [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 13 01 00 [11:47:08]Write to MH i2c: E2 08 00 B5 3E 80 13 01 00 00 00 00 00 70 [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:08]Read from MH i2c: E2 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 0E 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: E2 0E 00 B5 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 64 [11:47:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:47:08]wFMCommunicate OK [11:47:08]SAM_PROTO_GetShiftState done [11:47:08]FM_GetShiftState done [11:47:08]req_shift_opened done [11:47:08]requested_item shift.open_date is exist - process it [11:47:08]req_shift_open_date [11:47:08]req_shift_open_date done [11:47:08]produce_requested_data done [11:47:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29531,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:47:08]process_action_free close_receipt [11:47:08]json_value_free [11:47:08]json_value_free done [11:47:08]process_json_proto returns [11:47:08]Send response to host [11:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29531,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:47:08]free response buf [11:47:08]execute_script done [11:47:08]execute_script returns [11:47:08]free content buf [11:47:08]Sock 10.Close socket [11:47:08]Sock 10.Thread stoped [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:03]accept exits with 8 [11:48:03]New connection [11:48:03]New thread 3067112804 created [11:48:03]Thread 3066969444 joined [11:48:03]Waiting for new connection... [11:48:03] Sock 8.Parse request [11:48:03]Sock 8.Check first char [11:48:03]Sock 8.First char is OK [11:48:03]request: POST /json_proto HTTP/1.0 [11:48:03]Method: POST [11:48:03]URL: /json_proto [11:48:03]Method is POST - this is cgi request [11:48:03]url: /json_proto [11:48:03]query_string will be loaded in cgi processing [11:48:03]execute_cgi json_proto POST (null) [11:48:03]execute_cgi path=json_proto method=POST [11:48:03]POST find Content-Length [11:48:03]Host: 172.17.33.3:8080 [11:48:03]Content-Length: 677 [11:48:03]Content-Type: application/json [11:48:03] [11:48:03]POST finish read [11:48:03]Found Content-Length = 677 [11:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 3.000, "sum" : 218.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 218.00, "total" : 218.00, "payments": [ { "type": 0, "sum" : 218.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:03]execute_script... [11:48: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)347949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 3.000, "sum" : 218.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 218.00, "total" : 218.00, "payments": [ { "type": 0, "sum" : 218.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:03]POST & json_proto [11:48:03]process_json_proto [11:48:03]json parsed OK: [11:48:03]protocol is kg_v1.0 [11:48:03]action value=close_receipt [11:48:03]process_action close_receipt [11:48:03]cmd_close_receipt [11:48:03]MH_GetDate [11:48:03]Write to MH i2c: F0 00 00 B6 3E E3 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 09 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: F0 09 00 B6 3E 00 F7 13 1D 66 23 5B 8F 65 EB [11:48:03]GetLastDocTimeStamp 1713181628 [11:48:03]current date 1713181687 [11:48:03]FM_GetShiftState [11:48:03]SAM_PROTO_GetShiftState [11:48:03]wFMCommunicate request_size=4 [11:48:03]MH_SAM_APDU [11:48:03]CAPDU: 80 13 01 00 [11:48:03]Write to MH i2c: E2 08 00 B7 3E 80 13 01 00 00 00 00 00 72 [11:48:03]Write i2c OK [11:48:03]MH_I2C_Read... [11:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:03]Read from MH i2c: E2 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0E 00 [11:48:03]MH_I2C_Read... [11:48:03]Read from MH i2c: E2 0E 00 B7 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [11:48:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:48:03]wFMCommunicate OK [11:48:03]SAM_PROTO_GetShiftState done [11:48:03]FM_GetShiftState done [11:48:03]opened in 1713140468 [11:48:03]opened+sec_in_day 1713226868 [11:48:03]quantity*price = 21870 [11:48:03]sum+1 = 21871 [11:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 218.00 Внесено: 218.00 СДАЧА: 0.00 НСП 1% : 1.93 НДС 12% : 23.22 Наличными: 218.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 126 15.04.2024 11:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29532 ФПД: 67732834708203 1/tax-web-control/client/api/v1/ticket?date=20240415T114807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29532&fm=67732834708203&tin=02508201610067®Number=0000138879044617&sum=21800 [11:48:04]StoreToDocumentArchive [11:48:04]shift 117 fd 29532 [11:48:04]save to /storage/0117/doc_00029532 [11:48:04]save last doc name /storage/0117/doc_00029532 to /storage/kkm_last_doc_name [11:48:04]save OK [11:48:04]Clear old archive folders... [11:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:04]tlvbuf is 002AA270 [11:48:04]SAM_PROTO_ClearQueue [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 09 00 00 [11:48:04]Write to MH i2c: E2 08 00 C4 3E 80 09 00 00 00 00 00 00 74 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 C4 3E 00 90 00 76 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]SAM_PROTO_ClearQueue done [11:48:04]KKMCreateOFDPacket [11:48:04]OFDProtocolAddRootSTLVToBuf [11:48:04]FM_MakeSignedData [11:48:04]FM_MakeSignedData [11:48:04]SAM_PROTO_SignData [11:48:04]wFMCommunicate request_size=4 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 01 02 [11:48:04]Write to MH i2c: E2 08 00 C5 3E 80 0D 01 02 00 00 00 00 7C [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 C5 3E 00 90 00 77 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=255 [11:48:04]MH_SAM_APDU [11:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 09 00 00 00 00 07 04 06 00 28 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F7 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 73 00 00 35 04 06 00 3D [11:48:04]Write to MH i2c: E2 02 01 C6 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 09 00 00 00 00 07 04 06 00 28 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F7 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 73 00 00 35 04 06 00 3D 00 00 25 [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:04]Read from MH i2c: E2 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 [11:48:04]MH_I2C_Read... [11:48:04]Read from MH i2c: E2 03 00 C6 3E 00 90 00 78 [11:48:04]RAPDU: 90 00 [11:48:04]wFMCommunicate OK [11:48:04]wFMCommunicate request_size=10 [11:48:04]MH_SAM_APDU [11:48:04]CAPDU: 80 0D 02 02 05 9A 47 8D 6A EB [11:48:04]Write to MH i2c: E2 0D 00 C7 3E 80 0D 02 02 05 00 9A 47 8D 6A EB 00 00 4C [11:48:04]Write i2c OK [11:48:04]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [11:48:05]RAPDU: 90 00 [11:48:05]wFMCommunicate OK [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 0D 03 02 [11:48:05]Write to MH i2c: E2 08 00 C8 3E 80 0D 03 02 00 00 00 00 81 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0B 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 0B 00 C8 3E 00 C7 3C C8 71 64 30 BB 71 90 00 7E [11:48:05]RAPDU: C7 3C C8 71 64 30 BB 71 90 00 [11:48:05]wFMCommunicate OK [11:48:05]SAM_PROTO_SignData done [11:48:05]FM_MakeSignedData done [11:48:05]CreateOFDProtocolMessage [11:48:05]wFMCommunicate request_size=4 [11:48:05]MH_SAM_APDU [11:48:05]CAPDU: 80 11 00 00 [11:48:05]Write to MH i2c: E2 08 00 C9 3E 80 11 00 00 00 00 00 00 81 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:05]Read from MH i2c: E2 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: E2 17 00 C9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [11:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:05]wFMCommunicate OK [11:48:05]CreateOFDProtocolMessage done [11:48:05]OFDSenderStorePacket 29532 [11:48:05]StoreOFDPacket docnum=29532 [11:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C 38 07 01 97 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 09 00 00 00 00 07 04 06 00 28 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F7 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 73 00 00 35 04 06 00 3D 9A 47 8D 6A EB C7 3C C8 71 64 30 BB 71 [11:48:05]CheckFolder [11:48:05]dirname=/storage/ofd_packets [11:48:05]CheckFolder done [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00029532 [11:48:05]NVStorageSaveData ofd_packets/00029532 [11:48:05]File name is /storage/ofd_packets/00029532 [11:48:05]Write 301 bytes [11:48:05]NVStorageSaveData done [11:48:05]OFDSenderStorePacket done [11:48:05]KKMCreateOFDPacket done [11:48:05]NVStorageSaveData kkm_last_timestamp [11:48:05]File name is /storage/kkm_last_timestamp [11:48:05]Write 4 bytes [11:48:05]NVStorageSaveData done [11:48:05]ExternCall_PrintAddStr [11:48:05]wPrintStart [11:48:05]Write to MH i2c: 01 00 00 CA 3E 08 [11:48:05]OFD Sender: Processing packet 29532 [packets to send 8, broken 7] [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00029532 [11:48:05]OFD Sender: To server: pG, [11:48:05]CommunicateWithHost lk.salyk.kg:30040 [11:48:05]ConnectInit lk.salyk.kg [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 CA 3E 00 00 00 00 00 FF 0F 1D [11:48:05]RasterBufferAndPrint [11:48:05]line Счет N : (1)347949 [11:48:05]line ИНН: 02508201610067 [11:48:05]line Контрольно-Кассовый Чек [11:48:05]line ПРОДАЖА [11:48:05]line ТРК (МРК, ГНК) : 33 [11:48:05]line Товар: 2710124500 [11:48:05]line Аи-95-К-5 [11:48:05]line 3.000 * 72.90 [11:48:05]line = 218.70 [11:48:05]line НДС 12% НСП 1% [11:48:05]line > о реализуемом товаре [11:48:05]line ОКРУГЛЕНИЕ: -0.70 [11:48:05]line ИТОГО: 218.00 [11:48:05]line Внесено: 218.00 [11:48:05]line СДАЧА: 0.00 [11:48:05]line НСП 1% : 1.93 [11:48:05]line НДС 12% : 23.22 [11:48:05]line Наличными: 218.00 [11:48:05]line Безнал.: 0.00 [11:48:05]line Место: АЗС № 108 "Партнер Нефть" [11:48:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:48:05]line СНО: Общий режим [11:48:05]line Чек 126 15.04.2024 11:48 [11:48:05]line Смена: 117 ФФД: 1.0 [11:48:05]line ЗНМ: 0300000027 [11:48:05]line РНМ: 0000138879044617 [11:48:05]line Версия ККМ: 001 [11:48:05]line ФМ: 0000000000963154 [11:48:05]line ФД: 29532 [11:48:05]line ФПД: 67732834708203 [11:48:05]line 1/tax-web-control/client/api/v1/ticket?date=20240415T114807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29532&fm=67732834708203&tin=02508201610067®Number=0000138879044617&sum=21800 [11:48:05]Connected sock=10 [11:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4C 38 07 01 97 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 09 00 00 00 00 07 04 06 00 28 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F7 13 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 73 00 00 35 04 06 00 3D 9A 47 8D 6A EB C7 3C C8 71 64 30 BB 71 [11:48:05]written 0, free lines is 4095 [11:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 45 67 47 00 E2 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 39 36 33 31 35 34 10 04 04 00 5C 73 00 00 F4 03 04 00 98 BE 1C 66 B6 04 01 00 00 D9 CD 7C 64 A9 30 E9 CF [11:48:05]CommunicateWithHost err = 0 [11:48:05]CheckOFDResponse [11:48:05]1017 (14) - 77093643461234 [11:48:05]1041 (16) - 0000000000963154 [11:48:05]1040 (4) - 29532 [11:48:05]1012 (4) - 15.04.2024 05:43 [11:48:05]1206 (1) - 0 [11:48:05]OFD Sender: Remove packet 29532 [11:48:05]ProducePacketName [11:48:05]name=ofd_packets/00029532 [11:48:05]NVStorageDeleteData [11:48:05]Write to MH i2c: 01 00 00 F4 3E 32 [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: 01 07 00 F4 3E 00 00 00 00 00 BC 0C 01 [11:48:05]RasterBufferAndPrint [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]line [11:48:05]written 0, free lines is 3264 [11:48:05]MH_Cut [11:48:05]Write to MH i2c: D1 01 00 FB 3E 01 0B [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 [11:48:05]MH_I2C_Read... [11:48:05]Read from MH i2c: D1 01 00 FB 3E 00 0A [11:48:05]Write to MH i2c: 01 00 00 FC 3E 3A [11:48:05]Write i2c OK [11:48:05]MH_I2C_Read... [11:48:06]OFD Sender: No OFD packet to send [11:48:06]*** Cut start [11:48:06]*** Partial cut [11:48:06]*** CUTSNS_PIN = 1 [11:48:06]*** CUTSNS_PIN = 0 [11:48:07]*** Brake cut motor [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]*** Stop cut motor [11:48:07]*** Cut end [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 FC 3E 00 00 00 00 00 FF 0F 4F [11:48:07]process_action close_receipt done [11:48:07]requested_data is exist [11:48:07]produce_requested_data [11:48:07]requested_item fm.sn is exist - process it [11:48:07]wFMCommunicate request_size=4 [11:48:07]MH_SAM_APDU [11:48:07]CAPDU: 80 11 00 00 [11:48:07]Write to MH i2c: E2 08 00 FD 3E 80 11 00 00 00 00 00 00 B5 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:07]Read from MH i2c: E2 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 17 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 17 00 FD 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [11:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:07]wFMCommunicate OK [11:48:07]requested_item fd.num is exist - process it [11:48:07]SAM_PROTO_GetFieldsCounters [11:48:07]wFMCommunicate request_size=4 [11:48:07]MH_SAM_APDU [11:48:07]CAPDU: 80 13 00 00 [11:48:07]Write to MH i2c: E2 08 00 FE 3E 80 13 00 00 00 00 00 00 B8 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:07]Read from MH i2c: E2 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 62 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 62 00 FE 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 73 00 00 0E 04 04 00 75 00 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 B4 [11:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 73 00 00 0E 04 04 00 75 00 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 [11:48:07]wFMCommunicate OK [11:48:07]SAM_PROTO_GetFieldsCounters done [11:48:07]requested_item shift.num is exist - process it [11:48:07]requested_item shift.opened is exist - process it [11:48:07]req_shift_opened [11:48:07]FM_GetShiftState [11:48:07]SAM_PROTO_GetShiftState [11:48:07]wFMCommunicate request_size=4 [11:48:07]MH_SAM_APDU [11:48:07]CAPDU: 80 13 01 00 [11:48:07]Write to MH i2c: E2 08 00 FF 3E 80 13 01 00 00 00 00 00 BA [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:07]Read from MH i2c: E2 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 FF 3E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AE [11:48:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:48:07]wFMCommunicate OK [11:48:07]SAM_PROTO_GetShiftState done [11:48:07]FM_GetShiftState done [11:48:07]req_shift_opened done [11:48:07]requested_item shift.open_date is exist - process it [11:48:07]req_shift_open_date [11:48:07]req_shift_open_date done [11:48:07]produce_requested_data done [11:48:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29532,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:48:07]process_action_free close_receipt [11:48:07]json_value_free [11:48:07]json_value_free done [11:48:07]process_json_proto returns [11:48:07]Send response to host [11:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29532,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:48:07]free response buf [11:48:07]execute_script done [11:48:07]execute_script returns [11:48:07]free content buf [11:48:07]Sock 8.Close socket [11:48:07]Sock 8.Thread stoped [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:12]accept exits with 9 [11:54:12]New connection [11:54:12]New thread 3066969444 created [11:54:12]Thread 3067112804 joined [11:54:12]Waiting for new connection... [11:54:12] Sock 9.Parse request [11:54:12]Sock 9.Check first char [11:54:12]Sock 9.First char is OK [11:54:12]request: POST /json_proto HTTP/1.0 [11:54:12]Method: POST [11:54:12]URL: /json_proto [11:54:12]Method is POST - this is cgi request [11:54:12]url: /json_proto [11:54:12]query_string will be loaded in cgi processing [11:54:12]execute_cgi json_proto POST (null) [11:54:12]execute_cgi path=json_proto method=POST [11:54:12]POST find Content-Length [11:54:12]Host: 172.17.33.3:8080 [11:54:12]Content-Length: 840 [11:54:12]Content-Type: application/json [11:54:12] [11:54:12]POST finish read [11:54:12]Found Content-Length = 840 [11:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:12]execute_script... [11:54: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)347950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:12]POST & json_proto [11:54:12]process_json_proto [11:54:12]json parsed OK: [11:54:12]protocol is kg_v1.0 [11:54:12]action value=close_receipt [11:54:12]process_action close_receipt [11:54:12]cmd_close_receipt [11:54:12]MH_GetDate [11:54:12]Write to MH i2c: F0 00 00 00 3F 2E [11:54:12]Write i2c OK [11:54:12]MH_I2C_Read... [11:54:12]Read from MH i2c: F0 [11:54:12]MH_I2C_Read... [11:54:12]Read from MH i2c: F0 09 00 [11:54:12]MH_I2C_Read... [11:54:12]Read from MH i2c: F0 09 00 00 3F 00 69 15 1D 66 23 5B 8F 65 AA [11:54:12]GetLastDocTimeStamp 1713181687 [11:54:12]current date 1713182057 [11:54:12]FM_GetShiftState [11:54:12]SAM_PROTO_GetShiftState [11:54:12]wFMCommunicate request_size=4 [11:54:12]MH_SAM_APDU [11:54:12]CAPDU: 80 13 01 00 [11:54:12]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [11:54:12]Write i2c OK [11:54:12]MH_I2C_Read... [11:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:12]Read from MH i2c: E2 [11:54:12]MH_I2C_Read... [11:54:12]Read from MH i2c: E2 0E 00 [11:54:12]MH_I2C_Read... [11:54:12]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [11:54:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:54:12]wFMCommunicate OK [11:54:12]SAM_PROTO_GetShiftState done [11:54:12]FM_GetShiftState done [11:54:12]opened in 1713140468 [11:54:12]opened+sec_in_day 1713226868 [11:54:12]quantity*price = 200037 [11:54:12]sum+1 = 200039 [11:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 127 15.04.2024 11:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29533 ФПД: 166674481277429 1/tax-web-control/client/api/v1/ticket?date=20240415T115417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29533&fm=166674481277429&tin=02508201610067®Number=0000138879044617&sum=200038 [11:54:13]StoreToDocumentArchive [11:54:13]shift 117 fd 29533 [11:54:13]save to /storage/0117/doc_00029533 [11:54:13]save last doc name /storage/0117/doc_00029533 to /storage/kkm_last_doc_name [11:54:13]save OK [11:54:13]Clear old archive folders... [11:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:13]tlvbuf is 0022F2C0 [11:54:13]SAM_PROTO_ClearQueue [11:54:13]wFMCommunicate request_size=4 [11:54:13]MH_SAM_APDU [11:54:13]CAPDU: 80 09 00 00 [11:54:13]Write to MH i2c: E2 08 00 0E 3F 80 09 00 00 00 00 00 00 BF [11:54:13]Write i2c OK [11:54:13]MH_I2C_Read... [11:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 0E 3F 00 90 00 C1 [11:54:14]RAPDU: 90 00 [11:54:14]wFMCommunicate OK [11:54:14]SAM_PROTO_ClearQueue done [11:54:14]KKMCreateOFDPacket [11:54:14]OFDProtocolAddRootSTLVToBuf [11:54:14]FM_MakeSignedData [11:54:14]FM_MakeSignedData [11:54:14]SAM_PROTO_SignData [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 0D 01 02 [11:54:14]Write to MH i2c: E2 08 00 0F 3F 80 0D 01 02 00 00 00 00 C7 [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 0F 3F 00 90 00 C2 [11:54:14]RAPDU: 90 00 [11:54:14]wFMCommunicate OK [11:54:14]wFMCommunicate request_size=255 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 69 15 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 73 00 00 35 04 06 00 97 96 ED 3F [11:54:14]Write to MH i2c: E2 02 01 10 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 69 15 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 73 00 00 35 04 06 00 97 96 ED 3F 00 00 2F [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [11:54:14]RAPDU: 90 00 [11:54:14]wFMCommunicate OK [11:54:14]wFMCommunicate request_size=7 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 0D 02 02 02 E9 F5 [11:54:14]Write to MH i2c: E2 0A 00 11 3F 80 0D 02 02 02 00 E9 F5 00 00 AC [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [11:54:14]RAPDU: 90 00 [11:54:14]wFMCommunicate OK [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 0D 03 02 [11:54:14]Write to MH i2c: E2 08 00 12 3F 80 0D 03 02 00 00 00 00 CC [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0B 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0B 00 12 3F 00 1B DF F7 F9 92 DB A8 3E 90 00 0A [11:54:14]RAPDU: 1B DF F7 F9 92 DB A8 3E 90 00 [11:54:14]wFMCommunicate OK [11:54:14]SAM_PROTO_SignData done [11:54:14]FM_MakeSignedData done [11:54:14]CreateOFDProtocolMessage [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 11 00 00 [11:54:14]Write to MH i2c: E2 08 00 13 3F 80 11 00 00 00 00 00 00 CC [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 17 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 17 00 13 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [11:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:54:14]wFMCommunicate OK [11:54:14]CreateOFDProtocolMessage done [11:54:14]OFDSenderStorePacket 29533 [11:54:14]StoreOFDPacket docnum=29533 [11:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CA 2E 04 01 FD 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 69 15 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 73 00 00 35 04 06 00 97 96 ED 3F E9 F5 1B DF F7 F9 92 DB A8 3E [11:54:14]CheckFolder [11:54:14]dirname=/storage/ofd_packets [11:54:14]CheckFolder done [11:54:14]ProducePacketName [11:54:14]name=ofd_packets/00029533 [11:54:14]NVStorageSaveData ofd_packets/00029533 [11:54:14]File name is /storage/ofd_packets/00029533 [11:54:14]Write 298 bytes [11:54:14]NVStorageSaveData done [11:54:14]OFDSenderStorePacket done [11:54:14]KKMCreateOFDPacket done [11:54:14]NVStorageSaveData kkm_last_timestamp [11:54:14]File name is /storage/kkm_last_timestamp [11:54:14]Write 4 bytes [11:54:14]NVStorageSaveData done [11:54:14]ExternCall_PrintAddStr [11:54:14]wPrintStart [11:54:14]Write to MH i2c: 01 00 00 14 3F 53 [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 07 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [11:54:14]RasterBufferAndPrint [11:54:14]line Счет N : (1)347950 [11:54:14]line ИНН: 02508201610067 [11:54:14]line Контрольно-Кассовый Чек [11:54:14]line ПРОДАЖА [11:54:14]line ТРК (МРК, ГНК) : 51 [11:54:14]line Товар: 2710194210 [11:54:14]line ДТ-К-5 [11:54:14]line 27.440 * 72.90 [11:54:14]line = 2000.38 [11:54:14]line НДС 12% НСП 1% [11:54:14]line > о реализуемом товаре [11:54:14]line ИТОГО: 2000.38 [11:54:14]line НСП 1% : 17.70 [11:54:14]line НДС 12% : 212.43 [11:54:14]line Наличными: 0.00 [11:54:14]line Безнал.: 2000.38 [11:54:14]line Место: АЗС № 108 "Партнер Нефть" [11:54:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:54:14]line СНО: Общий режим [11:54:14]line Чек 127 15.04.2024 11:54 [11:54:14]line Смена: 117 ФФД: 1.0 [11:54:14]line ЗНМ: 0300000027 [11:54:14]line РНМ: 0000138879044617 [11:54:14]line Версия ККМ: 001 [11:54:14]line Платежная система: АКБ Кыргызстан [11:54:14]line ФМ: 0000000000963154 [11:54:14]line ФД: 29533 [11:54:14]line ФПД: 166674481277429 [11:54:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T115417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29533&fm=166674481277429&tin=02508201610067®Number=0000138879044617&sum=200038 [11:54:14]OFD Sender: Processing packet 29533 [packets to send 8, broken 7] [11:54:14]ProducePacketName [11:54:14]name=ofd_packets/00029533 [11:54:14]OFD Sender: To server: pG, [11:54:14]CommunicateWithHost lk.salyk.kg:30040 [11:54:14]ConnectInit lk.salyk.kg [11:54:14]written 0, free lines is 4095 [11:54:14]Connected sock=10 [11:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CA 2E 04 01 FD 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 69 15 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 73 00 00 35 04 06 00 97 96 ED 3F E9 F5 1B DF F7 F9 92 DB A8 3E [11:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 87 7E 47 00 18 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 73 00 00 F4 03 04 00 0A C0 1C 66 B6 04 01 00 00 52 70 0C F6 7C DB 67 7B [11:54:15]CommunicateWithHost err = 0 [11:54:15]CheckOFDResponse [11:54:15]1017 (14) - 77093643461234 [11:54:15]1041 (16) - 0000000000963154 [11:54:15]1040 (4) - 29533 [11:54:15]1012 (4) - 15.04.2024 05:50 [11:54:15]1206 (1) - 0 [11:54:15]OFD Sender: Remove packet 29533 [11:54:15]ProducePacketName [11:54:15]name=ofd_packets/00029533 [11:54:15]NVStorageDeleteData [11:54:15]Write to MH i2c: 01 00 00 3D 3F 7C [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 3D 3F 00 00 00 00 00 D9 0C 68 [11:54:15]RasterBufferAndPrint [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]written 0, free lines is 3296 [11:54:15]MH_Cut [11:54:15]Write to MH i2c: D1 01 00 44 3F 01 55 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: D1 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: D1 01 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: D1 01 00 44 3F 00 54 [11:54:15]Write to MH i2c: 01 00 00 45 3F 84 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]OFD Sender: No OFD packet to send [11:54:16]*** Cut start [11:54:16]*** Partial cut [11:54:16]*** CUTSNS_PIN = 1 [11:54:16]*** CUTSNS_PIN = 0 [11:54:16]*** Brake cut motor [11:54:16]Read from MH i2c: 01 [11:54:16]MH_I2C_Read... [11:54:16]*** Stop cut motor [11:54:16]*** Cut end [11:54:16]Read from MH i2c: 01 07 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: 01 07 00 45 3F 00 00 00 00 00 FF 0F 99 [11:54:16]process_action close_receipt done [11:54:16]requested_data is exist [11:54:16]produce_requested_data [11:54:16]requested_item fm.sn is exist - process it [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 11 00 00 [11:54:16]Write to MH i2c: E2 08 00 46 3F 80 11 00 00 00 00 00 00 FF [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:16]Read from MH i2c: E2 17 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 17 00 46 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [11:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:54:16]wFMCommunicate OK [11:54:16]requested_item fd.num is exist - process it [11:54:16]SAM_PROTO_GetFieldsCounters [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 13 00 00 [11:54:16]Write to MH i2c: E2 08 00 47 3F 80 13 00 00 00 00 00 00 02 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 62 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 62 00 47 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 73 00 00 0E 04 04 00 75 00 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 02 [11:54:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 73 00 00 0E 04 04 00 75 00 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 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_GetFieldsCounters done [11:54:16]requested_item shift.num is exist - process it [11:54:16]requested_item shift.opened is exist - process it [11:54:16]req_shift_opened [11:54:16]FM_GetShiftState [11:54:16]SAM_PROTO_GetShiftState [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 13 01 00 [11:54:16]Write to MH i2c: E2 08 00 48 3F 80 13 01 00 00 00 00 00 04 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0E 00 48 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F8 [11:54:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_GetShiftState done [11:54:16]FM_GetShiftState done [11:54:16]req_shift_opened done [11:54:16]requested_item shift.open_date is exist - process it [11:54:16]req_shift_open_date [11:54:16]req_shift_open_date done [11:54:16]produce_requested_data done [11:54:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29533,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [11:54:16]process_action_free close_receipt [11:54:16]json_value_free [11:54:16]json_value_free done [11:54:16]process_json_proto returns [11:54:16]Send response to host [11:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29533,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [11:54:16]free response buf [11:54:16]execute_script done [11:54:16]execute_script returns [11:54:16]free content buf [11:54:16]Sock 9.Close socket [11:54:16]Sock 9.Thread stoped [11:54:18]int [11:54:18]Write to MH i2c: 01 00 00 49 3F 88 [11:54:18]*** FLAG_PRN_PAP1 set [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 49 3F 00 01 00 00 00 FF 0F 9E [11:54:18]state=0 [11:54:18]No paper [11:54:18]int [11:54:18]Write to MH i2c: 01 00 00 4A 3F 89 [11:54:18]*** FLAG_PRN_PAP2 set [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 4A 3F 00 03 00 00 00 FF 0F A1 [11:54:18]state=0 [11:54:18]No paper [11:54:18]Cover opened [11:54:20]int [11:54:20]Write to MH i2c: 01 00 00 4B 3F 8A [11:54:20]*** FLAG_PRN_PAP2 reset [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 4B 3F 00 01 00 00 00 FF 0F A0 [11:54:20]state=3 [11:54:20]No paper [11:54:20]Cover closed [11:54:20]OFD Sender: No OFD packet to send [11:54:20]int [11:54:20]Write to MH i2c: 01 00 00 4C 3F 8B [11:54:20]*** FLAG_PRN_PAP2 set [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 4C 3F 00 03 00 00 00 FF 0F A3 [11:54:20]state=0 [11:54:20]No paper [11:54:20]Cover opened [11:54:25]OFD Sender: No OFD packet to send [11:54:25]Write to MH i2c: 01 00 00 4D 3F 8C [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 07 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 07 00 4D 3F 00 03 00 00 00 FF 0F A4 [11:54:25]state=3 [11:54:25]No paper [11:54:25]Cover opened [11:54:30]OFD Sender: No OFD packet to send [11:54:30]Write to MH i2c: 01 00 00 4E 3F 8D [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: 01 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: 01 07 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: 01 07 00 4E 3F 00 03 00 00 00 FF 0F A5 [11:54:30]state=3 [11:54:30]No paper [11:54:30]Cover opened [11:54:34]int [11:54:34]Write to MH i2c: 01 00 00 4F 3F 8E [11:54:34]*** FLAG_PRN_PAP2 reset [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 4F 3F 00 01 00 00 00 FF 0F A4 [11:54:34]state=3 [11:54:34]No paper [11:54:34]Cover closed [11:54:34]int [11:54:34]Write to MH i2c: 01 00 00 50 3F 8F [11:54:34]*** FLAG_PRN_PAP1 reset [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 50 3F 00 00 00 00 00 FF 0F A4 [11:54:34]state=0 [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:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:38]accept exits with 8 [12:02:38]New connection [12:02:38]New thread 3067112804 created [12:02:38]Thread 3066969444 joined [12:02:38]Waiting for new connection... [12:02:38] Sock 8.Parse request [12:02:38]Sock 8.Check first char [12:02:38]Sock 8.First char is OK [12:02:38]request: POST /json_proto HTTP/1.0 [12:02:38]Method: POST [12:02:38]URL: /json_proto [12:02:38]Method is POST - this is cgi request [12:02:38]url: /json_proto [12:02:38]query_string will be loaded in cgi processing [12:02:38]execute_cgi json_proto POST (null) [12:02:38]execute_cgi path=json_proto method=POST [12:02:38]POST find Content-Length [12:02:38]Host: 172.17.33.3:8080 [12:02:38]Content-Length: 677 [12:02:38]Content-Type: application/json [12:02:38] [12:02:38]POST finish read [12:02:38]Found Content-Length = 677 [12:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:38]execute_script... [12:02: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)347951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:38]POST & json_proto [12:02:38]process_json_proto [12:02:38]json parsed OK: [12:02:38]protocol is kg_v1.0 [12:02:38]action value=close_receipt [12:02:38]process_action close_receipt [12:02:38]cmd_close_receipt [12:02:38]MH_GetDate [12:02:38]Write to MH i2c: F0 00 00 51 3F 7F [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 51 3F 00 62 17 1D 66 23 5B 8F 65 F6 [12:02:38]GetLastDocTimeStamp 1713182057 [12:02:38]current date 1713182562 [12:02:38]FM_GetShiftState [12:02:38]SAM_PROTO_GetShiftState [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 13 01 00 [12:02:38]Write to MH i2c: E2 08 00 52 3F 80 13 01 00 00 00 00 00 0E [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:38]Read from MH i2c: E2 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: E2 0E 00 52 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 02 [12:02:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:02:38]wFMCommunicate OK [12:02:38]SAM_PROTO_GetShiftState done [12:02:38]FM_GetShiftState done [12:02:38]opened in 1713140468 [12:02:38]opened+sec_in_day 1713226868 [12:02:38]quantity*price = 50025 [12:02:38]sum+1 = 50027 [12:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 128 15.04.2024 12:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29534 ФПД: 256881481795681 1/tax-web-control/client/api/v1/ticket?date=20240415T120242&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29534&fm=256881481795681&tin=02508201610067®Number=0000138879044617&sum=50000 [12:02:39]StoreToDocumentArchive [12:02:39]shift 117 fd 29534 [12:02:39]save to /storage/0117/doc_00029534 [12:02:39]save last doc name /storage/0117/doc_00029534 to /storage/kkm_last_doc_name [12:02:39]save OK [12:02:39]Clear old archive folders... [12:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:39]tlvbuf is 00258C80 [12:02:39]SAM_PROTO_ClearQueue [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 09 00 00 [12:02:39]Write to MH i2c: E2 08 00 5F 3F 80 09 00 00 00 00 00 00 10 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 5F 3F 00 90 00 12 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_ClearQueue done [12:02:39]KKMCreateOFDPacket [12:02:39]OFDProtocolAddRootSTLVToBuf [12:02:39]FM_MakeSignedData [12:02:39]FM_MakeSignedData [12:02:39]SAM_PROTO_SignData [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 0D 01 02 [12:02:39]Write to MH i2c: E2 08 00 60 3F 80 0D 01 02 00 00 00 00 18 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 60 3F 00 90 00 13 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]wFMCommunicate request_size=255 [12:02:39]MH_SAM_APDU [12:02: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 17 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 73 00 00 35 04 06 00 E9 [12:02:39]Write to MH i2c: E2 02 01 61 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 17 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 73 00 00 35 04 06 00 E9 00 00 7C [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 61 3F 00 90 00 14 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]wFMCommunicate request_size=10 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 0D 02 02 05 A1 E1 78 C8 61 [12:02:39]Write to MH i2c: E2 0D 00 62 3F 80 0D 02 02 05 00 A1 E1 78 C8 61 00 00 48 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 03 00 62 3F 00 90 00 15 [12:02:39]RAPDU: 90 00 [12:02:39]wFMCommunicate OK [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 0D 03 02 [12:02:39]Write to MH i2c: E2 08 00 63 3F 80 0D 03 02 00 00 00 00 1D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0B 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0B 00 63 3F 00 EB C6 3C B3 B5 22 D5 9B 90 00 05 [12:02:39]RAPDU: EB C6 3C B3 B5 22 D5 9B 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_SignData done [12:02:39]FM_MakeSignedData done [12:02:39]CreateOFDProtocolMessage [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 11 00 00 [12:02:39]Write to MH i2c: E2 08 00 64 3F 80 11 00 00 00 00 00 00 1D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 64 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [12:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:02:39]wFMCommunicate OK [12:02:39]CreateOFDProtocolMessage done [12:02:39]OFDSenderStorePacket 29534 [12:02:39]StoreOFDPacket docnum=29534 [12:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 09 FA 07 01 65 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 17 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 73 00 00 35 04 06 00 E9 A1 E1 78 C8 61 EB C6 3C B3 B5 22 D5 9B [12:02:39]CheckFolder [12:02:39]dirname=/storage/ofd_packets [12:02:39]CheckFolder done [12:02:39]ProducePacketName [12:02:39]name=ofd_packets/00029534 [12:02:39]NVStorageSaveData ofd_packets/00029534 [12:02:39]File name is /storage/ofd_packets/00029534 [12:02:39]Write 301 bytes [12:02:39]NVStorageSaveData done [12:02:39]OFDSenderStorePacket done [12:02:39]KKMCreateOFDPacket done [12:02:39]NVStorageSaveData kkm_last_timestamp [12:02:39]File name is /storage/kkm_last_timestamp [12:02:39]Write 4 bytes [12:02:39]NVStorageSaveData done [12:02:39]ExternCall_PrintAddStr [12:02:39]wPrintStart [12:02:39]Write to MH i2c: 01 00 00 65 3F A4 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 65 3F 00 00 00 00 00 FF 0F B9 [12:02:39]RasterBufferAndPrint [12:02:39]line Счет N : (1)347951 [12:02:39]line ИНН: 02508201610067 [12:02:39]line Контрольно-Кассовый Чек [12:02:39]line ПРОДАЖА [12:02:39]line ТРК (МРК, ГНК) : 13 [12:02:39]line Товар: 2710124130 [12:02:39]line Аи-92-К-5 [12:02:39]line 7.720 * 64.80 [12:02:39]line = 500.26 [12:02:39]line НДС 12% НСП 1% [12:02:39]line > о реализуемом товаре [12:02:39]line ОКРУГЛЕНИЕ: -0.26 [12:02:39]line ИТОГО: 500.00 [12:02:39]line Внесено: 500.00 [12:02:39]line СДАЧА: 0.00 [12:02:39]line НСП 1% : 4.43 [12:02:39]line НДС 12% : 53.12 [12:02:39]line Наличными: 500.00 [12:02:39]line Безнал.: 0.00 [12:02:39]line Место: АЗС № 108 "Партнер Нефть" [12:02:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:02:39]line СНО: Общий режим [12:02:39]line Чек 128 15.04.2024 12:02 [12:02:39]line Смена: 117 ФФД: 1.0 [12:02:39]line ЗНМ: 0300000027 [12:02:39]line РНМ: 0000138879044617 [12:02:39]line Версия ККМ: 001 [12:02:39]line ФМ: 0000000000963154 [12:02:39]line ФД: 29534 [12:02:39]line ФПД: 256881481795681 [12:02:39]line 1/tax-web-control/client/api/v1/ticket?date=20240415T120242&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29534&fm=256881481795681&tin=02508201610067®Number=0000138879044617&sum=50000 [12:02:39]written 0, free lines is 4095 [12:02:40]OFD Sender: Processing packet 29534 [packets to send 8, broken 7] [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00029534 [12:02:40]OFD Sender: To server: pG, [12:02:40]CommunicateWithHost lk.salyk.kg:30040 [12:02:40]ConnectInit lk.salyk.kg [12:02:40]Connected sock=11 [12:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 09 FA 07 01 65 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 62 17 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 73 00 00 35 04 06 00 E9 A1 E1 78 C8 61 EB C6 3C B3 B5 22 D5 9B [12:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C 26 47 00 44 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 39 36 33 31 35 34 10 04 04 00 5E 73 00 00 F4 03 04 00 03 C2 1C 66 B6 04 01 00 00 F1 4C FD D9 3F 13 A6 5A [12:02:40]CommunicateWithHost err = 0 [12:02:40]CheckOFDResponse [12:02:40]1017 (14) - 77093643461234 [12:02:40]1041 (16) - 0000000000963154 [12:02:40]1040 (4) - 29534 [12:02:40]1012 (4) - 15.04.2024 05:58 [12:02:40]1206 (1) - 0 [12:02:40]OFD Sender: Remove packet 29534 [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00029534 [12:02:40]NVStorageDeleteData [12:02:40]Write to MH i2c: 01 00 00 8F 3F CE [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 8F 3F 00 00 00 00 00 BF 0C A0 [12:02:40]RasterBufferAndPrint [12:02:40]line [12:02:40]line [12:02:40]line [12:02:40]line [12:02:40]line [12:02:40]written 0, free lines is 3267 [12:02:40]MH_Cut [12:02:40]Write to MH i2c: D1 01 00 96 3F 01 A7 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: D1 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: D1 01 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: D1 01 00 96 3F 00 A6 [12:02:40]Write to MH i2c: 01 00 00 97 3F D6 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]OFD Sender: No OFD packet to send [12:02:41]*** Cut start [12:02:41]*** Partial cut [12:02:41]*** CUTSNS_PIN = 1 [12:02:41]*** CUTSNS_PIN = 0 [12:02:41]*** Brake cut motor [12:02:41]Read from MH i2c: 01 [12:02:41]MH_I2C_Read... [12:02:41]*** Stop cut motor [12:02:41]*** Cut end [12:02:41]Read from MH i2c: 01 07 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 97 3F 00 00 00 00 00 FF 0F EB [12:02:41]process_action close_receipt done [12:02:41]requested_data is exist [12:02:41]produce_requested_data [12:02:41]requested_item fm.sn is exist - process it [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 11 00 00 [12:02:41]Write to MH i2c: E2 08 00 98 3F 80 11 00 00 00 00 00 00 51 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 17 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 17 00 98 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [12:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:02:41]wFMCommunicate OK [12:02:41]requested_item fd.num is exist - process it [12:02:41]SAM_PROTO_GetFieldsCounters [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 13 00 00 [12:02:41]Write to MH i2c: E2 08 00 99 3F 80 13 00 00 00 00 00 00 54 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 99 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 73 00 00 0E 04 04 00 75 00 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 58 [12:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 73 00 00 0E 04 04 00 75 00 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:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetFieldsCounters done [12:02:42]requested_item shift.num is exist - process it [12:02:42]requested_item shift.opened is exist - process it [12:02:42]req_shift_opened [12:02:42]FM_GetShiftState [12:02:42]SAM_PROTO_GetShiftState [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 13 01 00 [12:02:42]Write to MH i2c: E2 08 00 9A 3F 80 13 01 00 00 00 00 00 56 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 9A 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [12:02:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetShiftState done [12:02:42]FM_GetShiftState done [12:02:42]req_shift_opened done [12:02:42]requested_item shift.open_date is exist - process it [12:02:42]req_shift_open_date [12:02:42]req_shift_open_date done [12:02:42]produce_requested_data done [12:02:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29534,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:02:42]process_action_free close_receipt [12:02:42]json_value_free [12:02:42]json_value_free done [12:02:42]process_json_proto returns [12:02:42]Send response to host [12:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29534,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:02:42]free response buf [12:02:42]execute_script done [12:02:42]execute_script returns [12:02:42]free content buf [12:02:42]Sock 8.Close socket [12:02:42]Sock 8.Thread stoped [12:02:45]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:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:12]accept exits with 9 [12:09:12]New connection [12:09:12]New thread 3066969444 created [12:09:12]Thread 3067112804 joined [12:09:12]Waiting for new connection... [12:09:12] Sock 9.Parse request [12:09:12]Sock 9.Check first char [12:09:12]Sock 9.First char is OK [12:09:12]request: POST /json_proto HTTP/1.0 [12:09:12]Method: POST [12:09:12]URL: /json_proto [12:09:12]Method is POST - this is cgi request [12:09:12]url: /json_proto [12:09:12]query_string will be loaded in cgi processing [12:09:12]execute_cgi json_proto POST (null) [12:09:12]execute_cgi path=json_proto method=POST [12:09:12]POST find Content-Length [12:09:12]Host: 172.17.33.3:8080 [12:09:12]Content-Length: 836 [12:09:12]Content-Type: application/json [12:09:12] [12:09:12]POST finish read [12:09:12]Found Content-Length = 836 [12:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 58.060, "sum" : 3820.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3820.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:12]execute_script... [12:09: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)347953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 58.060, "sum" : 3820.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3820.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:12]POST & json_proto [12:09:12]process_json_proto [12:09:12]json parsed OK: [12:09:12]protocol is kg_v1.0 [12:09:12]action value=close_receipt [12:09:12]process_action close_receipt [12:09:12]cmd_close_receipt [12:09:12]MH_GetDate [12:09:12]Write to MH i2c: F0 00 00 9B 3F C9 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: F0 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: F0 09 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: F0 09 00 9B 3F 00 EC 18 1D 66 23 5B 8F 65 CB [12:09:12]GetLastDocTimeStamp 1713182562 [12:09:12]current date 1713182956 [12:09:12]FM_GetShiftState [12:09:12]SAM_PROTO_GetShiftState [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 13 01 00 [12:09:12]Write to MH i2c: E2 08 00 9C 3F 80 13 01 00 00 00 00 00 58 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0E 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0E 00 9C 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4C [12:09:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:09:12]wFMCommunicate OK [12:09:12]SAM_PROTO_GetShiftState done [12:09:12]FM_GetShiftState done [12:09:12]opened in 1713140468 [12:09:12]opened+sec_in_day 1713226868 [12:09:12]quantity*price = 382034 [12:09:12]sum+1 = 382036 [12:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3820.35 НСП 1% : 33.81 НДС 12% : 405.70 Наличными: 0.00 Безнал.: 3820.35 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 129 15.04.2024 12:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29535 ФПД: 134958643901610 1/tax-web-control/client/api/v1/ticket?date=20240415T120916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29535&fm=134958643901610&tin=02508201610067®Number=0000138879044617&sum=382035 [12:09:13]StoreToDocumentArchive [12:09:13]shift 117 fd 29535 [12:09:13]save to /storage/0117/doc_00029535 [12:09:13]save last doc name /storage/0117/doc_00029535 to /storage/kkm_last_doc_name [12:09:13]save OK [12:09:13]Clear old archive folders... [12:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:09:13]tlvbuf is 00303070 [12:09:13]SAM_PROTO_ClearQueue [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 09 00 00 [12:09:13]Write to MH i2c: E2 08 00 A9 3F 80 09 00 00 00 00 00 00 5A [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 A9 3F 00 90 00 5C [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]SAM_PROTO_ClearQueue done [12:09:13]KKMCreateOFDPacket [12:09:13]OFDProtocolAddRootSTLVToBuf [12:09:13]FM_MakeSignedData [12:09:13]FM_MakeSignedData [12:09:13]SAM_PROTO_SignData [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 01 02 [12:09:13]Write to MH i2c: E2 08 00 AA 3F 80 0D 01 02 00 00 00 00 62 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 AA 3F 00 90 00 5D [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=255 [12:09:13]MH_SAM_APDU [12:09: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC E2 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 53 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 D4 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 EC 18 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 73 00 00 35 04 06 00 [12:09:13]Write to MH i2c: E2 02 01 AB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC E2 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 53 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 D4 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 EC 18 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 73 00 00 35 04 06 00 00 00 DB [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 AB 3F 00 90 00 5E [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=11 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 02 02 06 7A BE 82 07 74 AA [12:09:13]Write to MH i2c: E2 0E 00 AC 3F 80 0D 02 02 06 00 7A BE 82 07 74 AA 00 00 50 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 AC 3F 00 90 00 5F [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 03 02 [12:09:13]Write to MH i2c: E2 08 00 AD 3F 80 0D 03 02 00 00 00 00 67 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0B 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0B 00 AD 3F 00 E7 7F 8D CA 5C 48 E0 F3 90 00 9C [12:09:13]RAPDU: E7 7F 8D CA 5C 48 E0 F3 90 00 [12:09:13]wFMCommunicate OK [12:09:13]SAM_PROTO_SignData done [12:09:13]FM_MakeSignedData done [12:09:13]CreateOFDProtocolMessage [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 11 00 00 [12:09:13]Write to MH i2c: E2 08 00 AE 3F 80 11 00 00 00 00 00 00 67 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 17 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 17 00 AE 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [12:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:09:13]wFMCommunicate OK [12:09:13]CreateOFDProtocolMessage done [12:09:13]OFDSenderStorePacket 29535 [12:09:13]StoreOFDPacket docnum=29535 [12:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E4 C1 08 01 B6 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC E2 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 53 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 D4 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 EC 18 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 73 00 00 35 04 06 00 7A BE 82 07 74 AA E7 7F 8D CA 5C 48 E0 F3 [12:09:13]CheckFolder [12:09:13]dirname=/storage/ofd_packets [12:09:13]CheckFolder done [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00029535 [12:09:13]NVStorageSaveData ofd_packets/00029535 [12:09:13]File name is /storage/ofd_packets/00029535 [12:09:13]Write 302 bytes [12:09:13]NVStorageSaveData done [12:09:13]OFDSenderStorePacket done [12:09:13]KKMCreateOFDPacket done [12:09:13]NVStorageSaveData kkm_last_timestamp [12:09:13]File name is /storage/kkm_last_timestamp [12:09:13]Write 4 bytes [12:09:13]NVStorageSaveData done [12:09:13]ExternCall_PrintAddStr [12:09:13]wPrintStart [12:09:13]Write to MH i2c: 01 00 00 AF 3F EE [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 AF 3F 00 00 00 00 00 FF 0F 03 [12:09:13]RasterBufferAndPrint [12:09:13]line Счет N : (1)347953 [12:09:13]line ИНН: 02508201610067 [12:09:13]line Контрольно-Кассовый Чек [12:09:13]line ПРОДАЖА [12:09:13]line ТРК (МРК, ГНК) : 12 [12:09:13]line Товар: 2710124130 [12:09:13]line SUPER-92-К-5 [12:09:13]line 58.060 * 65.80 [12:09:13]line = 3820.35 [12:09:13]line НДС 12% НСП 1% [12:09:13]line > о реализуемом товаре [12:09:13]line ИТОГО: 3820.35 [12:09:13]line НСП 1% : 33.81 [12:09:13]line НДС 12% : 405.70 [12:09:13]line Наличными: 0.00 [12:09:13]line Безнал.: 3820.35 [12:09:13]line Место: АЗС № 108 "Партнер Нефть" [12:09:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:09:13]line СНО: Общий режим [12:09:13]line Чек 129 15.04.2024 12:09 [12:09:13]line Смена: 117 ФФД: 1.0 [12:09:13]line ЗНМ: 0300000027 [12:09:13]line РНМ: 0000138879044617 [12:09:13]line Версия ККМ: 001 [12:09:13]line Платежная система: АКБ Кыргызстан [12:09:13]line ФМ: 0000000000963154 [12:09:13]line ФД: 29535 [12:09:13]line ФПД: 134958643901610 [12:09:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T120916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29535&fm=134958643901610&tin=02508201610067®Number=0000138879044617&sum=382035 [12:09:14]written 0, free lines is 4095 [12:09:14]OFD Sender: Processing packet 29535 [packets to send 8, broken 7] [12:09:14]ProducePacketName [12:09:14]name=ofd_packets/00029535 [12:09:14]OFD Sender: To server: pG, [12:09:14]CommunicateWithHost lk.salyk.kg:30040 [12:09:14]ConnectInit lk.salyk.kg [12:09:14]Connected sock=10 [12:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E4 C1 08 01 B6 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC E2 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 53 D4 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 D4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 D4 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 EC 18 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 73 00 00 35 04 06 00 7A BE 82 07 74 AA E7 7F 8D CA 5C 48 E0 F3 [12:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B0 AD 47 00 0D 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 39 36 33 31 35 34 10 04 04 00 5F 73 00 00 F4 03 04 00 8D C3 1C 66 B6 04 01 00 00 63 B1 D9 67 39 98 65 18 [12:09:14]CommunicateWithHost err = 0 [12:09:14]CheckOFDResponse [12:09:14]1017 (14) - 77093643461234 [12:09:14]1041 (16) - 0000000000963154 [12:09:14]1040 (4) - 29535 [12:09:14]1012 (4) - 15.04.2024 06:05 [12:09:14]1206 (1) - 0 [12:09:14]OFD Sender: Remove packet 29535 [12:09:14]ProducePacketName [12:09:14]name=ofd_packets/00029535 [12:09:14]NVStorageDeleteData [12:09:14]Write to MH i2c: 01 00 00 D8 3F 17 [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 07 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 07 00 D8 3F 00 00 00 00 00 DB 0C 05 [12:09:14]RasterBufferAndPrint [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]written 0, free lines is 3295 [12:09:14]MH_Cut [12:09:14]Write to MH i2c: D1 01 00 DF 3F 01 F0 [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 01 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 01 00 DF 3F 00 EF [12:09:14]Write to MH i2c: 01 00 00 E0 3F 1F [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]OFD Sender: No OFD packet to send [12:09:15]*** Cut start [12:09:15]*** Partial cut [12:09:15]*** CUTSNS_PIN = 1 [12:09:15]*** CUTSNS_PIN = 0 [12:09:15]*** Brake cut motor [12:09:16]Read from MH i2c: 01 [12:09:16]MH_I2C_Read... [12:09:16]*** Stop cut motor [12:09:16]*** Cut end [12:09:16]Read from MH i2c: 01 07 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: 01 07 00 E0 3F 00 00 00 00 00 FF 0F 34 [12:09:16]process_action close_receipt done [12:09:16]requested_data is exist [12:09:16]produce_requested_data [12:09:16]requested_item fm.sn is exist - process it [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 11 00 00 [12:09:16]Write to MH i2c: E2 08 00 E1 3F 80 11 00 00 00 00 00 00 9A [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 17 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 17 00 E1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [12:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:09:16]wFMCommunicate OK [12:09:16]requested_item fd.num is exist - process it [12:09:16]SAM_PROTO_GetFieldsCounters [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 13 00 00 [12:09:16]Write to MH i2c: E2 08 00 E2 3F 80 13 00 00 00 00 00 00 9D [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 62 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 62 00 E2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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 A5 [12:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:16]wFMCommunicate OK [12:09:16]SAM_PROTO_GetFieldsCounters done [12:09:16]requested_item shift.num is exist - process it [12:09:16]requested_item shift.opened is exist - process it [12:09:16]req_shift_opened [12:09:16]FM_GetShiftState [12:09:16]SAM_PROTO_GetShiftState [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 13 01 00 [12:09:16]Write to MH i2c: E2 08 00 E3 3F 80 13 01 00 00 00 00 00 9F [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 0E 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 0E 00 E3 3F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 93 [12:09:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:09:16]wFMCommunicate OK [12:09:16]SAM_PROTO_GetShiftState done [12:09:16]FM_GetShiftState done [12:09:16]req_shift_opened done [12:09:16]requested_item shift.open_date is exist - process it [12:09:16]req_shift_open_date [12:09:16]req_shift_open_date done [12:09:16]produce_requested_data done [12:09:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:09:16]process_action_free close_receipt [12:09:16]json_value_free [12:09:16]json_value_free done [12:09:16]process_json_proto returns [12:09:16]Send response to host [12:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:09:16]free response buf [12:09:16]execute_script done [12:09:16]execute_script returns [12:09:16]free content buf [12:09:16]Sock 9.Close socket [12:09:16]Sock 9.Thread stoped [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10: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:53]accept exits with 8 [12:12:53]New connection [12:12:53]New thread 3067112804 created [12:12:53]Thread 3066969444 joined [12:12:53]Waiting for new connection... [12:12:53] Sock 8.Parse request [12:12:53]Sock 8.Check first char [12:12:53]Sock 8.First char is OK [12:12:53]request: POST /json_proto HTTP/1.0 [12:12:53]Method: POST [12:12:53]URL: /json_proto [12:12:53]Method is POST - this is cgi request [12:12:53]url: /json_proto [12:12:53]query_string will be loaded in cgi processing [12:12:53]execute_cgi json_proto POST (null) [12:12:53]execute_cgi path=json_proto method=POST [12:12:53]POST find Content-Length [12:12:53]Host: 172.17.33.3:8080 [12:12:53]Content-Length: 1201 [12:12:53]Content-Type: application/json [12:12:53] [12:12:53]POST finish read [12:12:53]Found Content-Length = 1201 [12:12:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347956\u000A15.04.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.720 x 64.80\u000A\u0418\u0422\u041E\u0413: 500.26\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\u000A3859005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:53]execute_script... [12:12:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347956\u000A15.04.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.720 x 64.80\u000A\u0418\u0422\u041E\u0413: 500.26\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\u000A3859005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:53]POST & json_proto [12:12:53]process_json_proto [12:12:53]json parsed OK: [12:12:53]protocol is kg_v1.0 [12:12:53]action value=print_text [12:12:53]process_action print_text [12:12:53]cmd_print_text [12:12:53]ExternCall_PrintAddStr [12:12:53]wPrintStart [12:12:53]Write to MH i2c: 01 00 00 E4 3F 23 [12:12:53]Write i2c OK [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 07 00 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 07 00 E4 3F 00 00 00 00 00 FF 0F 38 [12:12:53]RasterBufferAndPrint [12:12:53]line *****ТОВАРНЫЙ ЧЕК***** [12:12:53]line АЗС 108 [12:12:53]line Партнер нефть [12:12:53]line 02508201610067 [12:12:53]line Кассир : Джумагулова Н. [12:12:53]line Счет N : (1)347956 [12:12:53]line 15.04.2024 11:54 [12:12:53]line ПРОДАЖА [12:12:53]line ТРК (МРК, ГНК): 23 [12:12:53]line Вид ГСМ : 2710124130 [12:12:53]line Аи-92-К-5 [12:12:53]line 7.720 x 64.80 [12:12:53]line ИТОГ: 500.26 [12:12:53]line Тип оплаты: Талоны: Партнер нефть [12:12:53]line 3859005 [12:12:53]line ______________________ [12:12:53]line (подпись) [12:12:53]written 0, free lines is 4095 [12:12:53]Write to MH i2c: 01 00 00 F9 3F 38 [12:12:53]Write i2c OK [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 07 00 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: 01 07 00 F9 3F 00 00 00 00 00 F5 0D 41 [12:12:53]RasterBufferAndPrint [12:12:53]line [12:12:53]line [12:12:53]line [12:12:53]line [12:12:53]line [12:12:53]written 0, free lines is 3575 [12:12:53]MH_Cut [12:12:53]Write to MH i2c: D1 01 00 00 40 01 12 [12:12:53]Write i2c OK [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: D1 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: D1 01 00 [12:12:53]MH_I2C_Read... [12:12:53]Read from MH i2c: D1 01 00 00 40 00 11 [12:12:53]Write to MH i2c: 01 00 00 01 40 41 [12:12:53]Write i2c OK [12:12:53]MH_I2C_Read... [12:12:54]*** Cut start [12:12:54]*** Partial cut [12:12:54]*** CUTSNS_PIN = 1 [12:12:54]*** CUTSNS_PIN = 0 [12:12:54]*** Brake cut motor [12:12:54]Read from MH i2c: 01 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: 01 07 00 [12:12:54]MH_I2C_Read... [12:12:54]*** Stop cut motor [12:12:54]*** Cut end [12:12:54]Read from MH i2c: 01 07 00 01 40 00 00 00 00 00 FF 0F 56 [12:12:54]process_action print_text done [12:12:54]requested_data is exist [12:12:54]produce_requested_data [12:12:54]requested_item fm.sn is exist - process it [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 11 00 00 [12:12:54]Write to MH i2c: E2 08 00 02 40 80 11 00 00 00 00 00 00 BC [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 17 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 17 00 02 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [12:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:54]wFMCommunicate OK [12:12:54]requested_item fd.num is exist - process it [12:12:54]SAM_PROTO_GetFieldsCounters [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 13 00 00 [12:12:54]Write to MH i2c: E2 08 00 03 40 80 13 00 00 00 00 00 00 BF [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 62 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 62 00 03 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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 C7 [12:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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:12:54]wFMCommunicate OK [12:12:54]SAM_PROTO_GetFieldsCounters done [12:12:54]requested_item shift.num is exist - process it [12:12:54]requested_item shift.opened is exist - process it [12:12:54]req_shift_opened [12:12:54]FM_GetShiftState [12:12:54]SAM_PROTO_GetShiftState [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 13 01 00 [12:12:54]Write to MH i2c: E2 08 00 04 40 80 13 01 00 00 00 00 00 C1 [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 0E 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 0E 00 04 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B5 [12:12:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:12:54]wFMCommunicate OK [12:12:54]SAM_PROTO_GetShiftState done [12:12:54]FM_GetShiftState done [12:12:54]req_shift_opened done [12:12:54]requested_item shift.open_date is exist - process it [12:12:54]req_shift_open_date [12:12:54]req_shift_open_date done [12:12:54]produce_requested_data done [12:12:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:12:54]process_action_free print_text [12:12:54]json_value_free [12:12:54]json_value_free done [12:12:54]process_json_proto returns [12:12:54]Send response to host [12:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:12:54]free response buf [12:12:54]execute_script done [12:12:54]execute_script returns [12:12:54]free content buf [12:12:54]Sock 8.Close socket [12:12:54]Sock 8.Thread stoped [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:02]accept exits with 9 [12:13:02]New connection [12:13:02]New thread 3066969444 created [12:13:02]Thread 3067112804 joined [12:13:02]Waiting for new connection... [12:13:02] Sock 9.Parse request [12:13:02]Sock 9.Check first char [12:13:02]Sock 9.First char is OK [12:13:02]request: POST /json_proto HTTP/1.0 [12:13:02]Method: POST [12:13:02]URL: /json_proto [12:13:02]Method is POST - this is cgi request [12:13:02]url: /json_proto [12:13:02]query_string will be loaded in cgi processing [12:13:02]execute_cgi json_proto POST (null) [12:13:02]execute_cgi path=json_proto method=POST [12:13:02]POST find Content-Length [12:13:02]Host: 172.17.33.3:8080 [12:13:02]Content-Length: 1242 [12:13:02]Content-Type: application/json [12:13:02] [12:13:02]POST finish read [12:13:02]Found Content-Length = 1242 [12:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347952\u000A15.04.2024 11:54\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-\u041A-5\u000A 300.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 21870.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\u000A3473305;3473306;3473307;3473308;3473309;3473310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:02]execute_script... [12:13:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347952\u000A15.04.2024 11:54\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-\u041A-5\u000A 300.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 21870.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\u000A3473305;3473306;3473307;3473308;3473309;3473310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:02]POST & json_proto [12:13:02]process_json_proto [12:13:02]json parsed OK: [12:13:02]protocol is kg_v1.0 [12:13:02]action value=print_text [12:13:02]process_action print_text [12:13:02]cmd_print_text [12:13:02]ExternCall_PrintAddStr [12:13:02]wPrintStart [12:13:02]Write to MH i2c: 01 00 00 05 40 45 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 05 40 00 00 00 00 00 FF 0F 5A [12:13:02]RasterBufferAndPrint [12:13:02]line *****ТОВАРНЫЙ ЧЕК***** [12:13:02]line АЗС 108 [12:13:02]line Партнер нефть [12:13:02]line 02508201610067 [12:13:02]line Кассир : Джумагулова Н. [12:13:02]line Счет N : (1)347952 [12:13:02]line 15.04.2024 11:54 [12:13:02]line ПРОДАЖА [12:13:02]line ТРК (МРК, ГНК): 51 [12:13:02]line Вид ГСМ : 2710194210 [12:13:02]line ДТ-К-5 [12:13:02]line 300.000 x 72.90 [12:13:02]line ИТОГ: 21870.00 [12:13:02]line Тип оплаты: Талоны: Партнер нефть [12:13:02]line 3473305;3473306;3473307;3473308;3473309;3473310 [12:13:02]line ______________________ [12:13:02]line (подпись) [12:13:03]written 0, free lines is 4095 [12:13:03]Write to MH i2c: 01 00 00 1B 40 5B [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 1B 40 00 00 00 00 00 F3 0D 62 [12:13:03]RasterBufferAndPrint [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]written 0, free lines is 3573 [12:13:03]MH_Cut [12:13:03]Write to MH i2c: D1 01 00 22 40 01 34 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 22 40 00 33 [12:13:03]Write to MH i2c: 01 00 00 23 40 63 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** Cut start [12:13:03]*** Partial cut [12:13:03]*** CUTSNS_PIN = 1 [12:13:03]*** CUTSNS_PIN = 0 [12:13:04]*** Brake cut motor [12:13:04]Read from MH i2c: 01 [12:13:04]MH_I2C_Read... [12:13:04]*** Stop cut motor [12:13:04]*** Cut end [12:13:04]Read from MH i2c: 01 07 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: 01 07 00 23 40 00 00 00 00 00 FF 0F 78 [12:13:04]process_action print_text done [12:13:04]requested_data is exist [12:13:04]produce_requested_data [12:13:04]requested_item fm.sn is exist - process it [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 11 00 00 [12:13:04]Write to MH i2c: E2 08 00 24 40 80 11 00 00 00 00 00 00 DE [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 17 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 17 00 24 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [12:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:04]wFMCommunicate OK [12:13:04]requested_item fd.num is exist - process it [12:13:04]SAM_PROTO_GetFieldsCounters [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 13 00 00 [12:13:04]Write to MH i2c: E2 08 00 25 40 80 13 00 00 00 00 00 00 E1 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 62 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 62 00 25 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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 E9 [12:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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:13:04]wFMCommunicate OK [12:13:04]SAM_PROTO_GetFieldsCounters done [12:13:04]requested_item shift.num is exist - process it [12:13:04]requested_item shift.opened is exist - process it [12:13:04]req_shift_opened [12:13:04]FM_GetShiftState [12:13:04]SAM_PROTO_GetShiftState [12:13:04]wFMCommunicate request_size=4 [12:13:04]MH_SAM_APDU [12:13:04]CAPDU: 80 13 01 00 [12:13:04]Write to MH i2c: E2 08 00 26 40 80 13 01 00 00 00 00 00 E3 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:04]Read from MH i2c: E2 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 0E 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: E2 0E 00 26 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [12:13:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:13:04]wFMCommunicate OK [12:13:04]SAM_PROTO_GetShiftState done [12:13:04]FM_GetShiftState done [12:13:04]req_shift_opened done [12:13:04]requested_item shift.open_date is exist - process it [12:13:04]req_shift_open_date [12:13:04]req_shift_open_date done [12:13:04]produce_requested_data done [12:13:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:13:04]process_action_free print_text [12:13:04]json_value_free [12:13:04]json_value_free done [12:13:04]process_json_proto returns [12:13:04]Send response to host [12:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:13:04]free response buf [12:13:04]execute_script done [12:13:04]execute_script returns [12:13:04]free content buf [12:13:04]Sock 9.Close socket [12:13:04]Sock 9.Thread stoped [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:28]accept exits with 8 [12:13:28]New connection [12:13:28]New thread 3067112804 created [12:13:28]Thread 3066969444 joined [12:13:28]Waiting for new connection... [12:13:28] Sock 8.Parse request [12:13:28]Sock 8.Check first char [12:13:28]Sock 8.First char is OK [12:13:28]request: POST /json_proto HTTP/1.0 [12:13:28]Method: POST [12:13:28]URL: /json_proto [12:13:28]Method is POST - this is cgi request [12:13:28]url: /json_proto [12:13:28]query_string will be loaded in cgi processing [12:13:28]execute_cgi json_proto POST (null) [12:13:28]execute_cgi path=json_proto method=POST [12:13:28]POST find Content-Length [12:13:28]Host: 172.17.33.3:8080 [12:13:28]Content-Length: 1177 [12:13:28]Content-Type: application/json [12:13:28] [12:13:28]POST finish read [12:13:28]Found Content-Length = 1177 [12:13:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347954\u000A15.04.2024 11:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 39.590 x 33.40\u000A\u0418\u0422\u041E\u0413: 1322.31\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3005310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:28]execute_script... [12:13:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347954\u000A15.04.2024 11:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 39.590 x 33.40\u000A\u0418\u0422\u041E\u0413: 1322.31\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A3005310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:28]POST & json_proto [12:13:28]process_json_proto [12:13:28]json parsed OK: [12:13:28]protocol is kg_v1.0 [12:13:28]action value=print_text [12:13:28]process_action print_text [12:13:28]cmd_print_text [12:13:28]ExternCall_PrintAddStr [12:13:28]wPrintStart [12:13:28]Write to MH i2c: 01 00 00 27 40 67 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 27 40 00 00 00 00 00 FF 0F 7C [12:13:28]RasterBufferAndPrint [12:13:28]line *****ТОВАРНЫЙ ЧЕК***** [12:13:28]line АЗС 108 [12:13:28]line Партнер нефть [12:13:28]line 02508201610067 [12:13:28]line Кассир : Джумагулова Н. [12:13:28]line Счет N : (1)347954 [12:13:28]line 15.04.2024 11:55 [12:13:28]line ПРОДАЖА [12:13:28]line ТРК (МРК, ГНК): 71 [12:13:28]line Вид ГСМ : 2711129700 [12:13:28]line ГАЗ-К-5 [12:13:28]line 39.590 x 33.40 [12:13:28]line ИТОГ: 1322.31 [12:13:28]line Тип оплаты: Талоны: ТК ГПНА Online [12:13:28]line 3005310 [12:13:28]line ______________________ [12:13:28]line (подпись) [12:13:28]written 0, free lines is 4095 [12:13:28]Write to MH i2c: 01 00 00 3C 40 7C [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 3C 40 00 00 00 00 00 F2 0D 82 [12:13:28]RasterBufferAndPrint [12:13:28]line [12:13:28]line [12:13:28]line [12:13:28]line [12:13:28]line [12:13:28]written 0, free lines is 3572 [12:13:28]MH_Cut [12:13:28]Write to MH i2c: D1 01 00 43 40 01 55 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: D1 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: D1 01 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: D1 01 00 43 40 00 54 [12:13:28]Write to MH i2c: 01 00 00 44 40 84 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:29]*** Cut start [12:13:29]*** Partial cut [12:13:29]*** CUTSNS_PIN = 1 [12:13:29]*** CUTSNS_PIN = 0 [12:13:29]*** Brake cut motor [12:13:29]Read from MH i2c: 01 [12:13:29]MH_I2C_Read... [12:13:29]*** Stop cut motor [12:13:29]*** Cut end [12:13:29]Read from MH i2c: 01 07 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 07 00 44 40 00 00 00 00 00 FF 0F 99 [12:13:29]process_action print_text done [12:13:29]requested_data is exist [12:13:29]produce_requested_data [12:13:29]requested_item fm.sn is exist - process it [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 11 00 00 [12:13:29]Write to MH i2c: E2 08 00 45 40 80 11 00 00 00 00 00 00 FF [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 17 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 17 00 45 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [12:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:29]wFMCommunicate OK [12:13:29]requested_item fd.num is exist - process it [12:13:29]SAM_PROTO_GetFieldsCounters [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 13 00 00 [12:13:29]Write to MH i2c: E2 08 00 46 40 80 13 00 00 00 00 00 00 02 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:30]Read from MH i2c: E2 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 62 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 62 00 46 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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 0A [12:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 73 00 00 0E 04 04 00 75 00 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:13:30]wFMCommunicate OK [12:13:30]SAM_PROTO_GetFieldsCounters done [12:13:30]requested_item shift.num is exist - process it [12:13:30]requested_item shift.opened is exist - process it [12:13:30]req_shift_opened [12:13:30]FM_GetShiftState [12:13:30]SAM_PROTO_GetShiftState [12:13:30]wFMCommunicate request_size=4 [12:13:30]MH_SAM_APDU [12:13:30]CAPDU: 80 13 01 00 [12:13:30]Write to MH i2c: E2 08 00 47 40 80 13 01 00 00 00 00 00 04 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:30]Read from MH i2c: E2 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 0E 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 0E 00 47 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F8 [12:13:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:13:30]wFMCommunicate OK [12:13:30]SAM_PROTO_GetShiftState done [12:13:30]FM_GetShiftState done [12:13:30]req_shift_opened done [12:13:30]requested_item shift.open_date is exist - process it [12:13:30]req_shift_open_date [12:13:30]req_shift_open_date done [12:13:30]produce_requested_data done [12:13:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:13:30]process_action_free print_text [12:13:30]json_value_free [12:13:30]json_value_free done [12:13:30]process_json_proto returns [12:13:30]Send response to host [12:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29535,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:13:30]free response buf [12:13:30]execute_script done [12:13:30]execute_script returns [12:13:30]free content buf [12:13:30]Sock 8.Close socket [12:13:30]Sock 8.Thread stoped [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]accept exits with 9 [12:16:00]New connection [12:16:00]New thread 3066969444 created [12:16:00]Thread 3067112804 joined [12:16:00]Waiting for new connection... [12:16:00] Sock 9.Parse request [12:16:00]Sock 9.Check first char [12:16:00]Sock 9.First char is OK [12:16:00]request: POST /json_proto HTTP/1.0 [12:16:00]Method: POST [12:16:00]URL: /json_proto [12:16:00]Method is POST - this is cgi request [12:16:00]url: /json_proto [12:16:00]query_string will be loaded in cgi processing [12:16:00]execute_cgi json_proto POST (null) [12:16:00]execute_cgi path=json_proto method=POST [12:16:00]POST find Content-Length [12:16:00]Host: 172.17.33.3:8080 [12:16:00]Content-Length: 682 [12:16:00]Content-Type: application/json [12:16:00] [12:16:00]POST finish read [12:16:00]Found Content-Length = 682 [12:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:00]execute_script... [12:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:00]POST & json_proto [12:16:00]process_json_proto [12:16:00]json parsed OK: [12:16:00]protocol is kg_v1.0 [12:16:00]action value=close_receipt [12:16:00]process_action close_receipt [12:16:00]cmd_close_receipt [12:16:00]MH_GetDate [12:16:00]Write to MH i2c: F0 00 00 48 40 77 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: F0 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: F0 09 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: F0 09 00 48 40 00 84 1A 1D 66 23 5B 8F 65 13 [12:16:00]GetLastDocTimeStamp 1713182956 [12:16:00]current date 1713183364 [12:16:00]FM_GetShiftState [12:16:00]SAM_PROTO_GetShiftState [12:16:00]wFMCommunicate request_size=4 [12:16:00]MH_SAM_APDU [12:16:00]CAPDU: 80 13 01 00 [12:16:00]Write to MH i2c: E2 08 00 49 40 80 13 01 00 00 00 00 00 06 [12:16:00]Write i2c OK [12:16:00]MH_I2C_Read... [12:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:00]Read from MH i2c: E2 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 0E 00 [12:16:00]MH_I2C_Read... [12:16:00]Read from MH i2c: E2 0E 00 49 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FA [12:16:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:16:00]wFMCommunicate OK [12:16:00]SAM_PROTO_GetShiftState done [12:16:00]FM_GetShiftState done [12:16:00]opened in 1713140468 [12:16:00]opened+sec_in_day 1713226868 [12:16:00]quantity*price = 100051 [12:16:00]sum+1 = 100052 [12:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 130 15.04.2024 12:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29536 ФПД: 200321104866117 1/tax-web-control/client/api/v1/ticket?date=20240415T121604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29536&fm=200321104866117&tin=02508201610067®Number=0000138879044617&sum=100000 [12:16:01]StoreToDocumentArchive [12:16:01]shift 117 fd 29536 [12:16:01]save to /storage/0117/doc_00029536 [12:16:01]save last doc name /storage/0117/doc_00029536 to /storage/kkm_last_doc_name [12:16:01]save OK [12:16:01]Clear old archive folders... [12:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:01]tlvbuf is 002B94B0 [12:16:01]SAM_PROTO_ClearQueue [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 09 00 00 [12:16:01]Write to MH i2c: E2 08 00 56 40 80 09 00 00 00 00 00 00 08 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 56 40 00 90 00 0A [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]SAM_PROTO_ClearQueue done [12:16:01]KKMCreateOFDPacket [12:16:01]OFDProtocolAddRootSTLVToBuf [12:16:01]FM_MakeSignedData [12:16:01]FM_MakeSignedData [12:16:01]SAM_PROTO_SignData [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 01 02 [12:16:01]Write to MH i2c: E2 08 00 57 40 80 0D 01 02 00 00 00 00 10 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 57 40 00 90 00 0B [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=255 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 84 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 73 00 00 35 04 06 00 B6 [12:16:01]Write to MH i2c: E2 02 01 58 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 84 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 73 00 00 35 04 06 00 B6 00 00 97 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 58 40 00 90 00 0C [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=10 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 02 02 05 30 E4 4B EB 45 [12:16:01]Write to MH i2c: E2 0D 00 59 40 80 0D 02 02 05 00 30 E4 4B EB 45 00 00 AC [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 03 00 59 40 00 90 00 0D [12:16:01]RAPDU: 90 00 [12:16:01]wFMCommunicate OK [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 0D 03 02 [12:16:01]Write to MH i2c: E2 08 00 5A 40 80 0D 03 02 00 00 00 00 15 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 0B 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 0B 00 5A 40 00 66 45 02 EE D2 D9 DB 61 90 00 98 [12:16:01]RAPDU: 66 45 02 EE D2 D9 DB 61 90 00 [12:16:01]wFMCommunicate OK [12:16:01]SAM_PROTO_SignData done [12:16:01]FM_MakeSignedData done [12:16:01]CreateOFDProtocolMessage [12:16:01]wFMCommunicate request_size=4 [12:16:01]MH_SAM_APDU [12:16:01]CAPDU: 80 11 00 00 [12:16:01]Write to MH i2c: E2 08 00 5B 40 80 11 00 00 00 00 00 00 15 [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:01]Read from MH i2c: E2 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 17 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: E2 17 00 5B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [12:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:16:01]wFMCommunicate OK [12:16:01]CreateOFDProtocolMessage done [12:16:01]OFDSenderStorePacket 29536 [12:16:01]StoreOFDPacket docnum=29536 [12:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 63 07 01 9A 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 84 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 73 00 00 35 04 06 00 B6 30 E4 4B EB 45 66 45 02 EE D2 D9 DB 61 [12:16:01]CheckFolder [12:16:01]dirname=/storage/ofd_packets [12:16:01]CheckFolder done [12:16:01]ProducePacketName [12:16:01]name=ofd_packets/00029536 [12:16:01]NVStorageSaveData ofd_packets/00029536 [12:16:01]File name is /storage/ofd_packets/00029536 [12:16:01]Write 301 bytes [12:16:01]NVStorageSaveData done [12:16:01]OFDSenderStorePacket done [12:16:01]KKMCreateOFDPacket done [12:16:01]NVStorageSaveData kkm_last_timestamp [12:16:01]File name is /storage/kkm_last_timestamp [12:16:01]Write 4 bytes [12:16:01]NVStorageSaveData done [12:16:01]ExternCall_PrintAddStr [12:16:01]wPrintStart [12:16:01]Write to MH i2c: 01 00 00 5C 40 9C [12:16:01]Write i2c OK [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 [12:16:01]MH_I2C_Read... [12:16:01]Read from MH i2c: 01 07 00 5C 40 00 00 00 00 00 FF 0F B1 [12:16:01]RasterBufferAndPrint [12:16:01]line Счет N : (1)347958 [12:16:01]line ИНН: 02508201610067 [12:16:01]line Контрольно-Кассовый Чек [12:16:01]line ПРОДАЖА [12:16:01]line ТРК (МРК, ГНК) : 32 [12:16:01]line Товар: 2710124130 [12:16:01]line Аи-92-К-5 [12:16:01]line 15.440 * 64.80 [12:16:01]line = 1000.51 [12:16:01]line НДС 12% НСП 1% [12:16:01]line > о реализуемом товаре [12:16:01]line ОКРУГЛЕНИЕ: -0.51 [12:16:01]line ИТОГО: 1000.00 [12:16:01]line Внесено: 1000.00 [12:16:01]line СДАЧА: 0.00 [12:16:01]line НСП 1% : 8.85 [12:16:01]line НДС 12% : 106.25 [12:16:01]line Наличными: 1000.00 [12:16:01]line Безнал.: 0.00 [12:16:01]line Место: АЗС № 108 "Партнер Нефть" [12:16:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:16:01]line СНО: Общий режим [12:16:01]line Чек 130 15.04.2024 12:16 [12:16:01]line Смена: 117 ФФД: 1.0 [12:16:01]line ЗНМ: 0300000027 [12:16:01]line РНМ: 0000138879044617 [12:16:01]line Версия ККМ: 001 [12:16:01]line ФМ: 0000000000963154 [12:16:01]line ФД: 29536 [12:16:01]line ФПД: 200321104866117 [12:16:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T121604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29536&fm=200321104866117&tin=02508201610067®Number=0000138879044617&sum=100000 [12:16:02]OFD Sender: Processing packet 29536 [packets to send 8, broken 7] [12:16:02]ProducePacketName [12:16:02]name=ofd_packets/00029536 [12:16:02]OFD Sender: To server: pG, [12:16:02]CommunicateWithHost lk.salyk.kg:30040 [12:16:02]ConnectInit lk.salyk.kg [12:16:02]written 0, free lines is 4095 [12:16:02]Connected sock=10 [12:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 63 07 01 9A 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 84 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 73 00 00 35 04 06 00 B6 30 E4 4B EB 45 66 45 02 EE D2 D9 DB 61 [12:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 23 9E 47 00 A9 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 39 36 33 31 35 34 10 04 04 00 60 73 00 00 F4 03 04 00 25 C5 1C 66 B6 04 01 00 00 A0 85 3B 76 86 DF A3 30 [12:16:02]CommunicateWithHost err = 0 [12:16:02]CheckOFDResponse [12:16:02]1017 (14) - 77093643461234 [12:16:02]1041 (16) - 0000000000963154 [12:16:02]1040 (4) - 29536 [12:16:02]1012 (4) - 15.04.2024 06:11 [12:16:02]1206 (1) - 0 [12:16:02]OFD Sender: Remove packet 29536 [12:16:02]ProducePacketName [12:16:02]name=ofd_packets/00029536 [12:16:02]NVStorageDeleteData [12:16:02]Write to MH i2c: 01 00 00 86 40 C6 [12:16:02]Write i2c OK [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: 01 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: 01 07 00 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: 01 07 00 86 40 00 00 00 00 00 C1 0C 9A [12:16:02]RasterBufferAndPrint [12:16:02]line [12:16:02]line [12:16:02]line [12:16:02]line [12:16:02]line [12:16:02]written 0, free lines is 3271 [12:16:02]MH_Cut [12:16:02]Write to MH i2c: D1 01 00 8D 40 01 9F [12:16:02]Write i2c OK [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: D1 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: D1 01 00 [12:16:02]MH_I2C_Read... [12:16:02]Read from MH i2c: D1 01 00 8D 40 00 9E [12:16:02]Write to MH i2c: 01 00 00 8E 40 CE [12:16:02]Write i2c OK [12:16:02]MH_I2C_Read... [12:16:02]OFD Sender: No OFD packet to send [12:16:03]*** Cut start [12:16:03]*** Partial cut [12:16:03]*** CUTSNS_PIN = 1 [12:16:03]*** CUTSNS_PIN = 0 [12:16:03]*** Brake cut motor [12:16:04]Read from MH i2c: 01 [12:16:04]MH_I2C_Read... [12:16:04]*** Stop cut motor [12:16:04]*** Cut end [12:16:04]Read from MH i2c: 01 07 00 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: 01 07 00 8E 40 00 00 00 00 00 FF 0F E3 [12:16:04]process_action close_receipt done [12:16:04]requested_data is exist [12:16:04]produce_requested_data [12:16:04]requested_item fm.sn is exist - process it [12:16:04]wFMCommunicate request_size=4 [12:16:04]MH_SAM_APDU [12:16:04]CAPDU: 80 11 00 00 [12:16:04]Write to MH i2c: E2 08 00 8F 40 80 11 00 00 00 00 00 00 49 [12:16:04]Write i2c OK [12:16:04]MH_I2C_Read... [12:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:04]Read from MH i2c: E2 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 17 00 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 17 00 8F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [12:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:16:04]wFMCommunicate OK [12:16:04]requested_item fd.num is exist - process it [12:16:04]SAM_PROTO_GetFieldsCounters [12:16:04]wFMCommunicate request_size=4 [12:16:04]MH_SAM_APDU [12:16:04]CAPDU: 80 13 00 00 [12:16:04]Write to MH i2c: E2 08 00 90 40 80 13 00 00 00 00 00 00 4C [12:16:04]Write i2c OK [12:16:04]MH_I2C_Read... [12:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:04]Read from MH i2c: E2 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 62 00 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 62 00 90 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 73 00 00 0E 04 04 00 75 00 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 58 [12:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 73 00 00 0E 04 04 00 75 00 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:16:04]wFMCommunicate OK [12:16:04]SAM_PROTO_GetFieldsCounters done [12:16:04]requested_item shift.num is exist - process it [12:16:04]requested_item shift.opened is exist - process it [12:16:04]req_shift_opened [12:16:04]FM_GetShiftState [12:16:04]SAM_PROTO_GetShiftState [12:16:04]wFMCommunicate request_size=4 [12:16:04]MH_SAM_APDU [12:16:04]CAPDU: 80 13 01 00 [12:16:04]Write to MH i2c: E2 08 00 91 40 80 13 01 00 00 00 00 00 4E [12:16:04]Write i2c OK [12:16:04]MH_I2C_Read... [12:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:04]Read from MH i2c: E2 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 0E 00 [12:16:04]MH_I2C_Read... [12:16:04]Read from MH i2c: E2 0E 00 91 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 42 [12:16:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:16:04]wFMCommunicate OK [12:16:04]SAM_PROTO_GetShiftState done [12:16:04]FM_GetShiftState done [12:16:04]req_shift_opened done [12:16:04]requested_item shift.open_date is exist - process it [12:16:04]req_shift_open_date [12:16:04]req_shift_open_date done [12:16:04]produce_requested_data done [12:16:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29536,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:16:04]process_action_free close_receipt [12:16:04]json_value_free [12:16:04]json_value_free done [12:16:04]process_json_proto returns [12:16:04]Send response to host [12:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29536,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:16:04]free response buf [12:16:04]execute_script done [12:16:04]execute_script returns [12:16:04]free content buf [12:16:04]Sock 9.Close socket [12:16:04]Sock 9.Thread stoped [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:06]accept exits with 8 [12:17:06]New connection [12:17:06]New thread 3067112804 created [12:17:06]Thread 3066969444 joined [12:17:06]Waiting for new connection... [12:17:06] Sock 8.Parse request [12:17:06]Sock 8.Check first char [12:17:06]Sock 8.First char is OK [12:17:06]request: POST /json_proto HTTP/1.0 [12:17:06]Method: POST [12:17:06]URL: /json_proto [12:17:06]Method is POST - this is cgi request [12:17:06]url: /json_proto [12:17:06]query_string will be loaded in cgi processing [12:17:06]execute_cgi json_proto POST (null) [12:17:06]execute_cgi path=json_proto method=POST [12:17:06]POST find Content-Length [12:17:06]Host: 172.17.33.3:8080 [12:17:06]Content-Length: 681 [12:17:06]Content-Type: application/json [12:17:06] [12:17:06]POST finish read [12:17:06]Found Content-Length = 681 [12:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:06]execute_script... [12:17: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)347957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:06]POST & json_proto [12:17:06]process_json_proto [12:17:06]json parsed OK: [12:17:06]protocol is kg_v1.0 [12:17:06]action value=close_receipt [12:17:06]process_action close_receipt [12:17:06]cmd_close_receipt [12:17:06]MH_GetDate [12:17:06]Write to MH i2c: F0 00 00 92 40 C1 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 09 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 09 00 92 40 00 C7 1A 1D 66 23 5B 8F 65 A0 [12:17:06]GetLastDocTimeStamp 1713183364 [12:17:06]current date 1713183431 [12:17:06]FM_GetShiftState [12:17:06]SAM_PROTO_GetShiftState [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 13 01 00 [12:17:06]Write to MH i2c: E2 08 00 93 40 80 13 01 00 00 00 00 00 50 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0E 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0E 00 93 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 44 [12:17:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_GetShiftState done [12:17:06]FM_GetShiftState done [12:17:06]opened in 1713140468 [12:17:06]opened+sec_in_day 1713226868 [12:17:06]quantity*price = 50033 [12:17:06]sum+1 = 50034 [12:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 131 15.04.2024 12:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29537 ФПД: 81345490986654 1/tax-web-control/client/api/v1/ticket?date=20240415T121711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29537&fm=81345490986654&tin=02508201610067®Number=0000138879044617&sum=50000 [12:17:07]StoreToDocumentArchive [12:17:07]shift 117 fd 29537 [12:17:07]save to /storage/0117/doc_00029537 [12:17:07]save last doc name /storage/0117/doc_00029537 to /storage/kkm_last_doc_name [12:17:07]save OK [12:17:07]Clear old archive folders... [12:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:17:07]tlvbuf is 002668A0 [12:17:07]SAM_PROTO_ClearQueue [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 09 00 00 [12:17:07]Write to MH i2c: E2 08 00 A0 40 80 09 00 00 00 00 00 00 52 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 A0 40 00 90 00 54 [12:17:07]RAPDU: 90 00 [12:17:07]wFMCommunicate OK [12:17:07]SAM_PROTO_ClearQueue done [12:17:07]KKMCreateOFDPacket [12:17:07]OFDProtocolAddRootSTLVToBuf [12:17:07]FM_MakeSignedData [12:17:07]FM_MakeSignedData [12:17:07]SAM_PROTO_SignData [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 0D 01 02 [12:17:07]Write to MH i2c: E2 08 00 A1 40 80 0D 01 02 00 00 00 00 5A [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 A1 40 00 90 00 55 [12:17:07]RAPDU: 90 00 [12:17:07]wFMCommunicate OK [12:17:07]wFMCommunicate request_size=255 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 C7 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 73 00 00 35 04 06 00 49 FB [12:17:07]Write to MH i2c: E2 02 01 A2 40 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 C7 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 73 00 00 35 04 06 00 49 FB 00 00 67 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:08]OFD Sender: No OFD packet to send [12:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 A2 40 00 90 00 56 [12:17:08]RAPDU: 90 00 [12:17:08]wFMCommunicate OK [12:17:08]wFMCommunicate request_size=9 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 0D 02 02 04 B9 18 26 9E [12:17:08]Write to MH i2c: E2 0C 00 A3 40 80 0D 02 02 04 00 B9 18 26 9E 00 00 FA [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 A3 40 00 90 00 57 [12:17:08]RAPDU: 90 00 [12:17:08]wFMCommunicate OK [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 0D 03 02 [12:17:08]Write to MH i2c: E2 08 00 A4 40 80 0D 03 02 00 00 00 00 5F [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0B 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0B 00 A4 40 00 35 FB 10 A2 AB DE D8 9F 90 00 42 [12:17:08]RAPDU: 35 FB 10 A2 AB DE D8 9F 90 00 [12:17:08]wFMCommunicate OK [12:17:08]SAM_PROTO_SignData done [12:17:08]FM_MakeSignedData done [12:17:08]CreateOFDProtocolMessage [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 11 00 00 [12:17:08]Write to MH i2c: E2 08 00 A5 40 80 11 00 00 00 00 00 00 5F [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 17 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 17 00 A5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [12:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:17:08]wFMCommunicate OK [12:17:08]CreateOFDProtocolMessage done [12:17:08]OFDSenderStorePacket 29537 [12:17:08]StoreOFDPacket docnum=29537 [12:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D3 AF 06 01 A2 9F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 C7 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 73 00 00 35 04 06 00 49 FB B9 18 26 9E 35 FB 10 A2 AB DE D8 9F [12:17:08]CheckFolder [12:17:08]dirname=/storage/ofd_packets [12:17:08]CheckFolder done [12:17:08]ProducePacketName [12:17:08]name=ofd_packets/00029537 [12:17:08]NVStorageSaveData ofd_packets/00029537 [12:17:08]File name is /storage/ofd_packets/00029537 [12:17:08]Write 300 bytes [12:17:08]NVStorageSaveData done [12:17:08]OFDSenderStorePacket done [12:17:08]KKMCreateOFDPacket done [12:17:08]NVStorageSaveData kkm_last_timestamp [12:17:08]File name is /storage/kkm_last_timestamp [12:17:08]Write 4 bytes [12:17:08]NVStorageSaveData done [12:17:08]ExternCall_PrintAddStr [12:17:08]wPrintStart [12:17:08]Write to MH i2c: 01 00 00 A6 40 E6 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 A6 40 00 00 00 00 00 FF 0F FB [12:17:08]RasterBufferAndPrint [12:17:08]line Счет N : (1)347957 [12:17:08]line ИНН: 02508201610067 [12:17:08]line Контрольно-Кассовый Чек [12:17:08]line ПРОДАЖА [12:17:08]line ТРК (МРК, ГНК) : 71 [12:17:08]line Товар: 2711129700 [12:17:08]line ГАЗ-К-5 [12:17:08]line 14.980 * 33.40 [12:17:08]line = 500.33 [12:17:08]line НДС 12% НСП 1% [12:17:08]line > о реализуемом товаре [12:17:08]line ОКРУГЛЕНИЕ: -0.33 [12:17:08]line ИТОГО: 500.00 [12:17:08]line Внесено: 500.00 [12:17:08]line СДАЧА: 0.00 [12:17:08]line НСП 1% : 4.43 [12:17:08]line НДС 12% : 53.13 [12:17:08]line Наличными: 500.00 [12:17:08]line Безнал.: 0.00 [12:17:08]line Место: АЗС № 108 "Партнер Нефть" [12:17:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:17:08]line СНО: Общий режим [12:17:08]line Чек 131 15.04.2024 12:17 [12:17:08]line Смена: 117 ФФД: 1.0 [12:17:08]line ЗНМ: 0300000027 [12:17:08]line РНМ: 0000138879044617 [12:17:08]line Версия ККМ: 001 [12:17:08]line ФМ: 0000000000963154 [12:17:08]line ФД: 29537 [12:17:08]line ФПД: 81345490986654 [12:17:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T121711&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29537&fm=81345490986654&tin=02508201610067®Number=0000138879044617&sum=50000 [12:17:08]OFD Sender: Processing packet 29537 [packets to send 8, broken 7] [12:17:08]ProducePacketName [12:17:08]name=ofd_packets/00029537 [12:17:08]OFD Sender: To server: pG, [12:17:08]CommunicateWithHost lk.salyk.kg:30040 [12:17:08]ConnectInit lk.salyk.kg [12:17:08]written 0, free lines is 4095 [12:17:08]Connected sock=10 [12:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D3 AF 06 01 A2 9F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 C7 1A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 73 00 00 35 04 06 00 49 FB B9 18 26 9E 35 FB 10 A2 AB DE D8 9F [12:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 03 78 47 00 75 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 39 36 33 31 35 34 10 04 04 00 61 73 00 00 F4 03 04 00 68 C5 1C 66 B6 04 01 00 00 0F 16 B4 CD C3 C1 A7 9A [12:17:09]CommunicateWithHost err = 0 [12:17:09]CheckOFDResponse [12:17:09]1017 (14) - 77093643461234 [12:17:09]1041 (16) - 0000000000963154 [12:17:09]1040 (4) - 29537 [12:17:09]1012 (4) - 15.04.2024 06:12 [12:17:09]1206 (1) - 0 [12:17:09]OFD Sender: Remove packet 29537 [12:17:09]ProducePacketName [12:17:09]name=ofd_packets/00029537 [12:17:09]NVStorageDeleteData [12:17:09]Write to MH i2c: 01 00 00 D0 40 10 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 D0 40 00 00 00 00 00 C2 0C E5 [12:17:09]RasterBufferAndPrint [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]line [12:17:09]written 0, free lines is 3272 [12:17:09]MH_Cut [12:17:09]Write to MH i2c: D1 01 00 D7 40 01 E9 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 01 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: D1 01 00 D7 40 00 E8 [12:17:09]Write to MH i2c: 01 00 00 D8 40 18 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]OFD Sender: No OFD packet to send [12:17:09]*** Cut start [12:17:09]*** Partial cut [12:17:09]*** CUTSNS_PIN = 1 [12:17:10]*** CUTSNS_PIN = 0 [12:17:10]*** Brake cut motor [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]*** Stop cut motor [12:17:10]*** Cut end [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 D8 40 00 00 00 00 00 FF 0F 2D [12:17:10]process_action close_receipt done [12:17:10]requested_data is exist [12:17:10]produce_requested_data [12:17:10]requested_item fm.sn is exist - process it [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 11 00 00 [12:17:10]Write to MH i2c: E2 08 00 D9 40 80 11 00 00 00 00 00 00 93 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 D9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [12:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:17:10]wFMCommunicate OK [12:17:10]requested_item fd.num is exist - process it [12:17:10]SAM_PROTO_GetFieldsCounters [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 13 00 00 [12:17:10]Write to MH i2c: E2 08 00 DA 40 80 13 00 00 00 00 00 00 96 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 62 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 62 00 DA 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 73 00 00 0E 04 04 00 75 00 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 A6 [12:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 73 00 00 0E 04 04 00 75 00 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:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_GetFieldsCounters done [12:17:10]requested_item shift.num is exist - process it [12:17:10]requested_item shift.opened is exist - process it [12:17:10]req_shift_opened [12:17:10]FM_GetShiftState [12:17:10]SAM_PROTO_GetShiftState [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 13 01 00 [12:17:10]Write to MH i2c: E2 08 00 DB 40 80 13 01 00 00 00 00 00 98 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0E 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0E 00 DB 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8C [12:17:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_GetShiftState done [12:17:10]FM_GetShiftState done [12:17:10]req_shift_opened done [12:17:10]requested_item shift.open_date is exist - process it [12:17:10]req_shift_open_date [12:17:10]req_shift_open_date done [12:17:10]produce_requested_data done [12:17:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29537,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:17:10]process_action_free close_receipt [12:17:10]json_value_free [12:17:10]json_value_free done [12:17:10]process_json_proto returns [12:17:10]Send response to host [12:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29537,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:17:10]free response buf [12:17:10]execute_script done [12:17:10]execute_script returns [12:17:10]free content buf [12:17:10]Sock 8.Close socket [12:17:10]Sock 8.Thread stoped [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12: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]accept exits with 9 [12:23:44]New connection [12:23:44]New thread 3066969444 created [12:23:44]Thread 3067112804 joined [12:23:44]Waiting for new connection... [12:23:44] Sock 9.Parse request [12:23:44]Sock 9.Check first char [12:23:44]Sock 9.First char is OK [12:23:44]request: POST /json_proto HTTP/1.0 [12:23:44]Method: POST [12:23:44]URL: /json_proto [12:23:44]Method is POST - this is cgi request [12:23:44]url: /json_proto [12:23:44]query_string will be loaded in cgi processing [12:23:44]execute_cgi json_proto POST (null) [12:23:44]execute_cgi path=json_proto method=POST [12:23:44]POST find Content-Length [12:23:44]Host: 172.17.33.3:8080 [12:23:44]Content-Length: 812 [12:23:44]Content-Type: application/json [12:23:44] [12:23:44]POST finish read [12:23:44]Found Content-Length = 812 [12:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:44]execute_script... [12:23: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)347959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:44]POST & json_proto [12:23:44]process_json_proto [12:23:44]json parsed OK: [12:23:44]protocol is kg_v1.0 [12:23:44]action value=close_receipt [12:23:44]process_action close_receipt [12:23:44]cmd_close_receipt [12:23:44]MH_GetDate [12:23:44]Write to MH i2c: F0 00 00 DC 40 0B [12:23:44]Write i2c OK [12:23:44]MH_I2C_Read... [12:23:44]Read from MH i2c: F0 [12:23:44]MH_I2C_Read... [12:23:44]Read from MH i2c: F0 09 00 [12:23:44]MH_I2C_Read... [12:23:44]Read from MH i2c: F0 09 00 DC 40 00 54 1C 1D 66 23 5B 8F 65 79 [12:23:44]GetLastDocTimeStamp 1713183431 [12:23:44]current date 1713183828 [12:23:44]FM_GetShiftState [12:23:44]SAM_PROTO_GetShiftState [12:23:44]wFMCommunicate request_size=4 [12:23:44]MH_SAM_APDU [12:23:44]CAPDU: 80 13 01 00 [12:23:44]Write to MH i2c: E2 08 00 DD 40 80 13 01 00 00 00 00 00 9A [12:23:44]Write i2c OK [12:23:44]MH_I2C_Read... [12:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:44]Read from MH i2c: E2 [12:23:44]MH_I2C_Read... [12:23:44]Read from MH i2c: E2 0E 00 [12:23:44]MH_I2C_Read... [12:23:44]Read from MH i2c: E2 0E 00 DD 40 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8E [12:23:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:23:44]wFMCommunicate OK [12:23:44]SAM_PROTO_GetShiftState done [12:23:44]FM_GetShiftState done [12:23:44]opened in 1713140468 [12:23:44]opened+sec_in_day 1713226868 [12:23:44]quantity*price = 100016 [12:23:44]sum+1 = 100017 [12:23:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 132 15.04.2024 12:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29538 ФПД: 102234071584079 1/tax-web-control/client/api/v1/ticket?date=20240415T122348&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29538&fm=102234071584079&tin=02508201610067®Number=0000138879044617&sum=100016 [12:23:45]StoreToDocumentArchive [12:23:45]shift 117 fd 29538 [12:23:45]save to /storage/0117/doc_00029538 [12:23:45]save last doc name /storage/0117/doc_00029538 to /storage/kkm_last_doc_name [12:23:45]save OK [12:23:45]Clear old archive folders... [12:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:23:45]tlvbuf is 0022F0E0 [12:23:45]SAM_PROTO_ClearQueue [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 09 00 00 [12:23:45]Write to MH i2c: E2 08 00 EA 40 80 09 00 00 00 00 00 00 9C [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 EA 40 00 90 00 9E [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]SAM_PROTO_ClearQueue done [12:23:45]KKMCreateOFDPacket [12:23:45]OFDProtocolAddRootSTLVToBuf [12:23:45]FM_MakeSignedData [12:23:45]FM_MakeSignedData [12:23:45]SAM_PROTO_SignData [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 01 02 [12:23:45]Write to MH i2c: E2 08 00 EB 40 80 0D 01 02 00 00 00 00 A4 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 EB 40 00 90 00 9F [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=255 [12:23:45]MH_SAM_APDU [12:23: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 54 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 73 00 00 35 04 06 00 [12:23:45]Write to MH i2c: E2 02 01 EC 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 54 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 73 00 00 35 04 06 00 00 00 61 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 EC 40 00 90 00 A0 [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=11 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 02 02 06 5C FB 39 85 4D 4F [12:23:45]Write to MH i2c: E2 0E 00 ED 40 80 0D 02 02 06 00 5C FB 39 85 4D 4F 00 00 64 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 03 00 ED 40 00 90 00 A1 [12:23:45]RAPDU: 90 00 [12:23:45]wFMCommunicate OK [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 0D 03 02 [12:23:45]Write to MH i2c: E2 08 00 EE 40 80 0D 03 02 00 00 00 00 A9 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 0B 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 0B 00 EE 40 00 88 4A AF AB 88 1E DC 84 90 00 DC [12:23:45]RAPDU: 88 4A AF AB 88 1E DC 84 90 00 [12:23:45]wFMCommunicate OK [12:23:45]SAM_PROTO_SignData done [12:23:45]FM_MakeSignedData done [12:23:45]CreateOFDProtocolMessage [12:23:45]wFMCommunicate request_size=4 [12:23:45]MH_SAM_APDU [12:23:45]CAPDU: 80 11 00 00 [12:23:45]Write to MH i2c: E2 08 00 EF 40 80 11 00 00 00 00 00 00 A9 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:45]Read from MH i2c: E2 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 17 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: E2 17 00 EF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [12:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:45]wFMCommunicate OK [12:23:45]CreateOFDProtocolMessage done [12:23:45]OFDSenderStorePacket 29538 [12:23:45]StoreOFDPacket docnum=29538 [12:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 83 60 08 01 F9 55 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 54 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 73 00 00 35 04 06 00 5C FB 39 85 4D 4F 88 4A AF AB 88 1E DC 84 [12:23:45]CheckFolder [12:23:45]dirname=/storage/ofd_packets [12:23:45]CheckFolder done [12:23:45]ProducePacketName [12:23:45]name=ofd_packets/00029538 [12:23:45]NVStorageSaveData ofd_packets/00029538 [12:23:45]File name is /storage/ofd_packets/00029538 [12:23:45]Write 302 bytes [12:23:45]NVStorageSaveData done [12:23:45]OFDSenderStorePacket done [12:23:45]KKMCreateOFDPacket done [12:23:45]NVStorageSaveData kkm_last_timestamp [12:23:45]File name is /storage/kkm_last_timestamp [12:23:45]Write 4 bytes [12:23:45]NVStorageSaveData done [12:23:45]ExternCall_PrintAddStr [12:23:45]wPrintStart [12:23:45]Write to MH i2c: 01 00 00 F0 40 30 [12:23:45]Write i2c OK [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: 01 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: 01 07 00 [12:23:45]MH_I2C_Read... [12:23:45]Read from MH i2c: 01 07 00 F0 40 00 00 00 00 00 FF 0F 45 [12:23:45]RasterBufferAndPrint [12:23:45]line Счет N : (1)347959 [12:23:45]line ИНН: 02508201610067 [12:23:45]line Контрольно-Кассовый Чек [12:23:45]line ПРОДАЖА [12:23:45]line ТРК (МРК, ГНК) : 12 [12:23:45]line Товар: 2710124130 [12:23:45]line SUPER-92-К-5 [12:23:45]line 15.200 * 65.80 [12:23:45]line = 1000.16 [12:23:45]line НДС 12% НСП 1% [12:23:45]line > о реализуемом товаре [12:23:45]line ИТОГО: 1000.16 [12:23:45]line НСП 1% : 8.85 [12:23:45]line НДС 12% : 106.21 [12:23:45]line Наличными: 0.00 [12:23:45]line Безнал.: 1000.16 [12:23:45]line Место: АЗС № 108 "Партнер Нефть" [12:23:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:45]line СНО: Общий режим [12:23:45]line Чек 132 15.04.2024 12:23 [12:23:45]line Смена: 117 ФФД: 1.0 [12:23:45]line ЗНМ: 0300000027 [12:23:45]line РНМ: 0000138879044617 [12:23:45]line Версия ККМ: 001 [12:23:45]line Платежная система: Бакай Банк [12:23:45]line ФМ: 0000000000963154 [12:23:45]line ФД: 29538 [12:23:45]line ФПД: 102234071584079 [12:23:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T122348&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29538&fm=102234071584079&tin=02508201610067®Number=0000138879044617&sum=100016 [12:23:46]OFD Sender: Processing packet 29538 [packets to send 8, broken 7] [12:23:46]ProducePacketName [12:23:46]name=ofd_packets/00029538 [12:23:46]OFD Sender: To server: pG, [12:23:46]CommunicateWithHost lk.salyk.kg:30040 [12:23:46]ConnectInit lk.salyk.kg [12:23:46]written 0, free lines is 4095 [12:23:46]Connected sock=8 [12:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 83 60 08 01 F9 55 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 54 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 73 00 00 35 04 06 00 5C FB 39 85 4D 4F 88 4A AF AB 88 1E DC 84 [12:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 36 82 47 00 CB 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 73 00 00 F4 03 04 00 F5 C6 1C 66 B6 04 01 00 00 81 F1 EB 16 BE C9 7E 1E [12:23:46]CommunicateWithHost err = 0 [12:23:46]CheckOFDResponse [12:23:46]1017 (14) - 77093643461234 [12:23:46]1041 (16) - 0000000000963154 [12:23:46]1040 (4) - 29538 [12:23:46]1012 (4) - 15.04.2024 06:19 [12:23:46]1206 (1) - 0 [12:23:46]OFD Sender: Remove packet 29538 [12:23:46]ProducePacketName [12:23:46]name=ofd_packets/00029538 [12:23:46]NVStorageDeleteData [12:23:46]Write to MH i2c: 01 00 00 19 41 5A [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: 01 07 00 19 41 00 00 00 00 00 E2 0C 4F [12:23:46]RasterBufferAndPrint [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]line [12:23:46]written 0, free lines is 3304 [12:23:46]MH_Cut [12:23:46]Write to MH i2c: D1 01 00 20 41 01 33 [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 01 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: D1 01 00 20 41 00 32 [12:23:46]Write to MH i2c: 01 00 00 21 41 62 [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:47]OFD Sender: No OFD packet to send [12:23:47]*** Cut start [12:23:47]*** Partial cut [12:23:47]*** CUTSNS_PIN = 1 [12:23:47]*** CUTSNS_PIN = 0 [12:23:47]*** Brake cut motor [12:23:48]Read from MH i2c: 01 [12:23:48]MH_I2C_Read... [12:23:48]*** Stop cut motor [12:23:48]*** Cut end [12:23:48]Read from MH i2c: 01 07 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: 01 07 00 21 41 00 00 00 00 00 FF 0F 77 [12:23:48]process_action close_receipt done [12:23:48]requested_data is exist [12:23:48]produce_requested_data [12:23:48]requested_item fm.sn is exist - process it [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 11 00 00 [12:23:48]Write to MH i2c: E2 08 00 22 41 80 11 00 00 00 00 00 00 DD [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 22 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [12:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:48]wFMCommunicate OK [12:23:48]requested_item fd.num is exist - process it [12:23:48]SAM_PROTO_GetFieldsCounters [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 00 00 [12:23:48]Write to MH i2c: E2 08 00 23 41 80 13 00 00 00 00 00 00 E0 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 62 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 62 00 23 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 73 00 00 0E 04 04 00 75 00 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 F4 [12:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 73 00 00 0E 04 04 00 75 00 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:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetFieldsCounters done [12:23:48]requested_item shift.num is exist - process it [12:23:48]requested_item shift.opened is exist - process it [12:23:48]req_shift_opened [12:23:48]FM_GetShiftState [12:23:48]SAM_PROTO_GetShiftState [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 01 00 [12:23:48]Write to MH i2c: E2 08 00 24 41 80 13 01 00 00 00 00 00 E2 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 24 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D6 [12:23:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetShiftState done [12:23:48]FM_GetShiftState done [12:23:48]req_shift_opened done [12:23:48]requested_item shift.open_date is exist - process it [12:23:48]req_shift_open_date [12:23:48]req_shift_open_date done [12:23:48]produce_requested_data done [12:23:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29538,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:23:48]process_action_free close_receipt [12:23:48]json_value_free [12:23:48]json_value_free done [12:23:48]process_json_proto returns [12:23:48]Send response to host [12:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29538,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:23:48]free response buf [12:23:48]execute_script done [12:23:48]execute_script returns [12:23:48]free content buf [12:23:48]Sock 9.Close socket [12:23:48]Sock 9.Thread stoped [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:14]accept exits with 10 [12:24:14]New connection [12:24:14]New thread 3067112804 created [12:24:14]Thread 3066969444 joined [12:24:14]Waiting for new connection... [12:24:14] Sock 10.Parse request [12:24:14]Sock 10.Check first char [12:24:14]Sock 10.First char is OK [12:24:14]request: POST /json_proto HTTP/1.0 [12:24:14]Method: POST [12:24:14]URL: /json_proto [12:24:14]Method is POST - this is cgi request [12:24:14]url: /json_proto [12:24:14]query_string will be loaded in cgi processing [12:24:14]execute_cgi json_proto POST (null) [12:24:14]execute_cgi path=json_proto method=POST [12:24:14]POST find Content-Length [12:24:14]Host: 172.17.33.3:8080 [12:24:14]Content-Length: 809 [12:24:14]Content-Type: application/json [12:24:14] [12:24:14]POST finish read [12:24:14]Found Content-Length = 809 [12:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:14]execute_script... [12:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:14]POST & json_proto [12:24:14]process_json_proto [12:24:14]json parsed OK: [12:24:14]protocol is kg_v1.0 [12:24:14]action value=close_receipt [12:24:14]process_action close_receipt [12:24:14]cmd_close_receipt [12:24:14]MH_GetDate [12:24:14]Write to MH i2c: F0 00 00 25 41 55 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 09 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: F0 09 00 25 41 00 72 1C 1D 66 23 5B 8F 65 E1 [12:24:14]GetLastDocTimeStamp 1713183828 [12:24:14]current date 1713183858 [12:24:14]FM_GetShiftState [12:24:14]SAM_PROTO_GetShiftState [12:24:14]wFMCommunicate request_size=4 [12:24:14]MH_SAM_APDU [12:24:14]CAPDU: 80 13 01 00 [12:24:14]Write to MH i2c: E2 08 00 26 41 80 13 01 00 00 00 00 00 E4 [12:24:14]Write i2c OK [12:24:14]MH_I2C_Read... [12:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:14]Read from MH i2c: E2 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0E 00 [12:24:14]MH_I2C_Read... [12:24:14]Read from MH i2c: E2 0E 00 26 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D8 [12:24:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:24:14]wFMCommunicate OK [12:24:14]SAM_PROTO_GetShiftState done [12:24:14]FM_GetShiftState done [12:24:14]opened in 1713140468 [12:24:14]opened+sec_in_day 1713226868 [12:24:14]quantity*price = 50008 [12:24:14]sum+1 = 50009 [12:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 133 15.04.2024 12:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29539 ФПД: 105142858338941 1/tax-web-control/client/api/v1/ticket?date=20240415T122418&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29539&fm=105142858338941&tin=02508201610067®Number=0000138879044617&sum=50008 [12:24:15]StoreToDocumentArchive [12:24:15]shift 117 fd 29539 [12:24:15]save to /storage/0117/doc_00029539 [12:24:15]save last doc name /storage/0117/doc_00029539 to /storage/kkm_last_doc_name [12:24:15]save OK [12:24:15]Clear old archive folders... [12:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:24:15]tlvbuf is 002EDF20 [12:24:15]SAM_PROTO_ClearQueue [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 09 00 00 [12:24:15]Write to MH i2c: E2 08 00 33 41 80 09 00 00 00 00 00 00 E6 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 33 41 00 90 00 E8 [12:24:15]RAPDU: 90 00 [12:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_ClearQueue done [12:24:15]KKMCreateOFDPacket [12:24:15]OFDProtocolAddRootSTLVToBuf [12:24:15]FM_MakeSignedData [12:24:15]FM_MakeSignedData [12:24:15]SAM_PROTO_SignData [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 0D 01 02 [12:24:15]Write to MH i2c: E2 08 00 34 41 80 0D 01 02 00 00 00 00 EE [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 34 41 00 90 00 E9 [12:24:15]RAPDU: 90 00 [12:24:15]wFMCommunicate OK [12:24:15]wFMCommunicate request_size=255 [12:24:15]MH_SAM_APDU [12:24: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 72 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 73 00 00 35 04 06 00 [12:24:15]Write to MH i2c: E2 02 01 35 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 72 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 73 00 00 35 04 06 00 00 00 19 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 35 41 00 90 00 EA [12:24:15]RAPDU: 90 00 [12:24:15]wFMCommunicate OK [12:24:15]wFMCommunicate request_size=11 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 0D 02 02 06 5F A0 7A B8 D2 7D [12:24:15]Write to MH i2c: E2 0E 00 36 41 80 0D 02 02 06 00 5F A0 7A B8 D2 7D 00 00 7D [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 03 00 36 41 00 90 00 EB [12:24:15]RAPDU: 90 00 [12:24:15]wFMCommunicate OK [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 0D 03 02 [12:24:15]Write to MH i2c: E2 08 00 37 41 80 0D 03 02 00 00 00 00 F3 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0B 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0B 00 37 41 00 14 FD 8A EF 76 66 05 58 90 00 B7 [12:24:15]RAPDU: 14 FD 8A EF 76 66 05 58 90 00 [12:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_SignData done [12:24:15]FM_MakeSignedData done [12:24:15]CreateOFDProtocolMessage [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 11 00 00 [12:24:15]Write to MH i2c: E2 08 00 38 41 80 11 00 00 00 00 00 00 F3 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 17 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 17 00 38 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [12:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:15]wFMCommunicate OK [12:24:15]CreateOFDProtocolMessage done [12:24:15]OFDSenderStorePacket 29539 [12:24:15]StoreOFDPacket docnum=29539 [12:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9A 9E 08 01 2F 25 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 72 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 73 00 00 35 04 06 00 5F A0 7A B8 D2 7D 14 FD 8A EF 76 66 05 58 [12:24:15]CheckFolder [12:24:15]dirname=/storage/ofd_packets [12:24:15]CheckFolder done [12:24:15]ProducePacketName [12:24:15]name=ofd_packets/00029539 [12:24:15]NVStorageSaveData ofd_packets/00029539 [12:24:15]File name is /storage/ofd_packets/00029539 [12:24:15]Write 302 bytes [12:24:15]NVStorageSaveData done [12:24:15]OFDSenderStorePacket done [12:24:15]KKMCreateOFDPacket done [12:24:15]NVStorageSaveData kkm_last_timestamp [12:24:15]File name is /storage/kkm_last_timestamp [12:24:15]Write 4 bytes [12:24:15]NVStorageSaveData done [12:24:15]ExternCall_PrintAddStr [12:24:15]wPrintStart [12:24:15]Write to MH i2c: 01 00 00 39 41 7A [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 07 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: 01 07 00 39 41 00 00 00 00 00 FF 0F 8F [12:24:15]RasterBufferAndPrint [12:24:15]line Счет N : (1)347960 [12:24:15]line ИНН: 02508201610067 [12:24:15]line Контрольно-Кассовый Чек [12:24:15]line ПРОДАЖА [12:24:15]line ТРК (МРК, ГНК) : 31 [12:24:15]line Товар: 2710124130 [12:24:15]line SUPER-92-К-5 [12:24:15]line 7.600 * 65.80 [12:24:15]line = 500.08 [12:24:15]line НДС 12% НСП 1% [12:24:15]line > о реализуемом товаре [12:24:15]line ИТОГО: 500.08 [12:24:15]line НСП 1% : 4.42 [12:24:15]line НДС 12% : 53.11 [12:24:15]line Наличными: 0.00 [12:24:15]line Безнал.: 500.08 [12:24:15]line Место: АЗС № 108 "Партнер Нефть" [12:24:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:24:15]line СНО: Общий режим [12:24:15]line Чек 133 15.04.2024 12:24 [12:24:15]line Смена: 117 ФФД: 1.0 [12:24:15]line ЗНМ: 0300000027 [12:24:15]line РНМ: 0000138879044617 [12:24:15]line Версия ККМ: 001 [12:24:15]line Платежная система: Бакай Банк [12:24:15]line ФМ: 0000000000963154 [12:24:15]line ФД: 29539 [12:24:15]line ФПД: 105142858338941 [12:24:15]line 1/tax-web-control/client/api/v1/ticket?date=20240415T122418&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29539&fm=105142858338941&tin=02508201610067®Number=0000138879044617&sum=50008 [12:24:15]written 0, free lines is 4095 [12:24:15]OFD Sender: Processing packet 29539 [packets to send 8, broken 7] [12:24:15]ProducePacketName [12:24:15]name=ofd_packets/00029539 [12:24:15]OFD Sender: To server: pG, [12:24:15]CommunicateWithHost lk.salyk.kg:30040 [12:24:15]ConnectInit lk.salyk.kg [12:24:15]Connected sock=11 [12:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9A 9E 08 01 2F 25 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 72 1C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 73 00 00 35 04 06 00 5F A0 7A B8 D2 7D 14 FD 8A EF 76 66 05 58 [12:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 68 47 00 D4 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 73 00 00 F4 03 04 00 13 C7 1C 66 B6 04 01 00 00 36 06 18 7C BA 47 C8 04 [12:24:15]CommunicateWithHost err = 0 [12:24:15]CheckOFDResponse [12:24:15]1017 (14) - 77093643461234 [12:24:15]1041 (16) - 0000000000963154 [12:24:15]1040 (4) - 29539 [12:24:15]1012 (4) - 15.04.2024 06:20 [12:24:15]1206 (1) - 0 [12:24:15]OFD Sender: Remove packet 29539 [12:24:15]ProducePacketName [12:24:15]name=ofd_packets/00029539 [12:24:15]NVStorageDeleteData [12:24:16]Write to MH i2c: 01 00 00 62 41 A3 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 62 41 00 00 00 00 00 E0 0C 96 [12:24:16]RasterBufferAndPrint [12:24:16]line [12:24:16]line [12:24:16]line [12:24:16]line [12:24:16]line [12:24:16]written 0, free lines is 3302 [12:24:16]MH_Cut [12:24:16]Write to MH i2c: D1 01 00 69 41 01 7C [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: D1 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: D1 01 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: D1 01 00 69 41 00 7B [12:24:16]Write to MH i2c: 01 00 00 6A 41 AB [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]OFD Sender: No OFD packet to send [12:24:16]*** Cut start [12:24:16]*** Partial cut [12:24:16]*** CUTSNS_PIN = 1 [12:24:16]*** CUTSNS_PIN = 0 [12:24:17]*** Brake cut motor [12:24:17]Read from MH i2c: 01 [12:24:17]MH_I2C_Read... [12:24:17]*** Stop cut motor [12:24:17]*** Cut end [12:24:17]Read from MH i2c: 01 07 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 07 00 6A 41 00 00 00 00 00 FF 0F C0 [12:24:17]process_action close_receipt done [12:24:17]requested_data is exist [12:24:17]produce_requested_data [12:24:17]requested_item fm.sn is exist - process it [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 11 00 00 [12:24:17]Write to MH i2c: E2 08 00 6B 41 80 11 00 00 00 00 00 00 26 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 17 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 17 00 6B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [12:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:17]wFMCommunicate OK [12:24:17]requested_item fd.num is exist - process it [12:24:17]SAM_PROTO_GetFieldsCounters [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 13 00 00 [12:24:17]Write to MH i2c: E2 08 00 6C 41 80 13 00 00 00 00 00 00 29 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 62 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 62 00 6C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 73 00 00 0E 04 04 00 75 00 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 41 [12:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 73 00 00 0E 04 04 00 75 00 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:24:17]wFMCommunicate OK [12:24:17]SAM_PROTO_GetFieldsCounters done [12:24:17]requested_item shift.num is exist - process it [12:24:17]requested_item shift.opened is exist - process it [12:24:17]req_shift_opened [12:24:17]FM_GetShiftState [12:24:17]SAM_PROTO_GetShiftState [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 13 01 00 [12:24:17]Write to MH i2c: E2 08 00 6D 41 80 13 01 00 00 00 00 00 2B [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 6D 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1F [12:24:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:24:17]wFMCommunicate OK [12:24:17]SAM_PROTO_GetShiftState done [12:24:17]FM_GetShiftState done [12:24:17]req_shift_opened done [12:24:17]requested_item shift.open_date is exist - process it [12:24:17]req_shift_open_date [12:24:17]req_shift_open_date done [12:24:17]produce_requested_data done [12:24:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29539,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:24:17]process_action_free close_receipt [12:24:17]json_value_free [12:24:17]json_value_free done [12:24:17]process_json_proto returns [12:24:17]Send response to host [12:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29539,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:24:17]free response buf [12:24:17]execute_script done [12:24:17]execute_script returns [12:24:17]free content buf [12:24:17]Sock 10.Close socket [12:24:17]Sock 10.Thread stoped [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:50]accept exits with 8 [12:31:50]New connection [12:31:50]New thread 3066969444 created [12:31:50]Thread 3067112804 joined [12:31:50]Waiting for new connection... [12:31:50] Sock 8.Parse request [12:31:50]Sock 8.Check first char [12:31:50]Sock 8.First char is OK [12:31:50]request: POST /json_proto HTTP/1.0 [12:31:50]Method: POST [12:31:50]URL: /json_proto [12:31:50]Method is POST - this is cgi request [12:31:50]url: /json_proto [12:31:50]query_string will be loaded in cgi processing [12:31:50]execute_cgi json_proto POST (null) [12:31:50]execute_cgi path=json_proto method=POST [12:31:50]POST find Content-Length [12:31:50]Host: 172.17.33.3:8080 [12:31:50]Content-Length: 682 [12:31:50]Content-Type: application/json [12:31:50] [12:31:50]POST finish read [12:31:50]Found Content-Length = 682 [12:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347961", "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" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:50]execute_script... [12:31: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)347961", "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" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:50]POST & json_proto [12:31:50]process_json_proto [12:31:50]json parsed OK: [12:31:50]protocol is kg_v1.0 [12:31:50]action value=close_receipt [12:31:50]process_action close_receipt [12:31:50]cmd_close_receipt [12:31:50]MH_GetDate [12:31:50]Write to MH i2c: F0 00 00 6E 41 9E [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: F0 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: F0 09 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: F0 09 00 6E 41 00 3B 1E 1D 66 23 5B 8F 65 F5 [12:31:50]GetLastDocTimeStamp 1713183858 [12:31:50]current date 1713184315 [12:31:50]FM_GetShiftState [12:31:50]SAM_PROTO_GetShiftState [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 13 01 00 [12:31:50]Write to MH i2c: E2 08 00 6F 41 80 13 01 00 00 00 00 00 2D [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0E 00 6F 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [12:31:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_GetShiftState done [12:31:50]FM_GetShiftState done [12:31:50]opened in 1713140468 [12:31:50]opened+sec_in_day 1713226868 [12:31:50]quantity*price = 200037 [12:31:50]sum+1 = 200039 [12:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 134 15.04.2024 12:31 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29540 ФПД: 140972124006151 1/tax-web-control/client/api/v1/ticket?date=20240415T123155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29540&fm=140972124006151&tin=02508201610067®Number=0000138879044617&sum=200000 [12:31:52]StoreToDocumentArchive [12:31:52]shift 117 fd 29540 [12:31:52]save to /storage/0117/doc_00029540 [12:31:52]save last doc name /storage/0117/doc_00029540 to /storage/kkm_last_doc_name [12:31:52]save OK [12:31:52]Clear old archive folders... [12:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:52]tlvbuf is 00206910 [12:31:52]SAM_PROTO_ClearQueue [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 09 00 00 [12:31:52]Write to MH i2c: E2 08 00 7C 41 80 09 00 00 00 00 00 00 2F [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 7C 41 00 90 00 31 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_ClearQueue done [12:31:52]KKMCreateOFDPacket [12:31:52]OFDProtocolAddRootSTLVToBuf [12:31:52]FM_MakeSignedData [12:31:52]FM_MakeSignedData [12:31:52]SAM_PROTO_SignData [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 01 02 [12:31:52]Write to MH i2c: E2 08 00 7D 41 80 0D 01 02 00 00 00 00 37 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 7D 41 00 90 00 32 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=255 [12:31:52]MH_SAM_APDU [12:31: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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3B 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 73 00 00 35 04 06 00 80 [12:31:52]Write to MH i2c: E2 02 01 7E 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3B 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 73 00 00 35 04 06 00 80 00 00 56 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 7E 41 00 90 00 33 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=10 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 02 02 05 36 A1 5F E7 07 [12:31:52]Write to MH i2c: E2 0D 00 7F 41 80 0D 02 02 05 00 36 A1 5F E7 07 00 00 68 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 03 00 7F 41 00 90 00 34 [12:31:52]RAPDU: 90 00 [12:31:52]wFMCommunicate OK [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 0D 03 02 [12:31:52]Write to MH i2c: E2 08 00 80 41 80 0D 03 02 00 00 00 00 3C [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 0B 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 0B 00 80 41 00 E3 45 AB 9F D1 68 43 0C 90 00 37 [12:31:52]RAPDU: E3 45 AB 9F D1 68 43 0C 90 00 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_SignData done [12:31:52]FM_MakeSignedData done [12:31:52]CreateOFDProtocolMessage [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 11 00 00 [12:31:52]Write to MH i2c: E2 08 00 81 41 80 11 00 00 00 00 00 00 3C [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 81 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [12:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:31:52]wFMCommunicate OK [12:31:52]CreateOFDProtocolMessage done [12:31:52]OFDSenderStorePacket 29540 [12:31:52]StoreOFDPacket docnum=29540 [12:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2F 7A 07 01 3F 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3B 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 73 00 00 35 04 06 00 80 36 A1 5F E7 07 E3 45 AB 9F D1 68 43 0C [12:31:52]CheckFolder [12:31:52]dirname=/storage/ofd_packets [12:31:52]CheckFolder done [12:31:52]ProducePacketName [12:31:52]name=ofd_packets/00029540 [12:31:52]NVStorageSaveData ofd_packets/00029540 [12:31:52]File name is /storage/ofd_packets/00029540 [12:31:52]Write 301 bytes [12:31:52]NVStorageSaveData done [12:31:52]OFDSenderStorePacket done [12:31:52]KKMCreateOFDPacket done [12:31:52]NVStorageSaveData kkm_last_timestamp [12:31:52]File name is /storage/kkm_last_timestamp [12:31:52]Write 4 bytes [12:31:52]NVStorageSaveData done [12:31:52]ExternCall_PrintAddStr [12:31:52]wPrintStart [12:31:52]Write to MH i2c: 01 00 00 82 41 C3 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 82 41 00 00 00 00 00 FF 0F D8 [12:31:52]RasterBufferAndPrint [12:31:52]line Счет N : (1)347961 [12:31:52]line ИНН: 02508201610067 [12:31:52]line Контрольно-Кассовый Чек [12:31:52]line ПРОДАЖА [12:31:52]line ТРК (МРК, ГНК) : 63 [12:31:52]line Товар: 2710124130 [12:31:52]line Аи-92-К-5 [12:31:52]line 30.870 * 64.80 [12:31:52]line = 2000.38 [12:31:52]line НДС 12% НСП 1% [12:31:52]line > о реализуемом товаре [12:31:52]line ОКРУГЛЕНИЕ: -0.38 [12:31:52]line ИТОГО: 2000.00 [12:31:52]line Внесено: 2000.00 [12:31:52]line СДАЧА: 0.00 [12:31:52]line НСП 1% : 17.70 [12:31:52]line НДС 12% : 212.43 [12:31:52]line Наличными: 2000.00 [12:31:52]line Безнал.: 0.00 [12:31:52]line Место: АЗС № 108 "Партнер Нефть" [12:31:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:31:52]line СНО: Общий режим [12:31:52]line Чек 134 15.04.2024 12:31 [12:31:52]line Смена: 117 ФФД: 1.0 [12:31:52]line ЗНМ: 0300000027 [12:31:52]line РНМ: 0000138879044617 [12:31:52]line Версия ККМ: 001 [12:31:52]line ФМ: 0000000000963154 [12:31:52]line ФД: 29540 [12:31:52]line ФПД: 140972124006151 [12:31:52]line 1/tax-web-control/client/api/v1/ticket?date=20240415T123155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29540&fm=140972124006151&tin=02508201610067®Number=0000138879044617&sum=200000 [12:31:52]OFD Sender: Processing packet 29540 [packets to send 8, broken 7] [12:31:52]ProducePacketName [12:31:52]name=ofd_packets/00029540 [12:31:52]OFD Sender: To server: pG, [12:31:52]CommunicateWithHost lk.salyk.kg:30040 [12:31:52]ConnectInit lk.salyk.kg [12:31:52]written 0, free lines is 4095 [12:31:53]Connected sock=10 [12:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2F 7A 07 01 3F 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 3B 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 73 00 00 35 04 06 00 80 36 A1 5F E7 07 E3 45 AB 9F D1 68 43 0C [12:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 07 A1 47 00 2F 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 39 36 33 31 35 34 10 04 04 00 64 73 00 00 F4 03 04 00 DC C8 1C 66 B6 04 01 00 00 69 E5 71 73 9B 4A D4 E5 [12:31:53]CommunicateWithHost err = 0 [12:31:53]CheckOFDResponse [12:31:53]1017 (14) - 77093643461234 [12:31:53]1041 (16) - 0000000000963154 [12:31:53]1040 (4) - 29540 [12:31:53]1012 (4) - 15.04.2024 06:27 [12:31:53]1206 (1) - 0 [12:31:53]OFD Sender: Remove packet 29540 [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00029540 [12:31:53]NVStorageDeleteData [12:31:53]Write to MH i2c: 01 00 00 AC 41 ED [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 AC 41 00 00 00 00 00 DF 0C DF [12:31:53]RasterBufferAndPrint [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]line [12:31:53]written 0, free lines is 3300 [12:31:53]MH_Cut [12:31:53]Write to MH i2c: D1 01 00 B3 41 01 C6 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 01 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: D1 01 00 B3 41 00 C5 [12:31:53]Write to MH i2c: 01 00 00 B4 41 F5 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]OFD Sender: No OFD packet to send [12:31:54]*** Cut start [12:31:54]*** Partial cut [12:31:54]*** CUTSNS_PIN = 1 [12:31:54]*** CUTSNS_PIN = 0 [12:31:54]*** Brake cut motor [12:31:54]Read from MH i2c: 01 [12:31:54]MH_I2C_Read... [12:31:54]*** Stop cut motor [12:31:54]*** Cut end [12:31:54]Read from MH i2c: 01 07 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: 01 07 00 B4 41 00 00 00 00 00 FF 0F 0A [12:31:54]process_action close_receipt done [12:31:54]requested_data is exist [12:31:54]produce_requested_data [12:31:54]requested_item fm.sn is exist - process it [12:31:54]wFMCommunicate request_size=4 [12:31:54]MH_SAM_APDU [12:31:54]CAPDU: 80 11 00 00 [12:31:54]Write to MH i2c: E2 08 00 B5 41 80 11 00 00 00 00 00 00 70 [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:54]Read from MH i2c: E2 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 17 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: E2 17 00 B5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [12:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:31:54]wFMCommunicate OK [12:31:54]requested_item fd.num is exist - process it [12:31:54]SAM_PROTO_GetFieldsCounters [12:31:54]wFMCommunicate request_size=4 [12:31:54]MH_SAM_APDU [12:31:54]CAPDU: 80 13 00 00 [12:31:54]Write to MH i2c: E2 08 00 B6 41 80 13 00 00 00 00 00 00 73 [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 B6 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 73 00 00 0E 04 04 00 75 00 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 8F [12:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetFieldsCounters done [12:31:55]requested_item shift.num is exist - process it [12:31:55]requested_item shift.opened is exist - process it [12:31:55]req_shift_opened [12:31:55]FM_GetShiftState [12:31:55]SAM_PROTO_GetShiftState [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 01 00 [12:31:55]Write to MH i2c: E2 08 00 B7 41 80 13 01 00 00 00 00 00 75 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 0E 00 B7 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 69 [12:31:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetShiftState done [12:31:55]FM_GetShiftState done [12:31:55]req_shift_opened done [12:31:55]requested_item shift.open_date is exist - process it [12:31:55]req_shift_open_date [12:31:55]req_shift_open_date done [12:31:55]produce_requested_data done [12:31:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29540,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:31:55]process_action_free close_receipt [12:31:55]json_value_free [12:31:55]json_value_free done [12:31:55]process_json_proto returns [12:31:55]Send response to host [12:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29540,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:31:55]free response buf [12:31:55]execute_script done [12:31:55]execute_script returns [12:31:55]free content buf [12:31:55]Sock 8.Close socket [12:31:55]Sock 8.Thread stoped [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:20]accept exits with 9 [12:32:20]New connection [12:32:20]New thread 3067112804 created [12:32:20]Thread 3066969444 joined [12:32:20]Waiting for new connection... [12:32:20] Sock 9.Parse request [12:32:20]Sock 9.Check first char [12:32:20]Sock 9.First char is OK [12:32:20]request: POST /json_proto HTTP/1.0 [12:32:20]Method: POST [12:32:20]URL: /json_proto [12:32:20]Method is POST - this is cgi request [12:32:20]url: /json_proto [12:32:20]query_string will be loaded in cgi processing [12:32:20]execute_cgi json_proto POST (null) [12:32:20]execute_cgi path=json_proto method=POST [12:32:20]POST find Content-Length [12:32:20]Host: 172.17.33.3:8080 [12:32:20]Content-Length: 738 [12:32:20]Content-Type: application/json [12:32:20] [12:32:20]POST finish read [12:32:20]Found Content-Length = 738 [12:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29540, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347961", "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" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:20]execute_script... [12:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29540, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347961", "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" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:20]POST & json_proto [12:32:20]process_json_proto [12:32:20]json parsed OK: [12:32:20]protocol is kg_v1.0 [12:32:20]action value=close_receipt [12:32:20]process_action close_receipt [12:32:20]cmd_close_receipt [12:32:20]MH_GetDate [12:32:20]Write to MH i2c: F0 00 00 B8 41 E8 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: F0 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: F0 09 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: F0 09 00 B8 41 00 58 1E 1D 66 23 5B 8F 65 5C [12:32:20]GetLastDocTimeStamp 1713184315 [12:32:20]current date 1713184344 [12:32:20]FM_GetShiftState [12:32:20]SAM_PROTO_GetShiftState [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 13 01 00 [12:32:20]Write to MH i2c: E2 08 00 B9 41 80 13 01 00 00 00 00 00 77 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0E 00 B9 41 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6B [12:32:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_GetShiftState done [12:32:20]FM_GetShiftState done [12:32:20]opened in 1713140468 [12:32:20]opened+sec_in_day 1713226868 [12:32:20]quantity*price = 200037 [12:32:20]sum+1 = 200039 [12:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 135 15.04.2024 12:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29540 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29541 ФПД: 128020616542022 1/tax-web-control/client/api/v1/ticket?date=20240415T123224&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29541&fm=128020616542022&tin=02508201610067®Number=0000138879044617&sum=200000 [12:32:21]StoreToDocumentArchive [12:32:21]shift 117 fd 29541 [12:32:21]save to /storage/0117/doc_00029541 [12:32:21]save last doc name /storage/0117/doc_00029541 to /storage/kkm_last_doc_name [12:32:21]save OK [12:32:21]Clear old archive folders... [12:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:32:21]tlvbuf is 00252D70 [12:32:21]SAM_PROTO_ClearQueue [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 09 00 00 [12:32:21]Write to MH i2c: E2 08 00 C8 41 80 09 00 00 00 00 00 00 7B [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 C8 41 00 90 00 7D [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_ClearQueue done [12:32:21]KKMCreateOFDPacket [12:32:21]OFDProtocolAddRootSTLVToBuf [12:32:21]FM_MakeSignedData [12:32:21]FM_MakeSignedData [12:32:21]SAM_PROTO_SignData [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 01 02 [12:32:21]Write to MH i2c: E2 08 00 C9 41 80 0D 01 02 00 00 00 00 83 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 C9 41 00 90 00 7E [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=255 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 58 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 64 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [12:32:21]Write to MH i2c: E2 02 01 CA 41 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 58 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 64 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 A2 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 CA 41 00 90 00 7F [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=38 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 73 00 00 35 04 06 00 74 6F 1F 5F 77 46 [12:32:21]Write to MH i2c: E2 29 00 CB 41 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 73 00 00 35 04 06 00 74 6F 1F 5F 77 46 00 00 01 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 CB 41 00 90 00 80 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 03 02 [12:32:21]Write to MH i2c: E2 08 00 CC 41 80 0D 03 02 00 00 00 00 88 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 CC 41 00 D1 0C CF 2B 66 FD 20 09 90 00 EC [12:32:21]RAPDU: D1 0C CF 2B 66 FD 20 09 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_SignData done [12:32:21]FM_MakeSignedData done [12:32:21]CreateOFDProtocolMessage [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 11 00 00 [12:32:21]Write to MH i2c: E2 08 00 CD 41 80 11 00 00 00 00 00 00 88 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 CD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [12:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:21]wFMCommunicate OK [12:32:21]CreateOFDProtocolMessage done [12:32:21]OFDSenderStorePacket 29541 [12:32:21]StoreOFDPacket docnum=29541 [12:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 4A D3 23 01 1B CC 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 58 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 64 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 73 00 00 35 04 06 00 74 6F 1F 5F 77 46 D1 0C CF 2B 66 FD 20 09 [12:32:21]CheckFolder [12:32:21]dirname=/storage/ofd_packets [12:32:21]CheckFolder done [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00029541 [12:32:21]NVStorageSaveData ofd_packets/00029541 [12:32:21]File name is /storage/ofd_packets/00029541 [12:32:21]Write 329 bytes [12:32:21]NVStorageSaveData done [12:32:21]OFDSenderStorePacket done [12:32:21]KKMCreateOFDPacket done [12:32:21]NVStorageSaveData kkm_last_timestamp [12:32:21]File name is /storage/kkm_last_timestamp [12:32:21]Write 4 bytes [12:32:21]NVStorageSaveData done [12:32:21]ExternCall_PrintAddStr [12:32:21]wPrintStart [12:32:21]Write to MH i2c: 01 00 00 CE 41 0F [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 CE 41 00 00 00 00 00 FF 0F 24 [12:32:21]RasterBufferAndPrint [12:32:21]line Счет N : (1)347961 [12:32:21]line ИНН: 02508201610067 [12:32:21]line Контрольно-Кассовый Чек [12:32:21]line ВОЗВРАТ ПРОДАЖИ [12:32:21]line ТРК (МРК, ГНК) : 63 [12:32:21]line Товар: 2710124130 [12:32:21]line Аи-92-К-5 [12:32:21]line 30.870 * 64.80 [12:32:21]line = 2000.38 [12:32:21]line НДС 12% НСП 1% [12:32:21]line > о реализуемом товаре [12:32:21]line ОКРУГЛЕНИЕ: -0.38 [12:32:21]line ИТОГО: 2000.00 [12:32:21]line НСП 1% : 17.70 [12:32:21]line НДС 12% : 212.43 [12:32:21]line Наличными: 2000.00 [12:32:21]line Безнал.: 0.00 [12:32:21]line Место: АЗС № 108 "Партнер Нефть" [12:32:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:32:21]line СНО: Общий режим [12:32:21]line Чек 135 15.04.2024 12:32 [12:32:21]line Смена: 117 ФФД: 1.0 [12:32:21]line ЗНМ: 0300000027 [12:32:21]line РНМ: 0000138879044617 [12:32:21]line Версия ККМ: 001 [12:32:21]line ФД осн.: 29540 [12:32:21]line ФМ осн.: 0000000000963154 [12:32:21]line ФМ: 0000000000963154 [12:32:21]line ФД: 29541 [12:32:21]line ФПД: 128020616542022 [12:32:22]line 1/tax-web-control/client/api/v1/ticket?date=20240415T123224&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29541&fm=128020616542022&tin=02508201610067®Number=0000138879044617&sum=200000 [12:32:22]OFD Sender: Processing packet 29541 [packets to send 8, broken 7] [12:32:22]ProducePacketName [12:32:22]name=ofd_packets/00029541 [12:32:22]written 0, free lines is 4095 [12:32:22]OFD Sender: To server: pG, [12:32:22]CommunicateWithHost lk.salyk.kg:30040 [12:32:22]ConnectInit lk.salyk.kg [12:32:22]Connected sock=10 [12:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 4A D3 23 01 1B CC 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 58 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 64 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 73 00 00 35 04 06 00 74 6F 1F 5F 77 46 D1 0C CF 2B 66 FD 20 09 [12:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BE F6 47 00 2A 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 39 36 33 31 35 34 10 04 04 00 65 73 00 00 F4 03 04 00 F9 C8 1C 66 B6 04 01 00 00 01 1D C8 4C D0 17 1D 0C [12:32:22]CommunicateWithHost err = 0 [12:32:22]CheckOFDResponse [12:32:22]1017 (14) - 77093643461234 [12:32:22]1041 (16) - 0000000000963154 [12:32:22]1040 (4) - 29541 [12:32:22]1012 (4) - 15.04.2024 06:28 [12:32:22]1206 (1) - 0 [12:32:22]OFD Sender: Remove packet 29541 [12:32:22]ProducePacketName [12:32:22]name=ofd_packets/00029541 [12:32:22]NVStorageDeleteData [12:32:22]Write to MH i2c: 01 00 00 F8 41 39 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 F8 41 00 00 00 00 00 CB 0C 17 [12:32:22]RasterBufferAndPrint [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]written 0, free lines is 3283 [12:32:22]MH_Cut [12:32:22]Write to MH i2c: D1 01 00 FF 41 01 12 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 01 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: D1 01 00 FF 41 00 11 [12:32:22]Write to MH i2c: 01 00 00 00 42 42 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:23]OFD Sender: No OFD packet to send [12:32:23]*** Cut start [12:32:23]*** Partial cut [12:32:23]*** CUTSNS_PIN = 1 [12:32:23]*** CUTSNS_PIN = 0 [12:32:23]*** Brake cut motor [12:32:24]Read from MH i2c: 01 [12:32:24]MH_I2C_Read... [12:32:24]*** Stop cut motor [12:32:24]*** Cut end [12:32:24]Read from MH i2c: 01 07 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: 01 07 00 00 42 00 00 00 00 00 FF 0F 57 [12:32:24]process_action close_receipt done [12:32:24]requested_data is exist [12:32:24]produce_requested_data [12:32:24]requested_item fm.sn is exist - process it [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 11 00 00 [12:32:24]Write to MH i2c: E2 08 00 01 42 80 11 00 00 00 00 00 00 BD [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 17 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 17 00 01 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [12:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:32:24]wFMCommunicate OK [12:32:24]requested_item fd.num is exist - process it [12:32:24]SAM_PROTO_GetFieldsCounters [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 13 00 00 [12:32:24]Write to MH i2c: E2 08 00 02 42 80 13 00 00 00 00 00 00 C0 [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 62 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 62 00 02 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 73 00 00 0E 04 04 00 75 00 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 E0 [12:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:24]wFMCommunicate OK [12:32:24]SAM_PROTO_GetFieldsCounters done [12:32:24]requested_item shift.num is exist - process it [12:32:24]requested_item shift.opened is exist - process it [12:32:24]req_shift_opened [12:32:24]FM_GetShiftState [12:32:24]SAM_PROTO_GetShiftState [12:32:24]wFMCommunicate request_size=4 [12:32:24]MH_SAM_APDU [12:32:24]CAPDU: 80 13 01 00 [12:32:24]Write to MH i2c: E2 08 00 03 42 80 13 01 00 00 00 00 00 C2 [12:32:24]Write i2c OK [12:32:24]MH_I2C_Read... [12:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:24]Read from MH i2c: E2 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 [12:32:24]MH_I2C_Read... [12:32:24]Read from MH i2c: E2 0E 00 03 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B6 [12:32:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:32:24]wFMCommunicate OK [12:32:24]SAM_PROTO_GetShiftState done [12:32:24]FM_GetShiftState done [12:32:24]req_shift_opened done [12:32:24]requested_item shift.open_date is exist - process it [12:32:24]req_shift_open_date [12:32:24]req_shift_open_date done [12:32:24]produce_requested_data done [12:32:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29541,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:32:24]process_action_free close_receipt [12:32:24]json_value_free [12:32:24]json_value_free done [12:32:24]process_json_proto returns [12:32:24]Send response to host [12:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29541,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:32:24]free response buf [12:32:24]execute_script done [12:32:24]execute_script returns [12:32:24]free content buf [12:32:24]Sock 9.Close socket [12:32:24]Sock 9.Thread stoped [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:21]accept exits with 8 [12:33:21]New connection [12:33:21]New thread 3066969444 created [12:33:21]Thread 3067112804 joined [12:33:21]Waiting for new connection... [12:33:21] Sock 8.Parse request [12:33:21]Sock 8.Check first char [12:33:21]Sock 8.First char is OK [12:33:21]request: POST /json_proto HTTP/1.0 [12:33:21]Method: POST [12:33:21]URL: /json_proto [12:33:21]Method is POST - this is cgi request [12:33:21]url: /json_proto [12:33:21]query_string will be loaded in cgi processing [12:33:21]execute_cgi json_proto POST (null) [12:33:21]execute_cgi path=json_proto method=POST [12:33:21]POST find Content-Length [12:33:21]Host: 172.17.33.3:8080 [12:33:21]Content-Length: 1211 [12:33:21]Content-Type: application/json [12:33:21] [12:33:21]POST finish read [12:33:21]Found Content-Length = 1211 [12:33: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347962\u000A15.04.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.440 x 64.80\u000A\u0418\u0422\u041E\u0413: 1000.51\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\u000A3859006;3859007\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:21]execute_script... [12:33: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347962\u000A15.04.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.440 x 64.80\u000A\u0418\u0422\u041E\u0413: 1000.51\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\u000A3859006;3859007\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:21]POST & json_proto [12:33:21]process_json_proto [12:33:21]json parsed OK: [12:33:21]protocol is kg_v1.0 [12:33:21]action value=print_text [12:33:21]process_action print_text [12:33:21]cmd_print_text [12:33:21]ExternCall_PrintAddStr [12:33:21]wPrintStart [12:33:21]Write to MH i2c: 01 00 00 04 42 46 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 04 42 00 00 00 00 00 FF 0F 5B [12:33:21]RasterBufferAndPrint [12:33:21]line *****ТОВАРНЫЙ ЧЕК***** [12:33:21]line АЗС 108 [12:33:21]line Партнер нефть [12:33:21]line 02508201610067 [12:33:21]line Кассир : Джумагулова Н. [12:33:21]line Счет N : (1)347962 [12:33:21]line 15.04.2024 12:15 [12:33:21]line ПРОДАЖА [12:33:21]line ТРК (МРК, ГНК): 53 [12:33:21]line Вид ГСМ : 2710124130 [12:33:21]line Аи-92-К-5 [12:33:21]line 15.440 x 64.80 [12:33:21]line ИТОГ: 1000.51 [12:33:21]line Тип оплаты: Талоны: Партнер нефть [12:33:21]line 3859006;3859007 [12:33:21]line ______________________ [12:33:21]line (подпись) [12:33:21]written 0, free lines is 4095 [12:33:21]Write to MH i2c: 01 00 00 19 42 5B [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 19 42 00 00 00 00 00 FC 0D 6B [12:33:21]RasterBufferAndPrint [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]line [12:33:21]written 0, free lines is 3582 [12:33:21]MH_Cut [12:33:21]Write to MH i2c: D1 01 00 20 42 01 34 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 01 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: D1 01 00 20 42 00 33 [12:33:21]Write to MH i2c: 01 00 00 21 42 63 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** Cut start [12:33:21]*** Partial cut [12:33:21]*** CUTSNS_PIN = 1 [12:33:22]*** CUTSNS_PIN = 0 [12:33:22]*** Brake cut motor [12:33:22]Read from MH i2c: 01 [12:33:22]MH_I2C_Read... [12:33:22]*** Stop cut motor [12:33:22]*** Cut end [12:33:22]Read from MH i2c: 01 07 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: 01 07 00 21 42 00 00 00 00 00 FF 0F 78 [12:33:22]process_action print_text done [12:33:22]requested_data is exist [12:33:22]produce_requested_data [12:33:22]requested_item fm.sn is exist - process it [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 11 00 00 [12:33:22]Write to MH i2c: E2 08 00 22 42 80 11 00 00 00 00 00 00 DE [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 17 00 22 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [12:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:33:22]wFMCommunicate OK [12:33:22]requested_item fd.num is exist - process it [12:33:22]SAM_PROTO_GetFieldsCounters [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 13 00 00 [12:33:22]Write to MH i2c: E2 08 00 23 42 80 13 00 00 00 00 00 00 E1 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 62 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 62 00 23 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 73 00 00 0E 04 04 00 75 00 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 01 [12:33:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:22]wFMCommunicate OK [12:33:22]SAM_PROTO_GetFieldsCounters done [12:33:22]requested_item shift.num is exist - process it [12:33:22]requested_item shift.opened is exist - process it [12:33:22]req_shift_opened [12:33:22]FM_GetShiftState [12:33:22]SAM_PROTO_GetShiftState [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 13 01 00 [12:33:22]Write to MH i2c: E2 08 00 24 42 80 13 01 00 00 00 00 00 E3 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0E 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0E 00 24 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [12:33:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:33:22]wFMCommunicate OK [12:33:22]SAM_PROTO_GetShiftState done [12:33:22]FM_GetShiftState done [12:33:22]req_shift_opened done [12:33:22]requested_item shift.open_date is exist - process it [12:33:22]req_shift_open_date [12:33:22]req_shift_open_date done [12:33:22]produce_requested_data done [12:33:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29541,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:33:22]process_action_free print_text [12:33:22]json_value_free [12:33:22]json_value_free done [12:33:22]process_json_proto returns [12:33:22]Send response to host [12:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29541,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:33:22]free response buf [12:33:22]execute_script done [12:33:22]execute_script returns [12:33:22]free content buf [12:33:22]Sock 8.Close socket [12:33:22]Sock 8.Thread stoped [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:47]accept exits with 9 [12:33:47]New connection [12:33:47]New thread 3067112804 created [12:33:47]Thread 3066969444 joined [12:33:47]Waiting for new connection... [12:33:47] Sock 9.Parse request [12:33:47]Sock 9.Check first char [12:33:47]Sock 9.First char is OK [12:33:47]request: POST /json_proto HTTP/1.0 [12:33:47]Method: POST [12:33:47]URL: /json_proto [12:33:47]Method is POST - this is cgi request [12:33:47]url: /json_proto [12:33:47]query_string will be loaded in cgi processing [12:33:47]execute_cgi json_proto POST (null) [12:33:47]execute_cgi path=json_proto method=POST [12:33:47]POST find Content-Length [12:33:47]Host: 172.17.33.3:8080 [12:33:47]Content-Length: 674 [12:33:47]Content-Type: application/json [12:33:47] [12:33:47]POST finish read [12:33:47]Found Content-Length = 674 [12:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:33:47]execute_script... [12:33: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)347963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:33:47]POST & json_proto [12:33:47]process_json_proto [12:33:47]json parsed OK: [12:33:47]protocol is kg_v1.0 [12:33:47]action value=close_receipt [12:33:47]process_action close_receipt [12:33:47]cmd_close_receipt [12:33:47]MH_GetDate [12:33:47]Write to MH i2c: F0 00 00 25 42 56 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: F0 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: F0 09 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: F0 09 00 25 42 00 AF 1E 1D 66 23 5B 8F 65 21 [12:33:47]GetLastDocTimeStamp 1713184344 [12:33:47]current date 1713184431 [12:33:47]FM_GetShiftState [12:33:47]SAM_PROTO_GetShiftState [12:33:47]wFMCommunicate request_size=4 [12:33:47]MH_SAM_APDU [12:33:47]CAPDU: 80 13 01 00 [12:33:47]Write to MH i2c: E2 08 00 26 42 80 13 01 00 00 00 00 00 E5 [12:33:47]Write i2c OK [12:33:47]MH_I2C_Read... [12:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:47]Read from MH i2c: E2 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 0E 00 [12:33:47]MH_I2C_Read... [12:33:47]Read from MH i2c: E2 0E 00 26 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [12:33:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:33:47]wFMCommunicate OK [12:33:47]SAM_PROTO_GetShiftState done [12:33:47]FM_GetShiftState done [12:33:47]opened in 1713140468 [12:33:47]opened+sec_in_day 1713226868 [12:33:47]quantity*price = 50009 [12:33:47]sum+1 = 50010 [12:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 136 15.04.2024 12:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29542 ФПД: 165333218819281 1/tax-web-control/client/api/v1/ticket?date=20240415T123351&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29542&fm=165333218819281&tin=02508201610067®Number=0000138879044617&sum=50000 [12:33:48]StoreToDocumentArchive [12:33:48]shift 117 fd 29542 [12:33:48]save to /storage/0117/doc_00029542 [12:33:48]save last doc name /storage/0117/doc_00029542 to /storage/kkm_last_doc_name [12:33:48]save OK [12:33:48]Clear old archive folders... [12:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:48]tlvbuf is 002AA190 [12:33:48]SAM_PROTO_ClearQueue [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 09 00 00 [12:33:48]Write to MH i2c: E2 08 00 33 42 80 09 00 00 00 00 00 00 E7 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 33 42 00 90 00 E9 [12:33:48]RAPDU: 90 00 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_ClearQueue done [12:33:48]KKMCreateOFDPacket [12:33:48]OFDProtocolAddRootSTLVToBuf [12:33:48]FM_MakeSignedData [12:33:48]FM_MakeSignedData [12:33:48]SAM_PROTO_SignData [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 0D 01 02 [12:33:48]Write to MH i2c: E2 08 00 34 42 80 0D 01 02 00 00 00 00 EF [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 34 42 00 90 00 EA [12:33:48]RAPDU: 90 00 [12:33:48]wFMCommunicate OK [12:33:48]wFMCommunicate request_size=255 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AF 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 73 00 00 35 04 06 00 96 5E A3 C6 [12:33:48]Write to MH i2c: E2 02 01 35 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AF 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 73 00 00 35 04 06 00 96 5E A3 C6 00 00 39 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 35 42 00 90 00 EB [12:33:48]RAPDU: 90 00 [12:33:48]wFMCommunicate OK [12:33:48]wFMCommunicate request_size=7 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 0D 02 02 02 FC D1 [12:33:48]Write to MH i2c: E2 0A 00 36 42 80 0D 02 02 02 00 FC D1 00 00 C3 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [12:33:48]RAPDU: 90 00 [12:33:48]wFMCommunicate OK [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 0D 03 02 [12:33:48]Write to MH i2c: E2 08 00 37 42 80 0D 03 02 00 00 00 00 F4 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0B 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0B 00 37 42 00 D0 9E C4 39 59 86 11 D6 90 00 26 [12:33:48]RAPDU: D0 9E C4 39 59 86 11 D6 90 00 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_SignData done [12:33:48]FM_MakeSignedData done [12:33:48]CreateOFDProtocolMessage [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 11 00 00 [12:33:48]Write to MH i2c: E2 08 00 38 42 80 11 00 00 00 00 00 00 F4 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 17 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 17 00 38 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [12:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:33:48]wFMCommunicate OK [12:33:48]CreateOFDProtocolMessage done [12:33:48]OFDSenderStorePacket 29542 [12:33:48]StoreOFDPacket docnum=29542 [12:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F9 D4 04 01 40 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AF 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 73 00 00 35 04 06 00 96 5E A3 C6 FC D1 D0 9E C4 39 59 86 11 D6 [12:33:48]CheckFolder [12:33:48]dirname=/storage/ofd_packets [12:33:48]CheckFolder done [12:33:48]ProducePacketName [12:33:48]name=ofd_packets/00029542 [12:33:48]NVStorageSaveData ofd_packets/00029542 [12:33:48]File name is /storage/ofd_packets/00029542 [12:33:48]Write 298 bytes [12:33:48]NVStorageSaveData done [12:33:48]OFDSenderStorePacket done [12:33:48]KKMCreateOFDPacket done [12:33:48]NVStorageSaveData kkm_last_timestamp [12:33:48]File name is /storage/kkm_last_timestamp [12:33:48]Write 4 bytes [12:33:48]NVStorageSaveData done [12:33:48]ExternCall_PrintAddStr [12:33:48]wPrintStart [12:33:48]Write to MH i2c: 01 00 00 39 42 7B [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 39 42 00 00 00 00 00 FF 0F 90 [12:33:48]RasterBufferAndPrint [12:33:48]line Счет N : (1)347963 [12:33:48]line ИНН: 02508201610067 [12:33:48]line Контрольно-Кассовый Чек [12:33:48]line ПРОДАЖА [12:33:48]line ТРК (МРК, ГНК) : 61 [12:33:48]line Товар: 2710194210 [12:33:48]line ДТ-К-5 [12:33:48]line 6.860 * 72.90 [12:33:48]line = 500.09 [12:33:48]line НДС 12% НСП 1% [12:33:48]line > о реализуемом товаре [12:33:48]line ОКРУГЛЕНИЕ: -0.09 [12:33:48]line ИТОГО: 500.00 [12:33:48]line Внесено: 500.00 [12:33:48]line СДАЧА: 0.00 [12:33:48]line НСП 1% : 4.43 [12:33:48]line НДС 12% : 53.11 [12:33:48]line Наличными: 500.00 [12:33:48]line Безнал.: 0.00 [12:33:48]line Место: АЗС № 108 "Партнер Нефть" [12:33:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:33:48]line СНО: Общий режим [12:33:48]line Чек 136 15.04.2024 12:33 [12:33:48]line Смена: 117 ФФД: 1.0 [12:33:48]line ЗНМ: 0300000027 [12:33:48]line РНМ: 0000138879044617 [12:33:48]line Версия ККМ: 001 [12:33:48]line ФМ: 0000000000963154 [12:33:48]line ФД: 29542 [12:33:48]line ФПД: 165333218819281 [12:33:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T123351&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29542&fm=165333218819281&tin=02508201610067®Number=0000138879044617&sum=50000 [12:33:49]OFD Sender: Processing packet 29542 [packets to send 8, broken 7] [12:33:49]ProducePacketName [12:33:49]name=ofd_packets/00029542 [12:33:49]OFD Sender: To server: pG, [12:33:49]CommunicateWithHost lk.salyk.kg:30040 [12:33:49]ConnectInit lk.salyk.kg [12:33:49]written 0, free lines is 4095 [12:33:49]Connected sock=10 [12:33:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F9 D4 04 01 40 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AF 1E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 73 00 00 35 04 06 00 96 5E A3 C6 FC D1 D0 9E C4 39 59 86 11 D6 [12:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B3 64 47 00 7B 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 39 36 33 31 35 34 10 04 04 00 66 73 00 00 F4 03 04 00 50 C9 1C 66 B6 04 01 00 00 90 4A E8 FD 0A 9A 9B 57 [12:33:49]CommunicateWithHost err = 0 [12:33:49]CheckOFDResponse [12:33:49]1017 (14) - 77093643461234 [12:33:49]1041 (16) - 0000000000963154 [12:33:49]1040 (4) - 29542 [12:33:49]1012 (4) - 15.04.2024 06:29 [12:33:49]1206 (1) - 0 [12:33:49]OFD Sender: Remove packet 29542 [12:33:49]ProducePacketName [12:33:49]name=ofd_packets/00029542 [12:33:49]NVStorageDeleteData [12:33:49]Write to MH i2c: 01 00 00 63 42 A5 [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: 01 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: 01 07 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: 01 07 00 63 42 00 00 00 00 00 C4 0C 7C [12:33:49]RasterBufferAndPrint [12:33:49]line [12:33:49]line [12:33:49]line [12:33:49]line [12:33:49]line [12:33:49]written 0, free lines is 3274 [12:33:49]MH_Cut [12:33:49]Write to MH i2c: D1 01 00 6A 42 01 7E [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: D1 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: D1 01 00 [12:33:49]MH_I2C_Read... [12:33:49]Read from MH i2c: D1 01 00 6A 42 00 7D [12:33:49]Write to MH i2c: 01 00 00 6B 42 AD [12:33:49]Write i2c OK [12:33:49]MH_I2C_Read... [12:33:49]OFD Sender: No OFD packet to send [12:33:50]*** Cut start [12:33:50]*** Partial cut [12:33:50]*** CUTSNS_PIN = 1 [12:33:50]*** CUTSNS_PIN = 0 [12:33:50]*** Brake cut motor [12:33:50]Read from MH i2c: 01 [12:33:50]MH_I2C_Read... [12:33:50]*** Stop cut motor [12:33:50]*** Cut end [12:33:50]Read from MH i2c: 01 07 00 [12:33:50]MH_I2C_Read... [12:33:50]Read from MH i2c: 01 07 00 6B 42 00 00 00 00 00 FF 0F C2 [12:33:50]process_action close_receipt done [12:33:50]requested_data is exist [12:33:50]produce_requested_data [12:33:50]requested_item fm.sn is exist - process it [12:33:50]wFMCommunicate request_size=4 [12:33:50]MH_SAM_APDU [12:33:50]CAPDU: 80 11 00 00 [12:33:50]Write to MH i2c: E2 08 00 6C 42 80 11 00 00 00 00 00 00 28 [12:33:50]Write i2c OK [12:33:50]MH_I2C_Read... [12:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 17 00 6C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [12:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:33:51]wFMCommunicate OK [12:33:51]requested_item fd.num is exist - process it [12:33:51]SAM_PROTO_GetFieldsCounters [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 00 00 [12:33:51]Write to MH i2c: E2 08 00 6D 42 80 13 00 00 00 00 00 00 2B [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 62 00 6D 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 73 00 00 0E 04 04 00 75 00 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 4F [12:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetFieldsCounters done [12:33:51]requested_item shift.num is exist - process it [12:33:51]requested_item shift.opened is exist - process it [12:33:51]req_shift_opened [12:33:51]FM_GetShiftState [12:33:51]SAM_PROTO_GetShiftState [12:33:51]wFMCommunicate request_size=4 [12:33:51]MH_SAM_APDU [12:33:51]CAPDU: 80 13 01 00 [12:33:51]Write to MH i2c: E2 08 00 6E 42 80 13 01 00 00 00 00 00 2D [12:33:51]Write i2c OK [12:33:51]MH_I2C_Read... [12:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:51]Read from MH i2c: E2 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 [12:33:51]MH_I2C_Read... [12:33:51]Read from MH i2c: E2 0E 00 6E 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [12:33:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:33:51]wFMCommunicate OK [12:33:51]SAM_PROTO_GetShiftState done [12:33:51]FM_GetShiftState done [12:33:51]req_shift_opened done [12:33:51]requested_item shift.open_date is exist - process it [12:33:51]req_shift_open_date [12:33:51]req_shift_open_date done [12:33:51]produce_requested_data done [12:33:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29542,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:33:51]process_action_free close_receipt [12:33:51]json_value_free [12:33:51]json_value_free done [12:33:51]process_json_proto returns [12:33:51]Send response to host [12:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29542,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:33:51]free response buf [12:33:51]execute_script done [12:33:51]execute_script returns [12:33:51]free content buf [12:33:51]Sock 9.Close socket [12:33:51]Sock 9.Thread stoped [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:51]accept exits with 8 [12:38:51]New connection [12:38:51]New thread 3066969444 created [12:38:51]Thread 3067112804 joined [12:38:51]Waiting for new connection... [12:38:51] Sock 8.Parse request [12:38:51]Sock 8.Check first char [12:38:51]Sock 8.First char is OK [12:38:51]request: POST /json_proto HTTP/1.0 [12:38:51]Method: POST [12:38:51]URL: /json_proto [12:38:51]Method is POST - this is cgi request [12:38:51]url: /json_proto [12:38:51]query_string will be loaded in cgi processing [12:38:51]execute_cgi json_proto POST (null) [12:38:51]execute_cgi path=json_proto method=POST [12:38:51]POST find Content-Length [12:38:51]Host: 172.17.33.3:8080 [12:38:51]Content-Length: 811 [12:38:51]Content-Type: application/json [12:38:51] [12:38:51]POST finish read [12:38:51]Found Content-Length = 811 [12:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 59.890, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:51]execute_script... [12:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 59.890, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:51]POST & json_proto [12:38:51]process_json_proto [12:38:51]json parsed OK: [12:38:51]protocol is kg_v1.0 [12:38:51]action value=close_receipt [12:38:51]process_action close_receipt [12:38:51]cmd_close_receipt [12:38:51]MH_GetDate [12:38:51]Write to MH i2c: F0 00 00 6F 42 A0 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 09 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: F0 09 00 6F 42 00 E0 1F 1D 66 23 5B 8F 65 9D [12:38:51]GetLastDocTimeStamp 1713184431 [12:38:51]current date 1713184736 [12:38:51]FM_GetShiftState [12:38:51]SAM_PROTO_GetShiftState [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 13 01 00 [12:38:51]Write to MH i2c: E2 08 00 70 42 80 13 01 00 00 00 00 00 2F [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0E 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0E 00 70 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [12:38:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:38:51]wFMCommunicate OK [12:38:51]SAM_PROTO_GetShiftState done [12:38:51]FM_GetShiftState done [12:38:51]opened in 1713140468 [12:38:51]opened+sec_in_day 1713226868 [12:38:51]quantity*price = 200032 [12:38:51]sum+1 = 200034 [12:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.33 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 137 15.04.2024 12:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29543 ФПД: 227546281795102 1/tax-web-control/client/api/v1/ticket?date=20240415T123856&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29543&fm=227546281795102&tin=02508201610067®Number=0000138879044617&sum=200033 [12:38:52]StoreToDocumentArchive [12:38:52]shift 117 fd 29543 [12:38:52]save to /storage/0117/doc_00029543 [12:38:52]save last doc name /storage/0117/doc_00029543 to /storage/kkm_last_doc_name [12:38:52]save OK [12:38:52]Clear old archive folders... [12:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:38:52]tlvbuf is 0027BB00 [12:38:52]SAM_PROTO_ClearQueue [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 09 00 00 [12:38:52]Write to MH i2c: E2 08 00 7D 42 80 09 00 00 00 00 00 00 31 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 7D 42 00 90 00 33 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_ClearQueue done [12:38:52]KKMCreateOFDPacket [12:38:52]OFDProtocolAddRootSTLVToBuf [12:38:52]FM_MakeSignedData [12:38:52]FM_MakeSignedData [12:38:52]SAM_PROTO_SignData [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 01 02 [12:38:52]Write to MH i2c: E2 08 00 7E 42 80 0D 01 02 00 00 00 00 39 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 7E 42 00 90 00 34 [12:38:53]RAPDU: 90 00 [12:38:53]wFMCommunicate OK [12:38:53]wFMCommunicate request_size=255 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 00 00 00 00 00 00 39 04 06 00 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 1F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 73 00 00 35 04 06 00 CE F3 [12:38:53]Write to MH i2c: E2 02 01 7F 42 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 00 00 00 00 00 00 39 04 06 00 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 1F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 73 00 00 35 04 06 00 CE F3 00 00 AE [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 7F 42 00 90 00 35 [12:38:53]RAPDU: 90 00 [12:38:53]wFMCommunicate OK [12:38:53]wFMCommunicate request_size=9 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 0D 02 02 04 BF 4B DE 1E [12:38:53]Write to MH i2c: E2 0C 00 80 42 80 0D 02 02 04 00 BF 4B DE 1E 00 00 4A [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 03 00 80 42 00 90 00 36 [12:38:53]RAPDU: 90 00 [12:38:53]wFMCommunicate OK [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 0D 03 02 [12:38:53]Write to MH i2c: E2 08 00 81 42 80 0D 03 02 00 00 00 00 3E [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0B 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0B 00 81 42 00 3A EE 78 B6 CB 95 1C 77 90 00 88 [12:38:53]RAPDU: 3A EE 78 B6 CB 95 1C 77 90 00 [12:38:53]wFMCommunicate OK [12:38:53]SAM_PROTO_SignData done [12:38:53]FM_MakeSignedData done [12:38:53]CreateOFDProtocolMessage [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 11 00 00 [12:38:53]Write to MH i2c: E2 08 00 82 42 80 11 00 00 00 00 00 00 3E [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 82 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [12:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:38:53]wFMCommunicate OK [12:38:53]CreateOFDProtocolMessage done [12:38:53]OFDSenderStorePacket 29543 [12:38:53]StoreOFDPacket docnum=29543 [12:38:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 CA AB 06 01 F4 BB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 00 00 00 00 00 00 39 04 06 00 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 1F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 73 00 00 35 04 06 00 CE F3 BF 4B DE 1E 3A EE 78 B6 CB 95 1C 77 [12:38:53]CheckFolder [12:38:53]dirname=/storage/ofd_packets [12:38:53]CheckFolder done [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00029543 [12:38:53]NVStorageSaveData ofd_packets/00029543 [12:38:53]File name is /storage/ofd_packets/00029543 [12:38:53]Write 300 bytes [12:38:53]NVStorageSaveData done [12:38:53]OFDSenderStorePacket done [12:38:53]KKMCreateOFDPacket done [12:38:53]NVStorageSaveData kkm_last_timestamp [12:38:53]File name is /storage/kkm_last_timestamp [12:38:53]Write 4 bytes [12:38:53]NVStorageSaveData done [12:38:53]ExternCall_PrintAddStr [12:38:53]wPrintStart [12:38:53]Write to MH i2c: 01 00 00 83 42 C5 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 83 42 00 00 00 00 00 FF 0F DA [12:38:53]RasterBufferAndPrint [12:38:53]line Счет N : (1)347964 [12:38:53]line ИНН: 02508201610067 [12:38:53]line Контрольно-Кассовый Чек [12:38:53]line ПРОДАЖА [12:38:53]line ТРК (МРК, ГНК) : 71 [12:38:53]line Товар: 2711129700 [12:38:53]line ГАЗ-К-5 [12:38:53]line 59.890 * 33.40 [12:38:53]line = 2000.33 [12:38:53]line НДС 12% НСП 1% [12:38:53]line > о реализуемом товаре [12:38:53]line ИТОГО: 2000.33 [12:38:53]line НСП 1% : 17.70 [12:38:53]line НДС 12% : 212.42 [12:38:53]line Наличными: 0.00 [12:38:53]line Безнал.: 2000.33 [12:38:53]line Место: АЗС № 108 "Партнер Нефть" [12:38:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:38:53]line СНО: Общий режим [12:38:53]line Чек 137 15.04.2024 12:38 [12:38:53]line Смена: 117 ФФД: 1.0 [12:38:53]line ЗНМ: 0300000027 [12:38:53]line РНМ: 0000138879044617 [12:38:53]line Версия ККМ: 001 [12:38:53]line Платежная система: О! деньги [12:38:53]line ФМ: 0000000000963154 [12:38:53]line ФД: 29543 [12:38:53]line ФПД: 227546281795102 [12:38:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T123856&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29543&fm=227546281795102&tin=02508201610067®Number=0000138879044617&sum=200033 [12:38:53]OFD Sender: Processing packet 29543 [packets to send 8, broken 7] [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00029543 [12:38:53]OFD Sender: To server: pG, [12:38:53]CommunicateWithHost lk.salyk.kg:30040 [12:38:53]ConnectInit lk.salyk.kg [12:38:53]written 0, free lines is 4095 [12:38:53]Connected sock=10 [12:38:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 CA AB 06 01 F4 BB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 61 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 00 00 00 00 00 00 39 04 06 00 61 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E0 1F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 73 00 00 35 04 06 00 CE F3 BF 4B DE 1E 3A EE 78 B6 CB 95 1C 77 [12:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 22 9F 47 00 BA 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 39 36 33 31 35 34 10 04 04 00 67 73 00 00 F4 03 04 00 81 CA 1C 66 B6 04 01 00 00 20 DD 2F 0D 53 92 02 07 [12:38:54]CommunicateWithHost err = 0 [12:38:54]CheckOFDResponse [12:38:54]1017 (14) - 77093643461234 [12:38:54]1041 (16) - 0000000000963154 [12:38:54]1040 (4) - 29543 [12:38:54]1012 (4) - 15.04.2024 06:34 [12:38:54]1206 (1) - 0 [12:38:54]OFD Sender: Remove packet 29543 [12:38:54]ProducePacketName [12:38:54]name=ofd_packets/00029543 [12:38:54]NVStorageDeleteData [12:38:54]Write to MH i2c: 01 00 00 AC 42 EE [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 07 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: 01 07 00 AC 42 00 00 00 00 00 E2 0C E3 [12:38:54]RasterBufferAndPrint [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]line [12:38:54]written 0, free lines is 3304 [12:38:54]MH_Cut [12:38:54]Write to MH i2c: D1 01 00 B3 42 01 C7 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 01 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: D1 01 00 B3 42 00 C6 [12:38:54]Write to MH i2c: 01 00 00 B4 42 F6 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]OFD Sender: No OFD packet to send [12:38:55]*** Cut start [12:38:55]*** Partial cut [12:38:55]*** CUTSNS_PIN = 1 [12:38:55]*** CUTSNS_PIN = 0 [12:38:55]*** Brake cut motor [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]*** Stop cut motor [12:38:55]*** Cut end [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 B4 42 00 00 00 00 00 FF 0F 0B [12:38:55]process_action close_receipt done [12:38:55]requested_data is exist [12:38:55]produce_requested_data [12:38:55]requested_item fm.sn is exist - process it [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 B5 42 80 11 00 00 00 00 00 00 71 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 B5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [12:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:38:55]wFMCommunicate OK [12:38:55]requested_item fd.num is exist - process it [12:38:55]SAM_PROTO_GetFieldsCounters [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 00 00 [12:38:55]Write to MH i2c: E2 08 00 B6 42 80 13 00 00 00 00 00 00 74 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 62 00 B6 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 73 00 00 0E 04 04 00 75 00 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 9C [12:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetFieldsCounters done [12:38:55]requested_item shift.num is exist - process it [12:38:55]requested_item shift.opened is exist - process it [12:38:55]req_shift_opened [12:38:55]FM_GetShiftState [12:38:55]SAM_PROTO_GetShiftState [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 13 01 00 [12:38:55]Write to MH i2c: E2 08 00 B7 42 80 13 01 00 00 00 00 00 76 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0E 00 B7 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6A [12:38:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_GetShiftState done [12:38:55]FM_GetShiftState done [12:38:55]req_shift_opened done [12:38:55]requested_item shift.open_date is exist - process it [12:38:55]req_shift_open_date [12:38:55]req_shift_open_date done [12:38:55]produce_requested_data done [12:38:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29543,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:38:55]process_action_free close_receipt [12:38:55]json_value_free [12:38:55]json_value_free done [12:38:55]process_json_proto returns [12:38:55]Send response to host [12:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29543,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:38:55]free response buf [12:38:55]execute_script done [12:38:55]execute_script returns [12:38:55]free content buf [12:38:55]Sock 8.Close socket [12:38:55]Sock 8.Thread stoped [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]accept exits with 9 [12:41:29]New connection [12:41:29]New thread 3067112804 created [12:41:29]Thread 3066969444 joined [12:41:29]Waiting for new connection... [12:41:29] Sock 9.Parse request [12:41:29]Sock 9.Check first char [12:41:29]Sock 9.First char is OK [12:41:29]request: POST /json_proto HTTP/1.0 [12:41:29]Method: POST [12:41:29]URL: /json_proto [12:41:29]Method is POST - this is cgi request [12:41:29]url: /json_proto [12:41:29]query_string will be loaded in cgi processing [12:41:29]execute_cgi json_proto POST (null) [12:41:29]execute_cgi path=json_proto method=POST [12:41:29]POST find Content-Length [12:41:29]Host: 172.17.33.3:8080 [12:41:29]Content-Length: 1174 [12:41:29]Content-Type: application/json [12:41:29] [12:41:29]POST finish read [12:41:29]Found Content-Length = 1174 [12:41:29]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347965\u000A15.04.2024 12:23\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:29]execute_script... [12:41:29]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347965\u000A15.04.2024 12:23\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:29]POST & json_proto [12:41:29]process_json_proto [12:41:29]json parsed OK: [12:41:29]protocol is kg_v1.0 [12:41:29]action value=print_text [12:41:29]process_action print_text [12:41:29]cmd_print_text [12:41:29]ExternCall_PrintAddStr [12:41:29]wPrintStart [12:41:29]Write to MH i2c: 01 00 00 B8 42 FA [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 07 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 07 00 B8 42 00 00 00 00 00 FF 0F 0F [12:41:29]RasterBufferAndPrint [12:41:29]line *****ТОВАРНЫЙ ЧЕК***** [12:41:29]line АЗС 108 [12:41:29]line Партнер нефть [12:41:29]line 02508201610067 [12:41:29]line Кассир : Джумагулова Н. [12:41:29]line Счет N : (1)347965 [12:41:29]line 15.04.2024 12:23 [12:41:29]line ПРОДАЖА [12:41:29]line ТРК (МРК, ГНК): 33 [12:41:29]line Вид ГСМ : 2710124500 [12:41:29]line Аи-95-К-5 [12:41:29]line 10.980 x 72.90 [12:41:29]line ИТОГ: 800.44 [12:41:29]line Тип оплаты: Талоны: ТК ГПНА Online [12:41:29]line 30042701 [12:41:29]line ______________________ [12:41:29]line (подпись) [12:41:29]written 0, free lines is 4095 [12:41:29]Write to MH i2c: 01 00 00 CD 42 0F [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 07 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 07 00 CD 42 00 00 00 00 00 F5 0D 18 [12:41:29]RasterBufferAndPrint [12:41:29]line [12:41:29]line [12:41:29]line [12:41:29]line [12:41:29]line [12:41:29]written 0, free lines is 3575 [12:41:29]MH_Cut [12:41:29]Write to MH i2c: D1 01 00 D4 42 01 E8 [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: D1 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: D1 01 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: D1 01 00 D4 42 00 E7 [12:41:29]Write to MH i2c: 01 00 00 D5 42 17 [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]OFD Sender: No OFD packet to send [12:41:30]*** Cut start [12:41:30]*** Partial cut [12:41:30]*** CUTSNS_PIN = 1 [12:41:30]*** CUTSNS_PIN = 0 [12:41:30]*** Brake cut motor [12:41:30]Read from MH i2c: 01 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 07 00 [12:41:30]MH_I2C_Read... [12:41:30]*** Stop cut motor [12:41:30]*** Cut end [12:41:30]Read from MH i2c: 01 07 00 D5 42 00 00 00 00 00 FF 0F 2C [12:41:30]process_action print_text done [12:41:30]requested_data is exist [12:41:30]produce_requested_data [12:41:30]requested_item fm.sn is exist - process it [12:41:30]wFMCommunicate request_size=4 [12:41:30]MH_SAM_APDU [12:41:30]CAPDU: 80 11 00 00 [12:41:30]Write to MH i2c: E2 08 00 D6 42 80 11 00 00 00 00 00 00 92 [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:30]Read from MH i2c: E2 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: E2 17 00 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: E2 17 00 D6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [12:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:41:30]wFMCommunicate OK [12:41:30]requested_item fd.num is exist - process it [12:41:30]SAM_PROTO_GetFieldsCounters [12:41:30]wFMCommunicate request_size=4 [12:41:30]MH_SAM_APDU [12:41:30]CAPDU: 80 13 00 00 [12:41:30]Write to MH i2c: E2 08 00 D7 42 80 13 00 00 00 00 00 00 95 [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:31]Read from MH i2c: E2 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 62 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 62 00 D7 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 73 00 00 0E 04 04 00 75 00 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 BD [12:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:31]wFMCommunicate OK [12:41:31]SAM_PROTO_GetFieldsCounters done [12:41:31]requested_item shift.num is exist - process it [12:41:31]requested_item shift.opened is exist - process it [12:41:31]req_shift_opened [12:41:31]FM_GetShiftState [12:41:31]SAM_PROTO_GetShiftState [12:41:31]wFMCommunicate request_size=4 [12:41:31]MH_SAM_APDU [12:41:31]CAPDU: 80 13 01 00 [12:41:31]Write to MH i2c: E2 08 00 D8 42 80 13 01 00 00 00 00 00 97 [12:41:31]Write i2c OK [12:41:31]MH_I2C_Read... [12:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:31]Read from MH i2c: E2 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 0E 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 0E 00 D8 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8B [12:41:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:41:31]wFMCommunicate OK [12:41:31]SAM_PROTO_GetShiftState done [12:41:31]FM_GetShiftState done [12:41:31]req_shift_opened done [12:41:31]requested_item shift.open_date is exist - process it [12:41:31]req_shift_open_date [12:41:31]req_shift_open_date done [12:41:31]produce_requested_data done [12:41:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29543,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:41:31]process_action_free print_text [12:41:31]json_value_free [12:41:31]json_value_free done [12:41:31]process_json_proto returns [12:41:31]Send response to host [12:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29543,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:41:31]free response buf [12:41:31]execute_script done [12:41:31]execute_script returns [12:41:31]free content buf [12:41:31]Sock 9.Close socket [12:41:31]Sock 9.Thread stoped [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:02]accept exits with 8 [12:51:02]New connection [12:51:02]New thread 3066969444 created [12:51:02]Thread 3067112804 joined [12:51:02]Waiting for new connection... [12:51:02] Sock 8.Parse request [12:51:02]Sock 8.Check first char [12:51:02]Sock 8.First char is OK [12:51:02]request: POST /json_proto HTTP/1.0 [12:51:02]Method: POST [12:51:02]URL: /json_proto [12:51:02]Method is POST - this is cgi request [12:51:02]url: /json_proto [12:51:02]query_string will be loaded in cgi processing [12:51:02]execute_cgi json_proto POST (null) [12:51:02]execute_cgi path=json_proto method=POST [12:51:02]POST find Content-Length [12:51:02]Host: 172.17.33.3:8080 [12:51:02]Content-Length: 833 [12:51:02]Content-Type: application/json [12:51:02] [12:51:02]POST finish read [12:51:02]Found Content-Length = 833 [12:51:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:02]execute_script... [12:51:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:02]POST & json_proto [12:51:02]process_json_proto [12:51:02]json parsed OK: [12:51:02]protocol is kg_v1.0 [12:51:02]action value=close_receipt [12:51:02]process_action close_receipt [12:51:02]cmd_close_receipt [12:51:02]MH_GetDate [12:51:02]Write to MH i2c: F0 00 00 D9 42 0A [12:51:02]Write i2c OK [12:51:02]MH_I2C_Read... [12:51:02]Read from MH i2c: F0 [12:51:02]MH_I2C_Read... [12:51:02]Read from MH i2c: F0 09 00 [12:51:02]MH_I2C_Read... [12:51:02]Read from MH i2c: F0 09 00 D9 42 00 BB 22 1D 66 23 5B 8F 65 E5 [12:51:02]GetLastDocTimeStamp 1713184736 [12:51:02]current date 1713185467 [12:51:02]FM_GetShiftState [12:51:02]SAM_PROTO_GetShiftState [12:51:02]wFMCommunicate request_size=4 [12:51:02]MH_SAM_APDU [12:51:02]CAPDU: 80 13 01 00 [12:51:02]Write to MH i2c: E2 08 00 DA 42 80 13 01 00 00 00 00 00 99 [12:51:02]Write i2c OK [12:51:02]MH_I2C_Read... [12:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:02]Read from MH i2c: E2 [12:51:02]MH_I2C_Read... [12:51:02]Read from MH i2c: E2 0E 00 [12:51:02]MH_I2C_Read... [12:51:02]Read from MH i2c: E2 0E 00 DA 42 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8D [12:51:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:51:02]wFMCommunicate OK [12:51:02]SAM_PROTO_GetShiftState done [12:51:02]FM_GetShiftState done [12:51:02]opened in 1713140468 [12:51:02]opened+sec_in_day 1713226868 [12:51:02]quantity*price = 60009 [12:51:02]sum+1 = 60011 [12:51:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.10 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 138 15.04.2024 12:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29544 ФПД: 44610737699342 1/tax-web-control/client/api/v1/ticket?date=20240415T125107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29544&fm=44610737699342&tin=02508201610067®Number=0000138879044617&sum=60010 [12:51:03]StoreToDocumentArchive [12:51:03]shift 117 fd 29544 [12:51:03]save to /storage/0117/doc_00029544 [12:51:03]save last doc name /storage/0117/doc_00029544 to /storage/kkm_last_doc_name [12:51:03]save OK [12:51:03]Clear old archive folders... [12:51:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:51:03]tlvbuf is B6DCF010 [12:51:03]SAM_PROTO_ClearQueue [12:51:03]wFMCommunicate request_size=4 [12:51:03]MH_SAM_APDU [12:51:03]CAPDU: 80 09 00 00 [12:51:03]Write to MH i2c: E2 08 00 E7 42 80 09 00 00 00 00 00 00 9B [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:03]Read from MH i2c: E2 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 03 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 03 00 E7 42 00 90 00 9D [12:51:03]RAPDU: 90 00 [12:51:03]wFMCommunicate OK [12:51:03]SAM_PROTO_ClearQueue done [12:51:03]KKMCreateOFDPacket [12:51:03]OFDProtocolAddRootSTLVToBuf [12:51:03]FM_MakeSignedData [12:51:03]FM_MakeSignedData [12:51:03]SAM_PROTO_SignData [12:51:03]wFMCommunicate request_size=4 [12:51:03]MH_SAM_APDU [12:51:03]CAPDU: 80 0D 01 02 [12:51:03]Write to MH i2c: E2 08 00 E8 42 80 0D 01 02 00 00 00 00 A3 [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:03]Read from MH i2c: E2 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 03 00 [12:51:03]MH_I2C_Read... [12:51:03]Read from MH i2c: E2 03 00 E8 42 00 90 00 9E [12:51:03]RAPDU: 90 00 [12:51:03]wFMCommunicate OK [12:51:03]wFMCommunicate request_size=255 [12:51:03]MH_SAM_APDU [12:51: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BB 22 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 73 00 00 35 04 06 00 [12:51:03]Write to MH i2c: E2 02 01 E9 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BB 22 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 73 00 00 35 04 06 00 00 00 4C [12:51:03]Write i2c OK [12:51:03]MH_I2C_Read... [12:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:04]Read from MH i2c: E2 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 03 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 03 00 E9 42 00 90 00 9F [12:51:04]RAPDU: 90 00 [12:51:04]wFMCommunicate OK [12:51:04]wFMCommunicate request_size=11 [12:51:04]MH_SAM_APDU [12:51:04]CAPDU: 80 0D 02 02 06 28 92 BF 2C 7A 0E [12:51:04]Write to MH i2c: E2 0E 00 EA 42 80 0D 02 02 06 00 28 92 BF 2C 7A 0E 00 00 DF [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:04]Read from MH i2c: E2 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 03 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 03 00 EA 42 00 90 00 A0 [12:51:04]RAPDU: 90 00 [12:51:04]wFMCommunicate OK [12:51:04]wFMCommunicate request_size=4 [12:51:04]MH_SAM_APDU [12:51:04]CAPDU: 80 0D 03 02 [12:51:04]Write to MH i2c: E2 08 00 EB 42 80 0D 03 02 00 00 00 00 A8 [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:04]Read from MH i2c: E2 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 0B 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 0B 00 EB 42 00 00 23 BE 39 F5 FB 01 B5 90 00 69 [12:51:04]RAPDU: 00 23 BE 39 F5 FB 01 B5 90 00 [12:51:04]wFMCommunicate OK [12:51:04]SAM_PROTO_SignData done [12:51:04]FM_MakeSignedData done [12:51:04]CreateOFDProtocolMessage [12:51:04]wFMCommunicate request_size=4 [12:51:04]MH_SAM_APDU [12:51:04]CAPDU: 80 11 00 00 [12:51:04]Write to MH i2c: E2 08 00 EC 42 80 11 00 00 00 00 00 00 A8 [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:04]Read from MH i2c: E2 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 17 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: E2 17 00 EC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [12:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:04]wFMCommunicate OK [12:51:04]CreateOFDProtocolMessage done [12:51:04]OFDSenderStorePacket 29544 [12:51:04]StoreOFDPacket docnum=29544 [12:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E4 0B 08 01 12 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BB 22 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 73 00 00 35 04 06 00 28 92 BF 2C 7A 0E 00 23 BE 39 F5 FB 01 B5 [12:51:04]CheckFolder [12:51:04]dirname=/storage/ofd_packets [12:51:04]CheckFolder done [12:51:04]ProducePacketName [12:51:04]name=ofd_packets/00029544 [12:51:04]NVStorageSaveData ofd_packets/00029544 [12:51:04]File name is /storage/ofd_packets/00029544 [12:51:04]Write 302 bytes [12:51:04]NVStorageSaveData done [12:51:04]OFDSenderStorePacket done [12:51:04]KKMCreateOFDPacket done [12:51:04]NVStorageSaveData kkm_last_timestamp [12:51:04]File name is /storage/kkm_last_timestamp [12:51:04]Write 4 bytes [12:51:04]NVStorageSaveData done [12:51:04]ExternCall_PrintAddStr [12:51:04]wPrintStart [12:51:04]Write to MH i2c: 01 00 00 ED 42 2F [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 07 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 07 00 ED 42 00 00 00 00 00 FF 0F 44 [12:51:04]RasterBufferAndPrint [12:51:04]line Счет N : (1)347966 [12:51:04]line ИНН: 02508201610067 [12:51:04]line Контрольно-Кассовый Чек [12:51:04]line ПРОДАЖА [12:51:04]line ТРК (МРК, ГНК) : 31 [12:51:04]line Товар: 2710124130 [12:51:04]line SUPER-92-К-5 [12:51:04]line 9.120 * 65.80 [12:51:04]line = 600.10 [12:51:04]line НДС 12% НСП 1% [12:51:04]line > о реализуемом товаре [12:51:04]line ИТОГО: 600.10 [12:51:04]line НСП 1% : 5.31 [12:51:04]line НДС 12% : 63.73 [12:51:04]line Наличными: 0.00 [12:51:04]line Безнал.: 600.10 [12:51:04]line Место: АЗС № 108 "Партнер Нефть" [12:51:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:51:04]line СНО: Общий режим [12:51:04]line Чек 138 15.04.2024 12:51 [12:51:04]line Смена: 117 ФФД: 1.0 [12:51:04]line ЗНМ: 0300000027 [12:51:04]line РНМ: 0000138879044617 [12:51:04]line Версия ККМ: 001 [12:51:04]line Платежная система: АКБ Кыргызстан [12:51:04]line ФМ: 0000000000963154 [12:51:04]line ФД: 29544 [12:51:04]line ФПД: 44610737699342 [12:51:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T125107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29544&fm=44610737699342&tin=02508201610067®Number=0000138879044617&sum=60010 [12:51:04]OFD Sender: Processing packet 29544 [packets to send 8, broken 7] [12:51:04]ProducePacketName [12:51:04]name=ofd_packets/00029544 [12:51:04]OFD Sender: To server: pG, [12:51:04]CommunicateWithHost lk.salyk.kg:30040 [12:51:04]ConnectInit lk.salyk.kg [12:51:04]written 0, free lines is 4095 [12:51:04]Connected sock=10 [12:51:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E4 0B 08 01 12 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 BB 22 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 73 00 00 35 04 06 00 28 92 BF 2C 7A 0E 00 23 BE 39 F5 FB 01 B5 [12:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8D F3 47 00 EF 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 73 00 00 F4 03 04 00 5C CD 1C 66 B6 04 01 00 00 5A 92 04 C1 D2 AB 43 1D [12:51:04]CommunicateWithHost err = 0 [12:51:04]CheckOFDResponse [12:51:04]1017 (14) - 77093643461234 [12:51:04]1041 (16) - 0000000000963154 [12:51:04]1040 (4) - 29544 [12:51:04]1012 (4) - 15.04.2024 06:46 [12:51:04]1206 (1) - 0 [12:51:04]OFD Sender: Remove packet 29544 [12:51:04]ProducePacketName [12:51:04]name=ofd_packets/00029544 [12:51:04]NVStorageDeleteData [12:51:04]Write to MH i2c: 01 00 00 16 43 59 [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 07 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: 01 07 00 16 43 00 00 00 00 00 F4 0C 60 [12:51:04]RasterBufferAndPrint [12:51:04]line [12:51:04]line [12:51:04]line [12:51:04]line [12:51:04]line [12:51:04]written 0, free lines is 3323 [12:51:04]MH_Cut [12:51:04]Write to MH i2c: D1 01 00 1D 43 01 32 [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: D1 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: D1 01 00 [12:51:04]MH_I2C_Read... [12:51:04]Read from MH i2c: D1 01 00 1D 43 00 31 [12:51:04]Write to MH i2c: 01 00 00 1E 43 61 [12:51:04]Write i2c OK [12:51:04]MH_I2C_Read... [12:51:05]OFD Sender: No OFD packet to send [12:51:05]*** Cut start [12:51:05]*** Partial cut [12:51:05]*** CUTSNS_PIN = 1 [12:51:05]*** CUTSNS_PIN = 0 [12:51:06]*** Brake cut motor [12:51:06]Read from MH i2c: 01 [12:51:06]MH_I2C_Read... [12:51:06]*** Stop cut motor [12:51:06]*** Cut end [12:51:06]Read from MH i2c: 01 07 00 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: 01 07 00 1E 43 00 00 00 00 00 FF 0F 76 [12:51:06]process_action close_receipt done [12:51:06]requested_data is exist [12:51:06]produce_requested_data [12:51:06]requested_item fm.sn is exist - process it [12:51:06]wFMCommunicate request_size=4 [12:51:06]MH_SAM_APDU [12:51:06]CAPDU: 80 11 00 00 [12:51:06]Write to MH i2c: E2 08 00 1F 43 80 11 00 00 00 00 00 00 DC [12:51:06]Write i2c OK [12:51:06]MH_I2C_Read... [12:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:06]Read from MH i2c: E2 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 17 00 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 17 00 1F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [12:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:51:06]wFMCommunicate OK [12:51:06]requested_item fd.num is exist - process it [12:51:06]SAM_PROTO_GetFieldsCounters [12:51:06]wFMCommunicate request_size=4 [12:51:06]MH_SAM_APDU [12:51:06]CAPDU: 80 13 00 00 [12:51:06]Write to MH i2c: E2 08 00 20 43 80 13 00 00 00 00 00 00 DF [12:51:06]Write i2c OK [12:51:06]MH_I2C_Read... [12:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:06]Read from MH i2c: E2 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 62 00 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 62 00 20 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 73 00 00 0E 04 04 00 75 00 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 0B [12:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 73 00 00 0E 04 04 00 75 00 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 [12:51:06]wFMCommunicate OK [12:51:06]SAM_PROTO_GetFieldsCounters done [12:51:06]requested_item shift.num is exist - process it [12:51:06]requested_item shift.opened is exist - process it [12:51:06]req_shift_opened [12:51:06]FM_GetShiftState [12:51:06]SAM_PROTO_GetShiftState [12:51:06]wFMCommunicate request_size=4 [12:51:06]MH_SAM_APDU [12:51:06]CAPDU: 80 13 01 00 [12:51:06]Write to MH i2c: E2 08 00 21 43 80 13 01 00 00 00 00 00 E1 [12:51:06]Write i2c OK [12:51:06]MH_I2C_Read... [12:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:06]Read from MH i2c: E2 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 0E 00 [12:51:06]MH_I2C_Read... [12:51:06]Read from MH i2c: E2 0E 00 21 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D5 [12:51:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:51:06]wFMCommunicate OK [12:51:06]SAM_PROTO_GetShiftState done [12:51:06]FM_GetShiftState done [12:51:06]req_shift_opened done [12:51:06]requested_item shift.open_date is exist - process it [12:51:06]req_shift_open_date [12:51:06]req_shift_open_date done [12:51:06]produce_requested_data done [12:51:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29544,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:51:06]process_action_free close_receipt [12:51:06]json_value_free [12:51:06]json_value_free done [12:51:06]process_json_proto returns [12:51:06]Send response to host [12:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29544,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:51:06]free response buf [12:51:06]execute_script done [12:51:06]execute_script returns [12:51:06]free content buf [12:51:06]Sock 8.Close socket [12:51:06]Sock 8.Thread stoped [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52: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:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:45]accept exits with 9 [12:54:45]New connection [12:54:45]New thread 3067112804 created [12:54:45]Thread 3066969444 joined [12:54:45]Waiting for new connection... [12:54:45] Sock 9.Parse request [12:54:45]Sock 9.Check first char [12:54:45]Sock 9.First char is OK [12:54:45]request: POST /json_proto HTTP/1.0 [12:54:45]Method: POST [12:54:45]URL: /json_proto [12:54:45]Method is POST - this is cgi request [12:54:45]url: /json_proto [12:54:45]query_string will be loaded in cgi processing [12:54:45]execute_cgi json_proto POST (null) [12:54:45]execute_cgi path=json_proto method=POST [12:54:45]POST find Content-Length [12:54:45]Host: 172.17.33.3:8080 [12:54:45]Content-Length: 677 [12:54:45]Content-Type: application/json [12:54:45] [12:54:45]POST finish read [12:54:45]Found Content-Length = 677 [12:54:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:45]execute_script... [12:54: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)347967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:45]POST & json_proto [12:54:45]process_json_proto [12:54:45]json parsed OK: [12:54:45]protocol is kg_v1.0 [12:54:45]action value=close_receipt [12:54:45]process_action close_receipt [12:54:45]cmd_close_receipt [12:54:45]MH_GetDate [12:54:45]Write to MH i2c: F0 00 00 22 43 54 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: F0 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: F0 09 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: F0 09 00 22 43 00 9A 23 1D 66 23 5B 8F 65 0F [12:54:45]GetLastDocTimeStamp 1713185467 [12:54:45]current date 1713185690 [12:54:45]FM_GetShiftState [12:54:45]SAM_PROTO_GetShiftState [12:54:45]wFMCommunicate request_size=4 [12:54:45]MH_SAM_APDU [12:54:45]CAPDU: 80 13 01 00 [12:54:45]Write to MH i2c: E2 08 00 23 43 80 13 01 00 00 00 00 00 E3 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:45]Read from MH i2c: E2 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 0E 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: E2 0E 00 23 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [12:54:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:54:45]wFMCommunicate OK [12:54:45]SAM_PROTO_GetShiftState done [12:54:45]FM_GetShiftState done [12:54:45]opened in 1713140468 [12:54:45]opened+sec_in_day 1713226868 [12:54:45]quantity*price = 50025 [12:54:45]sum+1 = 50027 [12:54:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 139 15.04.2024 12:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29545 ФПД: 78109421313167 1/tax-web-control/client/api/v1/ticket?date=20240415T125450&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29545&fm=78109421313167&tin=02508201610067®Number=0000138879044617&sum=50000 [12:54:47]StoreToDocumentArchive [12:54:47]shift 117 fd 29545 [12:54:47]save to /storage/0117/doc_00029545 [12:54:47]save last doc name /storage/0117/doc_00029545 to /storage/kkm_last_doc_name [12:54:47]save OK [12:54:47]Clear old archive folders... [12:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:47]tlvbuf is B6DCFBA0 [12:54:47]SAM_PROTO_ClearQueue [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 09 00 00 [12:54:47]Write to MH i2c: E2 08 00 30 43 80 09 00 00 00 00 00 00 E5 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 30 43 00 90 00 E7 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_ClearQueue done [12:54:47]KKMCreateOFDPacket [12:54:47]OFDProtocolAddRootSTLVToBuf [12:54:47]FM_MakeSignedData [12:54:47]FM_MakeSignedData [12:54:47]SAM_PROTO_SignData [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 01 02 [12:54:47]Write to MH i2c: E2 08 00 31 43 80 0D 01 02 00 00 00 00 ED [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 31 43 00 90 00 E8 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]wFMCommunicate request_size=255 [12:54:47]MH_SAM_APDU [12: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9A 23 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 73 00 00 35 04 06 00 47 [12:54:47]Write to MH i2c: E2 02 01 32 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9A 23 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 73 00 00 35 04 06 00 47 00 00 09 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 32 43 00 90 00 E9 [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]wFMCommunicate request_size=10 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 02 02 05 0A 44 4F 9C 8F [12:54:47]Write to MH i2c: E2 0D 00 33 43 80 0D 02 02 05 00 0A 44 4F 9C 8F 00 00 C2 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 03 00 33 43 00 90 00 EA [12:54:47]RAPDU: 90 00 [12:54:47]wFMCommunicate OK [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 0D 03 02 [12:54:47]Write to MH i2c: E2 08 00 34 43 80 0D 03 02 00 00 00 00 F2 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0B 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0B 00 34 43 00 47 E7 D5 A0 C7 B7 2C 40 90 00 80 [12:54:47]RAPDU: 47 E7 D5 A0 C7 B7 2C 40 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_SignData done [12:54:47]FM_MakeSignedData done [12:54:47]CreateOFDProtocolMessage [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 11 00 00 [12:54:47]Write to MH i2c: E2 08 00 35 43 80 11 00 00 00 00 00 00 F2 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 17 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 17 00 35 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 41 [12:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:47]wFMCommunicate OK [12:54:47]CreateOFDProtocolMessage done [12:54:47]OFDSenderStorePacket 29545 [12:54:47]StoreOFDPacket docnum=29545 [12:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AB 91 07 01 7F 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9A 23 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 73 00 00 35 04 06 00 47 0A 44 4F 9C 8F 47 E7 D5 A0 C7 B7 2C 40 [12:54:47]CheckFolder [12:54:47]dirname=/storage/ofd_packets [12:54:47]CheckFolder done [12:54:47]ProducePacketName [12:54:47]name=ofd_packets/00029545 [12:54:47]NVStorageSaveData ofd_packets/00029545 [12:54:47]File name is /storage/ofd_packets/00029545 [12:54:47]Write 301 bytes [12:54:47]NVStorageSaveData done [12:54:47]OFDSenderStorePacket done [12:54:47]KKMCreateOFDPacket done [12:54:47]NVStorageSaveData kkm_last_timestamp [12:54:47]File name is /storage/kkm_last_timestamp [12:54:47]Write 4 bytes [12:54:47]NVStorageSaveData done [12:54:47]ExternCall_PrintAddStr [12:54:47]wPrintStart [12:54:47]Write to MH i2c: 01 00 00 36 43 79 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: 01 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: 01 07 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: 01 07 00 36 43 00 00 00 00 00 FF 0F 8E [12:54:47]RasterBufferAndPrint [12:54:47]line Счет N : (1)347967 [12:54:47]line ИНН: 02508201610067 [12:54:47]line Контрольно-Кассовый Чек [12:54:47]line ПРОДАЖА [12:54:47]line ТРК (МРК, ГНК) : 23 [12:54:47]line Товар: 2710124130 [12:54:47]line Аи-92-К-5 [12:54:47]line 7.720 * 64.80 [12:54:47]line = 500.26 [12:54:47]line НДС 12% НСП 1% [12:54:47]line > о реализуемом товаре [12:54:47]line ОКРУГЛЕНИЕ: -0.26 [12:54:47]line ИТОГО: 500.00 [12:54:47]line Внесено: 500.00 [12:54:47]line СДАЧА: 0.00 [12:54:47]line НСП 1% : 4.43 [12:54:47]line НДС 12% : 53.12 [12:54:47]line Наличными: 500.00 [12:54:47]line Безнал.: 0.00 [12:54:47]line Место: АЗС № 108 "Партнер Нефть" [12:54:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:54:47]line СНО: Общий режим [12:54:47]line Чек 139 15.04.2024 12:54 [12:54:47]line Смена: 117 ФФД: 1.0 [12:54:47]line ЗНМ: 0300000027 [12:54:47]line РНМ: 0000138879044617 [12:54:47]line Версия ККМ: 001 [12:54:47]line ФМ: 0000000000963154 [12:54:47]line ФД: 29545 [12:54:47]line ФПД: 78109421313167 [12:54:47]line 1/tax-web-control/client/api/v1/ticket?date=20240415T125450&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29545&fm=78109421313167&tin=02508201610067®Number=0000138879044617&sum=50000 [12:54:47]OFD Sender: Processing packet 29545 [packets to send 8, broken 7] [12:54:47]ProducePacketName [12:54:47]name=ofd_packets/00029545 [12:54:47]OFD Sender: To server: pG, [12:54:47]CommunicateWithHost lk.salyk.kg:30040 [12:54:47]ConnectInit lk.salyk.kg [12:54:47]written 0, free lines is 4095 [12:54:48]Connected sock=8 [12:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AB 91 07 01 7F 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9A 23 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 73 00 00 35 04 06 00 47 0A 44 4F 9C 8F 47 E7 D5 A0 C7 B7 2C 40 [12:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 F4 47 00 1C 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 39 36 33 31 35 34 10 04 04 00 69 73 00 00 F4 03 04 00 3B CE 1C 66 B6 04 01 00 00 29 81 29 2C 89 F2 E6 12 [12:54:48]CommunicateWithHost err = 0 [12:54:48]CheckOFDResponse [12:54:48]1017 (14) - 77093643461234 [12:54:48]1041 (16) - 0000000000963154 [12:54:48]1040 (4) - 29545 [12:54:48]1012 (4) - 15.04.2024 06:50 [12:54:48]1206 (1) - 0 [12:54:48]OFD Sender: Remove packet 29545 [12:54:48]ProducePacketName [12:54:48]name=ofd_packets/00029545 [12:54:48]NVStorageDeleteData [12:54:48]Write to MH i2c: 01 00 00 60 43 A3 [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: 01 07 00 60 43 00 00 00 00 00 CA 0C 80 [12:54:48]RasterBufferAndPrint [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]line [12:54:48]written 0, free lines is 3280 [12:54:48]MH_Cut [12:54:48]Write to MH i2c: D1 01 00 67 43 01 7C [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 01 00 [12:54:48]MH_I2C_Read... [12:54:48]Read from MH i2c: D1 01 00 67 43 00 7B [12:54:48]Write to MH i2c: 01 00 00 68 43 AB [12:54:48]Write i2c OK [12:54:48]MH_I2C_Read... [12:54:48]OFD Sender: No OFD packet to send [12:54:49]*** Cut start [12:54:49]*** Partial cut [12:54:49]*** CUTSNS_PIN = 1 [12:54:49]*** CUTSNS_PIN = 0 [12:54:49]*** Brake cut motor [12:54:49]Read from MH i2c: 01 [12:54:49]MH_I2C_Read... [12:54:49]*** Stop cut motor [12:54:49]*** Cut end [12:54:49]Read from MH i2c: 01 07 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: 01 07 00 68 43 00 00 00 00 00 FF 0F C0 [12:54:49]process_action close_receipt done [12:54:49]requested_data is exist [12:54:49]produce_requested_data [12:54:49]requested_item fm.sn is exist - process it [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 11 00 00 [12:54:49]Write to MH i2c: E2 08 00 69 43 80 11 00 00 00 00 00 00 26 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 17 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 17 00 69 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [12:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:49]wFMCommunicate OK [12:54:49]requested_item fd.num is exist - process it [12:54:49]SAM_PROTO_GetFieldsCounters [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 13 00 00 [12:54:49]Write to MH i2c: E2 08 00 6A 43 80 13 00 00 00 00 00 00 29 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 62 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 62 00 6A 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 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 59 [12:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_GetFieldsCounters done [12:54:50]requested_item shift.num is exist - process it [12:54:50]requested_item shift.opened is exist - process it [12:54:50]req_shift_opened [12:54:50]FM_GetShiftState [12:54:50]SAM_PROTO_GetShiftState [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 13 01 00 [12:54:50]Write to MH i2c: E2 08 00 6B 43 80 13 01 00 00 00 00 00 2B [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0E 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0E 00 6B 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1F [12:54:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_GetShiftState done [12:54:50]FM_GetShiftState done [12:54:50]req_shift_opened done [12:54:50]requested_item shift.open_date is exist - process it [12:54:50]req_shift_open_date [12:54:50]req_shift_open_date done [12:54:50]produce_requested_data done [12:54:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:54:50]process_action_free close_receipt [12:54:50]json_value_free [12:54:50]json_value_free done [12:54:50]process_json_proto returns [12:54:50]Send response to host [12:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:54:50]free response buf [12:54:50]execute_script done [12:54:50]execute_script returns [12:54:50]free content buf [12:54:50]Sock 9.Close socket [12:54:50]Sock 9.Thread stoped [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [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]int [12:59:18]Write to MH i2c: 01 00 00 6C 43 AF [12:59:18]*** FLAG_PRN_KEY set [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 6C 43 00 08 00 00 00 FF 0F CC [12:59:18]state=0 [12:59:18]Key pressed [12:59:18]Feed [12:59:18]Write to MH i2c: D8 00 00 6D 43 87 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 6D 43 00 88 [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 6E 43 B1 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 6E 43 00 48 00 00 00 3C 00 3C [12:59:18]state=2 [12:59:18]Key pressed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 6F 43 B2 [12:59:18]*** FLAG_PRN_KEY reset [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 6F 43 00 00 00 00 00 F6 0F BE [12:59:18]state=2 [12:59:18]Stop feed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 70 43 B3 [12:59:18]*** FLAG_PRN_KEY set [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 70 43 00 08 00 00 00 FF 0F D0 [12:59:18]state=0 [12:59:18]Key pressed [12:59:18]Feed [12:59:18]Write to MH i2c: D8 00 00 71 43 8B [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 71 43 00 8C [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 72 43 B5 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 72 43 00 48 00 00 00 3C 00 40 [12:59:18]state=2 [12:59:18]Key pressed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 73 43 B6 [12:59:18]*** FLAG_PRN_KEY reset [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 73 43 00 00 00 00 00 F5 0F C1 [12:59:18]state=2 [12:59:18]Stop feed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 74 43 B7 [12:59:18]*** FLAG_PRN_KEY set [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 74 43 00 08 00 00 00 FF 0F D4 [12:59:18]state=0 [12:59:18]Key pressed [12:59:18]Feed [12:59:18]Write to MH i2c: D8 00 00 75 43 8F [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 75 43 00 90 [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 76 43 B9 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 76 43 00 48 00 00 00 3C 00 44 [12:59:18]state=2 [12:59:18]Key pressed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 77 43 BA [12:59:18]*** FLAG_PRN_KEY reset [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 77 43 00 00 00 00 00 F6 0F C6 [12:59:18]state=2 [12:59:18]Stop feed [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 78 43 BB [12:59:18]*** FLAG_PRN_KEY set [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 78 43 00 08 00 00 00 FF 0F D8 [12:59:18]state=0 [12:59:18]Key pressed [12:59:18]Feed [12:59:18]Write to MH i2c: D8 00 00 79 43 93 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: D8 01 00 79 43 00 94 [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 7A 43 BD [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 7A 43 00 48 00 00 00 3C 00 48 [12:59:18]state=2 [12:59:18]Key pressed [12:59:18]OFD Sender: No OFD packet to send [12:59:18]int [12:59:18]Write to MH i2c: 01 00 00 7B 43 BE [12:59:18]*** FLAG_PRN_KEY reset [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 7B 43 00 00 00 00 00 F6 0F CA [12:59:18]state=2 [12:59:18]Stop feed [12:59:19]int [12:59:19]Write to MH i2c: 01 00 00 7C 43 BF [12:59:19]*** FLAG_PRN_KEY set [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 7C 43 00 08 00 00 00 FF 0F DC [12:59:19]state=0 [12:59:19]Key pressed [12:59:19]Feed [12:59:19]Write to MH i2c: D8 00 00 7D 43 97 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D8 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D8 01 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D8 01 00 7D 43 00 98 [12:59:19]int [12:59:19]Write to MH i2c: 01 00 00 7E 43 C1 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 7E 43 00 48 00 00 00 3C 00 4C [12:59:19]state=2 [12:59:19]Key pressed [12:59:19]int [12:59:19]Write to MH i2c: 01 00 00 7F 43 C2 [12:59:19]*** FLAG_PRN_KEY reset [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 7F 43 00 00 00 00 00 F5 0F CD [12:59:19]state=2 [12:59:19]Stop feed [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:49]accept exits with 10 [12:59:49]New connection [12:59:49]New thread 3066969444 created [12:59:49]Thread 3067112804 joined [12:59:49]Waiting for new connection... [12:59:49] Sock 10.Parse request [12:59:49]Sock 10.Check first char [12:59:49]Sock 10.First char is OK [12:59:49]request: POST /json_proto HTTP/1.0 [12:59:49]Method: POST [12:59:49]URL: /json_proto [12:59:49]Method is POST - this is cgi request [12:59:49]url: /json_proto [12:59:49]query_string will be loaded in cgi processing [12:59:49]execute_cgi json_proto POST (null) [12:59:49]execute_cgi path=json_proto method=POST [12:59:49]POST find Content-Length [12:59:49]Host: 172.17.33.3:8080 [12:59:49]Content-Length: 1212 [12:59:49]Content-Type: application/json [12:59:49] [12:59:49]POST finish read [12:59:49]Found Content-Length = 1212 [12:59:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347968\u000A15.04.2024 12:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.430 x 64.80\u000A\u0418\u0422\u041E\u0413: 999.86\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\u000A43026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:49]execute_script... [12:59:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347968\u000A15.04.2024 12:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.430 x 64.80\u000A\u0418\u0422\u041E\u0413: 999.86\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\u000A43026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:49]POST & json_proto [12:59:49]process_json_proto [12:59:49]json parsed OK: [12:59:49]protocol is kg_v1.0 [12:59:49]action value=print_text [12:59:49]process_action print_text [12:59:49]cmd_print_text [12:59:49]ExternCall_PrintAddStr [12:59:49]wPrintStart [12:59:49]Write to MH i2c: 01 00 00 80 43 C3 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 80 43 00 00 00 00 00 FF 0F D8 [12:59:49]RasterBufferAndPrint [12:59:49]line *****ТОВАРНЫЙ ЧЕК***** [12:59:49]line АЗС 108 [12:59:49]line Партнер нефть [12:59:49]line 02508201610067 [12:59:49]line Кассир : Джумагулова Н. [12:59:49]line Счет N : (1)347968 [12:59:49]line 15.04.2024 12:41 [12:59:49]line ПРОДАЖА [12:59:49]line ТРК (МРК, ГНК): 13 [12:59:49]line Вид ГСМ : 2710124130 [12:59:49]line Аи-92-К-5 [12:59:49]line 15.430 x 64.80 [12:59:49]line ИТОГ: 999.86 [12:59:49]line Тип оплаты: Талоны: Топливная Карта [12:59:49]line 43026 [12:59:49]line ______________________ [12:59:49]line (подпись) [12:59:49]written 0, free lines is 4095 [12:59:49]Write to MH i2c: 01 00 00 95 43 D8 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 FA 0D E6 [12:59:49]RasterBufferAndPrint [12:59:49]line [12:59:49]line [12:59:49]line [12:59:49]line [12:59:49]line [12:59:49]written 0, free lines is 3580 [12:59:49]MH_Cut [12:59:49]Write to MH i2c: D1 01 00 9C 43 01 B1 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: D1 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: D1 01 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: D1 01 00 9C 43 00 B0 [12:59:49]Write to MH i2c: 01 00 00 9D 43 E0 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:50]*** Cut start [12:59:50]*** Partial cut [12:59:50]*** CUTSNS_PIN = 1 [12:59:50]*** CUTSNS_PIN = 0 [12:59:50]*** Brake cut motor [12:59:50]Read from MH i2c: 01 [12:59:50]MH_I2C_Read... [12:59:50]*** Stop cut motor [12:59:50]*** Cut end [12:59:50]Read from MH i2c: 01 07 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: 01 07 00 9D 43 00 00 00 00 00 FF 0F F5 [12:59:50]process_action print_text done [12:59:50]requested_data is exist [12:59:50]produce_requested_data [12:59:50]requested_item fm.sn is exist - process it [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 11 00 00 [12:59:50]Write to MH i2c: E2 08 00 9E 43 80 11 00 00 00 00 00 00 5B [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 17 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 17 00 9E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [12:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:59:50]wFMCommunicate OK [12:59:50]requested_item fd.num is exist - process it [12:59:50]SAM_PROTO_GetFieldsCounters [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 13 00 00 [12:59:50]Write to MH i2c: E2 08 00 9F 43 80 13 00 00 00 00 00 00 5E [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 62 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 62 00 9F 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 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 8E [12:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:50]wFMCommunicate OK [12:59:50]SAM_PROTO_GetFieldsCounters done [12:59:50]requested_item shift.num is exist - process it [12:59:50]requested_item shift.opened is exist - process it [12:59:50]req_shift_opened [12:59:50]FM_GetShiftState [12:59:50]SAM_PROTO_GetShiftState [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 13 01 00 [12:59:50]Write to MH i2c: E2 08 00 A0 43 80 13 01 00 00 00 00 00 60 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 A0 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 54 [12:59:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [12:59:50]wFMCommunicate OK [12:59:50]SAM_PROTO_GetShiftState done [12:59:50]FM_GetShiftState done [12:59:50]req_shift_opened done [12:59:50]requested_item shift.open_date is exist - process it [12:59:50]req_shift_open_date [12:59:50]req_shift_open_date done [12:59:50]produce_requested_data done [12:59:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [12:59:50]process_action_free print_text [12:59:50]json_value_free [12:59:50]json_value_free done [12:59:50]process_json_proto returns [12:59:50]Send response to host [12:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [12:59:50]free response buf [12:59:50]execute_script done [12:59:50]execute_script returns [12:59:50]free content buf [12:59:50]Sock 10.Close socket [12:59:50]Sock 10.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]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:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:12]accept exits with 8 [13:06:12]New connection [13:06:12]New thread 3067112804 created [13:06:12]Thread 3066969444 joined [13:06:12]Waiting for new connection... [13:06:12] Sock 8.Parse request [13:06:12]Sock 8.Check first char [13:06:12]Sock 8.First char is OK [13:06:12]request: POST /json_proto HTTP/1.0 [13:06:12]Method: POST [13:06:12]URL: /json_proto [13:06:12]Method is POST - this is cgi request [13:06:12]url: /json_proto [13:06:12]query_string will be loaded in cgi processing [13:06:12]execute_cgi json_proto POST (null) [13:06:12]execute_cgi path=json_proto method=POST [13:06:12]POST find Content-Length [13:06:12]Host: 172.17.33.3:8080 [13:06:12]Content-Length: 1172 [13:06:12]Content-Type: application/json [13:06:12] [13:06:12]POST finish read [13:06:12]Found Content-Length = 1172 [13:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347969\u000A15.04.2024 12:47\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-\u041A-5\u000A 24.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1749.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:12]execute_script... [13:06:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347969\u000A15.04.2024 12:47\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-\u041A-5\u000A 24.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1749.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:12]POST & json_proto [13:06:12]process_json_proto [13:06:12]json parsed OK: [13:06:12]protocol is kg_v1.0 [13:06:12]action value=print_text [13:06:12]process_action print_text [13:06:12]cmd_print_text [13:06:12]ExternCall_PrintAddStr [13:06:12]wPrintStart [13:06:12]Write to MH i2c: 01 00 00 A1 43 E4 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 A1 43 00 00 00 00 00 FF 0F F9 [13:06:12]RasterBufferAndPrint [13:06:12]line *****ТОВАРНЫЙ ЧЕК***** [13:06:12]line АЗС 108 [13:06:12]line Партнер нефть [13:06:12]line 02508201610067 [13:06:12]line Кассир : Джумагулова Н. [13:06:12]line Счет N : (1)347969 [13:06:12]line 15.04.2024 12:47 [13:06:12]line ПРОДАЖА [13:06:12]line ТРК (МРК, ГНК): 51 [13:06:12]line Вид ГСМ : 2710194210 [13:06:12]line ДТ-К-5 [13:06:12]line 24.000 x 72.90 [13:06:12]line ИТОГ: 1749.60 [13:06:12]line Тип оплаты: Талоны: ТК ГПНА Online [13:06:12]line 30097341 [13:06:12]line ______________________ [13:06:12]line (подпись) [13:06:12]written 0, free lines is 4095 [13:06:12]Write to MH i2c: 01 00 00 B6 43 F9 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: 01 07 00 B6 43 00 00 00 00 00 F4 0D 01 [13:06:12]RasterBufferAndPrint [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]line [13:06:12]written 0, free lines is 3574 [13:06:12]MH_Cut [13:06:12]Write to MH i2c: D1 01 00 BD 43 01 D2 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 01 00 [13:06:12]MH_I2C_Read... [13:06:12]Read from MH i2c: D1 01 00 BD 43 00 D1 [13:06:12]Write to MH i2c: 01 00 00 BE 43 01 [13:06:12]Write i2c OK [13:06:12]MH_I2C_Read... [13:06:12]*** Cut start [13:06:12]*** Partial cut [13:06:12]*** CUTSNS_PIN = 1 [13:06:12]*** CUTSNS_PIN = 0 [13:06:13]*** Brake cut motor [13:06:13]Read from MH i2c: 01 [13:06:13]MH_I2C_Read... [13:06:13]*** Stop cut motor [13:06:13]*** Cut end [13:06:13]Read from MH i2c: 01 07 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: 01 07 00 BE 43 00 00 00 00 00 FF 0F 16 [13:06:13]process_action print_text done [13:06:13]requested_data is exist [13:06:13]produce_requested_data [13:06:13]requested_item fm.sn is exist - process it [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 11 00 00 [13:06:13]Write to MH i2c: E2 08 00 BF 43 80 11 00 00 00 00 00 00 7C [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 17 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 17 00 BF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [13:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:06:13]wFMCommunicate OK [13:06:13]requested_item fd.num is exist - process it [13:06:13]SAM_PROTO_GetFieldsCounters [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 13 00 00 [13:06:13]Write to MH i2c: E2 08 00 C0 43 80 13 00 00 00 00 00 00 7F [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 62 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 62 00 C0 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 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 AF [13:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 73 00 00 0E 04 04 00 75 00 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:06:13]wFMCommunicate OK [13:06:13]SAM_PROTO_GetFieldsCounters done [13:06:13]requested_item shift.num is exist - process it [13:06:13]requested_item shift.opened is exist - process it [13:06:13]req_shift_opened [13:06:13]FM_GetShiftState [13:06:13]SAM_PROTO_GetShiftState [13:06:13]wFMCommunicate request_size=4 [13:06:13]MH_SAM_APDU [13:06:13]CAPDU: 80 13 01 00 [13:06:13]Write to MH i2c: E2 08 00 C1 43 80 13 01 00 00 00 00 00 81 [13:06:13]Write i2c OK [13:06:13]MH_I2C_Read... [13:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:13]Read from MH i2c: E2 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 0E 00 [13:06:13]MH_I2C_Read... [13:06:13]Read from MH i2c: E2 0E 00 C1 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [13:06:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:06:13]wFMCommunicate OK [13:06:13]SAM_PROTO_GetShiftState done [13:06:13]FM_GetShiftState done [13:06:13]req_shift_opened done [13:06:13]requested_item shift.open_date is exist - process it [13:06:13]req_shift_open_date [13:06:13]req_shift_open_date done [13:06:13]produce_requested_data done [13:06:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:06:13]process_action_free print_text [13:06:13]json_value_free [13:06:13]json_value_free done [13:06:13]process_json_proto returns [13:06:13]Send response to host [13:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29545,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:06:13]free response buf [13:06:13]execute_script done [13:06:13]execute_script returns [13:06:13]free content buf [13:06:13]Sock 8.Close socket [13:06:13]Sock 8.Thread stoped [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]accept exits with 9 [13:09:34]New connection [13:09:34]New thread 3066969444 created [13:09:34]Thread 3067112804 joined [13:09:34]Waiting for new connection... [13:09:34] Sock 9.Parse request [13:09:34]Sock 9.Check first char [13:09:34]Sock 9.First char is OK [13:09:34]request: POST /json_proto HTTP/1.0 [13:09:34]Method: POST [13:09:34]URL: /json_proto [13:09:34]Method is POST - this is cgi request [13:09:34]url: /json_proto [13:09:34]query_string will be loaded in cgi processing [13:09:34]execute_cgi json_proto POST (null) [13:09:34]execute_cgi path=json_proto method=POST [13:09:34]POST find Content-Length [13:09:34]Host: 172.17.33.3:8080 [13:09:34]Content-Length: 677 [13:09:34]Content-Type: application/json [13:09:34] [13:09:34]POST finish read [13:09:34]Found Content-Length = 677 [13:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:34]execute_script... [13:09: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)347970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:34]POST & json_proto [13:09:34]process_json_proto [13:09:34]json parsed OK: [13:09:34]protocol is kg_v1.0 [13:09:34]action value=close_receipt [13:09:34]process_action close_receipt [13:09:34]cmd_close_receipt [13:09:34]MH_GetDate [13:09:34]Write to MH i2c: F0 00 00 C2 43 F4 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: F0 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: F0 09 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: F0 09 00 C2 43 00 12 27 1D 66 23 5B 8F 65 2B [13:09:34]GetLastDocTimeStamp 1713185690 [13:09:34]current date 1713186578 [13:09:34]FM_GetShiftState [13:09:34]SAM_PROTO_GetShiftState [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 13 01 00 [13:09:34]Write to MH i2c: E2 08 00 C3 43 80 13 01 00 00 00 00 00 83 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0E 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0E 00 C3 43 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 77 [13:09:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:09:34]wFMCommunicate OK [13:09:34]SAM_PROTO_GetShiftState done [13:09:34]FM_GetShiftState done [13:09:34]opened in 1713140468 [13:09:34]opened+sec_in_day 1713226868 [13:09:34]quantity*price = 50025 [13:09:34]sum+1 = 50027 [13:09:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 140 15.04.2024 13:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29546 ФПД: 67188093296156 1/tax-web-control/client/api/v1/ticket?date=20240415T130938&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29546&fm=67188093296156&tin=02508201610067®Number=0000138879044617&sum=50000 [13:09:35]StoreToDocumentArchive [13:09:35]shift 117 fd 29546 [13:09:35]save to /storage/0117/doc_00029546 [13:09:35]save last doc name /storage/0117/doc_00029546 to /storage/kkm_last_doc_name [13:09:35]save OK [13:09:35]Clear old archive folders... [13:09:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:35]tlvbuf is 002EDE60 [13:09:35]SAM_PROTO_ClearQueue [13:09:35]wFMCommunicate request_size=4 [13:09:35]MH_SAM_APDU [13:09:35]CAPDU: 80 09 00 00 [13:09:35]Write to MH i2c: E2 08 00 D0 43 80 09 00 00 00 00 00 00 85 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 D0 43 00 90 00 87 [13:09:35]RAPDU: 90 00 [13:09:35]wFMCommunicate OK [13:09:35]SAM_PROTO_ClearQueue done [13:09:35]KKMCreateOFDPacket [13:09:35]OFDProtocolAddRootSTLVToBuf [13:09:35]FM_MakeSignedData [13:09:35]FM_MakeSignedData [13:09:35]SAM_PROTO_SignData [13:09:35]wFMCommunicate request_size=4 [13:09:35]MH_SAM_APDU [13:09:35]CAPDU: 80 0D 01 02 [13:09:35]Write to MH i2c: E2 08 00 D1 43 80 0D 01 02 00 00 00 00 8D [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [13:09:35]RAPDU: 90 00 [13:09:35]wFMCommunicate OK [13:09:35]wFMCommunicate request_size=255 [13:09:35]MH_SAM_APDU [13:09: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 12 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 73 00 00 35 04 06 00 3D [13:09:35]Write to MH i2c: E2 02 01 D2 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 12 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 73 00 00 35 04 06 00 3D 00 00 1D [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 D2 43 00 90 00 89 [13:09:35]RAPDU: 90 00 [13:09:35]wFMCommunicate OK [13:09:35]wFMCommunicate request_size=10 [13:09:35]MH_SAM_APDU [13:09:35]CAPDU: 80 0D 02 02 05 1B 72 6F 1E 1C [13:09:35]Write to MH i2c: E2 0D 00 D3 43 80 0D 02 02 05 00 1B 72 6F 1E 1C 00 00 D0 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 03 00 D3 43 00 90 00 8A [13:09:35]RAPDU: 90 00 [13:09:35]wFMCommunicate OK [13:09:35]wFMCommunicate request_size=4 [13:09:35]MH_SAM_APDU [13:09:35]CAPDU: 80 0D 03 02 [13:09:35]Write to MH i2c: E2 08 00 D4 43 80 0D 03 02 00 00 00 00 92 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 0B 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 0B 00 D4 43 00 FF 40 A6 5F 10 AD 9D 77 90 00 A8 [13:09:35]RAPDU: FF 40 A6 5F 10 AD 9D 77 90 00 [13:09:35]wFMCommunicate OK [13:09:35]SAM_PROTO_SignData done [13:09:35]FM_MakeSignedData done [13:09:35]CreateOFDProtocolMessage [13:09:35]wFMCommunicate request_size=4 [13:09:35]MH_SAM_APDU [13:09:35]CAPDU: 80 11 00 00 [13:09:35]Write to MH i2c: E2 08 00 D5 43 80 11 00 00 00 00 00 00 92 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:35]Read from MH i2c: E2 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 17 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: E2 17 00 D5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [13:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:35]wFMCommunicate OK [13:09:35]CreateOFDProtocolMessage done [13:09:35]OFDSenderStorePacket 29546 [13:09:35]StoreOFDPacket docnum=29546 [13:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF 48 07 01 DB 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 12 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 73 00 00 35 04 06 00 3D 1B 72 6F 1E 1C FF 40 A6 5F 10 AD 9D 77 [13:09:35]CheckFolder [13:09:35]dirname=/storage/ofd_packets [13:09:35]CheckFolder done [13:09:35]ProducePacketName [13:09:35]name=ofd_packets/00029546 [13:09:35]NVStorageSaveData ofd_packets/00029546 [13:09:35]File name is /storage/ofd_packets/00029546 [13:09:35]Write 301 bytes [13:09:35]NVStorageSaveData done [13:09:35]OFDSenderStorePacket done [13:09:35]KKMCreateOFDPacket done [13:09:35]NVStorageSaveData kkm_last_timestamp [13:09:35]File name is /storage/kkm_last_timestamp [13:09:35]Write 4 bytes [13:09:35]NVStorageSaveData done [13:09:35]ExternCall_PrintAddStr [13:09:35]wPrintStart [13:09:35]Write to MH i2c: 01 00 00 D6 43 19 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 D6 43 00 00 00 00 00 FF 0F 2E [13:09:35]RasterBufferAndPrint [13:09:35]line Счет N : (1)347970 [13:09:35]line ИНН: 02508201610067 [13:09:35]line Контрольно-Кассовый Чек [13:09:35]line ПРОДАЖА [13:09:35]line ТРК (МРК, ГНК) : 13 [13:09:35]line Товар: 2710124130 [13:09:35]line Аи-92-К-5 [13:09:35]line 7.720 * 64.80 [13:09:35]line = 500.26 [13:09:35]line НДС 12% НСП 1% [13:09:35]line > о реализуемом товаре [13:09:35]line ОКРУГЛЕНИЕ: -0.26 [13:09:35]line ИТОГО: 500.00 [13:09:35]line Внесено: 500.00 [13:09:35]line СДАЧА: 0.00 [13:09:35]line НСП 1% : 4.43 [13:09:35]line НДС 12% : 53.12 [13:09:35]line Наличными: 500.00 [13:09:35]line Безнал.: 0.00 [13:09:35]line Место: АЗС № 108 "Партнер Нефть" [13:09:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:09:35]line СНО: Общий режим [13:09:35]line Чек 140 15.04.2024 13:09 [13:09:35]line Смена: 117 ФФД: 1.0 [13:09:35]line ЗНМ: 0300000027 [13:09:35]line РНМ: 0000138879044617 [13:09:35]line Версия ККМ: 001 [13:09:35]line ФМ: 0000000000963154 [13:09:35]line ФД: 29546 [13:09:35]line ФПД: 67188093296156 [13:09:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T130938&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29546&fm=67188093296156&tin=02508201610067®Number=0000138879044617&sum=50000 [13:09:36]OFD Sender: Processing packet 29546 [packets to send 8, broken 7] [13:09:36]ProducePacketName [13:09:36]name=ofd_packets/00029546 [13:09:36]OFD Sender: To server: pG, [13:09:36]CommunicateWithHost lk.salyk.kg:30040 [13:09:36]ConnectInit lk.salyk.kg [13:09:36]written 0, free lines is 4095 [13:09:36]Connected sock=10 [13:09:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF 48 07 01 DB 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 12 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 73 00 00 35 04 06 00 3D 1B 72 6F 1E 1C FF 40 A6 5F 10 AD 9D 77 [13:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F8 38 47 00 7A 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 39 36 33 31 35 34 10 04 04 00 6A 73 00 00 F4 03 04 00 B3 D1 1C 66 B6 04 01 00 00 5F 62 23 22 B0 98 F6 C6 [13:09:36]CommunicateWithHost err = 0 [13:09:36]CheckOFDResponse [13:09:36]1017 (14) - 77093643461234 [13:09:36]1041 (16) - 0000000000963154 [13:09:36]1040 (4) - 29546 [13:09:36]1012 (4) - 15.04.2024 07:05 [13:09:36]1206 (1) - 0 [13:09:36]OFD Sender: Remove packet 29546 [13:09:36]ProducePacketName [13:09:36]name=ofd_packets/00029546 [13:09:36]NVStorageDeleteData [13:09:36]Write to MH i2c: 01 00 00 00 44 44 [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: 01 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: 01 07 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: 01 07 00 00 44 00 00 00 00 00 CD 0C 24 [13:09:36]RasterBufferAndPrint [13:09:36]line [13:09:36]line [13:09:36]line [13:09:36]line [13:09:36]line [13:09:36]written 0, free lines is 3283 [13:09:36]MH_Cut [13:09:36]Write to MH i2c: D1 01 00 07 44 01 1D [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: D1 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: D1 01 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: D1 01 00 07 44 00 1C [13:09:36]Write to MH i2c: 01 00 00 08 44 4C [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]OFD Sender: No OFD packet to send [13:09:37]*** Cut start [13:09:37]*** Partial cut [13:09:37]*** CUTSNS_PIN = 1 [13:09:37]*** CUTSNS_PIN = 0 [13:09:37]*** Brake cut motor [13:09:38]Read from MH i2c: 01 [13:09:38]MH_I2C_Read... [13:09:38]*** Stop cut motor [13:09:38]*** Cut end [13:09:38]Read from MH i2c: 01 07 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: 01 07 00 08 44 00 00 00 00 00 FF 0F 61 [13:09:38]process_action close_receipt done [13:09:38]requested_data is exist [13:09:38]produce_requested_data [13:09:38]requested_item fm.sn is exist - process it [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 11 00 00 [13:09:38]Write to MH i2c: E2 08 00 09 44 80 11 00 00 00 00 00 00 C7 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 17 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 17 00 09 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [13:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:38]wFMCommunicate OK [13:09:38]requested_item fd.num is exist - process it [13:09:38]SAM_PROTO_GetFieldsCounters [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 00 00 [13:09:38]Write to MH i2c: E2 08 00 0A 44 80 13 00 00 00 00 00 00 CA [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 62 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 62 00 0A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 73 00 00 0E 04 04 00 75 00 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 FE [13:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 73 00 00 0E 04 04 00 75 00 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:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetFieldsCounters done [13:09:38]requested_item shift.num is exist - process it [13:09:38]requested_item shift.opened is exist - process it [13:09:38]req_shift_opened [13:09:38]FM_GetShiftState [13:09:38]SAM_PROTO_GetShiftState [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 01 00 [13:09:38]Write to MH i2c: E2 08 00 0B 44 80 13 01 00 00 00 00 00 CC [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 0B 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [13:09:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetShiftState done [13:09:38]FM_GetShiftState done [13:09:38]req_shift_opened done [13:09:38]requested_item shift.open_date is exist - process it [13:09:38]req_shift_open_date [13:09:38]req_shift_open_date done [13:09:38]produce_requested_data done [13:09:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29546,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:09:38]process_action_free close_receipt [13:09:38]json_value_free [13:09:38]json_value_free done [13:09:38]process_json_proto returns [13:09:38]Send response to host [13:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29546,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:09:38]free response buf [13:09:38]execute_script done [13:09:38]execute_script returns [13:09:38]free content buf [13:09:38]Sock 9.Close socket [13:09:38]Sock 9.Thread stoped [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:10:57]accept exits with 8 [13:10:57]New connection [13:10:57]New thread 3067112804 created [13:10:57]Thread 3066969444 joined [13:10:57]Waiting for new connection... [13:10:57] Sock 8.Parse request [13:10:57]Sock 8.Check first char [13:10:57]Sock 8.First char is OK [13:10:57]request: POST /json_proto HTTP/1.0 [13:10:57]Method: POST [13:10:57]URL: /json_proto [13:10:57]Method is POST - this is cgi request [13:10:57]url: /json_proto [13:10:57]query_string will be loaded in cgi processing [13:10:57]execute_cgi json_proto POST (null) [13:10:57]execute_cgi path=json_proto method=POST [13:10:57]POST find Content-Length [13:10:57]Host: 172.17.33.3:8080 [13:10:57]Content-Length: 674 [13:10:57]Content-Type: application/json [13:10:57] [13:10:57]POST finish read [13:10:57]Found Content-Length = 674 [13:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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:10:57]execute_script... [13:10: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)347971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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:10:57]POST & json_proto [13:10:57]process_json_proto [13:10:57]json parsed OK: [13:10:57]protocol is kg_v1.0 [13:10:57]action value=close_receipt [13:10:57]process_action close_receipt [13:10:57]cmd_close_receipt [13:10:57]MH_GetDate [13:10:57]Write to MH i2c: F0 00 00 0C 44 3F [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: F0 09 00 0C 44 00 65 27 1D 66 23 5B 8F 65 C9 [13:10:57]GetLastDocTimeStamp 1713186578 [13:10:57]current date 1713186661 [13:10:57]FM_GetShiftState [13:10:57]SAM_PROTO_GetShiftState [13:10:57]wFMCommunicate request_size=4 [13:10:57]MH_SAM_APDU [13:10:57]CAPDU: 80 13 01 00 [13:10:57]Write to MH i2c: E2 08 00 0D 44 80 13 01 00 00 00 00 00 CE [13:10:57]Write i2c OK [13:10:57]MH_I2C_Read... [13:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:57]Read from MH i2c: E2 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 0D 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C2 [13:10:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:10:57]wFMCommunicate OK [13:10:57]SAM_PROTO_GetShiftState done [13:10:57]FM_GetShiftState done [13:10:57]opened in 1713140468 [13:10:57]opened+sec_in_day 1713226868 [13:10:57]quantity*price = 40022 [13:10:57]sum+1 = 40023 [13:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 141 15.04.2024 13:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29547 ФПД: 15001170399315 1/tax-web-control/client/api/v1/ticket?date=20240415T131101&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29547&fm=15001170399315&tin=02508201610067®Number=0000138879044617&sum=40000 [13:10:58]StoreToDocumentArchive [13:10:58]shift 117 fd 29547 [13:10:58]save to /storage/0117/doc_00029547 [13:10:58]save last doc name /storage/0117/doc_00029547 to /storage/kkm_last_doc_name [13:10:58]save OK [13:10:58]Clear old archive folders... [13:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:58]tlvbuf is B6F01420 [13:10:58]SAM_PROTO_ClearQueue [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 09 00 00 [13:10:58]Write to MH i2c: E2 08 00 1A 44 80 09 00 00 00 00 00 00 D0 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_ClearQueue done [13:10:58]KKMCreateOFDPacket [13:10:58]OFDProtocolAddRootSTLVToBuf [13:10:58]FM_MakeSignedData [13:10:58]FM_MakeSignedData [13:10:58]SAM_PROTO_SignData [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 01 02 [13:10:58]Write to MH i2c: E2 08 00 1B 44 80 0D 01 02 00 00 00 00 D8 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=255 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 65 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 73 00 00 35 04 06 00 0D A4 BB 6E [13:10:58]Write to MH i2c: E2 02 01 1C 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 65 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 73 00 00 35 04 06 00 0D A4 BB 6E 00 00 EF [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=7 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 02 D0 53 [13:10:58]Write to MH i2c: E2 0A 00 1D 44 80 0D 02 02 02 00 D0 53 00 00 02 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 1D 44 00 90 00 D5 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 03 02 [13:10:58]Write to MH i2c: E2 08 00 1E 44 80 0D 03 02 00 00 00 00 DD [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 1E 44 00 B9 5D 48 7E 70 D3 4C 12 90 00 5B [13:10:58]RAPDU: B9 5D 48 7E 70 D3 4C 12 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_SignData done [13:10:58]FM_MakeSignedData done [13:10:58]CreateOFDProtocolMessage [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 11 00 00 [13:10:58]Write to MH i2c: E2 08 00 1F 44 80 11 00 00 00 00 00 00 DD [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 1F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [13:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:10:58]wFMCommunicate OK [13:10:58]CreateOFDProtocolMessage done [13:10:58]OFDSenderStorePacket 29547 [13:10:58]StoreOFDPacket docnum=29547 [13:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 79 BA 04 01 AB 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 65 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 73 00 00 35 04 06 00 0D A4 BB 6E D0 53 B9 5D 48 7E 70 D3 4C 12 [13:10:58]CheckFolder [13:10:58]dirname=/storage/ofd_packets [13:10:58]CheckFolder done [13:10:58]ProducePacketName [13:10:58]name=ofd_packets/00029547 [13:10:58]NVStorageSaveData ofd_packets/00029547 [13:10:58]File name is /storage/ofd_packets/00029547 [13:10:58]Write 298 bytes [13:10:58]NVStorageSaveData done [13:10:58]OFDSenderStorePacket done [13:10:58]KKMCreateOFDPacket done [13:10:58]NVStorageSaveData kkm_last_timestamp [13:10:58]File name is /storage/kkm_last_timestamp [13:10:58]Write 4 bytes [13:10:58]NVStorageSaveData done [13:10:58]ExternCall_PrintAddStr [13:10:58]wPrintStart [13:10:58]Write to MH i2c: 01 00 00 20 44 64 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 20 44 00 00 00 00 00 FF 0F 79 [13:10:58]RasterBufferAndPrint [13:10:58]line Счет N : (1)347971 [13:10:58]line ИНН: 02508201610067 [13:10:58]line Контрольно-Кассовый Чек [13:10:58]line ПРОДАЖА [13:10:58]line ТРК (МРК, ГНК) : 11 [13:10:58]line Товар: 2710194210 [13:10:58]line ДТ-К-5 [13:10:58]line 5.490 * 72.90 [13:10:58]line = 400.22 [13:10:58]line НДС 12% НСП 1% [13:10:58]line > о реализуемом товаре [13:10:58]line ОКРУГЛЕНИЕ: -0.22 [13:10:58]line ИТОГО: 400.00 [13:10:58]line Внесено: 400.00 [13:10:58]line СДАЧА: 0.00 [13:10:58]line НСП 1% : 3.54 [13:10:58]line НДС 12% : 42.50 [13:10:58]line Наличными: 400.00 [13:10:58]line Безнал.: 0.00 [13:10:58]line Место: АЗС № 108 "Партнер Нефть" [13:10:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:10:58]line СНО: Общий режим [13:10:58]line Чек 141 15.04.2024 13:11 [13:10:58]line Смена: 117 ФФД: 1.0 [13:10:58]line ЗНМ: 0300000027 [13:10:58]line РНМ: 0000138879044617 [13:10:58]line Версия ККМ: 001 [13:10:58]line ФМ: 0000000000963154 [13:10:58]line ФД: 29547 [13:10:58]line ФПД: 15001170399315 [13:10:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T131101&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29547&fm=15001170399315&tin=02508201610067®Number=0000138879044617&sum=40000 [13:10:59]OFD Sender: Processing packet 29547 [packets to send 8, broken 7] [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00029547 [13:10:59]OFD Sender: To server: pG, [13:10:59]CommunicateWithHost lk.salyk.kg:30040 [13:10:59]ConnectInit lk.salyk.kg [13:10:59]written 0, free lines is 4095 [13:10:59]Connected sock=10 [13:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 79 BA 04 01 AB 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 65 27 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 73 00 00 35 04 06 00 0D A4 BB 6E D0 53 B9 5D 48 7E 70 D3 4C 12 [13:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 6E 47 00 A5 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 73 00 00 F4 03 04 00 06 D2 1C 66 B6 04 01 00 00 9A F9 4D CD 54 BB BE 09 [13:10:59]CommunicateWithHost err = 0 [13:10:59]CheckOFDResponse [13:10:59]1017 (14) - 77093643461234 [13:10:59]1041 (16) - 0000000000963154 [13:10:59]1040 (4) - 29547 [13:10:59]1012 (4) - 15.04.2024 07:06 [13:10:59]1206 (1) - 0 [13:10:59]OFD Sender: Remove packet 29547 [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00029547 [13:10:59]NVStorageDeleteData [13:10:59]Write to MH i2c: 01 00 00 4A 44 8E [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 4A 44 00 00 00 00 00 CA 0C 6B [13:10:59]RasterBufferAndPrint [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]written 0, free lines is 3280 [13:10:59]MH_Cut [13:10:59]Write to MH i2c: D1 01 00 51 44 01 67 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: D1 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: D1 01 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: D1 01 00 51 44 00 66 [13:10:59]Write to MH i2c: 01 00 00 52 44 96 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]OFD Sender: No OFD packet to send [13:11:00]*** Cut start [13:11:00]*** Partial cut [13:11:00]*** CUTSNS_PIN = 1 [13:11:00]*** CUTSNS_PIN = 0 [13:11:00]*** Brake cut motor [13:11:00]Read from MH i2c: 01 [13:11:00]MH_I2C_Read... [13:11:00]*** Stop cut motor [13:11:00]*** Cut end [13:11:00]Read from MH i2c: 01 07 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: 01 07 00 52 44 00 00 00 00 00 FF 0F AB [13:11:00]process_action close_receipt done [13:11:00]requested_data is exist [13:11:00]produce_requested_data [13:11:00]requested_item fm.sn is exist - process it [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 11 00 00 [13:11:00]Write to MH i2c: E2 08 00 53 44 80 11 00 00 00 00 00 00 11 [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 17 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 17 00 53 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [13:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:11:00]wFMCommunicate OK [13:11:00]requested_item fd.num is exist - process it [13:11:00]SAM_PROTO_GetFieldsCounters [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 13 00 00 [13:11:00]Write to MH i2c: E2 08 00 54 44 80 13 00 00 00 00 00 00 14 [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 62 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 62 00 54 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [13:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 73 00 00 0E 04 04 00 75 00 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:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetFieldsCounters done [13:11:01]requested_item shift.num is exist - process it [13:11:01]requested_item shift.opened is exist - process it [13:11:01]req_shift_opened [13:11:01]FM_GetShiftState [13:11:01]SAM_PROTO_GetShiftState [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 13 01 00 [13:11:01]Write to MH i2c: E2 08 00 55 44 80 13 01 00 00 00 00 00 16 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 0E 00 55 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0A [13:11:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_GetShiftState done [13:11:01]FM_GetShiftState done [13:11:01]req_shift_opened done [13:11:01]requested_item shift.open_date is exist - process it [13:11:01]req_shift_open_date [13:11:01]req_shift_open_date done [13:11:01]produce_requested_data done [13:11:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29547,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:11:01]process_action_free close_receipt [13:11:01]json_value_free [13:11:01]json_value_free done [13:11:01]process_json_proto returns [13:11:01]Send response to host [13:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29547,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:11:01]free response buf [13:11:01]execute_script done [13:11:01]execute_script returns [13:11:01]free content buf [13:11:01]Sock 8.Close socket [13:11:01]Sock 8.Thread stoped [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:22]accept exits with 9 [13:14:22]New connection [13:14:22]New thread 3066969444 created [13:14:22]Thread 3067112804 joined [13:14:22]Waiting for new connection... [13:14:22] Sock 9.Parse request [13:14:22]Sock 9.Check first char [13:14:22]Sock 9.First char is OK [13:14:22]request: POST /json_proto HTTP/1.0 [13:14:22]Method: POST [13:14:22]URL: /json_proto [13:14:22]Method is POST - this is cgi request [13:14:22]url: /json_proto [13:14:22]query_string will be loaded in cgi processing [13:14:22]execute_cgi json_proto POST (null) [13:14:22]execute_cgi path=json_proto method=POST [13:14:22]POST find Content-Length [13:14:22]Host: 172.17.33.3:8080 [13:14:22]Content-Length: 783 [13:14:22]Content-Type: application/json [13:14:22] [13:14:22]POST finish read [13:14:22]Found Content-Length = 783 [13:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:22]execute_script... [13:14:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:22]POST & json_proto [13:14:22]process_json_proto [13:14:22]json parsed OK: [13:14:22]protocol is kg_v1.0 [13:14:22]action value=close_receipt [13:14:22]process_action close_receipt [13:14:22]cmd_close_receipt [13:14:22]MH_GetDate [13:14:22]Write to MH i2c: F0 00 00 56 44 89 [13:14:22]Write i2c OK [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: F0 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: F0 09 00 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: F0 09 00 56 44 00 33 28 1D 66 23 5B 8F 65 E2 [13:14:22]GetLastDocTimeStamp 1713186661 [13:14:22]current date 1713186867 [13:14:22]FM_GetShiftState [13:14:22]SAM_PROTO_GetShiftState [13:14:22]wFMCommunicate request_size=4 [13:14:22]MH_SAM_APDU [13:14:22]CAPDU: 80 13 01 00 [13:14:22]Write to MH i2c: E2 08 00 57 44 80 13 01 00 00 00 00 00 18 [13:14:22]Write i2c OK [13:14:22]MH_I2C_Read... [13:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:22]Read from MH i2c: E2 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 0E 00 [13:14:22]MH_I2C_Read... [13:14:22]Read from MH i2c: E2 0E 00 57 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0C [13:14:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:14:22]wFMCommunicate OK [13:14:22]SAM_PROTO_GetShiftState done [13:14:22]FM_GetShiftState done [13:14:22]opened in 1713140468 [13:14:22]opened+sec_in_day 1713226868 [13:14:22]quantity*price = 40006 [13:14:22]sum+1 = 40007 [13:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 142 15.04.2024 13:14 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29548 ФПД: 9970948020239 1/tax-web-control/client/api/v1/ticket?date=20240415T131427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29548&fm=9970948020239&tin=02508201610067®Number=0000138879044617&sum=40006 [13:14:23]StoreToDocumentArchive [13:14:23]shift 117 fd 29548 [13:14:23]save to /storage/0117/doc_00029548 [13:14:23]save last doc name /storage/0117/doc_00029548 to /storage/kkm_last_doc_name [13:14:23]save OK [13:14:23]Clear old archive folders... [13:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:14:23]tlvbuf is 002A6D60 [13:14:23]SAM_PROTO_ClearQueue [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 09 00 00 [13:14:23]Write to MH i2c: E2 08 00 64 44 80 09 00 00 00 00 00 00 1A [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 64 44 00 90 00 1C [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]SAM_PROTO_ClearQueue done [13:14:23]KKMCreateOFDPacket [13:14:23]OFDProtocolAddRootSTLVToBuf [13:14:23]FM_MakeSignedData [13:14:23]FM_MakeSignedData [13:14:23]SAM_PROTO_SignData [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 01 02 [13:14:23]Write to MH i2c: E2 08 00 65 44 80 0D 01 02 00 00 00 00 22 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 65 44 00 90 00 1D [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=255 [13:14:23]MH_SAM_APDU [13:14: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 33 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 73 00 00 35 04 06 00 [13:14:23]Write to MH i2c: E2 02 01 66 44 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 33 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 73 00 00 35 04 06 00 00 00 08 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]wFMCommunicate request_size=11 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 02 02 06 09 11 8A D0 98 0F [13:14:24]Write to MH i2c: E2 0E 00 67 44 80 0D 02 02 06 00 09 11 8A D0 98 0F 00 00 4C [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 03 02 [13:14:24]Write to MH i2c: E2 08 00 68 44 80 0D 03 02 00 00 00 00 27 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 0B 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 0B 00 68 44 00 BE 85 0E F0 55 FF 46 EF 90 00 F2 [13:14:24]RAPDU: BE 85 0E F0 55 FF 46 EF 90 00 [13:14:24]wFMCommunicate OK [13:14:24]SAM_PROTO_SignData done [13:14:24]FM_MakeSignedData done [13:14:24]CreateOFDProtocolMessage [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 11 00 00 [13:14:24]Write to MH i2c: E2 08 00 69 44 80 11 00 00 00 00 00 00 27 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 17 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 17 00 69 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [13:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:24]wFMCommunicate OK [13:14:24]CreateOFDProtocolMessage done [13:14:24]OFDSenderStorePacket 29548 [13:14:24]StoreOFDPacket docnum=29548 [13:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 86 7E 08 01 1A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 33 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 73 00 00 35 04 06 00 09 11 8A D0 98 0F BE 85 0E F0 55 FF 46 EF [13:14:24]CheckFolder [13:14:24]dirname=/storage/ofd_packets [13:14:24]CheckFolder done [13:14:24]ProducePacketName [13:14:24]name=ofd_packets/00029548 [13:14:24]NVStorageSaveData ofd_packets/00029548 [13:14:24]File name is /storage/ofd_packets/00029548 [13:14:24]Write 302 bytes [13:14:24]NVStorageSaveData done [13:14:24]OFDSenderStorePacket done [13:14:24]KKMCreateOFDPacket done [13:14:24]NVStorageSaveData kkm_last_timestamp [13:14:24]File name is /storage/kkm_last_timestamp [13:14:24]Write 4 bytes [13:14:24]NVStorageSaveData done [13:14:24]ExternCall_PrintAddStr [13:14:24]wPrintStart [13:14:24]Write to MH i2c: 01 00 00 6A 44 AE [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 6A 44 00 00 00 00 00 FF 0F C3 [13:14:24]RasterBufferAndPrint [13:14:24]line Счет N : (1)347973 [13:14:24]line ИНН: 02508201610067 [13:14:24]line Контрольно-Кассовый Чек [13:14:24]line ПРОДАЖА [13:14:24]line ТРК (МРК, ГНК) : 41 [13:14:24]line Товар: 2710124130 [13:14:24]line SUPER-92-К-5 [13:14:24]line 6.080 * 65.80 [13:14:24]line = 400.06 [13:14:24]line НДС 12% НСП 1% [13:14:24]line > о реализуемом товаре [13:14:24]line ИТОГО: 400.06 [13:14:24]line НСП 1% : 3.54 [13:14:24]line НДС 12% : 42.48 [13:14:24]line Наличными: 0.00 [13:14:24]line Безнал.: 400.06 [13:14:24]line Место: АЗС № 108 "Партнер Нефть" [13:14:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:14:24]line СНО: Общий режим [13:14:24]line Чек 142 15.04.2024 13:14 [13:14:24]line Смена: 117 ФФД: 1.0 [13:14:24]line ЗНМ: 0300000027 [13:14:24]line РНМ: 0000138879044617 [13:14:24]line Версия ККМ: 001 [13:14:24]line Платежная система: KICB Банк [13:14:24]line ФМ: 0000000000963154 [13:14:24]line ФД: 29548 [13:14:24]line ФПД: 9970948020239 [13:14:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T131427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29548&fm=9970948020239&tin=02508201610067®Number=0000138879044617&sum=40006 [13:14:24]OFD Sender: Processing packet 29548 [packets to send 8, broken 7] [13:14:24]ProducePacketName [13:14:24]name=ofd_packets/00029548 [13:14:24]OFD Sender: To server: pG, [13:14:24]CommunicateWithHost lk.salyk.kg:30040 [13:14:24]ConnectInit lk.salyk.kg [13:14:24]written 0, free lines is 4095 [13:14:24]Connected sock=10 [13:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 86 7E 08 01 1A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 33 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 73 00 00 35 04 06 00 09 11 8A D0 98 0F BE 85 0E F0 55 FF 46 EF [13:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 F0 47 00 28 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 39 36 33 31 35 34 10 04 04 00 6C 73 00 00 F4 03 04 00 D4 D2 1C 66 B6 04 01 00 00 1C 83 D3 8D 38 70 DC 62 [13:14:24]CommunicateWithHost err = 0 [13:14:24]CheckOFDResponse [13:14:24]1017 (14) - 77093643461234 [13:14:24]1041 (16) - 0000000000963154 [13:14:24]1040 (4) - 29548 [13:14:24]1012 (4) - 15.04.2024 07:10 [13:14:24]1206 (1) - 0 [13:14:24]OFD Sender: Remove packet 29548 [13:14:24]ProducePacketName [13:14:24]name=ofd_packets/00029548 [13:14:24]NVStorageDeleteData [13:14:25]Write to MH i2c: 01 00 00 93 44 D7 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 93 44 00 00 00 00 00 E9 0C D3 [13:14:25]RasterBufferAndPrint [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]written 0, free lines is 3314 [13:14:25]MH_Cut [13:14:25]Write to MH i2c: D1 01 00 9A 44 01 B0 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 01 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 01 00 9A 44 00 AF [13:14:25]Write to MH i2c: 01 00 00 9B 44 DF [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]OFD Sender: No OFD packet to send [13:14:25]*** Cut start [13:14:25]*** Partial cut [13:14:25]*** CUTSNS_PIN = 1 [13:14:25]*** CUTSNS_PIN = 0 [13:14:26]*** Brake cut motor [13:14:26]Read from MH i2c: 01 [13:14:26]MH_I2C_Read... [13:14:26]*** Stop cut motor [13:14:26]*** Cut end [13:14:26]Read from MH i2c: 01 07 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: 01 07 00 9B 44 00 00 00 00 00 FF 0F F4 [13:14:26]process_action close_receipt done [13:14:26]requested_data is exist [13:14:26]produce_requested_data [13:14:26]requested_item fm.sn is exist - process it [13:14:26]wFMCommunicate request_size=4 [13:14:26]MH_SAM_APDU [13:14:26]CAPDU: 80 11 00 00 [13:14:26]Write to MH i2c: E2 08 00 9C 44 80 11 00 00 00 00 00 00 5A [13:14:26]Write i2c OK [13:14:26]MH_I2C_Read... [13:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:26]Read from MH i2c: E2 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 17 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 17 00 9C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [13:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:26]wFMCommunicate OK [13:14:26]requested_item fd.num is exist - process it [13:14:26]SAM_PROTO_GetFieldsCounters [13:14:26]wFMCommunicate request_size=4 [13:14:26]MH_SAM_APDU [13:14:26]CAPDU: 80 13 00 00 [13:14:26]Write to MH i2c: E2 08 00 9D 44 80 13 00 00 00 00 00 00 5D [13:14:26]Write i2c OK [13:14:26]MH_I2C_Read... [13:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:26]Read from MH i2c: E2 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 62 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 62 00 9D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 73 00 00 0E 04 04 00 75 00 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:14:26]wFMCommunicate OK [13:14:26]SAM_PROTO_GetFieldsCounters done [13:14:26]requested_item shift.num is exist - process it [13:14:26]requested_item shift.opened is exist - process it [13:14:26]req_shift_opened [13:14:26]FM_GetShiftState [13:14:26]SAM_PROTO_GetShiftState [13:14:26]wFMCommunicate request_size=4 [13:14:26]MH_SAM_APDU [13:14:26]CAPDU: 80 13 01 00 [13:14:26]Write to MH i2c: E2 08 00 9E 44 80 13 01 00 00 00 00 00 5F [13:14:26]Write i2c OK [13:14:26]MH_I2C_Read... [13:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:26]Read from MH i2c: E2 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 0E 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 0E 00 9E 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 53 [13:14:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:14:26]wFMCommunicate OK [13:14:26]SAM_PROTO_GetShiftState done [13:14:26]FM_GetShiftState done [13:14:26]req_shift_opened done [13:14:26]requested_item shift.open_date is exist - process it [13:14:26]req_shift_open_date [13:14:26]req_shift_open_date done [13:14:26]produce_requested_data done [13:14:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29548,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:14:26]process_action_free close_receipt [13:14:26]json_value_free [13:14:26]json_value_free done [13:14:26]process_json_proto returns [13:14:26]Send response to host [13:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29548,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:14:26]free response buf [13:14:26]execute_script done [13:14:26]execute_script returns [13:14:26]free content buf [13:14:26]Sock 9.Close socket [13:14:26]Sock 9.Thread stoped [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:04]accept exits with 8 [13:15:04]New connection [13:15:04]New thread 3067112804 created [13:15:04]Thread 3066969444 joined [13:15:04]Waiting for new connection... [13:15:04] Sock 8.Parse request [13:15:04]Sock 8.Check first char [13:15:04]Sock 8.First char is OK [13:15:04]request: POST /json_proto HTTP/1.0 [13:15:04]Method: POST [13:15:04]URL: /json_proto [13:15:04]Method is POST - this is cgi request [13:15:04]url: /json_proto [13:15:04]query_string will be loaded in cgi processing [13:15:04]execute_cgi json_proto POST (null) [13:15:04]execute_cgi path=json_proto method=POST [13:15:04]POST find Content-Length [13:15:04]Host: 172.17.33.3:8080 [13:15:04]Content-Length: 793 [13:15:04]Content-Type: application/json [13:15:04] [13:15:04]POST finish read [13:15:04]Found Content-Length = 793 [13:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 5.990, "sum" : 200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:04]execute_script... [13:15: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)347972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 5.990, "sum" : 200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:04]POST & json_proto [13:15:04]process_json_proto [13:15:04]json parsed OK: [13:15:04]protocol is kg_v1.0 [13:15:04]action value=close_receipt [13:15:04]process_action close_receipt [13:15:04]cmd_close_receipt [13:15:04]MH_GetDate [13:15:04]Write to MH i2c: F0 00 00 9F 44 D2 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 09 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: F0 09 00 9F 44 00 5D 28 1D 66 23 5B 8F 65 55 [13:15:04]GetLastDocTimeStamp 1713186867 [13:15:04]current date 1713186909 [13:15:04]FM_GetShiftState [13:15:04]SAM_PROTO_GetShiftState [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 13 01 00 [13:15:04]Write to MH i2c: E2 08 00 A0 44 80 13 01 00 00 00 00 00 61 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0E 00 A0 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 55 [13:15:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:15:04]wFMCommunicate OK [13:15:04]SAM_PROTO_GetShiftState done [13:15:04]FM_GetShiftState done [13:15:04]opened in 1713140468 [13:15:04]opened+sec_in_day 1713226868 [13:15:04]quantity*price = 20006 [13:15:04]sum+1 = 20008 [13:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.07 НСП 1% : 1.77 НДС 12% : 21.25 Наличными: 0.00 Безнал.: 200.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 143 15.04.2024 13:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29549 ФПД: 241317292547630 1/tax-web-control/client/api/v1/ticket?date=20240415T131509&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29549&fm=241317292547630&tin=02508201610067®Number=0000138879044617&sum=20007 [13:15:05]StoreToDocumentArchive [13:15:05]shift 117 fd 29549 [13:15:05]save to /storage/0117/doc_00029549 [13:15:05]save last doc name /storage/0117/doc_00029549 to /storage/kkm_last_doc_name [13:15:05]save OK [13:15:05]Clear old archive folders... [13:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:15:05]tlvbuf is B6DCF130 [13:15:05]SAM_PROTO_ClearQueue [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 09 00 00 [13:15:05]Write to MH i2c: E2 08 00 AD 44 80 09 00 00 00 00 00 00 63 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 AD 44 00 90 00 65 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_ClearQueue done [13:15:06]KKMCreateOFDPacket [13:15:06]OFDProtocolAddRootSTLVToBuf [13:15:06]FM_MakeSignedData [13:15:06]FM_MakeSignedData [13:15:06]SAM_PROTO_SignData [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 01 02 [13:15:06]Write to MH i2c: E2 08 00 AE 44 80 0D 01 02 00 00 00 00 6B [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 AE 44 00 90 00 66 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]wFMCommunicate request_size=255 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 27 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 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 4D 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 5D 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 73 00 00 35 04 06 00 DB 7A [13:15:06]Write to MH i2c: E2 02 01 AF 44 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 27 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 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 4D 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 5D 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 73 00 00 35 04 06 00 DB 7A 00 00 7E [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 AF 44 00 90 00 67 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]wFMCommunicate request_size=9 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 02 02 04 0F 80 1E 2E [13:15:06]Write to MH i2c: E2 0C 00 B0 44 80 0D 02 02 04 00 0F 80 1E 2E 00 00 51 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 B0 44 00 90 00 68 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 03 02 [13:15:06]Write to MH i2c: E2 08 00 B1 44 80 0D 03 02 00 00 00 00 70 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0B 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0B 00 B1 44 00 13 4A FD FA 99 D5 90 B9 90 00 7C [13:15:06]RAPDU: 13 4A FD FA 99 D5 90 B9 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_SignData done [13:15:06]FM_MakeSignedData done [13:15:06]CreateOFDProtocolMessage [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 11 00 00 [13:15:06]Write to MH i2c: E2 08 00 B2 44 80 11 00 00 00 00 00 00 70 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 B2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [13:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:15:06]wFMCommunicate OK [13:15:06]CreateOFDProtocolMessage done [13:15:06]OFDSenderStorePacket 29549 [13:15:06]StoreOFDPacket docnum=29549 [13:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 04 E4 06 01 BE 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 27 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 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 4D 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 5D 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 73 00 00 35 04 06 00 DB 7A 0F 80 1E 2E 13 4A FD FA 99 D5 90 B9 [13:15:06]CheckFolder [13:15:06]dirname=/storage/ofd_packets [13:15:06]CheckFolder done [13:15:06]ProducePacketName [13:15:06]name=ofd_packets/00029549 [13:15:06]NVStorageSaveData ofd_packets/00029549 [13:15:06]File name is /storage/ofd_packets/00029549 [13:15:06]Write 300 bytes [13:15:06]NVStorageSaveData done [13:15:06]OFDSenderStorePacket done [13:15:06]KKMCreateOFDPacket done [13:15:06]NVStorageSaveData kkm_last_timestamp [13:15:06]File name is /storage/kkm_last_timestamp [13:15:06]OFD Sender: Processing packet 29549 [packets to send 8, broken 7] [13:15:06]ProducePacketName [13:15:06]name=ofd_packets/00029549 [13:15:06]OFD Sender: To server: pG, [13:15:06]CommunicateWithHost lk.salyk.kg:30040 [13:15:06]ConnectInit lk.salyk.kg [13:15:06]Write 4 bytes [13:15:06]NVStorageSaveData done [13:15:06]ExternCall_PrintAddStr [13:15:06]wPrintStart [13:15:06]Write to MH i2c: 01 00 00 B3 44 F7 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 B3 44 00 00 00 00 00 FF 0F 0C [13:15:06]RasterBufferAndPrint [13:15:06]line Счет N : (1)347972 [13:15:06]line ИНН: 02508201610067 [13:15:06]line Контрольно-Кассовый Чек [13:15:06]line ПРОДАЖА [13:15:06]line ТРК (МРК, ГНК) : 71 [13:15:06]line Товар: 2711129700 [13:15:06]line ГАЗ-К-5 [13:15:06]line 5.990 * 33.40 [13:15:06]line = 200.07 [13:15:06]line НДС 12% НСП 1% [13:15:06]line > о реализуемом товаре [13:15:06]line ИТОГО: 200.07 [13:15:06]line НСП 1% : 1.77 [13:15:06]line НДС 12% : 21.25 [13:15:06]line Наличными: 0.00 [13:15:06]line Безнал.: 200.07 [13:15:06]line Место: АЗС № 108 "Партнер Нефть" [13:15:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:15:06]line СНО: Общий режим [13:15:06]line Чек 143 15.04.2024 13:15 [13:15:06]line Смена: 117 ФФД: 1.0 [13:15:06]line ЗНМ: 0300000027 [13:15:06]line РНМ: 0000138879044617 [13:15:06]line Версия ККМ: 001 [13:15:06]line Платежная система: KICB Банк [13:15:06]line ФМ: 0000000000963154 [13:15:06]line ФД: 29549 [13:15:06]line ФПД: 241317292547630 [13:15:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T131509&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29549&fm=241317292547630&tin=02508201610067®Number=0000138879044617&sum=20007 [13:15:06]Connected sock=11 [13:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 04 E4 06 01 BE 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 27 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 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 4D 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 5D 28 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 73 00 00 35 04 06 00 DB 7A 0F 80 1E 2E 13 4A FD FA 99 D5 90 B9 [13:15:06]written 0, free lines is 4095 [13:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 5E 47 00 EB 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 39 36 33 31 35 34 10 04 04 00 6D 73 00 00 F4 03 04 00 FE D2 1C 66 B6 04 01 00 00 20 D1 5E 82 D1 79 7B 8D [13:15:07]CommunicateWithHost err = 0 [13:15:07]CheckOFDResponse [13:15:07]1017 (14) - 77093643461234 [13:15:07]1041 (16) - 0000000000963154 [13:15:07]1040 (4) - 29549 [13:15:07]1012 (4) - 15.04.2024 07:10 [13:15:07]1206 (1) - 0 [13:15:07]OFD Sender: Remove packet 29549 [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00029549 [13:15:07]NVStorageDeleteData [13:15:07]Write to MH i2c: 01 00 00 DC 44 20 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 DC 44 00 00 00 00 00 DE 0C 11 [13:15:07]RasterBufferAndPrint [13:15:07]line [13:15:07]line [13:15:07]line [13:15:07]line [13:15:07]line [13:15:07]written 0, free lines is 3302 [13:15:07]MH_Cut [13:15:07]Write to MH i2c: D1 01 00 E3 44 01 F9 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: D1 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: D1 01 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: D1 01 00 E3 44 00 F8 [13:15:07]Write to MH i2c: 01 00 00 E4 44 28 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]OFD Sender: No OFD packet to send [13:15:08]*** Cut start [13:15:08]*** Partial cut [13:15:08]*** CUTSNS_PIN = 1 [13:15:08]*** CUTSNS_PIN = 0 [13:15:08]*** Brake cut motor [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]*** Stop cut motor [13:15:08]*** Cut end [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 E4 44 00 00 00 00 00 FF 0F 3D [13:15:08]process_action close_receipt done [13:15:08]requested_data is exist [13:15:08]produce_requested_data [13:15:08]requested_item fm.sn is exist - process it [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 11 00 00 [13:15:08]Write to MH i2c: E2 08 00 E5 44 80 11 00 00 00 00 00 00 A3 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 17 00 E5 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [13:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:15:08]wFMCommunicate OK [13:15:08]requested_item fd.num is exist - process it [13:15:08]SAM_PROTO_GetFieldsCounters [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 13 00 00 [13:15:08]Write to MH i2c: E2 08 00 E6 44 80 13 00 00 00 00 00 00 A6 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 62 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 62 00 E6 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 73 00 00 0E 04 04 00 75 00 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 E6 [13:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 73 00 00 0E 04 04 00 75 00 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:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_GetFieldsCounters done [13:15:08]requested_item shift.num is exist - process it [13:15:08]requested_item shift.opened is exist - process it [13:15:08]req_shift_opened [13:15:08]FM_GetShiftState [13:15:08]SAM_PROTO_GetShiftState [13:15:08]wFMCommunicate request_size=4 [13:15:08]MH_SAM_APDU [13:15:08]CAPDU: 80 13 01 00 [13:15:08]Write to MH i2c: E2 08 00 E7 44 80 13 01 00 00 00 00 00 A8 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:08]Read from MH i2c: E2 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0E 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: E2 0E 00 E7 44 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9C [13:15:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:15:08]wFMCommunicate OK [13:15:08]SAM_PROTO_GetShiftState done [13:15:08]FM_GetShiftState done [13:15:08]req_shift_opened done [13:15:08]requested_item shift.open_date is exist - process it [13:15:08]req_shift_open_date [13:15:08]req_shift_open_date done [13:15:08]produce_requested_data done [13:15:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29549,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:15:08]process_action_free close_receipt [13:15:08]json_value_free [13:15:08]json_value_free done [13:15:08]process_json_proto returns [13:15:08]Send response to host [13:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29549,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:15:08]free response buf [13:15:08]execute_script done [13:15:08]execute_script returns [13:15:08]free content buf [13:15:08]Sock 8.Close socket [13:15:08]Sock 8.Thread stoped [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [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:51]accept exits with 9 [13:17:51]New connection [13:17:51]New thread 3066969444 created [13:17:51]Thread 3067112804 joined [13:17:51]Waiting for new connection... [13:17:51] Sock 9.Parse request [13:17:51]Sock 9.Check first char [13:17:51]Sock 9.First char is OK [13:17:51]request: POST /json_proto HTTP/1.0 [13:17:51]Method: POST [13:17:51]URL: /json_proto [13:17:51]Method is POST - this is cgi request [13:17:51]url: /json_proto [13:17:51]query_string will be loaded in cgi processing [13:17:51]execute_cgi json_proto POST (null) [13:17:51]execute_cgi path=json_proto method=POST [13:17:51]POST find Content-Length [13:17:51]Host: 172.17.33.3:8080 [13:17:51]Content-Length: 1201 [13:17:51]Content-Type: application/json [13:17:51] [13:17:51]POST finish read [13:17:51]Found Content-Length = 1201 [13:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347974\u000A15.04.2024 12:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.720 x 64.80\u000A\u0418\u0422\u041E\u0413: 500.26\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\u000A3859007\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:51]execute_script... [13:17:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347974\u000A15.04.2024 12:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.720 x 64.80\u000A\u0418\u0422\u041E\u0413: 500.26\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\u000A3859007\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:51]POST & json_proto [13:17:51]process_json_proto [13:17:51]json parsed OK: [13:17:51]protocol is kg_v1.0 [13:17:51]action value=print_text [13:17:51]process_action print_text [13:17:51]cmd_print_text [13:17:51]ExternCall_PrintAddStr [13:17:51]wPrintStart [13:17:51]Write to MH i2c: 01 00 00 E8 44 2C [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 E8 44 00 00 00 00 00 FF 0F 41 [13:17:51]RasterBufferAndPrint [13:17:51]line *****ТОВАРНЫЙ ЧЕК***** [13:17:51]line АЗС 108 [13:17:51]line Партнер нефть [13:17:51]line 02508201610067 [13:17:51]line Кассир : Джумагулова Н. [13:17:51]line Счет N : (1)347974 [13:17:51]line 15.04.2024 12:59 [13:17:51]line ПРОДАЖА [13:17:51]line ТРК (МРК, ГНК): 23 [13:17:51]line Вид ГСМ : 2710124130 [13:17:51]line Аи-92-К-5 [13:17:51]line 7.720 x 64.80 [13:17:51]line ИТОГ: 500.26 [13:17:51]line Тип оплаты: Талоны: Партнер нефть [13:17:51]line 3859007 [13:17:51]line ______________________ [13:17:51]line (подпись) [13:17:51]written 0, free lines is 4095 [13:17:51]Write to MH i2c: 01 00 00 FD 44 41 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 FD 44 00 00 00 00 00 F7 0D 4C [13:17:51]RasterBufferAndPrint [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]written 0, free lines is 3577 [13:17:51]MH_Cut [13:17:51]Write to MH i2c: D1 01 00 04 45 01 1B [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 01 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 01 00 04 45 00 1A [13:17:51]Write to MH i2c: 01 00 00 05 45 4A [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:52]*** Cut start [13:17:52]*** Partial cut [13:17:52]*** CUTSNS_PIN = 1 [13:17:52]*** CUTSNS_PIN = 0 [13:17:52]*** Brake cut motor [13:17:52]OFD Sender: No OFD packet to send [13:17:52]Read from MH i2c: 01 [13:17:52]MH_I2C_Read... [13:17:52]*** Stop cut motor [13:17:52]*** Cut end [13:17:52]Read from MH i2c: 01 07 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: 01 07 00 05 45 00 00 00 00 00 FF 0F 5F [13:17:52]process_action print_text done [13:17:52]requested_data is exist [13:17:52]produce_requested_data [13:17:52]requested_item fm.sn is exist - process it [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 11 00 00 [13:17:52]Write to MH i2c: E2 08 00 06 45 80 11 00 00 00 00 00 00 C5 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 17 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 17 00 06 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [13:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:17:52]wFMCommunicate OK [13:17:52]requested_item fd.num is exist - process it [13:17:52]SAM_PROTO_GetFieldsCounters [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 13 00 00 [13:17:52]Write to MH i2c: E2 08 00 07 45 80 13 00 00 00 00 00 00 C8 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 62 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 62 00 07 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 73 00 00 0E 04 04 00 75 00 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 08 [13:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 73 00 00 0E 04 04 00 75 00 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:17:53]wFMCommunicate OK [13:17:53]SAM_PROTO_GetFieldsCounters done [13:17:53]requested_item shift.num is exist - process it [13:17:53]requested_item shift.opened is exist - process it [13:17:53]req_shift_opened [13:17:53]FM_GetShiftState [13:17:53]SAM_PROTO_GetShiftState [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 13 01 00 [13:17:53]Write to MH i2c: E2 08 00 08 45 80 13 01 00 00 00 00 00 CA [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 0E 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 0E 00 08 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [13:17:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:17:53]wFMCommunicate OK [13:17:53]SAM_PROTO_GetShiftState done [13:17:53]FM_GetShiftState done [13:17:53]req_shift_opened done [13:17:53]requested_item shift.open_date is exist - process it [13:17:53]req_shift_open_date [13:17:53]req_shift_open_date done [13:17:53]produce_requested_data done [13:17:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29549,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:17:53]process_action_free print_text [13:17:53]json_value_free [13:17:53]json_value_free done [13:17:53]process_json_proto returns [13:17:53]Send response to host [13:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29549,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:17:53]free response buf [13:17:53]execute_script done [13:17:53]execute_script returns [13:17:53]free content buf [13:17:53]Sock 9.Close socket [13:17:53]Sock 9.Thread stoped [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:51]accept exits with 8 [13:19:51]New connection [13:19:51]New thread 3067112804 created [13:19:51]Thread 3066969444 joined [13:19:51]Waiting for new connection... [13:19:51] Sock 8.Parse request [13:19:51]Sock 8.Check first char [13:19:51]Sock 8.First char is OK [13:19:51]request: POST /json_proto HTTP/1.0 [13:19:51]Method: POST [13:19:51]URL: /json_proto [13:19:51]Method is POST - this is cgi request [13:19:51]url: /json_proto [13:19:51]query_string will be loaded in cgi processing [13:19:51]execute_cgi json_proto POST (null) [13:19:51]execute_cgi path=json_proto method=POST [13:19:51]POST find Content-Length [13:19:51]Host: 172.17.33.3:8080 [13:19:51]Content-Length: 677 [13:19:51]Content-Type: application/json [13:19:51] [13:19:51]POST finish read [13:19:51]Found Content-Length = 677 [13:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]execute_script... [13:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]POST & json_proto [13:19:51]process_json_proto [13:19:51]json parsed OK: [13:19:51]protocol is kg_v1.0 [13:19:51]action value=close_receipt [13:19:51]process_action close_receipt [13:19:51]cmd_close_receipt [13:19:51]MH_GetDate [13:19:51]Write to MH i2c: F0 00 00 09 45 3D [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 09 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: F0 09 00 09 45 00 7C 29 1D 66 23 5B 8F 65 E0 [13:19:51]GetLastDocTimeStamp 1713186909 [13:19:51]current date 1713187196 [13:19:51]FM_GetShiftState [13:19:51]SAM_PROTO_GetShiftState [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 01 00 [13:19:51]Write to MH i2c: E2 08 00 0A 45 80 13 01 00 00 00 00 00 CC [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 0A 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [13:19:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetShiftState done [13:19:51]FM_GetShiftState done [13:19:51]opened in 1713140468 [13:19:51]opened+sec_in_day 1713226868 [13:19:51]quantity*price = 50025 [13:19:51]sum+1 = 50027 [13:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 144 15.04.2024 13:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29550 ФПД: 156917041485311 1/tax-web-control/client/api/v1/ticket?date=20240415T131956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29550&fm=156917041485311&tin=02508201610067®Number=0000138879044617&sum=50000 [13:19:52]StoreToDocumentArchive [13:19:52]shift 117 fd 29550 [13:19:52]save to /storage/0117/doc_00029550 [13:19:52]save last doc name /storage/0117/doc_00029550 to /storage/kkm_last_doc_name [13:19:52]save OK [13:19:52]Clear old archive folders... [13:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:52]tlvbuf is B6F01350 [13:19:52]SAM_PROTO_ClearQueue [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 09 00 00 [13:19:52]Write to MH i2c: E2 08 00 17 45 80 09 00 00 00 00 00 00 CE [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 17 45 00 90 00 D0 [13:19:52]RAPDU: 90 00 [13:19:52]wFMCommunicate OK [13:19:52]SAM_PROTO_ClearQueue done [13:19:52]KKMCreateOFDPacket [13:19:52]OFDProtocolAddRootSTLVToBuf [13:19:52]FM_MakeSignedData [13:19:52]FM_MakeSignedData [13:19:52]SAM_PROTO_SignData [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 0D 01 02 [13:19:52]Write to MH i2c: E2 08 00 18 45 80 0D 01 02 00 00 00 00 D6 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 03 00 18 45 00 90 00 D1 [13:19:52]RAPDU: 90 00 [13:19:52]wFMCommunicate OK [13:19:52]wFMCommunicate request_size=255 [13:19:52]MH_SAM_APDU [13:19: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 7C 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 73 00 00 35 04 06 00 8E [13:19:52]Write to MH i2c: E2 02 01 19 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 7C 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 73 00 00 35 04 06 00 8E 00 00 2B [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]OFD Sender: No OFD packet to send [13:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 19 45 00 90 00 D2 [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=10 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 02 02 05 B7 18 84 55 FF [13:19:53]Write to MH i2c: E2 0D 00 1A 45 80 0D 02 02 05 00 B7 18 84 55 FF 00 00 8A [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 03 02 [13:19:53]Write to MH i2c: E2 08 00 1B 45 80 0D 03 02 00 00 00 00 DB [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0B 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 0B 00 1B 45 00 A1 C5 6E F8 FF AF 64 A8 90 00 62 [13:19:53]RAPDU: A1 C5 6E F8 FF AF 64 A8 90 00 [13:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_SignData done [13:19:53]FM_MakeSignedData done [13:19:53]CreateOFDProtocolMessage [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 11 00 00 [13:19:53]Write to MH i2c: E2 08 00 1C 45 80 11 00 00 00 00 00 00 DB [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 17 00 1C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [13:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:19:53]wFMCommunicate OK [13:19:53]CreateOFDProtocolMessage done [13:19:53]OFDSenderStorePacket 29550 [13:19:53]StoreOFDPacket docnum=29550 [13:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A7 B6 07 01 11 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 7C 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 73 00 00 35 04 06 00 8E B7 18 84 55 FF A1 C5 6E F8 FF AF 64 A8 [13:19:53]CheckFolder [13:19:53]dirname=/storage/ofd_packets [13:19:53]CheckFolder done [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00029550 [13:19:53]NVStorageSaveData ofd_packets/00029550 [13:19:53]File name is /storage/ofd_packets/00029550 [13:19:53]Write 301 bytes [13:19:53]NVStorageSaveData done [13:19:53]OFDSenderStorePacket done [13:19:53]KKMCreateOFDPacket done [13:19:53]NVStorageSaveData kkm_last_timestamp [13:19:53]File name is /storage/kkm_last_timestamp [13:19:53]Write 4 bytes [13:19:53]NVStorageSaveData done [13:19:53]ExternCall_PrintAddStr [13:19:53]wPrintStart [13:19:53]Write to MH i2c: 01 00 00 1D 45 62 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 1D 45 00 00 00 00 00 FF 0F 77 [13:19:53]RasterBufferAndPrint [13:19:53]line Счет N : (1)347976 [13:19:53]line ИНН: 02508201610067 [13:19:53]line Контрольно-Кассовый Чек [13:19:53]line ПРОДАЖА [13:19:53]line ТРК (МРК, ГНК) : 23 [13:19:53]line Товар: 2710124130 [13:19:53]line Аи-92-К-5 [13:19:53]line 7.720 * 64.80 [13:19:53]line = 500.26 [13:19:53]line НДС 12% НСП 1% [13:19:53]line > о реализуемом товаре [13:19:53]line ОКРУГЛЕНИЕ: -0.26 [13:19:53]line ИТОГО: 500.00 [13:19:53]line Внесено: 500.00 [13:19:53]line СДАЧА: 0.00 [13:19:53]line НСП 1% : 4.43 [13:19:53]line НДС 12% : 53.12 [13:19:53]line Наличными: 500.00 [13:19:53]line Безнал.: 0.00 [13:19:53]line Место: АЗС № 108 "Партнер Нефть" [13:19:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:19:53]line СНО: Общий режим [13:19:53]line Чек 144 15.04.2024 13:19 [13:19:53]line Смена: 117 ФФД: 1.0 [13:19:53]line ЗНМ: 0300000027 [13:19:53]line РНМ: 0000138879044617 [13:19:53]line Версия ККМ: 001 [13:19:53]line ФМ: 0000000000963154 [13:19:53]line ФД: 29550 [13:19:53]line ФПД: 156917041485311 [13:19:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T131956&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29550&fm=156917041485311&tin=02508201610067®Number=0000138879044617&sum=50000 [13:19:53]OFD Sender: Processing packet 29550 [packets to send 8, broken 7] [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00029550 [13:19:53]OFD Sender: To server: pG, [13:19:53]CommunicateWithHost lk.salyk.kg:30040 [13:19:53]ConnectInit lk.salyk.kg [13:19:53]written 0, free lines is 4095 [13:19:53]Connected sock=10 [13:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A7 B6 07 01 11 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 7C 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 73 00 00 35 04 06 00 8E B7 18 84 55 FF A1 C5 6E F8 FF AF 64 A8 [13:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 51 47 00 2E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 73 00 00 F4 03 04 00 1D D4 1C 66 B6 04 01 00 00 8B D7 92 AF C1 89 1E 92 [13:19:53]CommunicateWithHost err = 0 [13:19:53]CheckOFDResponse [13:19:53]1017 (14) - 77093643461234 [13:19:53]1041 (16) - 0000000000963154 [13:19:53]1040 (4) - 29550 [13:19:53]1012 (4) - 15.04.2024 07:15 [13:19:53]1206 (1) - 0 [13:19:53]OFD Sender: Remove packet 29550 [13:19:53]ProducePacketName [13:19:53]name=ofd_packets/00029550 [13:19:53]NVStorageDeleteData [13:19:53]Write to MH i2c: 01 00 00 47 45 8C [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: 01 07 00 47 45 00 00 00 00 00 CA 0C 69 [13:19:53]RasterBufferAndPrint [13:19:53]line [13:19:53]line [13:19:53]line [13:19:53]line [13:19:53]line [13:19:53]written 0, free lines is 3280 [13:19:53]MH_Cut [13:19:53]Write to MH i2c: D1 01 00 4E 45 01 65 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: D1 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: D1 01 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: D1 01 00 4E 45 00 64 [13:19:53]Write to MH i2c: 01 00 00 4F 45 94 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:54]OFD Sender: No OFD packet to send [13:19:54]*** Cut start [13:19:54]*** Partial cut [13:19:54]*** CUTSNS_PIN = 1 [13:19:54]*** CUTSNS_PIN = 0 [13:19:55]*** Brake cut motor [13:19:55]Read from MH i2c: 01 [13:19:55]MH_I2C_Read... [13:19:55]*** Stop cut motor [13:19:55]*** Cut end [13:19:55]Read from MH i2c: 01 07 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: 01 07 00 4F 45 00 00 00 00 00 FF 0F A9 [13:19:55]process_action close_receipt done [13:19:55]requested_data is exist [13:19:55]produce_requested_data [13:19:55]requested_item fm.sn is exist - process it [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 11 00 00 [13:19:55]Write to MH i2c: E2 08 00 50 45 80 11 00 00 00 00 00 00 0F [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 17 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 17 00 50 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [13:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:19:55]wFMCommunicate OK [13:19:55]requested_item fd.num is exist - process it [13:19:55]SAM_PROTO_GetFieldsCounters [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 13 00 00 [13:19:55]Write to MH i2c: E2 08 00 51 45 80 13 00 00 00 00 00 00 12 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 62 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 62 00 51 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 73 00 00 0E 04 04 00 75 00 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 56 [13:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 73 00 00 0E 04 04 00 75 00 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:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_GetFieldsCounters done [13:19:55]requested_item shift.num is exist - process it [13:19:55]requested_item shift.opened is exist - process it [13:19:55]req_shift_opened [13:19:55]FM_GetShiftState [13:19:55]SAM_PROTO_GetShiftState [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 13 01 00 [13:19:55]Write to MH i2c: E2 08 00 52 45 80 13 01 00 00 00 00 00 14 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 0E 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 0E 00 52 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 08 [13:19:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_GetShiftState done [13:19:55]FM_GetShiftState done [13:19:55]req_shift_opened done [13:19:55]requested_item shift.open_date is exist - process it [13:19:55]req_shift_open_date [13:19:55]req_shift_open_date done [13:19:55]produce_requested_data done [13:19:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29550,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:19:55]process_action_free close_receipt [13:19:55]json_value_free [13:19:55]json_value_free done [13:19:55]process_json_proto returns [13:19:55]Send response to host [13:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29550,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:19:55]free response buf [13:19:55]execute_script done [13:19:55]execute_script returns [13:19:55]free content buf [13:19:55]Sock 8.Close socket [13:19:55]Sock 8.Thread stoped [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:15]accept exits with 9 [13:20:15]New connection [13:20:15]New thread 3066969444 created [13:20:15]Thread 3067112804 joined [13:20:15]Waiting for new connection... [13:20:15] Sock 9.Parse request [13:20:15]Sock 9.Check first char [13:20:15]Sock 9.First char is OK [13:20:15]request: POST /json_proto HTTP/1.0 [13:20:15]Method: POST [13:20:15]URL: /json_proto [13:20:15]Method is POST - this is cgi request [13:20:15]url: /json_proto [13:20:15]query_string will be loaded in cgi processing [13:20:15]execute_cgi json_proto POST (null) [13:20:15]execute_cgi path=json_proto method=POST [13:20:15]POST find Content-Length [13:20:15]Host: 172.17.33.3:8080 [13:20:15]Content-Length: 793 [13:20:15]Content-Type: application/json [13:20:15] [13:20:15]POST finish read [13:20:15]Found Content-Length = 793 [13:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:15]execute_script... [13: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)347975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:15]POST & json_proto [13:20:15]process_json_proto [13:20:15]json parsed OK: [13:20:15]protocol is kg_v1.0 [13:20:15]action value=close_receipt [13:20:15]process_action close_receipt [13:20:15]cmd_close_receipt [13:20:15]MH_GetDate [13:20:15]Write to MH i2c: F0 00 00 53 45 87 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 09 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: F0 09 00 53 45 00 94 29 1D 66 23 5B 8F 65 42 [13:20:15]GetLastDocTimeStamp 1713187196 [13:20:15]current date 1713187220 [13:20:15]FM_GetShiftState [13:20:15]SAM_PROTO_GetShiftState [13:20:15]wFMCommunicate request_size=4 [13:20:15]MH_SAM_APDU [13:20:15]CAPDU: 80 13 01 00 [13:20:15]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:15]Read from MH i2c: E2 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0A [13:20:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:20:15]wFMCommunicate OK [13:20:15]SAM_PROTO_GetShiftState done [13:20:15]FM_GetShiftState done [13:20:15]opened in 1713140468 [13:20:15]opened+sec_in_day 1713226868 [13:20:15]quantity*price = 129600 [13:20:15]sum+1 = 129601 [13:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1296.00 НСП 1% : 11.47 НДС 12% : 137.63 Наличными: 0.00 Безнал.: 1296.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 145 15.04.2024 13:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29551 ФПД: 205801611095067 1/tax-web-control/client/api/v1/ticket?date=20240415T132020&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29551&fm=205801611095067&tin=02508201610067®Number=0000138879044617&sum=129600 [13:20:16]StoreToDocumentArchive [13:20:16]shift 117 fd 29551 [13:20:16]save to /storage/0117/doc_00029551 [13:20:16]save last doc name /storage/0117/doc_00029551 to /storage/kkm_last_doc_name [13:20:16]save OK [13:20:16]Clear old archive folders... [13:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:16]tlvbuf is 0027BDA0 [13:20:16]SAM_PROTO_ClearQueue [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 09 00 00 [13:20:16]Write to MH i2c: E2 08 00 61 45 80 09 00 00 00 00 00 00 18 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 61 45 00 90 00 1A [13:20:16]RAPDU: 90 00 [13:20:16]wFMCommunicate OK [13:20:16]SAM_PROTO_ClearQueue done [13:20:16]KKMCreateOFDPacket [13:20:16]OFDProtocolAddRootSTLVToBuf [13:20:16]FM_MakeSignedData [13:20:16]FM_MakeSignedData [13:20:16]SAM_PROTO_SignData [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 0D 01 02 [13:20:16]Write to MH i2c: E2 08 00 62 45 80 0D 01 02 00 00 00 00 20 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 62 45 00 90 00 1B [13:20:16]RAPDU: 90 00 [13:20:16]wFMCommunicate OK [13:20:16]wFMCommunicate request_size=255 [13:20:16]MH_SAM_APDU [13: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 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 FA 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 94 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 73 00 00 35 04 06 00 BB [13:20:16]Write to MH i2c: E2 02 01 63 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 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 FA 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 94 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 73 00 00 35 04 06 00 BB 00 00 29 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [13:20:16]RAPDU: 90 00 [13:20:16]wFMCommunicate OK [13:20:16]wFMCommunicate request_size=10 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 0D 02 02 05 2C EB EC 6C 1B [13:20:16]Write to MH i2c: E2 0D 00 64 45 80 0D 02 02 05 00 2C EB EC 6C 1B 00 00 B7 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [13:20:16]RAPDU: 90 00 [13:20:16]wFMCommunicate OK [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 0D 03 02 [13:20:16]Write to MH i2c: E2 08 00 65 45 80 0D 03 02 00 00 00 00 25 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:16]Read from MH i2c: E2 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 0B 00 [13:20:16]MH_I2C_Read... [13:20:16]Read from MH i2c: E2 0B 00 65 45 00 9A EE F9 CD E0 E1 F2 AD 90 00 D4 [13:20:16]RAPDU: 9A EE F9 CD E0 E1 F2 AD 90 00 [13:20:16]wFMCommunicate OK [13:20:16]SAM_PROTO_SignData done [13:20:16]FM_MakeSignedData done [13:20:16]CreateOFDProtocolMessage [13:20:16]wFMCommunicate request_size=4 [13:20:16]MH_SAM_APDU [13:20:16]CAPDU: 80 11 00 00 [13:20:16]Write to MH i2c: E2 08 00 66 45 80 11 00 00 00 00 00 00 25 [13:20:16]Write i2c OK [13:20:16]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 66 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [13:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:20:17]wFMCommunicate OK [13:20:17]CreateOFDProtocolMessage done [13:20:17]OFDSenderStorePacket 29551 [13:20:17]StoreOFDPacket docnum=29551 [13:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B5 C4 07 01 6A 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 FA 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 94 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 73 00 00 35 04 06 00 BB 2C EB EC 6C 1B 9A EE F9 CD E0 E1 F2 AD [13:20:17]CheckFolder [13:20:17]dirname=/storage/ofd_packets [13:20:17]CheckFolder done [13:20:17]ProducePacketName [13:20:17]name=ofd_packets/00029551 [13:20:17]NVStorageSaveData ofd_packets/00029551 [13:20:17]File name is /storage/ofd_packets/00029551 [13:20:17]Write 301 bytes [13:20:17]NVStorageSaveData done [13:20:17]OFDSenderStorePacket done [13:20:17]KKMCreateOFDPacket done [13:20:17]NVStorageSaveData kkm_last_timestamp [13:20:17]File name is /storage/kkm_last_timestamp [13:20:17]Write 4 bytes [13:20:17]NVStorageSaveData done [13:20:17]ExternCall_PrintAddStr [13:20:17]wPrintStart [13:20:17]Write to MH i2c: 01 00 00 67 45 AC [13:20:17]OFD Sender: Processing packet 29551 [packets to send 8, broken 7] [13:20:17]ProducePacketName [13:20:17]name=ofd_packets/00029551 [13:20:17]OFD Sender: To server: pG, [13:20:17]CommunicateWithHost lk.salyk.kg:30040 [13:20:17]ConnectInit lk.salyk.kg [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 67 45 00 00 00 00 00 FF 0F C1 [13:20:17]RasterBufferAndPrint [13:20:17]line Счет N : (1)347975 [13:20:17]line ИНН: 02508201610067 [13:20:17]line Контрольно-Кассовый Чек [13:20:17]line ПРОДАЖА [13:20:17]line ТРК (МРК, ГНК) : 42 [13:20:17]line Товар: 2710124130 [13:20:17]line Аи-92-К-5 [13:20:17]line 20.000 * 64.80 [13:20:17]line = 1296.00 [13:20:17]line НДС 12% НСП 1% [13:20:17]line > о реализуемом товаре [13:20:17]line ИТОГО: 1296.00 [13:20:17]line НСП 1% : 11.47 [13:20:17]line НДС 12% : 137.63 [13:20:17]line Наличными: 0.00 [13:20:17]line Безнал.: 1296.00 [13:20:17]line Место: АЗС № 108 "Партнер Нефть" [13:20:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:20:17]line СНО: Общий режим [13:20:17]line Чек 145 15.04.2024 13:20 [13:20:17]line Смена: 117 ФФД: 1.0 [13:20:17]line ЗНМ: 0300000027 [13:20:17]line РНМ: 0000138879044617 [13:20:17]line Версия ККМ: 001 [13:20:17]line Платежная система: KICB Банк [13:20:17]line ФМ: 0000000000963154 [13:20:17]line ФД: 29551 [13:20:17]line ФПД: 205801611095067 [13:20:17]line 1/tax-web-control/client/api/v1/ticket?date=20240415T132020&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29551&fm=205801611095067&tin=02508201610067®Number=0000138879044617&sum=129600 [13:20:17]Connected sock=10 [13:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B5 C4 07 01 6A 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 FA 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 94 29 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 73 00 00 35 04 06 00 BB 2C EB EC 6C 1B 9A EE F9 CD E0 E1 F2 AD [13:20:17]written 0, free lines is 4095 [13:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 31 86 47 00 8C 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 39 36 33 31 35 34 10 04 04 00 6F 73 00 00 F4 03 04 00 34 D4 1C 66 B6 04 01 00 00 A5 E3 85 32 15 AB 7A AA [13:20:17]CommunicateWithHost err = 0 [13:20:17]CheckOFDResponse [13:20:17]1017 (14) - 77093643461234 [13:20:17]1041 (16) - 0000000000963154 [13:20:17]1040 (4) - 29551 [13:20:17]1012 (4) - 15.04.2024 07:16 [13:20:17]1206 (1) - 0 [13:20:17]OFD Sender: Remove packet 29551 [13:20:17]ProducePacketName [13:20:17]name=ofd_packets/00029551 [13:20:17]NVStorageDeleteData [13:20:17]Write to MH i2c: 01 00 00 90 45 D5 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 90 45 00 00 00 00 00 E4 0C CC [13:20:17]RasterBufferAndPrint [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]line [13:20:17]written 0, free lines is 3307 [13:20:17]MH_Cut [13:20:17]Write to MH i2c: D1 01 00 97 45 01 AE [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 01 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: D1 01 00 97 45 00 AD [13:20:17]Write to MH i2c: 01 00 00 98 45 DD [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:18]OFD Sender: No OFD packet to send [13:20:18]*** Cut start [13:20:18]*** Partial cut [13:20:18]*** CUTSNS_PIN = 1 [13:20:18]*** CUTSNS_PIN = 0 [13:20:18]*** Brake cut motor [13:20:19]Read from MH i2c: 01 [13:20:19]MH_I2C_Read... [13:20:19]*** Stop cut motor [13:20:19]*** Cut end [13:20:19]Read from MH i2c: 01 07 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: 01 07 00 98 45 00 00 00 00 00 FF 0F F2 [13:20:19]process_action close_receipt done [13:20:19]requested_data is exist [13:20:19]produce_requested_data [13:20:19]requested_item fm.sn is exist - process it [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 11 00 00 [13:20:19]Write to MH i2c: E2 08 00 99 45 80 11 00 00 00 00 00 00 58 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 99 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [13:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:20:19]wFMCommunicate OK [13:20:19]requested_item fd.num is exist - process it [13:20:19]SAM_PROTO_GetFieldsCounters [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 13 00 00 [13:20:19]Write to MH i2c: E2 08 00 9A 45 80 13 00 00 00 00 00 00 5B [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 62 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 62 00 9A 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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 A3 [13:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_GetFieldsCounters done [13:20:19]requested_item shift.num is exist - process it [13:20:19]requested_item shift.opened is exist - process it [13:20:19]req_shift_opened [13:20:19]FM_GetShiftState [13:20:19]SAM_PROTO_GetShiftState [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 13 01 00 [13:20:19]Write to MH i2c: E2 08 00 9B 45 80 13 01 00 00 00 00 00 5D [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0E 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0E 00 9B 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 51 [13:20:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_GetShiftState done [13:20:19]FM_GetShiftState done [13:20:19]req_shift_opened done [13:20:19]requested_item shift.open_date is exist - process it [13:20:19]req_shift_open_date [13:20:19]req_shift_open_date done [13:20:19]produce_requested_data done [13:20:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:20:19]process_action_free close_receipt [13:20:19]json_value_free [13:20:19]json_value_free done [13:20:19]process_json_proto returns [13:20:19]Send response to host [13:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:20:19]free response buf [13:20:19]execute_script done [13:20:19]execute_script returns [13:20:19]free content buf [13:20:19]Sock 9.Close socket [13:20:19]Sock 9.Thread stoped [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:53]accept exits with 8 [13:22:53]New connection [13:22:53]New thread 3067112804 created [13:22:53]Thread 3066969444 joined [13:22:53]Waiting for new connection... [13:22:53] Sock 8.Parse request [13:22:53]Sock 8.Check first char [13:22:53]Sock 8.First char is OK [13:22:53]request: POST /json_proto HTTP/1.0 [13:22:53]Method: POST [13:22:53]URL: /json_proto [13:22:53]Method is POST - this is cgi request [13:22:53]url: /json_proto [13:22:53]query_string will be loaded in cgi processing [13:22:53]execute_cgi json_proto POST (null) [13:22:53]execute_cgi path=json_proto method=POST [13:22:53]POST find Content-Length [13:22:53]Host: 172.17.33.3:8080 [13:22:53]Content-Length: 1174 [13:22:53]Content-Type: application/json [13:22:53] [13:22:53]POST finish read [13:22:53]Found Content-Length = 1174 [13:22:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347978\u000A15.04.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099404\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]execute_script... [13:22:53]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347978\u000A15.04.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099404\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:53]POST & json_proto [13:22:53]process_json_proto [13:22:53]json parsed OK: [13:22:53]protocol is kg_v1.0 [13:22:53]action value=print_text [13:22:53]process_action print_text [13:22:53]cmd_print_text [13:22:53]ExternCall_PrintAddStr [13:22:53]wPrintStart [13:22:53]Write to MH i2c: 01 00 00 9C 45 E1 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 9C 45 00 00 00 00 00 FF 0F F6 [13:22:53]RasterBufferAndPrint [13:22:53]line *****ТОВАРНЫЙ ЧЕК***** [13:22:53]line АЗС 108 [13:22:53]line Партнер нефть [13:22:53]line 02508201610067 [13:22:53]line Кассир : Джумагулова Н. [13:22:53]line Счет N : (1)347978 [13:22:53]line 15.04.2024 13:04 [13:22:53]line ПРОДАЖА [13:22:53]line ТРК (МРК, ГНК): 42 [13:22:53]line Вид ГСМ : 2710124130 [13:22:53]line Аи-92-К-5 [13:22:53]line 10.000 x 64.80 [13:22:53]line ИТОГ: 648.00 [13:22:53]line Тип оплаты: Талоны: ТК ГПНА Online [13:22:53]line 30099404 [13:22:53]line ______________________ [13:22:53]line (подпись) [13:22:53]written 0, free lines is 4095 [13:22:54]Write to MH i2c: 01 00 00 B1 45 F6 [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: 01 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: 01 07 00 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: 01 07 00 B1 45 00 00 00 00 00 F6 0D 00 [13:22:54]RasterBufferAndPrint [13:22:54]line [13:22:54]line [13:22:54]line [13:22:54]line [13:22:54]line [13:22:54]written 0, free lines is 3576 [13:22:54]MH_Cut [13:22:54]Write to MH i2c: D1 01 00 B8 45 01 CF [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: D1 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: D1 01 00 [13:22:54]MH_I2C_Read... [13:22:54]Read from MH i2c: D1 01 00 B8 45 00 CE [13:22:54]Write to MH i2c: 01 00 00 B9 45 FE [13:22:54]Write i2c OK [13:22:54]MH_I2C_Read... [13:22:54]*** Cut start [13:22:54]*** Partial cut [13:22:54]*** CUTSNS_PIN = 1 [13:22:54]*** CUTSNS_PIN = 0 [13:22:54]*** Brake cut motor [13:22:55]Read from MH i2c: 01 [13:22:55]MH_I2C_Read... [13:22:55]*** Stop cut motor [13:22:55]*** Cut end [13:22:55]Read from MH i2c: 01 07 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 B9 45 00 00 00 00 00 FF 0F 13 [13:22:55]process_action print_text done [13:22:55]requested_data is exist [13:22:55]produce_requested_data [13:22:55]requested_item fm.sn is exist - process it [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 11 00 00 [13:22:55]Write to MH i2c: E2 08 00 BA 45 80 11 00 00 00 00 00 00 79 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 BA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [13:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:22:55]wFMCommunicate OK [13:22:55]requested_item fd.num is exist - process it [13:22:55]SAM_PROTO_GetFieldsCounters [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 00 00 [13:22:55]Write to MH i2c: E2 08 00 BB 45 80 13 00 00 00 00 00 00 7C [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 62 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 62 00 BB 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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 C4 [13:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetFieldsCounters done [13:22:55]requested_item shift.num is exist - process it [13:22:55]requested_item shift.opened is exist - process it [13:22:55]req_shift_opened [13:22:55]FM_GetShiftState [13:22:55]SAM_PROTO_GetShiftState [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 01 00 [13:22:55]Write to MH i2c: E2 08 00 BC 45 80 13 01 00 00 00 00 00 7E [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 BC 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 72 [13:22:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetShiftState done [13:22:55]FM_GetShiftState done [13:22:55]req_shift_opened done [13:22:55]requested_item shift.open_date is exist - process it [13:22:55]req_shift_open_date [13:22:55]req_shift_open_date done [13:22:55]produce_requested_data done [13:22:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:22:55]process_action_free print_text [13:22:55]json_value_free [13:22:55]json_value_free done [13:22:55]process_json_proto returns [13:22:55]Send response to host [13:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:22:55]free response buf [13:22:55]execute_script done [13:22:55]execute_script returns [13:22:55]free content buf [13:22:55]Sock 8.Close socket [13:22:55]Sock 8.Thread stoped [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:06]accept exits with 9 [13:23:06]New connection [13:23:06]New thread 3066969444 created [13:23:06]Thread 3067112804 joined [13:23:06]Waiting for new connection... [13:23:06] Sock 9.Parse request [13:23:06]Sock 9.Check first char [13:23:06]Sock 9.First char is OK [13:23:06]request: POST /json_proto HTTP/1.0 [13:23:06]Method: POST [13:23:06]URL: /json_proto [13:23:06]Method is POST - this is cgi request [13:23:06]url: /json_proto [13:23:06]query_string will be loaded in cgi processing [13:23:06]execute_cgi json_proto POST (null) [13:23:06]execute_cgi path=json_proto method=POST [13:23:06]POST find Content-Length [13:23:06]Host: 172.17.33.3:8080 [13:23:06]Content-Length: 1172 [13:23:06]Content-Type: application/json [13:23:06] [13:23:06]POST finish read [13:23:06]Found Content-Length = 1172 [13:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347977\u000A15.04.2024 13:04\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-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:06]execute_script... [13:23:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347977\u000A15.04.2024 13:04\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-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:06]POST & json_proto [13:23:06]process_json_proto [13:23:06]json parsed OK: [13:23:06]protocol is kg_v1.0 [13:23:06]action value=print_text [13:23:06]process_action print_text [13:23:06]cmd_print_text [13:23:06]ExternCall_PrintAddStr [13:23:06]wPrintStart [13:23:06]Write to MH i2c: 01 00 00 BD 45 02 [13:23:06]Write i2c OK [13:23:06]MH_I2C_Read... [13:23:06]Read from MH i2c: 01 [13:23:06]MH_I2C_Read... [13:23:06]Read from MH i2c: 01 07 00 [13:23:06]MH_I2C_Read... [13:23:06]Read from MH i2c: 01 07 00 BD 45 00 00 00 00 00 FF 0F 17 [13:23:06]RasterBufferAndPrint [13:23:06]line *****ТОВАРНЫЙ ЧЕК***** [13:23:06]line АЗС 108 [13:23:06]line Партнер нефть [13:23:06]line 02508201610067 [13:23:06]line Кассир : Джумагулова Н. [13:23:06]line Счет N : (1)347977 [13:23:06]line 15.04.2024 13:04 [13:23:06]line ПРОДАЖА [13:23:06]line ТРК (МРК, ГНК): 51 [13:23:06]line Вид ГСМ : 2710194210 [13:23:06]line ДТ-К-5 [13:23:06]line 13.720 x 72.90 [13:23:06]line ИТОГ: 1000.19 [13:23:06]line Тип оплаты: Талоны: ТК ГПНА Online [13:23:06]line 30131330 [13:23:06]line ______________________ [13:23:06]line (подпись) [13:23:06]written 0, free lines is 4095 [13:23:07]Write to MH i2c: 01 00 00 D2 45 17 [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: 01 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: 01 07 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: 01 07 00 D2 45 00 00 00 00 00 F3 0D 1E [13:23:07]RasterBufferAndPrint [13:23:07]line [13:23:07]line [13:23:07]line [13:23:07]line [13:23:07]line [13:23:07]written 0, free lines is 3573 [13:23:07]MH_Cut [13:23:07]Write to MH i2c: D1 01 00 D9 45 01 F0 [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: D1 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: D1 01 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: D1 01 00 D9 45 00 EF [13:23:07]Write to MH i2c: 01 00 00 DA 45 1F [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]*** Cut start [13:23:07]*** Partial cut [13:23:07]*** CUTSNS_PIN = 1 [13:23:07]*** CUTSNS_PIN = 0 [13:23:08]*** Brake cut motor [13:23:08]OFD Sender: No OFD packet to send [13:23:08]Read from MH i2c: 01 [13:23:08]MH_I2C_Read... [13:23:08]*** Stop cut motor [13:23:08]*** Cut end [13:23:08]Read from MH i2c: 01 07 00 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: 01 07 00 DA 45 00 00 00 00 00 FF 0F 34 [13:23:08]process_action print_text done [13:23:08]requested_data is exist [13:23:08]produce_requested_data [13:23:08]requested_item fm.sn is exist - process it [13:23:08]wFMCommunicate request_size=4 [13:23:08]MH_SAM_APDU [13:23:08]CAPDU: 80 11 00 00 [13:23:08]Write to MH i2c: E2 08 00 DB 45 80 11 00 00 00 00 00 00 9A [13:23:08]Write i2c OK [13:23:08]MH_I2C_Read... [13:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:08]Read from MH i2c: E2 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 17 00 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 17 00 DB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [13:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:23:08]wFMCommunicate OK [13:23:08]requested_item fd.num is exist - process it [13:23:08]SAM_PROTO_GetFieldsCounters [13:23:08]wFMCommunicate request_size=4 [13:23:08]MH_SAM_APDU [13:23:08]CAPDU: 80 13 00 00 [13:23:08]Write to MH i2c: E2 08 00 DC 45 80 13 00 00 00 00 00 00 9D [13:23:08]Write i2c OK [13:23:08]MH_I2C_Read... [13:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:08]Read from MH i2c: E2 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 62 00 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 62 00 DC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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 E5 [13:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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:23:08]wFMCommunicate OK [13:23:08]SAM_PROTO_GetFieldsCounters done [13:23:08]requested_item shift.num is exist - process it [13:23:08]requested_item shift.opened is exist - process it [13:23:08]req_shift_opened [13:23:08]FM_GetShiftState [13:23:08]SAM_PROTO_GetShiftState [13:23:08]wFMCommunicate request_size=4 [13:23:08]MH_SAM_APDU [13:23:08]CAPDU: 80 13 01 00 [13:23:08]Write to MH i2c: E2 08 00 DD 45 80 13 01 00 00 00 00 00 9F [13:23:08]Write i2c OK [13:23:08]MH_I2C_Read... [13:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:08]Read from MH i2c: E2 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 0E 00 [13:23:08]MH_I2C_Read... [13:23:08]Read from MH i2c: E2 0E 00 DD 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 93 [13:23:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:23:08]wFMCommunicate OK [13:23:08]SAM_PROTO_GetShiftState done [13:23:08]FM_GetShiftState done [13:23:08]req_shift_opened done [13:23:08]requested_item shift.open_date is exist - process it [13:23:08]req_shift_open_date [13:23:08]req_shift_open_date done [13:23:08]produce_requested_data done [13:23:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:23:08]process_action_free print_text [13:23:08]json_value_free [13:23:08]json_value_free done [13:23:08]process_json_proto returns [13:23:08]Send response to host [13:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:23:08]free response buf [13:23:08]execute_script done [13:23:08]execute_script returns [13:23:08]free content buf [13:23:08]Sock 9.Close socket [13:23:08]Sock 9.Thread stoped [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:07]accept exits with 8 [13:24:07]New connection [13:24:07]New thread 3067112804 created [13:24:07]Thread 3066969444 joined [13:24:07]Waiting for new connection... [13:24:07] Sock 8.Parse request [13:24:07]Sock 8.Check first char [13:24:07]Sock 8.First char is OK [13:24:07]request: POST /json_proto HTTP/1.0 [13:24:07]Method: POST [13:24:07]URL: /json_proto [13:24:07]Method is POST - this is cgi request [13:24:07]url: /json_proto [13:24:07]query_string will be loaded in cgi processing [13:24:07]execute_cgi json_proto POST (null) [13:24:07]execute_cgi path=json_proto method=POST [13:24:07]POST find Content-Length [13:24:07]Host: 172.17.33.3:8080 [13:24:07]Content-Length: 1175 [13:24:07]Content-Type: application/json [13:24:07] [13:24:07]POST finish read [13:24:07]Found Content-Length = 1175 [13:24:07]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347979\u000A15.04.2024 13:05\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:07]execute_script... [13:24:07]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347979\u000A15.04.2024 13:05\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:07]POST & json_proto [13:24:07]process_json_proto [13:24:07]json parsed OK: [13:24:07]protocol is kg_v1.0 [13:24:07]action value=print_text [13:24:07]process_action print_text [13:24:07]cmd_print_text [13:24:07]ExternCall_PrintAddStr [13:24:07]wPrintStart [13:24:07]Write to MH i2c: 01 00 00 DE 45 23 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 DE 45 00 00 00 00 00 FF 0F 38 [13:24:07]RasterBufferAndPrint [13:24:07]line *****ТОВАРНЫЙ ЧЕК***** [13:24:07]line АЗС 108 [13:24:07]line Партнер нефть [13:24:07]line 02508201610067 [13:24:07]line Кассир : Джумагулова Н. [13:24:07]line Счет N : (1)347979 [13:24:07]line 15.04.2024 13:05 [13:24:07]line ПРОДАЖА [13:24:07]line ТРК (МРК, ГНК): 33 [13:24:07]line Вид ГСМ : 2710124500 [13:24:07]line Аи-95-К-5 [13:24:07]line 41.160 x 72.90 [13:24:07]line ИТОГ: 3000.56 [13:24:07]line Тип оплаты: Талоны: ТК ГПНА Online [13:24:07]line 30042701 [13:24:07]line ______________________ [13:24:07]line (подпись) [13:24:07]written 0, free lines is 4095 [13:24:07]Write to MH i2c: 01 00 00 F3 45 38 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 F3 45 00 00 00 00 00 F6 0D 42 [13:24:07]RasterBufferAndPrint [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]line [13:24:07]written 0, free lines is 3576 [13:24:07]MH_Cut [13:24:07]Write to MH i2c: D1 01 00 FA 45 01 11 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 01 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: D1 01 00 FA 45 00 10 [13:24:07]Write to MH i2c: 01 00 00 FB 45 40 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:08]OFD Sender: No OFD packet to send [13:24:08]*** Cut start [13:24:08]*** Partial cut [13:24:08]*** CUTSNS_PIN = 1 [13:24:08]*** CUTSNS_PIN = 0 [13:24:08]*** Brake cut motor [13:24:09]Read from MH i2c: 01 [13:24:09]MH_I2C_Read... [13:24:09]*** Stop cut motor [13:24:09]*** Cut end [13:24:09]Read from MH i2c: 01 07 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 FB 45 00 00 00 00 00 FF 0F 55 [13:24:09]process_action print_text done [13:24:09]requested_data is exist [13:24:09]produce_requested_data [13:24:09]requested_item fm.sn is exist - process it [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 11 00 00 [13:24:09]Write to MH i2c: E2 08 00 FC 45 80 11 00 00 00 00 00 00 BB [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 FC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [13:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:24:09]wFMCommunicate OK [13:24:09]requested_item fd.num is exist - process it [13:24:09]SAM_PROTO_GetFieldsCounters [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 13 00 00 [13:24:09]Write to MH i2c: E2 08 00 FD 45 80 13 00 00 00 00 00 00 BE [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 62 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 62 00 FD 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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 06 [13:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 73 00 00 0E 04 04 00 75 00 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:24:09]wFMCommunicate OK [13:24:09]SAM_PROTO_GetFieldsCounters done [13:24:09]requested_item shift.num is exist - process it [13:24:09]requested_item shift.opened is exist - process it [13:24:09]req_shift_opened [13:24:09]FM_GetShiftState [13:24:09]SAM_PROTO_GetShiftState [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 13 01 00 [13:24:09]Write to MH i2c: E2 08 00 FE 45 80 13 01 00 00 00 00 00 C0 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 0E 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 0E 00 FE 45 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B4 [13:24:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:24:09]wFMCommunicate OK [13:24:09]SAM_PROTO_GetShiftState done [13:24:09]FM_GetShiftState done [13:24:09]req_shift_opened done [13:24:09]requested_item shift.open_date is exist - process it [13:24:09]req_shift_open_date [13:24:09]req_shift_open_date done [13:24:09]produce_requested_data done [13:24:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:24:09]process_action_free print_text [13:24:09]json_value_free [13:24:09]json_value_free done [13:24:09]process_json_proto returns [13:24:09]Send response to host [13:24:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29551,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:24:09]free response buf [13:24:09]execute_script done [13:24:09]execute_script returns [13:24:09]free content buf [13:24:09]Sock 8.Close socket [13:24:09]Sock 8.Thread stoped [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:41]accept exits with 9 [13:35:41]New connection [13:35:41]New thread 3066969444 created [13:35:41]Thread 3067112804 joined [13:35:41]Waiting for new connection... [13:35:41] Sock 9.Parse request [13:35:41]Sock 9.Check first char [13:35:41]Sock 9.First char is OK [13:35:41]request: POST /json_proto HTTP/1.0 [13:35:41]Method: POST [13:35:41]URL: /json_proto [13:35:41]Method is POST - this is cgi request [13:35:41]url: /json_proto [13:35:41]query_string will be loaded in cgi processing [13:35:41]execute_cgi json_proto POST (null) [13:35:41]execute_cgi path=json_proto method=POST [13:35:41]POST find Content-Length [13:35:41]Host: 172.17.33.3:8080 [13:35:41]Content-Length: 793 [13:35:41]Content-Type: application/json [13:35:41] [13:35:41]POST finish read [13:35:41]Found Content-Length = 793 [13:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]execute_script... [13:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:41]POST & json_proto [13:35:41]process_json_proto [13:35:41]json parsed OK: [13:35:41]protocol is kg_v1.0 [13:35:41]action value=close_receipt [13:35:41]process_action close_receipt [13:35:41]cmd_close_receipt [13:35:41]MH_GetDate [13:35:41]Write to MH i2c: F0 00 00 FF 45 33 [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: F0 09 00 FF 45 00 32 2D 1D 66 23 5B 8F 65 90 [13:35:41]GetLastDocTimeStamp 1713187220 [13:35:41]current date 1713188146 [13:35:41]FM_GetShiftState [13:35:41]SAM_PROTO_GetShiftState [13:35:41]wFMCommunicate request_size=4 [13:35:41]MH_SAM_APDU [13:35:41]CAPDU: 80 13 01 00 [13:35:41]Write to MH i2c: E2 08 00 00 46 80 13 01 00 00 00 00 00 C3 [13:35:41]Write i2c OK [13:35:41]MH_I2C_Read... [13:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:41]Read from MH i2c: E2 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 [13:35:41]MH_I2C_Read... [13:35:41]Read from MH i2c: E2 0E 00 00 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B7 [13:35:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:35:41]wFMCommunicate OK [13:35:41]SAM_PROTO_GetShiftState done [13:35:41]FM_GetShiftState done [13:35:41]opened in 1713140468 [13:35:41]opened+sec_in_day 1713226868 [13:35:41]quantity*price = 120009 [13:35:41]sum+1 = 120011 [13:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.10 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 146 15.04.2024 13:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29552 ФПД: 208665536429518 1/tax-web-control/client/api/v1/ticket?date=20240415T133546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29552&fm=208665536429518&tin=02508201610067®Number=0000138879044617&sum=120010 [13:35:42]StoreToDocumentArchive [13:35:42]shift 117 fd 29552 [13:35:42]save to /storage/0117/doc_00029552 [13:35:42]save last doc name /storage/0117/doc_00029552 to /storage/kkm_last_doc_name [13:35:42]save OK [13:35:42]Clear old archive folders... [13:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:42]tlvbuf is B6F7C7C0 [13:35:42]SAM_PROTO_ClearQueue [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 09 00 00 [13:35:42]Write to MH i2c: E2 08 00 0D 46 80 09 00 00 00 00 00 00 C5 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 0D 46 00 90 00 C7 [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]SAM_PROTO_ClearQueue done [13:35:42]KKMCreateOFDPacket [13:35:42]OFDProtocolAddRootSTLVToBuf [13:35:42]FM_MakeSignedData [13:35:42]FM_MakeSignedData [13:35:42]SAM_PROTO_SignData [13:35:42]wFMCommunicate request_size=4 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 01 02 [13:35:42]Write to MH i2c: E2 08 00 0E 46 80 0D 01 02 00 00 00 00 CD [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:42]Read from MH i2c: E2 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 [13:35:42]MH_I2C_Read... [13:35:42]Read from MH i2c: E2 03 00 0E 46 00 90 00 C8 [13:35:42]RAPDU: 90 00 [13:35:42]wFMCommunicate OK [13:35:42]wFMCommunicate request_size=255 [13:35:42]MH_SAM_APDU [13:35:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 32 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 73 00 00 35 04 06 00 BD [13:35:42]Write to MH i2c: E2 02 01 0F 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 32 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 73 00 00 35 04 06 00 BD 00 00 86 [13:35:42]Write i2c OK [13:35:42]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 0F 46 00 90 00 C9 [13:35:43]RAPDU: 90 00 [13:35:43]wFMCommunicate OK [13:35:43]wFMCommunicate request_size=10 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 0D 02 02 05 C7 BB 2C FD CE [13:35:43]Write to MH i2c: E2 0D 00 10 46 80 0D 02 02 05 00 C7 BB 2C FD CE 00 00 53 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [13:35:43]RAPDU: 90 00 [13:35:43]wFMCommunicate OK [13:35:43]wFMCommunicate request_size=4 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 0D 03 02 [13:35:43]Write to MH i2c: E2 08 00 11 46 80 0D 03 02 00 00 00 00 D2 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0B 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 0B 00 11 46 00 3B 0D 6C 23 33 D5 3C 39 90 00 27 [13:35:43]RAPDU: 3B 0D 6C 23 33 D5 3C 39 90 00 [13:35:43]wFMCommunicate OK [13:35:43]SAM_PROTO_SignData done [13:35:43]FM_MakeSignedData done [13:35:43]CreateOFDProtocolMessage [13:35:43]wFMCommunicate request_size=4 [13:35:43]MH_SAM_APDU [13:35:43]CAPDU: 80 11 00 00 [13:35:43]Write to MH i2c: E2 08 00 12 46 80 11 00 00 00 00 00 00 D2 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:43]Read from MH i2c: E2 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 17 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: E2 17 00 12 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [13:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:35:43]wFMCommunicate OK [13:35:43]CreateOFDProtocolMessage done [13:35:43]OFDSenderStorePacket 29552 [13:35:43]StoreOFDPacket docnum=29552 [13:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7A A1 07 01 D7 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 32 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 73 00 00 35 04 06 00 BD C7 BB 2C FD CE 3B 0D 6C 23 33 D5 3C 39 [13:35:43]CheckFolder [13:35:43]dirname=/storage/ofd_packets [13:35:43]CheckFolder done [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00029552 [13:35:43]NVStorageSaveData ofd_packets/00029552 [13:35:43]File name is /storage/ofd_packets/00029552 [13:35:43]Write 301 bytes [13:35:43]NVStorageSaveData done [13:35:43]OFDSenderStorePacket done [13:35:43]KKMCreateOFDPacket done [13:35:43]NVStorageSaveData kkm_last_timestamp [13:35:43]File name is /storage/kkm_last_timestamp [13:35:43]Write 4 bytes [13:35:43]NVStorageSaveData done [13:35:43]ExternCall_PrintAddStr [13:35:43]wPrintStart [13:35:43]Write to MH i2c: 01 00 00 13 46 59 [13:35:43]Write i2c OK [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 [13:35:43]MH_I2C_Read... [13:35:43]Read from MH i2c: 01 07 00 13 46 00 00 00 00 00 FF 0F 6E [13:35:43]RasterBufferAndPrint [13:35:43]line Счет N : (1)347980 [13:35:43]line ИНН: 02508201610067 [13:35:43]line Контрольно-Кассовый Чек [13:35:43]line ПРОДАЖА [13:35:43]line ТРК (МРК, ГНК) : 13 [13:35:43]line Товар: 2710124130 [13:35:43]line Аи-92-К-5 [13:35:43]line 18.520 * 64.80 [13:35:43]line = 1200.10 [13:35:43]line НДС 12% НСП 1% [13:35:43]line > о реализуемом товаре [13:35:43]line ИТОГО: 1200.10 [13:35:43]line НСП 1% : 10.62 [13:35:43]line НДС 12% : 127.44 [13:35:43]line Наличными: 0.00 [13:35:43]line Безнал.: 1200.10 [13:35:43]line Место: АЗС № 108 "Партнер Нефть" [13:35:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:35:43]line СНО: Общий режим [13:35:43]line Чек 146 15.04.2024 13:35 [13:35:43]line Смена: 117 ФФД: 1.0 [13:35:43]line ЗНМ: 0300000027 [13:35:43]line РНМ: 0000138879044617 [13:35:43]line Версия ККМ: 001 [13:35:43]line Платежная система: KICB Банк [13:35:43]line ФМ: 0000000000963154 [13:35:43]line ФД: 29552 [13:35:43]line ФПД: 208665536429518 [13:35:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T133546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29552&fm=208665536429518&tin=02508201610067®Number=0000138879044617&sum=120010 [13:35:43]OFD Sender: Processing packet 29552 [packets to send 8, broken 7] [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00029552 [13:35:43]OFD Sender: To server: pG, [13:35:43]CommunicateWithHost lk.salyk.kg:30040 [13:35:43]ConnectInit lk.salyk.kg [13:35:43]written 0, free lines is 4095 [13:35:43]Connected sock=10 [13:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7A A1 07 01 D7 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 32 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 73 00 00 35 04 06 00 BD C7 BB 2C FD CE 3B 0D 6C 23 33 D5 3C 39 [13:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 2A 47 00 68 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 39 36 33 31 35 34 10 04 04 00 70 73 00 00 F4 03 04 00 D3 D7 1C 66 B6 04 01 00 00 01 B1 B4 B9 98 32 9E 10 [13:35:43]CommunicateWithHost err = 0 [13:35:43]CheckOFDResponse [13:35:43]1017 (14) - 77093643461234 [13:35:43]1041 (16) - 0000000000963154 [13:35:43]1040 (4) - 29552 [13:35:43]1012 (4) - 15.04.2024 07:31 [13:35:43]1206 (1) - 0 [13:35:43]OFD Sender: Remove packet 29552 [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00029552 [13:35:43]NVStorageDeleteData [13:35:44]Write to MH i2c: 01 00 00 3C 46 82 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: 01 07 00 3C 46 00 00 00 00 00 EC 0C 81 [13:35:44]RasterBufferAndPrint [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]line [13:35:44]written 0, free lines is 3314 [13:35:44]MH_Cut [13:35:44]Write to MH i2c: D1 01 00 43 46 01 5B [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 01 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: D1 01 00 43 46 00 5A [13:35:44]Write to MH i2c: 01 00 00 44 46 8A [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]OFD Sender: No OFD packet to send [13:35:44]*** Cut start [13:35:44]*** Partial cut [13:35:44]*** CUTSNS_PIN = 1 [13:35:44]*** CUTSNS_PIN = 0 [13:35:45]*** Brake cut motor [13:35:45]Read from MH i2c: 01 [13:35:45]MH_I2C_Read... [13:35:45]*** Stop cut motor [13:35:45]*** Cut end [13:35:45]Read from MH i2c: 01 07 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: 01 07 00 44 46 00 00 00 00 00 FF 0F 9F [13:35:45]process_action close_receipt done [13:35:45]requested_data is exist [13:35:45]produce_requested_data [13:35:45]requested_item fm.sn is exist - process it [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 11 00 00 [13:35:45]Write to MH i2c: E2 08 00 45 46 80 11 00 00 00 00 00 00 05 [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 17 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 17 00 45 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [13:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:35:45]wFMCommunicate OK [13:35:45]requested_item fd.num is exist - process it [13:35:45]SAM_PROTO_GetFieldsCounters [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 13 00 00 [13:35:45]Write to MH i2c: E2 08 00 46 46 80 13 00 00 00 00 00 00 08 [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 62 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 62 00 46 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 73 00 00 0E 04 04 00 75 00 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 54 [13:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:45]wFMCommunicate OK [13:35:45]SAM_PROTO_GetFieldsCounters done [13:35:45]requested_item shift.num is exist - process it [13:35:45]requested_item shift.opened is exist - process it [13:35:45]req_shift_opened [13:35:45]FM_GetShiftState [13:35:45]SAM_PROTO_GetShiftState [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 13 01 00 [13:35:45]Write to MH i2c: E2 08 00 47 46 80 13 01 00 00 00 00 00 0A [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 0E 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 0E 00 47 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FE [13:35:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:35:45]wFMCommunicate OK [13:35:45]SAM_PROTO_GetShiftState done [13:35:45]FM_GetShiftState done [13:35:45]req_shift_opened done [13:35:45]requested_item shift.open_date is exist - process it [13:35:45]req_shift_open_date [13:35:45]req_shift_open_date done [13:35:45]produce_requested_data done [13:35:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29552,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:35:45]process_action_free close_receipt [13:35:45]json_value_free [13:35:45]json_value_free done [13:35:45]process_json_proto returns [13:35:45]Send response to host [13:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29552,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:35:45]free response buf [13:35:45]execute_script done [13:35:45]execute_script returns [13:35:45]free content buf [13:35:45]Sock 9.Close socket [13:35:45]Sock 9.Thread stoped [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:12]accept exits with 8 [13:36:12]New connection [13:36:12]New thread 3067112804 created [13:36:12]Thread 3066969444 joined [13:36:12]Waiting for new connection... [13:36:12] Sock 8.Parse request [13:36:12]Sock 8.Check first char [13:36:12]Sock 8.First char is OK [13:36:12]request: POST /json_proto HTTP/1.0 [13:36:12]Method: POST [13:36:12]URL: /json_proto [13:36:12]Method is POST - this is cgi request [13:36:12]url: /json_proto [13:36:12]query_string will be loaded in cgi processing [13:36:12]execute_cgi json_proto POST (null) [13:36:12]execute_cgi path=json_proto method=POST [13:36:12]POST find Content-Length [13:36:12]Host: 172.17.33.3:8080 [13:36:12]Content-Length: 678 [13:36:12]Content-Type: application/json [13:36:12] [13:36:12]POST finish read [13:36:12]Found Content-Length = 678 [13:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]execute_script... [13:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:12]POST & json_proto [13:36:12]process_json_proto [13:36:12]json parsed OK: [13:36:12]protocol is kg_v1.0 [13:36:12]action value=close_receipt [13:36:12]process_action close_receipt [13:36:12]cmd_close_receipt [13:36:12]MH_GetDate [13:36:12]Write to MH i2c: F0 00 00 48 46 7D [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: F0 09 00 48 46 00 51 2D 1D 66 23 5B 8F 65 F9 [13:36:12]GetLastDocTimeStamp 1713188146 [13:36:12]current date 1713188177 [13:36:12]FM_GetShiftState [13:36:12]SAM_PROTO_GetShiftState [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 13 01 00 [13:36:12]Write to MH i2c: E2 08 00 49 46 80 13 01 00 00 00 00 00 0C [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0E 00 49 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 00 [13:36:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_GetShiftState done [13:36:12]FM_GetShiftState done [13:36:12]opened in 1713140468 [13:36:12]opened+sec_in_day 1713226868 [13:36:12]quantity*price = 70048 [13:36:12]sum+1 = 70050 [13:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 147 15.04.2024 13:36 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29553 ФПД: 51471978155955 1/tax-web-control/client/api/v1/ticket?date=20240415T133617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29553&fm=51471978155955&tin=02508201610067®Number=0000138879044617&sum=70000 [13:36:13]StoreToDocumentArchive [13:36:13]shift 117 fd 29553 [13:36:13]save to /storage/0117/doc_00029553 [13:36:13]save last doc name /storage/0117/doc_00029553 to /storage/kkm_last_doc_name [13:36:13]save OK [13:36:13]Clear old archive folders... [13:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:13]tlvbuf is 002A7070 [13:36:13]SAM_PROTO_ClearQueue [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 09 00 00 [13:36:13]Write to MH i2c: E2 08 00 56 46 80 09 00 00 00 00 00 00 0E [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 56 46 00 90 00 10 [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_ClearQueue done [13:36:13]KKMCreateOFDPacket [13:36:13]OFDProtocolAddRootSTLVToBuf [13:36:13]FM_MakeSignedData [13:36:13]FM_MakeSignedData [13:36:13]SAM_PROTO_SignData [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 0D 01 02 [13:36:13]Write to MH i2c: E2 08 00 57 46 80 0D 01 02 00 00 00 00 16 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 03 00 57 46 00 90 00 11 [13:36:13]RAPDU: 90 00 [13:36:13]wFMCommunicate OK [13:36:13]wFMCommunicate request_size=255 [13:36:13]MH_SAM_APDU [13:36: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 93 00 00 00 F4 03 04 00 51 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 73 00 00 35 04 06 00 2E [13:36:13]Write to MH i2c: E2 02 01 58 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 93 00 00 00 F4 03 04 00 51 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 73 00 00 35 04 06 00 2E 00 00 76 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 58 46 00 90 00 12 [13:36:14]RAPDU: 90 00 [13:36:14]wFMCommunicate OK [13:36:14]wFMCommunicate request_size=10 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 0D 02 02 05 D0 40 F9 4F B3 [13:36:14]Write to MH i2c: E2 0D 00 59 46 80 0D 02 02 05 00 D0 40 F9 4F B3 00 00 2E [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 59 46 00 90 00 13 [13:36:14]RAPDU: 90 00 [13:36:14]wFMCommunicate OK [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 0D 03 02 [13:36:14]Write to MH i2c: E2 08 00 5A 46 80 0D 03 02 00 00 00 00 1B [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0B 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0B 00 5A 46 00 4C 09 DE 1F EC 56 0C D3 90 00 8F [13:36:14]RAPDU: 4C 09 DE 1F EC 56 0C D3 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_SignData done [13:36:14]FM_MakeSignedData done [13:36:14]CreateOFDProtocolMessage [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 11 00 00 [13:36:14]Write to MH i2c: E2 08 00 5B 46 80 11 00 00 00 00 00 00 1B [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 5B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [13:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:36:14]wFMCommunicate OK [13:36:14]CreateOFDProtocolMessage done [13:36:14]OFDSenderStorePacket 29553 [13:36:14]StoreOFDPacket docnum=29553 [13:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B AF 07 01 48 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 93 00 00 00 F4 03 04 00 51 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 73 00 00 35 04 06 00 2E D0 40 F9 4F B3 4C 09 DE 1F EC 56 0C D3 [13:36:14]CheckFolder [13:36:14]dirname=/storage/ofd_packets [13:36:14]CheckFolder done [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00029553 [13:36:14]NVStorageSaveData ofd_packets/00029553 [13:36:14]File name is /storage/ofd_packets/00029553 [13:36:14]Write 301 bytes [13:36:14]NVStorageSaveData done [13:36:14]OFDSenderStorePacket done [13:36:14]KKMCreateOFDPacket done [13:36:14]NVStorageSaveData kkm_last_timestamp [13:36:14]File name is /storage/kkm_last_timestamp [13:36:14]Write 4 bytes [13:36:14]NVStorageSaveData done [13:36:14]ExternCall_PrintAddStr [13:36:14]wPrintStart [13:36:14]Write to MH i2c: 01 00 00 5C 46 A2 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 5C 46 00 00 00 00 00 FF 0F B7 [13:36:14]RasterBufferAndPrint [13:36:14]line Счет N : (1)347981 [13:36:14]line ИНН: 02508201610067 [13:36:14]line Контрольно-Кассовый Чек [13:36:14]line ПРОДАЖА [13:36:14]line ТРК (МРК, ГНК) : 32 [13:36:14]line Товар: 2710124130 [13:36:14]line Аи-92-К-5 [13:36:14]line 10.810 * 64.80 [13:36:14]line = 700.49 [13:36:14]line НДС 12% НСП 1% [13:36:14]line > о реализуемом товаре [13:36:14]line ОКРУГЛЕНИЕ: -0.49 [13:36:14]line ИТОГО: 700.00 [13:36:14]line Внесено: 700.00 [13:36:14]line СДАЧА: 0.00 [13:36:14]line НСП 1% : 6.20 [13:36:14]line НДС 12% : 74.39 [13:36:14]line Наличными: 700.00 [13:36:14]line Безнал.: 0.00 [13:36:14]line Место: АЗС № 108 "Партнер Нефть" [13:36:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:36:14]line СНО: Общий режим [13:36:14]line Чек 147 15.04.2024 13:36 [13:36:14]line Смена: 117 ФФД: 1.0 [13:36:14]line ЗНМ: 0300000027 [13:36:14]line РНМ: 0000138879044617 [13:36:14]line Версия ККМ: 001 [13:36:14]line ФМ: 0000000000963154 [13:36:14]line ФД: 29553 [13:36:14]line ФПД: 51471978155955 [13:36:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T133617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29553&fm=51471978155955&tin=02508201610067®Number=0000138879044617&sum=70000 [13:36:14]OFD Sender: Processing packet 29553 [packets to send 8, broken 7] [13:36:14]ProducePacketName [13:36:14]name=ofd_packets/00029553 [13:36:14]OFD Sender: To server: pG, [13:36:14]CommunicateWithHost lk.salyk.kg:30040 [13:36:14]ConnectInit lk.salyk.kg [13:36:14]written 0, free lines is 4095 [13:36:14]Connected sock=9 [13:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B AF 07 01 48 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 93 00 00 00 F4 03 04 00 51 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 73 00 00 35 04 06 00 2E D0 40 F9 4F B3 4C 09 DE 1F EC 56 0C D3 [13:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 84 90 47 00 F8 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 73 00 00 F4 03 04 00 F2 D7 1C 66 B6 04 01 00 00 99 59 5E 99 94 F5 D9 51 [13:36:15]CommunicateWithHost err = 0 [13:36:15]CheckOFDResponse [13:36:15]1017 (14) - 77093643461234 [13:36:15]1041 (16) - 0000000000963154 [13:36:15]1040 (4) - 29553 [13:36:15]1012 (4) - 15.04.2024 07:32 [13:36:15]1206 (1) - 0 [13:36:15]OFD Sender: Remove packet 29553 [13:36:15]ProducePacketName [13:36:15]name=ofd_packets/00029553 [13:36:15]NVStorageDeleteData [13:36:15]Write to MH i2c: 01 00 00 86 46 CC [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 86 46 00 00 00 00 00 DB 0C BA [13:36:15]RasterBufferAndPrint [13:36:15]line [13:36:15]line [13:36:15]line [13:36:15]line [13:36:15]line [13:36:15]written 0, free lines is 3301 [13:36:15]MH_Cut [13:36:15]Write to MH i2c: D1 01 00 8D 46 01 A5 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: D1 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: D1 01 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: D1 01 00 8D 46 00 A4 [13:36:15]Write to MH i2c: 01 00 00 8E 46 D4 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]OFD Sender: No OFD packet to send [13:36:15]*** Cut start [13:36:15]*** Partial cut [13:36:15]*** CUTSNS_PIN = 1 [13:36:16]*** CUTSNS_PIN = 0 [13:36:16]*** Brake cut motor [13:36:16]Read from MH i2c: 01 [13:36:16]MH_I2C_Read... [13:36:16]*** Stop cut motor [13:36:16]*** Cut end [13:36:16]Read from MH i2c: 01 07 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 07 00 8E 46 00 00 00 00 00 FF 0F E9 [13:36:16]process_action close_receipt done [13:36:16]requested_data is exist [13:36:16]produce_requested_data [13:36:16]requested_item fm.sn is exist - process it [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 11 00 00 [13:36:16]Write to MH i2c: E2 08 00 8F 46 80 11 00 00 00 00 00 00 4F [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 17 00 8F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [13:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:36:16]wFMCommunicate OK [13:36:16]requested_item fd.num is exist - process it [13:36:16]SAM_PROTO_GetFieldsCounters [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 00 00 [13:36:16]Write to MH i2c: E2 08 00 90 46 80 13 00 00 00 00 00 00 52 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 62 00 90 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 73 00 00 0E 04 04 00 75 00 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 A2 [13:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 73 00 00 0E 04 04 00 75 00 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:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetFieldsCounters done [13:36:16]requested_item shift.num is exist - process it [13:36:16]requested_item shift.opened is exist - process it [13:36:16]req_shift_opened [13:36:16]FM_GetShiftState [13:36:16]SAM_PROTO_GetShiftState [13:36:16]wFMCommunicate request_size=4 [13:36:16]MH_SAM_APDU [13:36:16]CAPDU: 80 13 01 00 [13:36:16]Write to MH i2c: E2 08 00 91 46 80 13 01 00 00 00 00 00 54 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:16]Read from MH i2c: E2 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: E2 0E 00 91 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 48 [13:36:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:36:16]wFMCommunicate OK [13:36:16]SAM_PROTO_GetShiftState done [13:36:16]FM_GetShiftState done [13:36:16]req_shift_opened done [13:36:16]requested_item shift.open_date is exist - process it [13:36:16]req_shift_open_date [13:36:16]req_shift_open_date done [13:36:16]produce_requested_data done [13:36:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29553,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:36:16]process_action_free close_receipt [13:36:16]json_value_free [13:36:16]json_value_free done [13:36:16]process_json_proto returns [13:36:16]Send response to host [13:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29553,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:36:16]free response buf [13:36:16]execute_script done [13:36:16]execute_script returns [13:36:16]free content buf [13:36:16]Sock 8.Close socket [13:36:16]Sock 8.Thread stoped [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:06]accept exits with 10 [13:39:06]New connection [13:39:06]New thread 3066969444 created [13:39:06]Thread 3067112804 joined [13:39:06]Waiting for new connection... [13:39:06] Sock 10.Parse request [13:39:06]Sock 10.Check first char [13:39:06]Sock 10.First char is OK [13:39:06]request: POST /json_proto HTTP/1.0 [13:39:06]Method: POST [13:39:06]URL: /json_proto [13:39:06]Method is POST - this is cgi request [13:39:06]url: /json_proto [13:39:06]query_string will be loaded in cgi processing [13:39:06]execute_cgi json_proto POST (null) [13:39:06]execute_cgi path=json_proto method=POST [13:39:06]POST find Content-Length [13:39:06]Host: 172.17.33.3:8080 [13:39:06]Content-Length: 819 [13:39:06]Content-Type: application/json [13:39:06] [13:39:06]POST finish read [13:39:06]Found Content-Length = 819 [13:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:06]execute_script... [13:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:06]POST & json_proto [13:39:06]process_json_proto [13:39:06]json parsed OK: [13:39:06]protocol is kg_v1.0 [13:39:06]action value=close_receipt [13:39:06]process_action close_receipt [13:39:06]cmd_close_receipt [13:39:06]MH_GetDate [13:39:06]Write to MH i2c: F0 00 00 92 46 C7 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: F0 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: F0 09 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: F0 09 00 92 46 00 FF 2D 1D 66 23 5B 8F 65 F1 [13:39:06]GetLastDocTimeStamp 1713188177 [13:39:06]current date 1713188351 [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 93 46 80 13 01 00 00 00 00 00 56 [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 93 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [13:39:06]RAPDU: 09 00 01 F4 72 1C 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]opened in 1713140468 [13:39:06]opened+sec_in_day 1713226868 [13:39:06]quantity*price = 100051 [13:39:06]sum+1 = 100052 [13:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 148 15.04.2024 13:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29554 ФПД: 237666366754136 1/tax-web-control/client/api/v1/ticket?date=20240415T133911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29554&fm=237666366754136&tin=02508201610067®Number=0000138879044617&sum=100051 [13:39:07]StoreToDocumentArchive [13:39:07]shift 117 fd 29554 [13:39:07]save to /storage/0117/doc_00029554 [13:39:07]save last doc name /storage/0117/doc_00029554 to /storage/kkm_last_doc_name [13:39:07]save OK [13:39:07]Clear old archive folders... [13:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:07]tlvbuf is B6DCF700 [13:39:07]SAM_PROTO_ClearQueue [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 09 00 00 [13:39:07]Write to MH i2c: E2 08 00 A0 46 80 09 00 00 00 00 00 00 58 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 A0 46 00 90 00 5A [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]SAM_PROTO_ClearQueue done [13:39:07]KKMCreateOFDPacket [13:39:07]OFDProtocolAddRootSTLVToBuf [13:39:07]FM_MakeSignedData [13:39:07]FM_MakeSignedData [13:39:07]SAM_PROTO_SignData [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 01 02 [13:39:07]Write to MH i2c: E2 08 00 A1 46 80 0D 01 02 00 00 00 00 60 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 A1 46 00 90 00 5B [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=255 [13:39:07]MH_SAM_APDU [13:39: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 FF 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 73 00 00 35 04 06 00 D8 [13:39:07]Write to MH i2c: E2 02 01 A2 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 FF 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 73 00 00 35 04 06 00 D8 00 00 21 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 A2 46 00 90 00 5C [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=10 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 02 02 05 28 03 5D 8D 58 [13:39:07]Write to MH i2c: E2 0D 00 A3 46 80 0D 02 02 05 00 28 03 5D 8D 58 00 00 DA [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 03 02 [13:39:07]Write to MH i2c: E2 08 00 A4 46 80 0D 03 02 00 00 00 00 65 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 A4 46 00 4D E2 A6 4A FE 2C 46 B2 90 00 A7 [13:39:07]RAPDU: 4D E2 A6 4A FE 2C 46 B2 90 00 [13:39:07]wFMCommunicate OK [13:39:07]SAM_PROTO_SignData done [13:39:07]FM_MakeSignedData done [13:39:07]CreateOFDProtocolMessage [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 11 00 00 [13:39:07]Write to MH i2c: E2 08 00 A5 46 80 11 00 00 00 00 00 00 65 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:08]Read from MH i2c: E2 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 17 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: E2 17 00 A5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [13:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:39:08]wFMCommunicate OK [13:39:08]CreateOFDProtocolMessage done [13:39:08]OFDSenderStorePacket 29554 [13:39:08]StoreOFDPacket docnum=29554 [13:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9C F3 07 01 AD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 FF 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 73 00 00 35 04 06 00 D8 28 03 5D 8D 58 4D E2 A6 4A FE 2C 46 B2 [13:39:08]CheckFolder [13:39:08]dirname=/storage/ofd_packets [13:39:08]CheckFolder done [13:39:08]ProducePacketName [13:39:08]name=ofd_packets/00029554 [13:39:08]NVStorageSaveData ofd_packets/00029554 [13:39:08]File name is /storage/ofd_packets/00029554 [13:39:08]Write 301 bytes [13:39:08]NVStorageSaveData done [13:39:08]OFDSenderStorePacket done [13:39:08]KKMCreateOFDPacket done [13:39:08]NVStorageSaveData kkm_last_timestamp [13:39:08]File name is /storage/kkm_last_timestamp [13:39:08]Write 4 bytes [13:39:08]NVStorageSaveData done [13:39:08]ExternCall_PrintAddStr [13:39:08]wPrintStart [13:39:08]Write to MH i2c: 01 00 00 A6 46 EC [13:39:08]Write i2c OK [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 07 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 07 00 A6 46 00 00 00 00 00 FF 0F 01 [13:39:08]RasterBufferAndPrint [13:39:08]line Счет N : (1)347982 [13:39:08]line ИНН: 02508201610067 [13:39:08]line Контрольно-Кассовый Чек [13:39:08]line ПРОДАЖА [13:39:08]line ТРК (МРК, ГНК) : 42 [13:39:08]line Товар: 2710124130 [13:39:08]line Аи-92-К-5 [13:39:08]line 15.440 * 64.80 [13:39:08]line = 1000.51 [13:39:08]line НДС 12% НСП 1% [13:39:08]line > о реализуемом товаре [13:39:08]line ИТОГО: 1000.51 [13:39:08]line НСП 1% : 8.85 [13:39:08]line НДС 12% : 106.25 [13:39:08]line Наличными: 0.00 [13:39:08]line Безнал.: 1000.51 [13:39:08]line Место: АЗС № 108 "Партнер Нефть" [13:39:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:39:08]line СНО: Общий режим [13:39:08]line Чек 148 15.04.2024 13:39 [13:39:08]line Смена: 117 ФФД: 1.0 [13:39:08]line ЗНМ: 0300000027 [13:39:08]line РНМ: 0000138879044617 [13:39:08]line Версия ККМ: 001 [13:39:08]line Платежная система: Бакай Банк [13:39:08]line ФМ: 0000000000963154 [13:39:08]line ФД: 29554 [13:39:08]line ФПД: 237666366754136 [13:39:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T133911&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29554&fm=237666366754136&tin=02508201610067®Number=0000138879044617&sum=100051 [13:39:08]OFD Sender: Processing packet 29554 [packets to send 8, broken 7] [13:39:08]ProducePacketName [13:39:08]name=ofd_packets/00029554 [13:39:08]OFD Sender: To server: pG, [13:39:08]CommunicateWithHost lk.salyk.kg:30040 [13:39:08]ConnectInit lk.salyk.kg [13:39:08]written 0, free lines is 4095 [13:39:08]Connected sock=9 [13:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9C F3 07 01 AD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 FF 2D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 73 00 00 35 04 06 00 D8 28 03 5D 8D 58 4D E2 A6 4A FE 2C 46 B2 [13:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 16 C1 47 00 06 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 73 00 00 F4 03 04 00 A0 D8 1C 66 B6 04 01 00 00 EF 18 2C 7A E4 7D 10 CB [13:39:08]CommunicateWithHost err = 0 [13:39:08]CheckOFDResponse [13:39:08]1017 (14) - 77093643461234 [13:39:08]1041 (16) - 0000000000963154 [13:39:08]1040 (4) - 29554 [13:39:08]1012 (4) - 15.04.2024 07:34 [13:39:08]1206 (1) - 0 [13:39:08]OFD Sender: Remove packet 29554 [13:39:08]ProducePacketName [13:39:08]name=ofd_packets/00029554 [13:39:08]NVStorageDeleteData [13:39:08]Write to MH i2c: 01 00 00 CF 46 15 [13:39:08]Write i2c OK [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 07 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: 01 07 00 CF 46 00 00 00 00 00 DE 0C 06 [13:39:08]RasterBufferAndPrint [13:39:08]line [13:39:08]line [13:39:08]line [13:39:08]line [13:39:08]line [13:39:08]written 0, free lines is 3300 [13:39:08]MH_Cut [13:39:08]Write to MH i2c: D1 01 00 D6 46 01 EE [13:39:08]Write i2c OK [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: D1 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: D1 01 00 [13:39:08]MH_I2C_Read... [13:39:08]Read from MH i2c: D1 01 00 D6 46 00 ED [13:39:08]Write to MH i2c: 01 00 00 D7 46 1D [13:39:08]Write i2c OK [13:39:08]MH_I2C_Read... [13:39:09]OFD Sender: No OFD packet to send [13:39:09]*** Cut start [13:39:09]*** Partial cut [13:39:09]*** CUTSNS_PIN = 1 [13:39:09]*** CUTSNS_PIN = 0 [13:39:09]*** Brake cut motor [13:39:10]Read from MH i2c: 01 [13:39:10]MH_I2C_Read... [13:39:10]*** Stop cut motor [13:39:10]*** Cut end [13:39:10]Read from MH i2c: 01 07 00 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: 01 07 00 D7 46 00 00 00 00 00 FF 0F 32 [13:39:10]process_action close_receipt done [13:39:10]requested_data is exist [13:39:10]produce_requested_data [13:39:10]requested_item fm.sn is exist - process it [13:39:10]wFMCommunicate request_size=4 [13:39:10]MH_SAM_APDU [13:39:10]CAPDU: 80 11 00 00 [13:39:10]Write to MH i2c: E2 08 00 D8 46 80 11 00 00 00 00 00 00 98 [13:39:10]Write i2c OK [13:39:10]MH_I2C_Read... [13:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:10]Read from MH i2c: E2 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 17 00 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 17 00 D8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [13:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:39:10]wFMCommunicate OK [13:39:10]requested_item fd.num is exist - process it [13:39:10]SAM_PROTO_GetFieldsCounters [13:39:10]wFMCommunicate request_size=4 [13:39:10]MH_SAM_APDU [13:39:10]CAPDU: 80 13 00 00 [13:39:10]Write to MH i2c: E2 08 00 D9 46 80 13 00 00 00 00 00 00 9B [13:39:10]Write i2c OK [13:39:10]MH_I2C_Read... [13:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:10]Read from MH i2c: E2 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 62 00 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 62 00 D9 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 73 00 00 0E 04 04 00 75 00 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 EF [13:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 73 00 00 0E 04 04 00 75 00 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:39:10]wFMCommunicate OK [13:39:10]SAM_PROTO_GetFieldsCounters done [13:39:10]requested_item shift.num is exist - process it [13:39:10]requested_item shift.opened is exist - process it [13:39:10]req_shift_opened [13:39:10]FM_GetShiftState [13:39:10]SAM_PROTO_GetShiftState [13:39:10]wFMCommunicate request_size=4 [13:39:10]MH_SAM_APDU [13:39:10]CAPDU: 80 13 01 00 [13:39:10]Write to MH i2c: E2 08 00 DA 46 80 13 01 00 00 00 00 00 9D [13:39:10]Write i2c OK [13:39:10]MH_I2C_Read... [13:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:10]Read from MH i2c: E2 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 0E 00 [13:39:10]MH_I2C_Read... [13:39:10]Read from MH i2c: E2 0E 00 DA 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [13:39:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:39:10]wFMCommunicate OK [13:39:10]SAM_PROTO_GetShiftState done [13:39:10]FM_GetShiftState done [13:39:10]req_shift_opened done [13:39:10]requested_item shift.open_date is exist - process it [13:39:10]req_shift_open_date [13:39:10]req_shift_open_date done [13:39:10]produce_requested_data done [13:39:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29554,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:39:10]process_action_free close_receipt [13:39:10]json_value_free [13:39:10]json_value_free done [13:39:10]process_json_proto returns [13:39:10]Send response to host [13:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29554,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:39:10]free response buf [13:39:10]execute_script done [13:39:10]execute_script returns [13:39:10]free content buf [13:39:10]Sock 10.Close socket [13:39:10]Sock 10.Thread stoped [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]accept exits with 8 [13:45:39]New connection [13:45:39]New thread 3067112804 created [13:45:39]Thread 3066969444 joined [13:45:39]Waiting for new connection... [13:45:39] Sock 8.Parse request [13:45:39]Sock 8.Check first char [13:45:39]Sock 8.First char is OK [13:45:39]request: POST /json_proto HTTP/1.0 [13:45:39]Method: POST [13:45:39]URL: /json_proto [13:45:39]Method is POST - this is cgi request [13:45:39]url: /json_proto [13:45:39]query_string will be loaded in cgi processing [13:45:39]execute_cgi json_proto POST (null) [13:45:39]execute_cgi path=json_proto method=POST [13:45:39]POST find Content-Length [13:45:39]Host: 172.17.33.3:8080 [13:45:39]Content-Length: 840 [13:45:39]Content-Type: application/json [13:45:39] [13:45:39]POST finish read [13:45:39]Found Content-Length = 840 [13:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.260, "sum" : 470.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 470.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:39]execute_script... [13:45: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)347983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.260, "sum" : 470.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 470.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:39]POST & json_proto [13:45:39]process_json_proto [13:45:39]json parsed OK: [13:45:39]protocol is kg_v1.0 [13:45:39]action value=close_receipt [13:45:39]process_action close_receipt [13:45:39]cmd_close_receipt [13:45:39]MH_GetDate [13:45:39]Write to MH i2c: F0 00 00 DB 46 10 [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 09 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 09 00 DB 46 00 88 2F 1D 66 23 5B 8F 65 C5 [13:45:39]GetLastDocTimeStamp 1713188351 [13:45:39]current date 1713188744 [13:45:39]FM_GetShiftState [13:45:39]SAM_PROTO_GetShiftState [13:45:39]wFMCommunicate request_size=4 [13:45:39]MH_SAM_APDU [13:45:39]CAPDU: 80 13 01 00 [13:45:39]Write to MH i2c: E2 08 00 DC 46 80 13 01 00 00 00 00 00 9F [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:39]Read from MH i2c: E2 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: E2 0E 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: E2 0E 00 DC 46 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 93 [13:45:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:45:39]wFMCommunicate OK [13:45:39]SAM_PROTO_GetShiftState done [13:45:39]FM_GetShiftState done [13:45:39]opened in 1713140468 [13:45:39]opened+sec_in_day 1713226868 [13:45:39]quantity*price = 47044 [13:45:39]sum+1 = 47046 [13:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 470.45 НСП 1% : 4.16 НДС 12% : 49.96 Наличными: 0.00 Безнал.: 470.45 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 149 15.04.2024 13:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29555 ФПД: 252540728020439 1/tax-web-control/client/api/v1/ticket?date=20240415T134544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29555&fm=252540728020439&tin=02508201610067®Number=0000138879044617&sum=47045 [13:45:40]StoreToDocumentArchive [13:45:40]shift 117 fd 29555 [13:45:40]save to /storage/0117/doc_00029555 [13:45:40]save last doc name /storage/0117/doc_00029555 to /storage/kkm_last_doc_name [13:45:40]save OK [13:45:40]Clear old archive folders... [13:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:40]tlvbuf is 002EE6B0 [13:45:40]SAM_PROTO_ClearQueue [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 09 00 00 [13:45:40]Write to MH i2c: E2 08 00 E9 46 80 09 00 00 00 00 00 00 A1 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 E9 46 00 90 00 A3 [13:45:40]RAPDU: 90 00 [13:45:40]wFMCommunicate OK [13:45:40]SAM_PROTO_ClearQueue done [13:45:40]KKMCreateOFDPacket [13:45:40]OFDProtocolAddRootSTLVToBuf [13:45:40]FM_MakeSignedData [13:45:40]FM_MakeSignedData [13:45:40]SAM_PROTO_SignData [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 0D 01 02 [13:45:40]Write to MH i2c: E2 08 00 EA 46 80 0D 01 02 00 00 00 00 A9 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 EA 46 00 90 00 A4 [13:45:40]RAPDU: 90 00 [13:45:40]wFMCommunicate OK [13:45:40]wFMCommunicate request_size=255 [13:45:40]MH_SAM_APDU [13:45: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 5C 1C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 88 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 73 00 00 35 04 06 00 E5 [13:45:40]Write to MH i2c: E2 02 01 EB 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 5C 1C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 88 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 73 00 00 35 04 06 00 E5 00 00 6C [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 EB 46 00 90 00 A5 [13:45:40]RAPDU: 90 00 [13:45:40]wFMCommunicate OK [13:45:40]wFMCommunicate request_size=10 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 0D 02 02 05 AF 38 62 8D D7 [13:45:40]Write to MH i2c: E2 0D 00 EC 46 80 0D 02 02 05 00 AF 38 62 8D D7 00 00 63 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 03 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 03 00 EC 46 00 90 00 A6 [13:45:41]RAPDU: 90 00 [13:45:41]wFMCommunicate OK [13:45:41]wFMCommunicate request_size=4 [13:45:41]MH_SAM_APDU [13:45:41]CAPDU: 80 0D 03 02 [13:45:41]Write to MH i2c: E2 08 00 ED 46 80 0D 03 02 00 00 00 00 AE [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 0B 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 0B 00 ED 46 00 2D 11 63 69 45 80 5E 54 90 00 30 [13:45:41]RAPDU: 2D 11 63 69 45 80 5E 54 90 00 [13:45:41]wFMCommunicate OK [13:45:41]SAM_PROTO_SignData done [13:45:41]FM_MakeSignedData done [13:45:41]CreateOFDProtocolMessage [13:45:41]wFMCommunicate request_size=4 [13:45:41]MH_SAM_APDU [13:45:41]CAPDU: 80 11 00 00 [13:45:41]Write to MH i2c: E2 08 00 EE 46 80 11 00 00 00 00 00 00 AE [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 17 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 17 00 EE 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [13:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:45:41]wFMCommunicate OK [13:45:41]CreateOFDProtocolMessage done [13:45:41]OFDSenderStorePacket 29555 [13:45:41]StoreOFDPacket docnum=29555 [13:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 7C 07 01 2B 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 5C 1C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 88 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 73 00 00 35 04 06 00 E5 AF 38 62 8D D7 2D 11 63 69 45 80 5E 54 [13:45:41]CheckFolder [13:45:41]dirname=/storage/ofd_packets [13:45:41]CheckFolder done [13:45:41]ProducePacketName [13:45:41]name=ofd_packets/00029555 [13:45:41]NVStorageSaveData ofd_packets/00029555 [13:45:41]File name is /storage/ofd_packets/00029555 [13:45:41]Write 301 bytes [13:45:41]NVStorageSaveData done [13:45:41]OFDSenderStorePacket done [13:45:41]KKMCreateOFDPacket done [13:45:41]NVStorageSaveData kkm_last_timestamp [13:45:41]File name is /storage/kkm_last_timestamp [13:45:41]Write 4 bytes [13:45:41]NVStorageSaveData done [13:45:41]ExternCall_PrintAddStr [13:45:41]wPrintStart [13:45:41]Write to MH i2c: 01 00 00 EF 46 35 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 EF 46 00 00 00 00 00 FF 0F 4A [13:45:41]RasterBufferAndPrint [13:45:41]line Счет N : (1)347983 [13:45:41]line ИНН: 02508201610067 [13:45:41]line Контрольно-Кассовый Чек [13:45:41]line ПРОДАЖА [13:45:41]line ТРК (МРК, ГНК) : 23 [13:45:41]line Товар: 2710124130 [13:45:41]line Аи-92-К-5 [13:45:41]line 7.260 * 64.80 [13:45:41]line = 470.45 [13:45:41]line НДС 12% НСП 1% [13:45:41]line > о реализуемом товаре [13:45:41]line ИТОГО: 470.45 [13:45:41]line НСП 1% : 4.16 [13:45:41]line НДС 12% : 49.96 [13:45:41]line Наличными: 0.00 [13:45:41]line Безнал.: 470.45 [13:45:41]line Место: АЗС № 108 "Партнер Нефть" [13:45:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:45:41]line СНО: Общий режим [13:45:41]line Чек 149 15.04.2024 13:45 [13:45:41]line Смена: 117 ФФД: 1.0 [13:45:41]line ЗНМ: 0300000027 [13:45:41]line РНМ: 0000138879044617 [13:45:41]line Версия ККМ: 001 [13:45:41]line Платежная система: АКБ Кыргызстан [13:45:41]line ФМ: 0000000000963154 [13:45:41]line ФД: 29555 [13:45:41]line ФПД: 252540728020439 [13:45:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T134544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29555&fm=252540728020439&tin=02508201610067®Number=0000138879044617&sum=47045 [13:45:41]OFD Sender: Processing packet 29555 [packets to send 8, broken 7] [13:45:41]ProducePacketName [13:45:41]name=ofd_packets/00029555 [13:45:41]OFD Sender: To server: pG, [13:45:41]CommunicateWithHost lk.salyk.kg:30040 [13:45:41]ConnectInit lk.salyk.kg [13:45:41]written 0, free lines is 4095 [13:45:41]Connected sock=10 [13:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 7C 07 01 2B 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 5C 1C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C5 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 88 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 73 00 00 35 04 06 00 E5 AF 38 62 8D D7 2D 11 63 69 45 80 5E 54 [13:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 ED 99 47 00 79 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 39 36 33 31 35 34 10 04 04 00 73 73 00 00 F4 03 04 00 29 DA 1C 66 B6 04 01 00 00 7A BF 09 AD 4B B2 C1 C4 [13:45:41]CommunicateWithHost err = 0 [13:45:41]CheckOFDResponse [13:45:41]1017 (14) - 77093643461234 [13:45:41]1041 (16) - 0000000000963154 [13:45:41]1040 (4) - 29555 [13:45:41]1012 (4) - 15.04.2024 07:41 [13:45:41]1206 (1) - 0 [13:45:41]OFD Sender: Remove packet 29555 [13:45:41]ProducePacketName [13:45:41]name=ofd_packets/00029555 [13:45:41]NVStorageDeleteData [13:45:41]Write to MH i2c: 01 00 00 18 47 5F [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 18 47 00 00 00 00 00 EE 0C 60 [13:45:41]RasterBufferAndPrint [13:45:41]line [13:45:41]line [13:45:41]line [13:45:41]line [13:45:41]line [13:45:41]written 0, free lines is 3318 [13:45:41]MH_Cut [13:45:41]Write to MH i2c: D1 01 00 1F 47 01 38 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: D1 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: D1 01 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: D1 01 00 1F 47 00 37 [13:45:41]Write to MH i2c: 01 00 00 20 47 67 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:42]OFD Sender: No OFD packet to send [13:45:42]*** Cut start [13:45:42]*** Partial cut [13:45:42]*** CUTSNS_PIN = 1 [13:45:42]*** CUTSNS_PIN = 0 [13:45:42]*** Brake cut motor [13:45:43]Read from MH i2c: 01 [13:45:43]MH_I2C_Read... [13:45:43]*** Stop cut motor [13:45:43]*** Cut end [13:45:43]Read from MH i2c: 01 07 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: 01 07 00 20 47 00 00 00 00 00 FF 0F 7C [13:45:43]process_action close_receipt done [13:45:43]requested_data is exist [13:45:43]produce_requested_data [13:45:43]requested_item fm.sn is exist - process it [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 11 00 00 [13:45:43]Write to MH i2c: E2 08 00 21 47 80 11 00 00 00 00 00 00 E2 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 17 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 17 00 21 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [13:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:45:43]wFMCommunicate OK [13:45:43]requested_item fd.num is exist - process it [13:45:43]SAM_PROTO_GetFieldsCounters [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 13 00 00 [13:45:43]Write to MH i2c: E2 08 00 22 47 80 13 00 00 00 00 00 00 E5 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 62 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 62 00 22 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 73 00 00 0E 04 04 00 75 00 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 3D [13:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 73 00 00 0E 04 04 00 75 00 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:45:43]wFMCommunicate OK [13:45:43]SAM_PROTO_GetFieldsCounters done [13:45:43]requested_item shift.num is exist - process it [13:45:43]requested_item shift.opened is exist - process it [13:45:43]req_shift_opened [13:45:43]FM_GetShiftState [13:45:43]SAM_PROTO_GetShiftState [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 13 01 00 [13:45:43]Write to MH i2c: E2 08 00 23 47 80 13 01 00 00 00 00 00 E7 [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 0E 00 23 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DB [13:45:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:45:43]wFMCommunicate OK [13:45:43]SAM_PROTO_GetShiftState done [13:45:43]FM_GetShiftState done [13:45:43]req_shift_opened done [13:45:43]requested_item shift.open_date is exist - process it [13:45:43]req_shift_open_date [13:45:43]req_shift_open_date done [13:45:43]produce_requested_data done [13:45:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29555,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:45:43]process_action_free close_receipt [13:45:43]json_value_free [13:45:43]json_value_free done [13:45:43]process_json_proto returns [13:45:43]Send response to host [13:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29555,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:45:43]free response buf [13:45:43]execute_script done [13:45:43]execute_script returns [13:45:43]free content buf [13:45:43]Sock 8.Close socket [13:45:43]Sock 8.Thread stoped [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:04]accept exits with 9 [13:46:04]New connection [13:46:04]New thread 3066969444 created [13:46:04]Thread 3067112804 joined [13:46:04]Waiting for new connection... [13:46:04] Sock 9.Parse request [13:46:04]Sock 9.Check first char [13:46:04]Sock 9.First char is OK [13:46:04]request: POST /json_proto HTTP/1.0 [13:46:04]Method: POST [13:46:04]URL: /json_proto [13:46:04]Method is POST - this is cgi request [13:46:04]url: /json_proto [13:46:04]query_string will be loaded in cgi processing [13:46:04]execute_cgi json_proto POST (null) [13:46:04]execute_cgi path=json_proto method=POST [13:46:04]POST find Content-Length [13:46:04]Host: 172.17.33.3:8080 [13:46:04]Content-Length: 677 [13:46:04]Content-Type: application/json [13:46:04] [13:46:04]POST finish read [13:46:04]Found Content-Length = 677 [13:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.410, "sum" : 350.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:04]execute_script... [13:46: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)347984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.410, "sum" : 350.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:04]POST & json_proto [13:46:04]process_json_proto [13:46:04]json parsed OK: [13:46:04]protocol is kg_v1.0 [13:46:04]action value=close_receipt [13:46:04]process_action close_receipt [13:46:04]cmd_close_receipt [13:46:04]MH_GetDate [13:46:04]Write to MH i2c: F0 00 00 24 47 5A [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 09 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: F0 09 00 24 47 00 A1 2F 1D 66 23 5B 8F 65 28 [13:46:04]GetLastDocTimeStamp 1713188744 [13:46:04]current date 1713188769 [13:46:04]FM_GetShiftState [13:46:04]SAM_PROTO_GetShiftState [13:46:04]wFMCommunicate request_size=4 [13:46:04]MH_SAM_APDU [13:46:04]CAPDU: 80 13 01 00 [13:46:04]Write to MH i2c: E2 08 00 25 47 80 13 01 00 00 00 00 00 E9 [13:46:04]Write i2c OK [13:46:04]MH_I2C_Read... [13:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:04]Read from MH i2c: E2 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 [13:46:04]MH_I2C_Read... [13:46:04]Read from MH i2c: E2 0E 00 25 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DD [13:46:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:46:04]wFMCommunicate OK [13:46:04]SAM_PROTO_GetShiftState done [13:46:04]FM_GetShiftState done [13:46:04]opened in 1713140468 [13:46:04]opened+sec_in_day 1713226868 [13:46:04]quantity*price = 35056 [13:46:04]sum+1 = 35058 [13:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 150 15.04.2024 13:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29556 ФПД: 125471542945051 1/tax-web-control/client/api/v1/ticket?date=20240415T134609&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29556&fm=125471542945051&tin=02508201610067®Number=0000138879044617&sum=35000 [13:46:05]StoreToDocumentArchive [13:46:05]shift 117 fd 29556 [13:46:05]save to /storage/0117/doc_00029556 [13:46:05]save last doc name /storage/0117/doc_00029556 to /storage/kkm_last_doc_name [13:46:05]save OK [13:46:05]Clear old archive folders... [13:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:05]tlvbuf is 002547D0 [13:46:05]SAM_PROTO_ClearQueue [13:46:05]wFMCommunicate request_size=4 [13:46:05]MH_SAM_APDU [13:46:05]CAPDU: 80 09 00 00 [13:46:05]Write to MH i2c: E2 08 00 32 47 80 09 00 00 00 00 00 00 EB [13:46:05]Write i2c OK [13:46:05]MH_I2C_Read... [13:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:05]Read from MH i2c: E2 [13:46:05]MH_I2C_Read... [13:46:05]Read from MH i2c: E2 03 00 [13:46:05]MH_I2C_Read... [13:46:05]Read from MH i2c: E2 03 00 32 47 00 90 00 ED [13:46:05]RAPDU: 90 00 [13:46:05]wFMCommunicate OK [13:46:05]SAM_PROTO_ClearQueue done [13:46:05]KKMCreateOFDPacket [13:46:05]OFDProtocolAddRootSTLVToBuf [13:46:05]FM_MakeSignedData [13:46:05]FM_MakeSignedData [13:46:05]SAM_PROTO_SignData [13:46:05]wFMCommunicate request_size=4 [13:46:05]MH_SAM_APDU [13:46:05]CAPDU: 80 0D 01 02 [13:46:05]Write to MH i2c: E2 08 00 33 47 80 0D 01 02 00 00 00 00 F3 [13:46:05]Write i2c OK [13:46:05]MH_I2C_Read... [13:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:05]Read from MH i2c: E2 [13:46:05]MH_I2C_Read... [13:46:05]Read from MH i2c: E2 03 00 [13:46:05]MH_I2C_Read... [13:46:05]Read from MH i2c: E2 03 00 33 47 00 90 00 EE [13:46:05]RAPDU: 90 00 [13:46:05]wFMCommunicate OK [13:46:05]wFMCommunicate request_size=255 [13:46:05]MH_SAM_APDU [13:46: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 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A1 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 73 00 00 35 04 06 00 72 [13:46:05]Write to MH i2c: E2 02 01 34 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 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A1 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 73 00 00 35 04 06 00 72 00 00 3A [13:46:05]Write i2c OK [13:46:05]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 34 47 00 90 00 EF [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=10 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 02 02 05 1D 9E BF 25 1B [13:46:06]Write to MH i2c: E2 0D 00 35 47 80 0D 02 02 05 00 1D 9E BF 25 1B 00 00 BA [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 03 00 35 47 00 90 00 F0 [13:46:06]RAPDU: 90 00 [13:46:06]wFMCommunicate OK [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 0D 03 02 [13:46:06]Write to MH i2c: E2 08 00 36 47 80 0D 03 02 00 00 00 00 F8 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0B 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 0B 00 36 47 00 CD 54 82 D6 0D 24 21 85 90 00 49 [13:46:06]RAPDU: CD 54 82 D6 0D 24 21 85 90 00 [13:46:06]wFMCommunicate OK [13:46:06]SAM_PROTO_SignData done [13:46:06]FM_MakeSignedData done [13:46:06]CreateOFDProtocolMessage [13:46:06]wFMCommunicate request_size=4 [13:46:06]MH_SAM_APDU [13:46:06]CAPDU: 80 11 00 00 [13:46:06]Write to MH i2c: E2 08 00 37 47 80 11 00 00 00 00 00 00 F8 [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:06]Read from MH i2c: E2 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: E2 17 00 37 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [13:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:46:06]wFMCommunicate OK [13:46:06]CreateOFDProtocolMessage done [13:46:06]OFDSenderStorePacket 29556 [13:46:06]StoreOFDPacket docnum=29556 [13:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B 37 07 01 84 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A1 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 73 00 00 35 04 06 00 72 1D 9E BF 25 1B CD 54 82 D6 0D 24 21 85 [13:46:06]CheckFolder [13:46:06]dirname=/storage/ofd_packets [13:46:06]CheckFolder done [13:46:06]ProducePacketName [13:46:06]name=ofd_packets/00029556 [13:46:06]NVStorageSaveData ofd_packets/00029556 [13:46:06]File name is /storage/ofd_packets/00029556 [13:46:06]Write 301 bytes [13:46:06]NVStorageSaveData done [13:46:06]OFDSenderStorePacket done [13:46:06]KKMCreateOFDPacket done [13:46:06]NVStorageSaveData kkm_last_timestamp [13:46:06]File name is /storage/kkm_last_timestamp [13:46:06]Write 4 bytes [13:46:06]NVStorageSaveData done [13:46:06]ExternCall_PrintAddStr [13:46:06]wPrintStart [13:46:06]Write to MH i2c: 01 00 00 38 47 7F [13:46:06]Write i2c OK [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 [13:46:06]MH_I2C_Read... [13:46:06]Read from MH i2c: 01 07 00 38 47 00 00 00 00 00 FF 0F 94 [13:46:06]RasterBufferAndPrint [13:46:06]line Счет N : (1)347984 [13:46:06]line ИНН: 02508201610067 [13:46:06]line Контрольно-Кассовый Чек [13:46:06]line ПРОДАЖА [13:46:06]line ТРК (МРК, ГНК) : 23 [13:46:06]line Товар: 2710124130 [13:46:06]line Аи-92-К-5 [13:46:06]line 5.410 * 64.80 [13:46:06]line = 350.57 [13:46:06]line НДС 12% НСП 1% [13:46:06]line > о реализуемом товаре [13:46:06]line ОКРУГЛЕНИЕ: -0.57 [13:46:06]line ИТОГО: 350.00 [13:46:06]line Внесено: 350.00 [13:46:06]line СДАЧА: 0.00 [13:46:06]line НСП 1% : 3.10 [13:46:06]line НДС 12% : 37.23 [13:46:06]line Наличными: 350.00 [13:46:06]line Безнал.: 0.00 [13:46:06]line Место: АЗС № 108 "Партнер Нефть" [13:46:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:46:06]line СНО: Общий режим [13:46:06]line Чек 150 15.04.2024 13:46 [13:46:06]line Смена: 117 ФФД: 1.0 [13:46:06]line ЗНМ: 0300000027 [13:46:06]line РНМ: 0000138879044617 [13:46:06]line Версия ККМ: 001 [13:46:06]line ФМ: 0000000000963154 [13:46:06]line ФД: 29556 [13:46:06]line ФПД: 125471542945051 [13:46:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T134609&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29556&fm=125471542945051&tin=02508201610067®Number=0000138879044617&sum=35000 [13:46:06]OFD Sender: Processing packet 29556 [packets to send 8, broken 7] [13:46:06]ProducePacketName [13:46:06]name=ofd_packets/00029556 [13:46:06]OFD Sender: To server: pG, [13:46:06]CommunicateWithHost lk.salyk.kg:30040 [13:46:06]ConnectInit lk.salyk.kg [13:46:06]written 0, free lines is 4095 [13:46:06]Connected sock=10 [13:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B 37 07 01 84 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A1 2F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 73 00 00 35 04 06 00 72 1D 9E BF 25 1B CD 54 82 D6 0D 24 21 85 [13:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 85 AD 47 00 9C 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 39 36 33 31 35 34 10 04 04 00 74 73 00 00 F4 03 04 00 42 DA 1C 66 B6 04 01 00 00 4A 93 71 CB 68 29 3D 00 [13:46:06]CommunicateWithHost err = 0 [13:46:06]CheckOFDResponse [13:46:06]1017 (14) - 77093643461234 [13:46:06]1041 (16) - 0000000000963154 [13:46:06]1040 (4) - 29556 [13:46:06]1012 (4) - 15.04.2024 07:41 [13:46:06]1206 (1) - 0 [13:46:06]OFD Sender: Remove packet 29556 [13:46:06]ProducePacketName [13:46:06]name=ofd_packets/00029556 [13:46:06]NVStorageDeleteData [13:46:07]Write to MH i2c: 01 00 00 62 47 A9 [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 07 00 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: 01 07 00 62 47 00 00 00 00 00 D4 0C 90 [13:46:07]RasterBufferAndPrint [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]line [13:46:07]written 0, free lines is 3290 [13:46:07]MH_Cut [13:46:07]Write to MH i2c: D1 01 00 69 47 01 82 [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 01 00 [13:46:07]MH_I2C_Read... [13:46:07]Read from MH i2c: D1 01 00 69 47 00 81 [13:46:07]Write to MH i2c: 01 00 00 6A 47 B1 [13:46:07]Write i2c OK [13:46:07]MH_I2C_Read... [13:46:07]OFD Sender: No OFD packet to send [13:46:07]*** Cut start [13:46:07]*** Partial cut [13:46:07]*** CUTSNS_PIN = 1 [13:46:07]*** CUTSNS_PIN = 0 [13:46:08]*** Brake cut motor [13:46:08]Read from MH i2c: 01 [13:46:08]MH_I2C_Read... [13:46:08]*** Stop cut motor [13:46:08]*** Cut end [13:46:08]Read from MH i2c: 01 07 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: 01 07 00 6A 47 00 00 00 00 00 FF 0F C6 [13:46:08]process_action close_receipt done [13:46:08]requested_data is exist [13:46:08]produce_requested_data [13:46:08]requested_item fm.sn is exist - process it [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 11 00 00 [13:46:08]Write to MH i2c: E2 08 00 6B 47 80 11 00 00 00 00 00 00 2C [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 17 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 17 00 6B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [13:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:46:08]wFMCommunicate OK [13:46:08]requested_item fd.num is exist - process it [13:46:08]SAM_PROTO_GetFieldsCounters [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 00 00 [13:46:08]Write to MH i2c: E2 08 00 6C 47 80 13 00 00 00 00 00 00 2F [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 62 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 62 00 6C 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 73 00 00 0E 04 04 00 75 00 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 8B [13:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 73 00 00 0E 04 04 00 75 00 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:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetFieldsCounters done [13:46:08]requested_item shift.num is exist - process it [13:46:08]requested_item shift.opened is exist - process it [13:46:08]req_shift_opened [13:46:08]FM_GetShiftState [13:46:08]SAM_PROTO_GetShiftState [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 01 00 [13:46:08]Write to MH i2c: E2 08 00 6D 47 80 13 01 00 00 00 00 00 31 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 6D 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 25 [13:46:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetShiftState done [13:46:08]FM_GetShiftState done [13:46:08]req_shift_opened done [13:46:08]requested_item shift.open_date is exist - process it [13:46:08]req_shift_open_date [13:46:08]req_shift_open_date done [13:46:08]produce_requested_data done [13:46:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29556,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:46:08]process_action_free close_receipt [13:46:08]json_value_free [13:46:08]json_value_free done [13:46:08]process_json_proto returns [13:46:08]Send response to host [13:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29556,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:46:08]free response buf [13:46:08]execute_script done [13:46:08]execute_script returns [13:46:08]free content buf [13:46:08]Sock 9.Close socket [13:46:08]Sock 9.Thread stoped [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:20]accept exits with 8 [13:52:20]New connection [13:52:20]New thread 3067112804 created [13:52:20]Thread 3066969444 joined [13:52:20]Waiting for new connection... [13:52:20] Sock 8.Parse request [13:52:20]Sock 8.Check first char [13:52:20]Sock 8.First char is OK [13:52:20]request: POST /json_proto HTTP/1.0 [13:52:20]Method: POST [13:52:20]URL: /json_proto [13:52:20]Method is POST - this is cgi request [13:52:20]url: /json_proto [13:52:20]query_string will be loaded in cgi processing [13:52:20]execute_cgi json_proto POST (null) [13:52:20]execute_cgi path=json_proto method=POST [13:52:20]POST find Content-Length [13:52:20]Host: 172.17.33.3:8080 [13:52:20]Content-Length: 796 [13:52:20]Content-Type: application/json [13:52:20] [13:52:20]POST finish read [13:52:20]Found Content-Length = 796 [13:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:20]execute_script... [13:52:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:20]POST & json_proto [13:52:20]process_json_proto [13:52:20]json parsed OK: [13:52:20]protocol is kg_v1.0 [13:52:20]action value=close_receipt [13:52:20]process_action close_receipt [13:52:20]cmd_close_receipt [13:52:20]MH_GetDate [13:52:20]Write to MH i2c: F0 00 00 6E 47 A4 [13:52:20]Write i2c OK [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 09 00 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 09 00 6E 47 00 18 31 1D 66 23 5B 8F 65 EB [13:52:20]GetLastDocTimeStamp 1713188769 [13:52:20]current date 1713189144 [13:52:20]FM_GetShiftState [13:52:20]SAM_PROTO_GetShiftState [13:52:20]wFMCommunicate request_size=4 [13:52:20]MH_SAM_APDU [13:52:20]CAPDU: 80 13 01 00 [13:52:20]Write to MH i2c: E2 08 00 6F 47 80 13 01 00 00 00 00 00 33 [13:52:20]Write i2c OK [13:52:20]MH_I2C_Read... [13:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:20]Read from MH i2c: E2 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: E2 0E 00 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: E2 0E 00 6F 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 27 [13:52:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:52:20]wFMCommunicate OK [13:52:20]SAM_PROTO_GetShiftState done [13:52:20]FM_GetShiftState done [13:52:20]opened in 1713140468 [13:52:20]opened+sec_in_day 1713226868 [13:52:20]quantity*price = 100033 [13:52:20]sum+1 = 100034 [13:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.33 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 151 15.04.2024 13:52 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29557 ФПД: 53505165172695 1/tax-web-control/client/api/v1/ticket?date=20240415T135224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29557&fm=53505165172695&tin=02508201610067®Number=0000138879044617&sum=100033 [13:52:21]StoreToDocumentArchive [13:52:21]shift 117 fd 29557 [13:52:21]save to /storage/0117/doc_00029557 [13:52:21]save last doc name /storage/0117/doc_00029557 to /storage/kkm_last_doc_name [13:52:21]save OK [13:52:21]Clear old archive folders... [13:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:52:21]tlvbuf is B6F7C8A0 [13:52:21]SAM_PROTO_ClearQueue [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 09 00 00 [13:52:21]Write to MH i2c: E2 08 00 7C 47 80 09 00 00 00 00 00 00 35 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 7C 47 00 90 00 37 [13:52:21]RAPDU: 90 00 [13:52:21]wFMCommunicate OK [13:52:21]SAM_PROTO_ClearQueue done [13:52:21]KKMCreateOFDPacket [13:52:21]OFDProtocolAddRootSTLVToBuf [13:52:21]FM_MakeSignedData [13:52:21]FM_MakeSignedData [13:52:21]SAM_PROTO_SignData [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 0D 01 02 [13:52:21]Write to MH i2c: E2 08 00 7D 47 80 0D 01 02 00 00 00 00 3D [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 7D 47 00 90 00 38 [13:52:21]RAPDU: 90 00 [13:52:21]wFMCommunicate OK [13:52:21]wFMCommunicate request_size=255 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 18 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 73 00 00 35 04 06 00 30 A9 [13:52:21]Write to MH i2c: E2 02 01 7E 47 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 18 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 73 00 00 35 04 06 00 30 A9 00 00 30 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 7E 47 00 90 00 39 [13:52:21]RAPDU: 90 00 [13:52:21]wFMCommunicate OK [13:52:21]wFMCommunicate request_size=9 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 0D 02 02 04 A4 5D 1F D7 [13:52:21]Write to MH i2c: E2 0C 00 7F 47 80 0D 02 02 04 00 A4 5D 1F D7 00 00 3F [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 7F 47 00 90 00 3A [13:52:21]RAPDU: 90 00 [13:52:21]wFMCommunicate OK [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 0D 03 02 [13:52:21]Write to MH i2c: E2 08 00 80 47 80 0D 03 02 00 00 00 00 42 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 0B 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 0B 00 80 47 00 79 28 6D 4D E7 C5 1B 97 90 00 FC [13:52:21]RAPDU: 79 28 6D 4D E7 C5 1B 97 90 00 [13:52:21]wFMCommunicate OK [13:52:21]SAM_PROTO_SignData done [13:52:21]FM_MakeSignedData done [13:52:21]CreateOFDProtocolMessage [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 11 00 00 [13:52:21]Write to MH i2c: E2 08 00 81 47 80 11 00 00 00 00 00 00 42 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 17 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 17 00 81 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [13:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:52:21]wFMCommunicate OK [13:52:21]CreateOFDProtocolMessage done [13:52:21]OFDSenderStorePacket 29557 [13:52:21]StoreOFDPacket docnum=29557 [13:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0A 94 06 01 13 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 18 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 73 00 00 35 04 06 00 30 A9 A4 5D 1F D7 79 28 6D 4D E7 C5 1B 97 [13:52:21]CheckFolder [13:52:21]dirname=/storage/ofd_packets [13:52:21]CheckFolder done [13:52:21]ProducePacketName [13:52:21]name=ofd_packets/00029557 [13:52:21]NVStorageSaveData ofd_packets/00029557 [13:52:21]File name is /storage/ofd_packets/00029557 [13:52:21]Write 300 bytes [13:52:21]NVStorageSaveData done [13:52:21]OFDSenderStorePacket done [13:52:21]KKMCreateOFDPacket done [13:52:21]NVStorageSaveData kkm_last_timestamp [13:52:21]File name is /storage/kkm_last_timestamp [13:52:21]Write 4 bytes [13:52:21]NVStorageSaveData done [13:52:21]ExternCall_PrintAddStr [13:52:21]wPrintStart [13:52:21]Write to MH i2c: 01 00 00 82 47 C9 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: 01 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: 01 07 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: 01 07 00 82 47 00 00 00 00 00 FF 0F DE [13:52:21]RasterBufferAndPrint [13:52:21]line Счет N : (1)347986 [13:52:21]line ИНН: 02508201610067 [13:52:21]line Контрольно-Кассовый Чек [13:52:21]line ПРОДАЖА [13:52:21]line ТРК (МРК, ГНК) : 71 [13:52:21]line Товар: 2711129700 [13:52:21]line ГАЗ-К-5 [13:52:21]line 29.950 * 33.40 [13:52:21]line = 1000.33 [13:52:21]line НДС 12% НСП 1% [13:52:21]line > о реализуемом товаре [13:52:21]line ИТОГО: 1000.33 [13:52:21]line НСП 1% : 8.85 [13:52:21]line НДС 12% : 106.23 [13:52:21]line Наличными: 0.00 [13:52:21]line Безнал.: 1000.33 [13:52:21]line Место: АЗС № 108 "Партнер Нефть" [13:52:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:52:21]line СНО: Общий режим [13:52:21]line Чек 151 15.04.2024 13:52 [13:52:21]line Смена: 117 ФФД: 1.0 [13:52:21]line ЗНМ: 0300000027 [13:52:21]line РНМ: 0000138879044617 [13:52:21]line Версия ККМ: 001 [13:52:21]line Платежная система: KICB Банк [13:52:21]line ФМ: 0000000000963154 [13:52:21]line ФД: 29557 [13:52:21]line ФПД: 53505165172695 [13:52:21]line 1/tax-web-control/client/api/v1/ticket?date=20240415T135224&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29557&fm=53505165172695&tin=02508201610067®Number=0000138879044617&sum=100033 [13:52:22]OFD Sender: Processing packet 29557 [packets to send 8, broken 7] [13:52:22]ProducePacketName [13:52:22]name=ofd_packets/00029557 [13:52:22]OFD Sender: To server: pG, [13:52:22]CommunicateWithHost lk.salyk.kg:30040 [13:52:22]ConnectInit lk.salyk.kg [13:52:22]written 0, free lines is 4095 [13:52:22]Connected sock=10 [13:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0A 94 06 01 13 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 18 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 73 00 00 35 04 06 00 30 A9 A4 5D 1F D7 79 28 6D 4D E7 C5 1B 97 [13:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B4 EE 47 00 A0 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 39 36 33 31 35 34 10 04 04 00 75 73 00 00 F4 03 04 00 B9 DB 1C 66 B6 04 01 00 00 E5 BB 01 68 0C 55 5B 2B [13:52:22]CommunicateWithHost err = 0 [13:52:22]CheckOFDResponse [13:52:22]1017 (14) - 77093643461234 [13:52:22]1041 (16) - 0000000000963154 [13:52:22]1040 (4) - 29557 [13:52:22]1012 (4) - 15.04.2024 07:48 [13:52:22]1206 (1) - 0 [13:52:22]OFD Sender: Remove packet 29557 [13:52:22]ProducePacketName [13:52:22]name=ofd_packets/00029557 [13:52:22]NVStorageDeleteData [13:52:22]Write to MH i2c: 01 00 00 AB 47 F2 [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 07 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 07 00 AB 47 00 00 00 00 00 DC 0C E1 [13:52:22]RasterBufferAndPrint [13:52:22]line [13:52:22]line [13:52:22]line [13:52:22]line [13:52:22]line [13:52:22]written 0, free lines is 3301 [13:52:22]MH_Cut [13:52:22]Write to MH i2c: D1 01 00 B2 47 01 CB [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: D1 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: D1 01 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: D1 01 00 B2 47 00 CA [13:52:22]Write to MH i2c: 01 00 00 B3 47 FA [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]OFD Sender: No OFD packet to send [13:52:23]*** Cut start [13:52:23]*** Partial cut [13:52:23]*** CUTSNS_PIN = 1 [13:52:23]*** CUTSNS_PIN = 0 [13:52:23]*** Brake cut motor [13:52:23]Read from MH i2c: 01 [13:52:23]MH_I2C_Read... [13:52:23]*** Stop cut motor [13:52:23]*** Cut end [13:52:23]Read from MH i2c: 01 07 00 [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: 01 07 00 B3 47 00 00 00 00 00 FF 0F 0F [13:52:23]process_action close_receipt done [13:52:23]requested_data is exist [13:52:23]produce_requested_data [13:52:23]requested_item fm.sn is exist - process it [13:52:23]wFMCommunicate request_size=4 [13:52:23]MH_SAM_APDU [13:52:23]CAPDU: 80 11 00 00 [13:52:23]Write to MH i2c: E2 08 00 B4 47 80 11 00 00 00 00 00 00 75 [13:52:23]Write i2c OK [13:52:23]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 17 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 17 00 B4 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C4 [13:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:52:24]wFMCommunicate OK [13:52:24]requested_item fd.num is exist - process it [13:52:24]SAM_PROTO_GetFieldsCounters [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 00 00 [13:52:24]Write to MH i2c: E2 08 00 B5 47 80 13 00 00 00 00 00 00 78 [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 62 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 62 00 B5 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 73 00 00 0E 04 04 00 75 00 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 D8 [13:52:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 73 00 00 0E 04 04 00 75 00 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 [13:52:24]wFMCommunicate OK [13:52:24]SAM_PROTO_GetFieldsCounters done [13:52:24]requested_item shift.num is exist - process it [13:52:24]requested_item shift.opened is exist - process it [13:52:24]req_shift_opened [13:52:24]FM_GetShiftState [13:52:24]SAM_PROTO_GetShiftState [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 01 00 [13:52:24]Write to MH i2c: E2 08 00 B6 47 80 13 01 00 00 00 00 00 7A [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 B6 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6E [13:52:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:52:24]wFMCommunicate OK [13:52:24]SAM_PROTO_GetShiftState done [13:52:24]FM_GetShiftState done [13:52:24]req_shift_opened done [13:52:24]requested_item shift.open_date is exist - process it [13:52:24]req_shift_open_date [13:52:24]req_shift_open_date done [13:52:24]produce_requested_data done [13:52:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29557,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:52:24]process_action_free close_receipt [13:52:24]json_value_free [13:52:24]json_value_free done [13:52:24]process_json_proto returns [13:52:24]Send response to host [13:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29557,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:52:24]free response buf [13:52:24]execute_script done [13:52:24]execute_script returns [13:52:24]free content buf [13:52:24]Sock 8.Close socket [13:52:24]Sock 8.Thread stoped [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:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:38]accept exits with 9 [13:55:38]New connection [13:55:38]New thread 3066969444 created [13:55:38]Thread 3067112804 joined [13:55:38]Waiting for new connection... [13:55:38] Sock 9.Parse request [13:55:38]Sock 9.Check first char [13:55:38]Sock 9.First char is OK [13:55:38]request: POST /json_proto HTTP/1.0 [13:55:38]Method: POST [13:55:38]URL: /json_proto [13:55:38]Method is POST - this is cgi request [13:55:38]url: /json_proto [13:55:38]query_string will be loaded in cgi processing [13:55:38]execute_cgi json_proto POST (null) [13:55:38]execute_cgi path=json_proto method=POST [13:55:38]POST find Content-Length [13:55:38]Host: 172.17.33.3:8080 [13:55:38]Content-Length: 640 [13:55:38]Content-Type: application/json [13:55:38] [13:55:38]POST finish read [13:55:38]Found Content-Length = 640 [13:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:38]execute_script... [13:55: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)347987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:38]POST & json_proto [13:55:38]process_json_proto [13:55:38]json parsed OK: [13:55:38]protocol is kg_v1.0 [13:55:38]action value=close_receipt [13:55:38]process_action close_receipt [13:55:38]cmd_close_receipt [13:55:38]MH_GetDate [13:55:38]Write to MH i2c: F0 00 00 B7 47 ED [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 B7 47 00 DF 31 1D 66 23 5B 8F 65 FB [13:55:38]GetLastDocTimeStamp 1713189144 [13:55:38]current date 1713189343 [13:55:38]FM_GetShiftState [13:55:38]SAM_PROTO_GetShiftState [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 13 01 00 [13:55:38]Write to MH i2c: E2 08 00 B8 47 80 13 01 00 00 00 00 00 7C [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 B8 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 70 [13:55:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_GetShiftState done [13:55:38]FM_GetShiftState done [13:55:38]opened in 1713140468 [13:55:38]opened+sec_in_day 1713226868 [13:55:38]quantity*price = 64800 [13:55:38]sum+1 = 64801 [13:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 648.00 НСП 1% : 5.73 НДС 12% : 68.81 Наличными: 648.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 152 15.04.2024 13:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29558 ФПД: 208569342418948 1/tax-web-control/client/api/v1/ticket?date=20240415T135543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29558&fm=208569342418948&tin=02508201610067®Number=0000138879044617&sum=64800 [13:55:39]StoreToDocumentArchive [13:55:39]shift 117 fd 29558 [13:55:39]save to /storage/0117/doc_00029558 [13:55:39]save last doc name /storage/0117/doc_00029558 to /storage/kkm_last_doc_name [13:55:39]save OK [13:55:39]Clear old archive folders... [13:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:39]tlvbuf is 00267400 [13:55:39]SAM_PROTO_ClearQueue [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 09 00 00 [13:55:39]Write to MH i2c: E2 08 00 C5 47 80 09 00 00 00 00 00 00 7E [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 C5 47 00 90 00 80 [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]SAM_PROTO_ClearQueue done [13:55:39]KKMCreateOFDPacket [13:55:39]OFDProtocolAddRootSTLVToBuf [13:55:39]FM_MakeSignedData [13:55:39]FM_MakeSignedData [13:55:39]SAM_PROTO_SignData [13:55:39]wFMCommunicate request_size=4 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 0D 01 02 [13:55:39]Write to MH i2c: E2 08 00 C6 47 80 0D 01 02 00 00 00 00 86 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:39]Read from MH i2c: E2 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: E2 03 00 C6 47 00 90 00 81 [13:55:39]RAPDU: 90 00 [13:55:39]wFMCommunicate OK [13:55:39]wFMCommunicate request_size=255 [13:55:39]MH_SAM_APDU [13:55:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 98 00 00 00 F4 03 04 00 DF 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 73 00 00 35 04 06 00 BD [13:55:39]Write to MH i2c: E2 02 01 C7 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 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 98 00 00 00 F4 03 04 00 DF 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 73 00 00 35 04 06 00 BD 00 00 24 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 C7 47 00 90 00 82 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]wFMCommunicate request_size=10 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 0D 02 02 05 B1 55 90 E0 04 [13:55:40]Write to MH i2c: E2 0D 00 C8 47 80 0D 02 02 05 00 B1 55 90 E0 04 00 00 0D [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 C8 47 00 90 00 83 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 0D 03 02 [13:55:40]Write to MH i2c: E2 08 00 C9 47 80 0D 03 02 00 00 00 00 8B [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0B 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0B 00 C9 47 00 41 22 05 8E CB 22 14 14 90 00 97 [13:55:40]RAPDU: 41 22 05 8E CB 22 14 14 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_SignData done [13:55:40]FM_MakeSignedData done [13:55:40]CreateOFDProtocolMessage [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 11 00 00 [13:55:40]Write to MH i2c: E2 08 00 CA 47 80 11 00 00 00 00 00 00 8B [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 CA 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:55:40]wFMCommunicate OK [13:55:40]CreateOFDProtocolMessage done [13:55:40]OFDSenderStorePacket 29558 [13:55:40]StoreOFDPacket docnum=29558 [13:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 C8 07 01 0B 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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 98 00 00 00 F4 03 04 00 DF 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 73 00 00 35 04 06 00 BD B1 55 90 E0 04 41 22 05 8E CB 22 14 14 [13:55:40]CheckFolder [13:55:40]dirname=/storage/ofd_packets [13:55:40]CheckFolder done [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00029558 [13:55:40]NVStorageSaveData ofd_packets/00029558 [13:55:40]File name is /storage/ofd_packets/00029558 [13:55:40]Write 301 bytes [13:55:40]NVStorageSaveData done [13:55:40]OFDSenderStorePacket done [13:55:40]KKMCreateOFDPacket done [13:55:40]NVStorageSaveData kkm_last_timestamp [13:55:40]File name is /storage/kkm_last_timestamp [13:55:40]Write 4 bytes [13:55:40]NVStorageSaveData done [13:55:40]ExternCall_PrintAddStr [13:55:40]wPrintStart [13:55:40]Write to MH i2c: 01 00 00 CB 47 12 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 CB 47 00 00 00 00 00 FF 0F 27 [13:55:40]RasterBufferAndPrint [13:55:40]line Счет N : (1)347987 [13:55:40]line ИНН: 02508201610067 [13:55:40]line Контрольно-Кассовый Чек [13:55:40]line ПРОДАЖА [13:55:40]line ТРК (МРК, ГНК) : 32 [13:55:40]line Товар: 2710124130 [13:55:40]line Аи-92-К-5 [13:55:40]line 10.000 * 64.80 [13:55:40]line = 648.00 [13:55:40]line НДС 12% НСП 1% [13:55:40]line > о реализуемом товаре [13:55:40]line ИТОГО: 648.00 [13:55:40]line НСП 1% : 5.73 [13:55:40]line НДС 12% : 68.81 [13:55:40]line Наличными: 648.00 [13:55:40]line Безнал.: 0.00 [13:55:40]line Место: АЗС № 108 "Партнер Нефть" [13:55:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:55:40]line СНО: Общий режим [13:55:40]line Чек 152 15.04.2024 13:55 [13:55:40]line Смена: 117 ФФД: 1.0 [13:55:40]line ЗНМ: 0300000027 [13:55:40]line РНМ: 0000138879044617 [13:55:40]line Версия ККМ: 001 [13:55:40]line ФМ: 0000000000963154 [13:55:40]line ФД: 29558 [13:55:40]line ФПД: 208569342418948 [13:55:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T135543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29558&fm=208569342418948&tin=02508201610067®Number=0000138879044617&sum=64800 [13:55:40]written 0, free lines is 4095 [13:55:40]OFD Sender: Processing packet 29558 [packets to send 8, broken 7] [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00029558 [13:55:40]OFD Sender: To server: pG, [13:55:40]CommunicateWithHost lk.salyk.kg:30040 [13:55:40]ConnectInit lk.salyk.kg [13:55:40]Connected sock=10 [13:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 C8 07 01 0B 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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 98 00 00 00 F4 03 04 00 DF 31 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 73 00 00 35 04 06 00 BD B1 55 90 E0 04 41 22 05 8E CB 22 14 14 [13:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 07 47 00 A0 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 73 00 00 F4 03 04 00 80 DC 1C 66 B6 04 01 00 00 55 D2 F6 CE B9 1A 9D 17 [13:55:40]CommunicateWithHost err = 0 [13:55:40]CheckOFDResponse [13:55:40]1017 (14) - 77093643461234 [13:55:40]1041 (16) - 0000000000963154 [13:55:40]1040 (4) - 29558 [13:55:40]1012 (4) - 15.04.2024 07:51 [13:55:40]1206 (1) - 0 [13:55:40]OFD Sender: Remove packet 29558 [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00029558 [13:55:40]NVStorageDeleteData [13:55:40]Write to MH i2c: 01 00 00 F2 47 39 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 F2 47 00 00 00 00 00 04 0D 51 [13:55:40]RasterBufferAndPrint [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]line [13:55:40]written 0, free lines is 3337 [13:55:40]MH_Cut [13:55:40]Write to MH i2c: D1 01 00 F9 47 01 12 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 01 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: D1 01 00 F9 47 00 11 [13:55:40]Write to MH i2c: 01 00 00 FA 47 41 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:41]OFD Sender: No OFD packet to send [13:55:41]*** Cut start [13:55:41]*** Partial cut [13:55:41]*** CUTSNS_PIN = 1 [13:55:41]*** CUTSNS_PIN = 0 [13:55:41]*** Brake cut motor [13:55:42]Read from MH i2c: 01 [13:55:42]MH_I2C_Read... [13:55:42]*** Stop cut motor [13:55:42]*** Cut end [13:55:42]Read from MH i2c: 01 07 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: 01 07 00 FA 47 00 00 00 00 00 FF 0F 56 [13:55:42]process_action close_receipt done [13:55:42]requested_data is exist [13:55:42]produce_requested_data [13:55:42]requested_item fm.sn is exist - process it [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 11 00 00 [13:55:42]Write to MH i2c: E2 08 00 FB 47 80 11 00 00 00 00 00 00 BC [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 17 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 17 00 FB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [13:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:55:42]wFMCommunicate OK [13:55:42]requested_item fd.num is exist - process it [13:55:42]SAM_PROTO_GetFieldsCounters [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 13 00 00 [13:55:42]Write to MH i2c: E2 08 00 FC 47 80 13 00 00 00 00 00 00 BF [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 62 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 62 00 FC 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 73 00 00 0E 04 04 00 75 00 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 23 [13:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 73 00 00 0E 04 04 00 75 00 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 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_GetFieldsCounters done [13:55:42]requested_item shift.num is exist - process it [13:55:42]requested_item shift.opened is exist - process it [13:55:42]req_shift_opened [13:55:42]FM_GetShiftState [13:55:42]SAM_PROTO_GetShiftState [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 13 01 00 [13:55:42]Write to MH i2c: E2 08 00 FD 47 80 13 01 00 00 00 00 00 C1 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0E 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 0E 00 FD 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B5 [13:55:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_GetShiftState done [13:55:42]FM_GetShiftState done [13:55:42]req_shift_opened done [13:55:42]requested_item shift.open_date is exist - process it [13:55:42]req_shift_open_date [13:55:42]req_shift_open_date done [13:55:42]produce_requested_data done [13:55:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29558,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [13:55:42]process_action_free close_receipt [13:55:42]json_value_free [13:55:42]json_value_free done [13:55:42]process_json_proto returns [13:55:42]Send response to host [13:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29558,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [13:55:42]free response buf [13:55:42]execute_script done [13:55:42]execute_script returns [13:55:42]free content buf [13:55:42]Sock 9.Close socket [13:55:42]Sock 9.Thread stoped [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:25]accept exits with 8 [14:00:25]New connection [14:00:25]New thread 3067112804 created [14:00:25]Thread 3066969444 joined [14:00:25]Waiting for new connection... [14:00:25] Sock 8.Parse request [14:00:25]Sock 8.Check first char [14:00:25]Sock 8.First char is OK [14:00:25]request: POST /json_proto HTTP/1.0 [14:00:25]Method: POST [14:00:25]URL: /json_proto [14:00:25]Method is POST - this is cgi request [14:00:25]url: /json_proto [14:00:25]query_string will be loaded in cgi processing [14:00:25]execute_cgi json_proto POST (null) [14:00:25]execute_cgi path=json_proto method=POST [14:00:25]POST find Content-Length [14:00:25]Host: 172.17.33.3:8080 [14:00:25]Content-Length: 808 [14:00:25]Content-Type: application/json [14:00:25] [14:00:25]POST finish read [14:00:25]Found Content-Length = 808 [14:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347989", "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" : 64.80, "quantity" : 23.150, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:25]execute_script... [14:00: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)347989", "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" : 64.80, "quantity" : 23.150, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:25]POST & json_proto [14:00:25]process_json_proto [14:00:25]json parsed OK: [14:00:25]protocol is kg_v1.0 [14:00:25]action value=close_receipt [14:00:25]process_action close_receipt [14:00:25]cmd_close_receipt [14:00:25]MH_GetDate [14:00:25]Write to MH i2c: F0 00 00 FE 47 34 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: F0 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: F0 09 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: F0 09 00 FE 47 00 FE 32 1D 66 23 5B 8F 65 62 [14:00:25]GetLastDocTimeStamp 1713189343 [14:00:25]current date 1713189630 [14:00:25]FM_GetShiftState [14:00:25]SAM_PROTO_GetShiftState [14:00:25]wFMCommunicate request_size=4 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 13 01 00 [14:00:25]Write to MH i2c: E2 08 00 FF 47 80 13 01 00 00 00 00 00 C3 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0E 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0E 00 FF 47 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B7 [14:00:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:00:25]wFMCommunicate OK [14:00:25]SAM_PROTO_GetShiftState done [14:00:25]FM_GetShiftState done [14:00:25]opened in 1713140468 [14:00:25]opened+sec_in_day 1713226868 [14:00:25]quantity*price = 150012 [14:00:25]sum+1 = 150013 [14:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 153 15.04.2024 14:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29559 ФПД: 220098611878485 1/tax-web-control/client/api/v1/ticket?date=20240415T140030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29559&fm=220098611878485&tin=02508201610067®Number=0000138879044617&sum=150012 [14:00:26]StoreToDocumentArchive [14:00:26]shift 117 fd 29559 [14:00:26]save to /storage/0117/doc_00029559 [14:00:26]save last doc name /storage/0117/doc_00029559 to /storage/kkm_last_doc_name [14:00:26]save OK [14:00:26]Clear old archive folders... [14:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:26]tlvbuf is B6F7F5D0 [14:00:26]SAM_PROTO_ClearQueue [14:00:26]wFMCommunicate request_size=4 [14:00:26]MH_SAM_APDU [14:00:26]CAPDU: 80 09 00 00 [14:00:26]Write to MH i2c: E2 08 00 0C 48 80 09 00 00 00 00 00 00 C6 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:26]Read from MH i2c: E2 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 03 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: E2 03 00 0C 48 00 90 00 C8 [14:00:26]RAPDU: 90 00 [14:00:26]wFMCommunicate OK [14:00:26]SAM_PROTO_ClearQueue done [14:00:26]KKMCreateOFDPacket [14:00:26]OFDProtocolAddRootSTLVToBuf [14:00:26]FM_MakeSignedData [14:00:26]FM_MakeSignedData [14:00:26]SAM_PROTO_SignData [14:00:26]wFMCommunicate request_size=4 [14:00:26]MH_SAM_APDU [14:00:26]CAPDU: 80 0D 01 02 [14:00:26]Write to MH i2c: E2 08 00 0D 48 80 0D 01 02 00 00 00 00 CE [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 0D 48 00 90 00 C9 [14:00:27]RAPDU: 90 00 [14:00:27]wFMCommunicate OK [14:00:27]wFMCommunicate request_size=255 [14:00:27]MH_SAM_APDU [14:00: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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FE 32 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 73 00 00 35 04 06 00 C8 [14:00:27]Write to MH i2c: E2 02 01 0E 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FE 32 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 73 00 00 35 04 06 00 C8 00 00 1A [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 0E 48 00 90 00 CA [14:00:27]RAPDU: 90 00 [14:00:27]wFMCommunicate OK [14:00:27]wFMCommunicate request_size=10 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 0D 02 02 05 2D B3 93 9A 55 [14:00:27]Write to MH i2c: E2 0D 00 0F 48 80 0D 02 02 05 00 2D B3 93 9A 55 00 00 3D [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 03 00 0F 48 00 90 00 CB [14:00:27]RAPDU: 90 00 [14:00:27]wFMCommunicate OK [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 0D 03 02 [14:00:27]Write to MH i2c: E2 08 00 10 48 80 0D 03 02 00 00 00 00 D3 [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 0B 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 0B 00 10 48 00 94 4C 92 8B DD CC 13 58 90 00 E5 [14:00:27]RAPDU: 94 4C 92 8B DD CC 13 58 90 00 [14:00:27]wFMCommunicate OK [14:00:27]SAM_PROTO_SignData done [14:00:27]FM_MakeSignedData done [14:00:27]CreateOFDProtocolMessage [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 11 00 00 [14:00:27]Write to MH i2c: E2 08 00 11 48 80 11 00 00 00 00 00 00 D3 [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 17 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 17 00 11 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [14:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:00:27]wFMCommunicate OK [14:00:27]CreateOFDProtocolMessage done [14:00:27]OFDSenderStorePacket 29559 [14:00:27]StoreOFDPacket docnum=29559 [14:00:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8E 12 07 01 C0 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FE 32 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 73 00 00 35 04 06 00 C8 2D B3 93 9A 55 94 4C 92 8B DD CC 13 58 [14:00:27]CheckFolder [14:00:27]dirname=/storage/ofd_packets [14:00:27]CheckFolder done [14:00:27]ProducePacketName [14:00:27]name=ofd_packets/00029559 [14:00:27]NVStorageSaveData ofd_packets/00029559 [14:00:27]File name is /storage/ofd_packets/00029559 [14:00:27]Write 301 bytes [14:00:27]NVStorageSaveData done [14:00:27]OFDSenderStorePacket done [14:00:27]KKMCreateOFDPacket done [14:00:27]NVStorageSaveData kkm_last_timestamp [14:00:27]File name is /storage/kkm_last_timestamp [14:00:27]Write 4 bytes [14:00:27]NVStorageSaveData done [14:00:27]ExternCall_PrintAddStr [14:00:27]wPrintStart [14:00:27]Write to MH i2c: 01 00 00 12 48 5A [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: 01 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: 01 07 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: 01 07 00 12 48 00 00 00 00 00 FF 0F 6F [14:00:27]RasterBufferAndPrint [14:00:27]line Счет N : (1)347989 [14:00:27]line ИНН: 02508201610067 [14:00:27]line Контрольно-Кассовый Чек [14:00:27]line ПРОДАЖА [14:00:27]line ТРК (МРК, ГНК) : 53 [14:00:27]line Товар: 2710124130 [14:00:27]line Аи-92-К-5 [14:00:27]line 23.150 * 64.80 [14:00:27]line = 1500.12 [14:00:27]line НДС 12% НСП 1% [14:00:27]line > о реализуемом товаре [14:00:27]line ИТОГО: 1500.12 [14:00:27]line НСП 1% : 13.27 [14:00:27]line НДС 12% : 159.30 [14:00:27]line Наличными: 0.00 [14:00:27]line Безнал.: 1500.12 [14:00:27]line Место: АЗС № 108 "Партнер Нефть" [14:00:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:00:27]line СНО: Общий режим [14:00:27]line Чек 153 15.04.2024 14:00 [14:00:27]line Смена: 117 ФФД: 1.0 [14:00:27]line ЗНМ: 0300000027 [14:00:27]line РНМ: 0000138879044617 [14:00:27]line Версия ККМ: 001 [14:00:27]line Платежная система: О! деньги [14:00:27]line ФМ: 0000000000963154 [14:00:27]line ФД: 29559 [14:00:27]line ФПД: 220098611878485 [14:00:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T140030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29559&fm=220098611878485&tin=02508201610067®Number=0000138879044617&sum=150012 [14:00:27]OFD Sender: Processing packet 29559 [packets to send 8, broken 7] [14:00:27]ProducePacketName [14:00:27]name=ofd_packets/00029559 [14:00:27]OFD Sender: To server: pG, [14:00:27]CommunicateWithHost lk.salyk.kg:30040 [14:00:27]ConnectInit lk.salyk.kg [14:00:27]written 0, free lines is 4095 [14:00:27]Connected sock=10 [14:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8E 12 07 01 C0 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FE 32 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 73 00 00 35 04 06 00 C8 2D B3 93 9A 55 94 4C 92 8B DD CC 13 58 [14:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C A2 47 00 2D 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 39 36 33 31 35 34 10 04 04 00 77 73 00 00 F4 03 04 00 9F DD 1C 66 B6 04 01 00 00 ED 42 07 2B D0 ED C8 7C [14:00:28]CommunicateWithHost err = 0 [14:00:28]CheckOFDResponse [14:00:28]1017 (14) - 77093643461234 [14:00:28]1041 (16) - 0000000000963154 [14:00:28]1040 (4) - 29559 [14:00:28]1012 (4) - 15.04.2024 07:56 [14:00:28]1206 (1) - 0 [14:00:28]OFD Sender: Remove packet 29559 [14:00:28]ProducePacketName [14:00:28]name=ofd_packets/00029559 [14:00:28]NVStorageDeleteData [14:00:28]Write to MH i2c: 01 00 00 3B 48 83 [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 07 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 07 00 3B 48 00 00 00 00 00 E9 0C 7F [14:00:28]RasterBufferAndPrint [14:00:28]line [14:00:28]line [14:00:28]line [14:00:28]line [14:00:28]line [14:00:28]written 0, free lines is 3312 [14:00:28]MH_Cut [14:00:28]Write to MH i2c: D1 01 00 42 48 01 5C [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: D1 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: D1 01 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: D1 01 00 42 48 00 5B [14:00:28]Write to MH i2c: 01 00 00 43 48 8B [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]OFD Sender: No OFD packet to send [14:00:28]*** Cut start [14:00:28]*** Partial cut [14:00:28]*** CUTSNS_PIN = 1 [14:00:29]*** CUTSNS_PIN = 0 [14:00:29]*** Brake cut motor [14:00:29]Read from MH i2c: 01 [14:00:29]MH_I2C_Read... [14:00:29]*** Stop cut motor [14:00:29]*** Cut end [14:00:29]Read from MH i2c: 01 07 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: 01 07 00 43 48 00 00 00 00 00 FF 0F A0 [14:00:29]process_action close_receipt done [14:00:29]requested_data is exist [14:00:29]produce_requested_data [14:00:29]requested_item fm.sn is exist - process it [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 11 00 00 [14:00:29]Write to MH i2c: E2 08 00 44 48 80 11 00 00 00 00 00 00 06 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:29]Read from MH i2c: E2 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 17 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 17 00 44 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [14:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:00:29]wFMCommunicate OK [14:00:29]requested_item fd.num is exist - process it [14:00:29]SAM_PROTO_GetFieldsCounters [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 13 00 00 [14:00:29]Write to MH i2c: E2 08 00 45 48 80 13 00 00 00 00 00 00 09 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:29]Read from MH i2c: E2 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 62 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 62 00 45 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 73 00 00 0E 04 04 00 75 00 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 71 [14:00:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 73 00 00 0E 04 04 00 75 00 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:00:29]wFMCommunicate OK [14:00:29]SAM_PROTO_GetFieldsCounters done [14:00:29]requested_item shift.num is exist - process it [14:00:29]requested_item shift.opened is exist - process it [14:00:29]req_shift_opened [14:00:29]FM_GetShiftState [14:00:29]SAM_PROTO_GetShiftState [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 13 01 00 [14:00:29]Write to MH i2c: E2 08 00 46 48 80 13 01 00 00 00 00 00 0B [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:29]Read from MH i2c: E2 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 46 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FF [14:00:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:00:29]wFMCommunicate OK [14:00:29]SAM_PROTO_GetShiftState done [14:00:29]FM_GetShiftState done [14:00:29]req_shift_opened done [14:00:29]requested_item shift.open_date is exist - process it [14:00:29]req_shift_open_date [14:00:29]req_shift_open_date done [14:00:29]produce_requested_data done [14:00:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29559,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:00:29]process_action_free close_receipt [14:00:29]json_value_free [14:00:29]json_value_free done [14:00:29]process_json_proto returns [14:00:29]Send response to host [14:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29559,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:00:29]free response buf [14:00:29]execute_script done [14:00:29]execute_script returns [14:00:29]free content buf [14:00:29]Sock 8.Close socket [14:00:29]Sock 8.Thread stoped [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:46]accept exits with 9 [14:00:46]New connection [14:00:46]New thread 3066969444 created [14:00:46]Thread 3067112804 joined [14:00:46]Waiting for new connection... [14:00:46] Sock 9.Parse request [14:00:46]Sock 9.Check first char [14:00:46]Sock 9.First char is OK [14:00:46]request: POST /json_proto HTTP/1.0 [14:00:46]Method: POST [14:00:46]URL: /json_proto [14:00:46]Method is POST - this is cgi request [14:00:46]url: /json_proto [14:00:46]query_string will be loaded in cgi processing [14:00:46]execute_cgi json_proto POST (null) [14:00:46]execute_cgi path=json_proto method=POST [14:00:46]POST find Content-Length [14:00:46]Host: 172.17.33.3:8080 [14:00:46]Content-Length: 811 [14:00:46]Content-Type: application/json [14:00:46] [14:00:46]POST finish read [14:00:46]Found Content-Length = 811 [14:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 57.230, "sum" : 1911.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1911.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:46]execute_script... [14:00:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 57.230, "sum" : 1911.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1911.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:46]POST & json_proto [14:00:46]process_json_proto [14:00:46]json parsed OK: [14:00:46]protocol is kg_v1.0 [14:00:46]action value=close_receipt [14:00:46]process_action close_receipt [14:00:46]cmd_close_receipt [14:00:46]MH_GetDate [14:00:46]Write to MH i2c: F0 00 00 47 48 7E [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 09 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: F0 09 00 47 48 00 13 33 1D 66 23 5B 8F 65 C2 [14:00:46]GetLastDocTimeStamp 1713189630 [14:00:46]current date 1713189651 [14:00:46]FM_GetShiftState [14:00:46]SAM_PROTO_GetShiftState [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 13 01 00 [14:00:46]Write to MH i2c: E2 08 00 48 48 80 13 01 00 00 00 00 00 0D [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 0E 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 0E 00 48 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 01 [14:00:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:00:46]wFMCommunicate OK [14:00:46]SAM_PROTO_GetShiftState done [14:00:46]FM_GetShiftState done [14:00:46]opened in 1713140468 [14:00:46]opened+sec_in_day 1713226868 [14:00:46]quantity*price = 191148 [14:00:46]sum+1 = 191149 [14:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1911.48 НСП 1% : 16.92 НДС 12% : 202.99 Наличными: 0.00 Безнал.: 1911.48 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 154 15.04.2024 14:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29560 ФПД: 101163672210621 1/tax-web-control/client/api/v1/ticket?date=20240415T140051&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29560&fm=101163672210621&tin=02508201610067®Number=0000138879044617&sum=191148 [14:00:47]StoreToDocumentArchive [14:00:47]shift 117 fd 29560 [14:00:47]save to /storage/0117/doc_00029560 [14:00:47]save last doc name /storage/0117/doc_00029560 to /storage/kkm_last_doc_name [14:00:47]save OK [14:00:47]Clear old archive folders... [14:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:00:47]tlvbuf is 0022A890 [14:00:47]SAM_PROTO_ClearQueue [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 09 00 00 [14:00:47]Write to MH i2c: E2 08 00 55 48 80 09 00 00 00 00 00 00 0F [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:47]Read from MH i2c: E2 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 [14:00:47]MH_I2C_Read... [14:00:47]Read from MH i2c: E2 03 00 55 48 00 90 00 11 [14:00:47]RAPDU: 90 00 [14:00:47]wFMCommunicate OK [14:00:47]SAM_PROTO_ClearQueue done [14:00:47]KKMCreateOFDPacket [14:00:47]OFDProtocolAddRootSTLVToBuf [14:00:47]FM_MakeSignedData [14:00:47]FM_MakeSignedData [14:00:47]SAM_PROTO_SignData [14:00:47]wFMCommunicate request_size=4 [14:00:47]MH_SAM_APDU [14:00:47]CAPDU: 80 0D 01 02 [14:00:47]Write to MH i2c: E2 08 00 56 48 80 0D 01 02 00 00 00 00 17 [14:00:47]Write i2c OK [14:00:47]MH_I2C_Read... [14:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:48]Read from MH i2c: E2 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 56 48 00 90 00 12 [14:00:48]RAPDU: 90 00 [14:00:48]wFMCommunicate OK [14:00:48]wFMCommunicate request_size=255 [14:00:48]MH_SAM_APDU [14:00:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 AC EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC EA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC EA 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 13 33 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 73 00 00 35 04 06 00 5C 02 [14:00:48]Write to MH i2c: E2 02 01 57 48 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 AC EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC EA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC EA 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 13 33 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 73 00 00 35 04 06 00 5C 02 00 00 99 [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:48]Read from MH i2c: E2 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 57 48 00 90 00 13 [14:00:48]RAPDU: 90 00 [14:00:48]wFMCommunicate OK [14:00:48]wFMCommunicate request_size=9 [14:00:48]MH_SAM_APDU [14:00:48]CAPDU: 80 0D 02 02 04 00 BF 0C BD [14:00:48]Write to MH i2c: E2 0C 00 58 48 80 0D 02 02 04 00 00 BF 0C BD 00 00 AA [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:48]Read from MH i2c: E2 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 03 00 58 48 00 90 00 14 [14:00:48]RAPDU: 90 00 [14:00:48]wFMCommunicate OK [14:00:48]wFMCommunicate request_size=4 [14:00:48]MH_SAM_APDU [14:00:48]CAPDU: 80 0D 03 02 [14:00:48]Write to MH i2c: E2 08 00 59 48 80 0D 03 02 00 00 00 00 1C [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:48]Read from MH i2c: E2 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 0B 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 0B 00 59 48 00 7B 08 5E 00 4A 99 B9 C5 90 00 5F [14:00:48]RAPDU: 7B 08 5E 00 4A 99 B9 C5 90 00 [14:00:48]wFMCommunicate OK [14:00:48]SAM_PROTO_SignData done [14:00:48]FM_MakeSignedData done [14:00:48]CreateOFDProtocolMessage [14:00:48]wFMCommunicate request_size=4 [14:00:48]MH_SAM_APDU [14:00:48]CAPDU: 80 11 00 00 [14:00:48]Write to MH i2c: E2 08 00 5A 48 80 11 00 00 00 00 00 00 1C [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:48]Read from MH i2c: E2 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 17 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: E2 17 00 5A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [14:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:00:48]wFMCommunicate OK [14:00:48]CreateOFDProtocolMessage done [14:00:48]OFDSenderStorePacket 29560 [14:00:48]StoreOFDPacket docnum=29560 [14:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 4A 41 06 01 F1 C5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 AC EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC EA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC EA 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 13 33 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 73 00 00 35 04 06 00 5C 02 00 BF 0C BD 7B 08 5E 00 4A 99 B9 C5 [14:00:48]CheckFolder [14:00:48]dirname=/storage/ofd_packets [14:00:48]CheckFolder done [14:00:48]ProducePacketName [14:00:48]name=ofd_packets/00029560 [14:00:48]NVStorageSaveData ofd_packets/00029560 [14:00:48]File name is /storage/ofd_packets/00029560 [14:00:48]Write 300 bytes [14:00:48]NVStorageSaveData done [14:00:48]OFDSenderStorePacket done [14:00:48]KKMCreateOFDPacket done [14:00:48]NVStorageSaveData kkm_last_timestamp [14:00:48]File name is /storage/kkm_last_timestamp [14:00:48]Write 4 bytes [14:00:48]NVStorageSaveData done [14:00:48]ExternCall_PrintAddStr [14:00:48]wPrintStart [14:00:48]Write to MH i2c: 01 00 00 5B 48 A3 [14:00:48]Write i2c OK [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 07 00 [14:00:48]MH_I2C_Read... [14:00:48]Read from MH i2c: 01 07 00 5B 48 00 00 00 00 00 FF 0F B8 [14:00:48]RasterBufferAndPrint [14:00:48]line Счет N : (1)347988 [14:00:48]line ИНН: 02508201610067 [14:00:48]line Контрольно-Кассовый Чек [14:00:48]line ПРОДАЖА [14:00:48]line ТРК (МРК, ГНК) : 71 [14:00:48]line Товар: 2711129700 [14:00:48]line ГАЗ-К-5 [14:00:48]line 57.230 * 33.40 [14:00:48]line = 1911.48 [14:00:48]line НДС 12% НСП 1% [14:00:48]line > о реализуемом товаре [14:00:48]line ИТОГО: 1911.48 [14:00:48]line НСП 1% : 16.92 [14:00:48]line НДС 12% : 202.99 [14:00:48]line Наличными: 0.00 [14:00:48]line Безнал.: 1911.48 [14:00:48]line Место: АЗС № 108 "Партнер Нефть" [14:00:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:00:48]line СНО: Общий режим [14:00:48]line Чек 154 15.04.2024 14:00 [14:00:48]line Смена: 117 ФФД: 1.0 [14:00:48]line ЗНМ: 0300000027 [14:00:48]line РНМ: 0000138879044617 [14:00:48]line Версия ККМ: 001 [14:00:48]line Платежная система: О! деньги [14:00:48]line ФМ: 0000000000963154 [14:00:48]line ФД: 29560 [14:00:48]line ФПД: 101163672210621 [14:00:48]line 1/tax-web-control/client/api/v1/ticket?date=20240415T140051&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29560&fm=101163672210621&tin=02508201610067®Number=0000138879044617&sum=191148 [14:00:48]OFD Sender: Processing packet 29560 [packets to send 8, broken 7] [14:00:48]ProducePacketName [14:00:48]name=ofd_packets/00029560 [14:00:48]OFD Sender: To server: pG, [14:00:48]CommunicateWithHost lk.salyk.kg:30040 [14:00:48]ConnectInit lk.salyk.kg [14:00:48]written 0, free lines is 4095 [14:00:48]Connected sock=10 [14:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 4A 41 06 01 F1 C5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 AC EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC EA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC EA 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 13 33 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 73 00 00 35 04 06 00 5C 02 00 BF 0C BD 7B 08 5E 00 4A 99 B9 C5 [14:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 59 9A 47 00 10 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 73 00 00 F4 03 04 00 B4 DD 1C 66 B6 04 01 00 00 E6 AB 40 49 52 D6 CB 8C [14:00:49]CommunicateWithHost err = 0 [14:00:49]CheckOFDResponse [14:00:49]1017 (14) - 77093643461234 [14:00:49]1041 (16) - 0000000000963154 [14:00:49]1040 (4) - 29560 [14:00:49]1012 (4) - 15.04.2024 07:56 [14:00:49]1206 (1) - 0 [14:00:49]OFD Sender: Remove packet 29560 [14:00:49]ProducePacketName [14:00:49]name=ofd_packets/00029560 [14:00:49]NVStorageDeleteData [14:00:49]Write to MH i2c: 01 00 00 84 48 CC [14:00:49]Write i2c OK [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: 01 [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: 01 07 00 [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: 01 07 00 84 48 00 00 00 00 00 D6 0C B5 [14:00:49]RasterBufferAndPrint [14:00:49]line [14:00:49]line [14:00:49]line [14:00:49]line [14:00:49]line [14:00:49]written 0, free lines is 3294 [14:00:49]MH_Cut [14:00:49]Write to MH i2c: D1 01 00 8B 48 01 A5 [14:00:49]Write i2c OK [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: D1 [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: D1 01 00 [14:00:49]MH_I2C_Read... [14:00:49]Read from MH i2c: D1 01 00 8B 48 00 A4 [14:00:49]Write to MH i2c: 01 00 00 8C 48 D4 [14:00:49]Write i2c OK [14:00:49]MH_I2C_Read... [14:00:49]OFD Sender: No OFD packet to send [14:00:49]*** Cut start [14:00:49]*** Partial cut [14:00:49]*** CUTSNS_PIN = 1 [14:00:50]*** CUTSNS_PIN = 0 [14:00:50]*** Brake cut motor [14:00:50]Read from MH i2c: 01 [14:00:50]MH_I2C_Read... [14:00:50]*** Stop cut motor [14:00:50]*** Cut end [14:00:50]Read from MH i2c: 01 07 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: 01 07 00 8C 48 00 00 00 00 00 FF 0F E9 [14:00:50]process_action close_receipt done [14:00:50]requested_data is exist [14:00:50]produce_requested_data [14:00:50]requested_item fm.sn is exist - process it [14:00:50]wFMCommunicate request_size=4 [14:00:50]MH_SAM_APDU [14:00:50]CAPDU: 80 11 00 00 [14:00:50]Write to MH i2c: E2 08 00 8D 48 80 11 00 00 00 00 00 00 4F [14:00:50]Write i2c OK [14:00:50]MH_I2C_Read... [14:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:50]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 17 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 17 00 8D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [14:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:00:50]wFMCommunicate OK [14:00:50]requested_item fd.num is exist - process it [14:00:50]SAM_PROTO_GetFieldsCounters [14:00:50]wFMCommunicate request_size=4 [14:00:50]MH_SAM_APDU [14:00:50]CAPDU: 80 13 00 00 [14:00:50]Write to MH i2c: E2 08 00 8E 48 80 13 00 00 00 00 00 00 52 [14:00:50]Write i2c OK [14:00:50]MH_I2C_Read... [14:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:50]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 62 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 62 00 8E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 73 00 00 0E 04 04 00 75 00 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 BE [14:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 73 00 00 0E 04 04 00 75 00 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:00:50]wFMCommunicate OK [14:00:50]SAM_PROTO_GetFieldsCounters done [14:00:50]requested_item shift.num is exist - process it [14:00:50]requested_item shift.opened is exist - process it [14:00:50]req_shift_opened [14:00:50]FM_GetShiftState [14:00:50]SAM_PROTO_GetShiftState [14:00:50]wFMCommunicate request_size=4 [14:00:50]MH_SAM_APDU [14:00:50]CAPDU: 80 13 01 00 [14:00:50]Write to MH i2c: E2 08 00 8F 48 80 13 01 00 00 00 00 00 54 [14:00:50]Write i2c OK [14:00:50]MH_I2C_Read... [14:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:50]Read from MH i2c: E2 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 0E 00 [14:00:50]MH_I2C_Read... [14:00:50]Read from MH i2c: E2 0E 00 8F 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 48 [14:00:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:00:50]wFMCommunicate OK [14:00:50]SAM_PROTO_GetShiftState done [14:00:50]FM_GetShiftState done [14:00:50]req_shift_opened done [14:00:50]requested_item shift.open_date is exist - process it [14:00:50]req_shift_open_date [14:00:50]req_shift_open_date done [14:00:50]produce_requested_data done [14:00:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29560,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:00:50]process_action_free close_receipt [14:00:50]json_value_free [14:00:50]json_value_free done [14:00:50]process_json_proto returns [14:00:50]Send response to host [14:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29560,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:00:50]free response buf [14:00:50]execute_script done [14:00:50]execute_script returns [14:00:50]free content buf [14:00:50]Sock 9.Close socket [14:00:50]Sock 9.Thread stoped [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:40]accept exits with 8 [14:10:40]New connection [14:10:40]New thread 3067112804 created [14:10:41]Thread 3066969444 joined [14:10:41]Waiting for new connection... [14:10:41] Sock 8.Parse request [14:10:41]Sock 8.Check first char [14:10:41]Sock 8.First char is OK [14:10:41]request: POST /json_proto HTTP/1.0 [14:10:41]Method: POST [14:10:41]URL: /json_proto [14:10:41]Method is POST - this is cgi request [14:10:41]url: /json_proto [14:10:41]query_string will be loaded in cgi processing [14:10:41]execute_cgi json_proto POST (null) [14:10:41]execute_cgi path=json_proto method=POST [14:10:41]POST find Content-Length [14:10:41]Host: 172.17.33.3:8080 [14:10:41]Content-Length: 793 [14:10:41]Content-Type: application/json [14:10:41] [14:10:41]POST finish read [14:10:41]Found Content-Length = 793 [14:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:41]execute_script... [14:10: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)347990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:41]POST & json_proto [14:10:41]process_json_proto [14:10:41]json parsed OK: [14:10:41]protocol is kg_v1.0 [14:10:41]action value=close_receipt [14:10:41]process_action close_receipt [14:10:41]cmd_close_receipt [14:10:41]MH_GetDate [14:10:41]Write to MH i2c: F0 00 00 90 48 C7 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: F0 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: F0 09 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: F0 09 00 90 48 00 65 35 1D 66 23 5B 8F 65 5F [14:10:41]GetLastDocTimeStamp 1713189651 [14:10:41]current date 1713190245 [14:10:41]FM_GetShiftState [14:10:41]SAM_PROTO_GetShiftState [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 13 01 00 [14:10:41]Write to MH i2c: E2 08 00 91 48 80 13 01 00 00 00 00 00 56 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0E 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0E 00 91 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [14:10:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:10:41]wFMCommunicate OK [14:10:41]SAM_PROTO_GetShiftState done [14:10:41]FM_GetShiftState done [14:10:41]opened in 1713140468 [14:10:41]opened+sec_in_day 1713226868 [14:10:41]quantity*price = 200037 [14:10:41]sum+1 = 200039 [14:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 155 15.04.2024 14:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29561 ФПД: 26877405921706 1/tax-web-control/client/api/v1/ticket?date=20240415T141045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29561&fm=26877405921706&tin=02508201610067®Number=0000138879044617&sum=200038 [14:10:42]StoreToDocumentArchive [14:10:42]shift 117 fd 29561 [14:10:42]save to /storage/0117/doc_00029561 [14:10:42]save last doc name /storage/0117/doc_00029561 to /storage/kkm_last_doc_name [14:10:42]save OK [14:10:42]Clear old archive folders... [14:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:42]tlvbuf is 0025E5F0 [14:10:42]SAM_PROTO_ClearQueue [14:10:42]wFMCommunicate request_size=4 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 09 00 00 [14:10:42]Write to MH i2c: E2 08 00 9E 48 80 09 00 00 00 00 00 00 58 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 9E 48 00 90 00 5A [14:10:42]RAPDU: 90 00 [14:10:42]wFMCommunicate OK [14:10:42]SAM_PROTO_ClearQueue done [14:10:42]KKMCreateOFDPacket [14:10:42]OFDProtocolAddRootSTLVToBuf [14:10:42]FM_MakeSignedData [14:10:42]FM_MakeSignedData [14:10:42]SAM_PROTO_SignData [14:10:42]wFMCommunicate request_size=4 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 0D 01 02 [14:10:42]Write to MH i2c: E2 08 00 9F 48 80 0D 01 02 00 00 00 00 60 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 9F 48 00 90 00 5B [14:10:42]RAPDU: 90 00 [14:10:42]wFMCommunicate OK [14:10:42]wFMCommunicate request_size=255 [14:10:42]MH_SAM_APDU [14:10: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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 65 35 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 73 00 00 35 04 06 00 18 [14:10:42]Write to MH i2c: E2 02 01 A0 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 65 35 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 73 00 00 35 04 06 00 18 00 00 CE [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 A0 48 00 90 00 5C [14:10:42]RAPDU: 90 00 [14:10:42]wFMCommunicate OK [14:10:42]wFMCommunicate request_size=10 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 0D 02 02 05 71 E2 3B 81 AA [14:10:42]Write to MH i2c: E2 0D 00 A1 48 80 0D 02 02 05 00 71 E2 3B 81 AA 00 00 26 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 03 00 A1 48 00 90 00 5D [14:10:42]RAPDU: 90 00 [14:10:42]wFMCommunicate OK [14:10:42]wFMCommunicate request_size=4 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 0D 03 02 [14:10:42]Write to MH i2c: E2 08 00 A2 48 80 0D 03 02 00 00 00 00 65 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 0B 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 0B 00 A2 48 00 0D BF B6 11 52 1A 13 2A 90 00 A2 [14:10:42]RAPDU: 0D BF B6 11 52 1A 13 2A 90 00 [14:10:42]wFMCommunicate OK [14:10:42]SAM_PROTO_SignData done [14:10:42]FM_MakeSignedData done [14:10:42]CreateOFDProtocolMessage [14:10:42]wFMCommunicate request_size=4 [14:10:42]MH_SAM_APDU [14:10:42]CAPDU: 80 11 00 00 [14:10:42]Write to MH i2c: E2 08 00 A3 48 80 11 00 00 00 00 00 00 65 [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:42]Read from MH i2c: E2 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 17 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: E2 17 00 A3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [14:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:10:42]wFMCommunicate OK [14:10:42]CreateOFDProtocolMessage done [14:10:42]OFDSenderStorePacket 29561 [14:10:42]StoreOFDPacket docnum=29561 [14:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B7 17 07 01 5E 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 65 35 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 73 00 00 35 04 06 00 18 71 E2 3B 81 AA 0D BF B6 11 52 1A 13 2A [14:10:42]CheckFolder [14:10:42]dirname=/storage/ofd_packets [14:10:42]CheckFolder done [14:10:42]ProducePacketName [14:10:42]name=ofd_packets/00029561 [14:10:42]NVStorageSaveData ofd_packets/00029561 [14:10:42]File name is /storage/ofd_packets/00029561 [14:10:42]Write 301 bytes [14:10:42]NVStorageSaveData done [14:10:42]OFDSenderStorePacket done [14:10:42]KKMCreateOFDPacket done [14:10:42]NVStorageSaveData kkm_last_timestamp [14:10:42]File name is /storage/kkm_last_timestamp [14:10:42]Write 4 bytes [14:10:42]NVStorageSaveData done [14:10:42]ExternCall_PrintAddStr [14:10:42]wPrintStart [14:10:42]Write to MH i2c: 01 00 00 A4 48 EC [14:10:42]Write i2c OK [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 07 00 [14:10:42]MH_I2C_Read... [14:10:42]Read from MH i2c: 01 07 00 A4 48 00 00 00 00 00 FF 0F 01 [14:10:42]RasterBufferAndPrint [14:10:42]line Счет N : (1)347990 [14:10:42]line ИНН: 02508201610067 [14:10:42]line Контрольно-Кассовый Чек [14:10:42]line ПРОДАЖА [14:10:42]line ТРК (МРК, ГНК) : 23 [14:10:42]line Товар: 2710124130 [14:10:42]line Аи-92-К-5 [14:10:42]line 30.870 * 64.80 [14:10:42]line = 2000.38 [14:10:42]line НДС 12% НСП 1% [14:10:42]line > о реализуемом товаре [14:10:42]line ИТОГО: 2000.38 [14:10:42]line НСП 1% : 17.70 [14:10:42]line НДС 12% : 212.43 [14:10:42]line Наличными: 0.00 [14:10:42]line Безнал.: 2000.38 [14:10:42]line Место: АЗС № 108 "Партнер Нефть" [14:10:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:10:42]line СНО: Общий режим [14:10:42]line Чек 155 15.04.2024 14:10 [14:10:42]line Смена: 117 ФФД: 1.0 [14:10:42]line ЗНМ: 0300000027 [14:10:42]line РНМ: 0000138879044617 [14:10:42]line Версия ККМ: 001 [14:10:42]line Платежная система: KICB Банк [14:10:42]line ФМ: 0000000000963154 [14:10:42]line ФД: 29561 [14:10:42]line ФПД: 26877405921706 [14:10:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T141045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29561&fm=26877405921706&tin=02508201610067®Number=0000138879044617&sum=200038 [14:10:43]OFD Sender: Processing packet 29561 [packets to send 8, broken 7] [14:10:43]ProducePacketName [14:10:43]name=ofd_packets/00029561 [14:10:43]OFD Sender: To server: pG, [14:10:43]CommunicateWithHost lk.salyk.kg:30040 [14:10:43]ConnectInit lk.salyk.kg [14:10:43]written 0, free lines is 4095 [14:10:43]Connected sock=10 [14:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B7 17 07 01 5E 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 65 35 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 73 00 00 35 04 06 00 18 71 E2 3B 81 AA 0D BF B6 11 52 1A 13 2A [14:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D8 47 47 00 E3 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 73 00 00 F4 03 04 00 06 E0 1C 66 B6 04 01 00 00 FE B1 1F 30 54 E6 7A 34 [14:10:43]CommunicateWithHost err = 0 [14:10:43]CheckOFDResponse [14:10:43]1017 (14) - 77093643461234 [14:10:43]1041 (16) - 0000000000963154 [14:10:43]1040 (4) - 29561 [14:10:43]1012 (4) - 15.04.2024 08:06 [14:10:43]1206 (1) - 0 [14:10:43]OFD Sender: Remove packet 29561 [14:10:43]ProducePacketName [14:10:43]name=ofd_packets/00029561 [14:10:43]NVStorageDeleteData [14:10:43]Write to MH i2c: 01 00 00 CD 48 15 [14:10:43]Write i2c OK [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: 01 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: 01 07 00 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: 01 07 00 CD 48 00 00 00 00 00 EC 0C 14 [14:10:43]RasterBufferAndPrint [14:10:43]line [14:10:43]line [14:10:43]line [14:10:43]line [14:10:43]line [14:10:43]written 0, free lines is 3314 [14:10:43]MH_Cut [14:10:43]Write to MH i2c: D1 01 00 D4 48 01 EE [14:10:43]Write i2c OK [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: D1 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: D1 01 00 [14:10:43]MH_I2C_Read... [14:10:43]Read from MH i2c: D1 01 00 D4 48 00 ED [14:10:43]Write to MH i2c: 01 00 00 D5 48 1D [14:10:43]Write i2c OK [14:10:43]MH_I2C_Read... [14:10:43]OFD Sender: No OFD packet to send [14:10:44]*** Cut start [14:10:44]*** Partial cut [14:10:44]*** CUTSNS_PIN = 1 [14:10:44]*** CUTSNS_PIN = 0 [14:10:44]*** Brake cut motor [14:10:44]Read from MH i2c: 01 [14:10:44]MH_I2C_Read... [14:10:44]*** Stop cut motor [14:10:44]*** Cut end [14:10:44]Read from MH i2c: 01 07 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: 01 07 00 D5 48 00 00 00 00 00 FF 0F 32 [14:10:44]process_action close_receipt done [14:10:44]requested_data is exist [14:10:44]produce_requested_data [14:10:44]requested_item fm.sn is exist - process it [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 11 00 00 [14:10:44]Write to MH i2c: E2 08 00 D6 48 80 11 00 00 00 00 00 00 98 [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:44]Read from MH i2c: E2 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 17 00 [14:10:44]MH_I2C_Read... [14:10:44]Read from MH i2c: E2 17 00 D6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [14:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:10:44]wFMCommunicate OK [14:10:44]requested_item fd.num is exist - process it [14:10:44]SAM_PROTO_GetFieldsCounters [14:10:44]wFMCommunicate request_size=4 [14:10:44]MH_SAM_APDU [14:10:44]CAPDU: 80 13 00 00 [14:10:44]Write to MH i2c: E2 08 00 D7 48 80 13 00 00 00 00 00 00 9B [14:10:44]Write i2c OK [14:10:44]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 62 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 62 00 D7 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 73 00 00 0E 04 04 00 75 00 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 0B [14:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 73 00 00 0E 04 04 00 75 00 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:10:45]wFMCommunicate OK [14:10:45]SAM_PROTO_GetFieldsCounters done [14:10:45]requested_item shift.num is exist - process it [14:10:45]requested_item shift.opened is exist - process it [14:10:45]req_shift_opened [14:10:45]FM_GetShiftState [14:10:45]SAM_PROTO_GetShiftState [14:10:45]wFMCommunicate request_size=4 [14:10:45]MH_SAM_APDU [14:10:45]CAPDU: 80 13 01 00 [14:10:45]Write to MH i2c: E2 08 00 D8 48 80 13 01 00 00 00 00 00 9D [14:10:45]Write i2c OK [14:10:45]MH_I2C_Read... [14:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:45]Read from MH i2c: E2 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 0E 00 [14:10:45]MH_I2C_Read... [14:10:45]Read from MH i2c: E2 0E 00 D8 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [14:10:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:10:45]wFMCommunicate OK [14:10:45]SAM_PROTO_GetShiftState done [14:10:45]FM_GetShiftState done [14:10:45]req_shift_opened done [14:10:45]requested_item shift.open_date is exist - process it [14:10:45]req_shift_open_date [14:10:45]req_shift_open_date done [14:10:45]produce_requested_data done [14:10:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29561,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:10:45]process_action_free close_receipt [14:10:45]json_value_free [14:10:45]json_value_free done [14:10:45]process_json_proto returns [14:10:45]Send response to host [14:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29561,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:10:45]free response buf [14:10:45]execute_script done [14:10:45]execute_script returns [14:10:45]free content buf [14:10:45]Sock 8.Close socket [14:10:45]Sock 8.Thread stoped [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:32]accept exits with 9 [14:16:32]New connection [14:16:32]New thread 3066969444 created [14:16:32]Thread 3067112804 joined [14:16:32]Waiting for new connection... [14:16:32] Sock 9.Parse request [14:16:32]Sock 9.Check first char [14:16:32]Sock 9.First char is OK [14:16:32]request: POST /json_proto HTTP/1.0 [14:16:32]Method: POST [14:16:32]URL: /json_proto [14:16:32]Method is POST - this is cgi request [14:16:32]url: /json_proto [14:16:32]query_string will be loaded in cgi processing [14:16:32]execute_cgi json_proto POST (null) [14:16:32]execute_cgi path=json_proto method=POST [14:16:32]POST find Content-Length [14:16:32]Host: 172.17.33.3:8080 [14:16:32]Content-Length: 677 [14:16:32]Content-Type: application/json [14:16:32] [14:16:32]POST finish read [14:16:32]Found Content-Length = 677 [14:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:32]execute_script... [14:16: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)347991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:32]POST & json_proto [14:16:32]process_json_proto [14:16:32]json parsed OK: [14:16:32]protocol is kg_v1.0 [14:16:32]action value=close_receipt [14:16:32]process_action close_receipt [14:16:32]cmd_close_receipt [14:16:32]MH_GetDate [14:16:32]Write to MH i2c: F0 00 00 D9 48 10 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 09 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: F0 09 00 D9 48 00 C5 36 1D 66 23 5B 8F 65 09 [14:16:32]GetLastDocTimeStamp 1713190245 [14:16:32]current date 1713190597 [14:16:32]FM_GetShiftState [14:16:32]SAM_PROTO_GetShiftState [14:16:32]wFMCommunicate request_size=4 [14:16:32]MH_SAM_APDU [14:16:32]CAPDU: 80 13 01 00 [14:16:32]Write to MH i2c: E2 08 00 DA 48 80 13 01 00 00 00 00 00 9F [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:32]Read from MH i2c: E2 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 DA 48 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 93 [14:16:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:16:32]wFMCommunicate OK [14:16:32]SAM_PROTO_GetShiftState done [14:16:32]FM_GetShiftState done [14:16:32]opened in 1713140468 [14:16:32]opened+sec_in_day 1713226868 [14:16:32]quantity*price = 50025 [14:16:32]sum+1 = 50027 [14:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 156 15.04.2024 14:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29562 ФПД: 257230298043073 1/tax-web-control/client/api/v1/ticket?date=20240415T141637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29562&fm=257230298043073&tin=02508201610067®Number=0000138879044617&sum=50000 [14:16:33]StoreToDocumentArchive [14:16:33]shift 117 fd 29562 [14:16:33]save to /storage/0117/doc_00029562 [14:16:33]save last doc name /storage/0117/doc_00029562 to /storage/kkm_last_doc_name [14:16:33]save OK [14:16:33]Clear old archive folders... [14:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:33]tlvbuf is 002669E0 [14:16:33]SAM_PROTO_ClearQueue [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 09 00 00 [14:16:33]Write to MH i2c: E2 08 00 E7 48 80 09 00 00 00 00 00 00 A1 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 E7 48 00 90 00 A3 [14:16:33]RAPDU: 90 00 [14:16:33]wFMCommunicate OK [14:16:33]SAM_PROTO_ClearQueue done [14:16:33]KKMCreateOFDPacket [14:16:33]OFDProtocolAddRootSTLVToBuf [14:16:33]FM_MakeSignedData [14:16:33]FM_MakeSignedData [14:16:33]SAM_PROTO_SignData [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 0D 01 02 [14:16:33]Write to MH i2c: E2 08 00 E8 48 80 0D 01 02 00 00 00 00 A9 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 03 00 E8 48 00 90 00 A4 [14:16:33]RAPDU: 90 00 [14:16:33]wFMCommunicate OK [14:16:33]wFMCommunicate request_size=255 [14:16:33]MH_SAM_APDU [14:16: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C5 36 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 73 00 00 35 04 06 00 E9 [14:16:33]Write to MH i2c: E2 02 01 E9 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C5 36 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 73 00 00 35 04 06 00 E9 00 00 C7 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]OFD Sender: No OFD packet to send [14:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 E9 48 00 90 00 A5 [14:16:34]RAPDU: 90 00 [14:16:34]wFMCommunicate OK [14:16:34]wFMCommunicate request_size=10 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 0D 02 02 05 F3 18 8A 52 C1 [14:16:34]Write to MH i2c: E2 0D 00 EA 48 80 0D 02 02 05 00 F3 18 8A 52 C1 00 00 5E [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [14:16:34]RAPDU: 90 00 [14:16:34]wFMCommunicate OK [14:16:34]wFMCommunicate request_size=4 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 0D 03 02 [14:16:34]Write to MH i2c: E2 08 00 EB 48 80 0D 03 02 00 00 00 00 AE [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0B 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 0B 00 EB 48 00 0A 70 87 D9 D5 F2 D1 F8 90 00 19 [14:16:34]RAPDU: 0A 70 87 D9 D5 F2 D1 F8 90 00 [14:16:34]wFMCommunicate OK [14:16:34]SAM_PROTO_SignData done [14:16:34]FM_MakeSignedData done [14:16:34]CreateOFDProtocolMessage [14:16:34]wFMCommunicate request_size=4 [14:16:34]MH_SAM_APDU [14:16:34]CAPDU: 80 11 00 00 [14:16:34]Write to MH i2c: E2 08 00 EC 48 80 11 00 00 00 00 00 00 AE [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:34]Read from MH i2c: E2 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 17 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: E2 17 00 EC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [14:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:16:34]wFMCommunicate OK [14:16:34]CreateOFDProtocolMessage done [14:16:34]OFDSenderStorePacket 29562 [14:16:34]StoreOFDPacket docnum=29562 [14:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 62 2F 07 01 B9 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C5 36 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 73 00 00 35 04 06 00 E9 F3 18 8A 52 C1 0A 70 87 D9 D5 F2 D1 F8 [14:16:34]CheckFolder [14:16:34]dirname=/storage/ofd_packets [14:16:34]CheckFolder done [14:16:34]ProducePacketName [14:16:34]name=ofd_packets/00029562 [14:16:34]NVStorageSaveData ofd_packets/00029562 [14:16:34]File name is /storage/ofd_packets/00029562 [14:16:34]Write 301 bytes [14:16:34]NVStorageSaveData done [14:16:34]OFDSenderStorePacket done [14:16:34]KKMCreateOFDPacket done [14:16:34]NVStorageSaveData kkm_last_timestamp [14:16:34]File name is /storage/kkm_last_timestamp [14:16:34]Write 4 bytes [14:16:34]NVStorageSaveData done [14:16:34]ExternCall_PrintAddStr [14:16:34]wPrintStart [14:16:34]Write to MH i2c: 01 00 00 ED 48 35 [14:16:34]Write i2c OK [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 07 00 [14:16:34]MH_I2C_Read... [14:16:34]Read from MH i2c: 01 07 00 ED 48 00 00 00 00 00 FF 0F 4A [14:16:34]RasterBufferAndPrint [14:16:34]line Счет N : (1)347991 [14:16:34]line ИНН: 02508201610067 [14:16:34]line Контрольно-Кассовый Чек [14:16:34]line ПРОДАЖА [14:16:34]line ТРК (МРК, ГНК) : 32 [14:16:34]line Товар: 2710124130 [14:16:34]line Аи-92-К-5 [14:16:34]line 7.720 * 64.80 [14:16:34]line = 500.26 [14:16:34]line НДС 12% НСП 1% [14:16:34]line > о реализуемом товаре [14:16:34]line ОКРУГЛЕНИЕ: -0.26 [14:16:34]line ИТОГО: 500.00 [14:16:34]line Внесено: 500.00 [14:16:34]line СДАЧА: 0.00 [14:16:34]line НСП 1% : 4.43 [14:16:34]line НДС 12% : 53.12 [14:16:34]line Наличными: 500.00 [14:16:34]line Безнал.: 0.00 [14:16:34]line Место: АЗС № 108 "Партнер Нефть" [14:16:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:16:34]line СНО: Общий режим [14:16:34]line Чек 156 15.04.2024 14:16 [14:16:34]line Смена: 117 ФФД: 1.0 [14:16:34]line ЗНМ: 0300000027 [14:16:34]line РНМ: 0000138879044617 [14:16:34]line Версия ККМ: 001 [14:16:34]line ФМ: 0000000000963154 [14:16:34]line ФД: 29562 [14:16:34]line ФПД: 257230298043073 [14:16:34]line 1/tax-web-control/client/api/v1/ticket?date=20240415T141637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29562&fm=257230298043073&tin=02508201610067®Number=0000138879044617&sum=50000 [14:16:34]OFD Sender: Processing packet 29562 [packets to send 8, broken 7] [14:16:34]ProducePacketName [14:16:34]name=ofd_packets/00029562 [14:16:34]OFD Sender: To server: pG, [14:16:34]CommunicateWithHost lk.salyk.kg:30040 [14:16:34]ConnectInit lk.salyk.kg [14:16:34]written 0, free lines is 4095 [14:16:34]Connected sock=8 [14:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 62 2F 07 01 B9 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C5 36 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 73 00 00 35 04 06 00 E9 F3 18 8A 52 C1 0A 70 87 D9 D5 F2 D1 F8 [14:16:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 4E 47 00 0A 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 39 36 33 31 35 34 10 04 04 00 7A 73 00 00 F4 03 04 00 66 E1 1C 66 B6 04 01 00 00 3E 4A 00 5C CC 24 D6 4A [14:16:35]CommunicateWithHost err = 0 [14:16:35]CheckOFDResponse [14:16:35]1017 (14) - 77093643461234 [14:16:35]1041 (16) - 0000000000963154 [14:16:35]1040 (4) - 29562 [14:16:35]1012 (4) - 15.04.2024 08:12 [14:16:35]1206 (1) - 0 [14:16:35]OFD Sender: Remove packet 29562 [14:16:35]ProducePacketName [14:16:35]name=ofd_packets/00029562 [14:16:35]NVStorageDeleteData [14:16:35]Write to MH i2c: 01 00 00 17 49 60 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 07 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: 01 07 00 17 49 00 00 00 00 00 D3 0C 46 [14:16:35]RasterBufferAndPrint [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]line [14:16:35]written 0, free lines is 3289 [14:16:35]MH_Cut [14:16:35]Write to MH i2c: D1 01 00 1E 49 01 39 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 01 00 [14:16:35]MH_I2C_Read... [14:16:35]Read from MH i2c: D1 01 00 1E 49 00 38 [14:16:35]Write to MH i2c: 01 00 00 1F 49 68 [14:16:35]Write i2c OK [14:16:35]MH_I2C_Read... [14:16:35]OFD Sender: No OFD packet to send [14:16:36]*** Cut start [14:16:36]*** Partial cut [14:16:36]*** CUTSNS_PIN = 1 [14:16:36]*** CUTSNS_PIN = 0 [14:16:36]*** Brake cut motor [14:16:36]Read from MH i2c: 01 [14:16:36]MH_I2C_Read... [14:16:36]*** Stop cut motor [14:16:36]*** Cut end [14:16:36]Read from MH i2c: 01 07 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: 01 07 00 1F 49 00 00 00 00 00 FF 0F 7D [14:16:36]process_action close_receipt done [14:16:36]requested_data is exist [14:16:36]produce_requested_data [14:16:36]requested_item fm.sn is exist - process it [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 11 00 00 [14:16:36]Write to MH i2c: E2 08 00 20 49 80 11 00 00 00 00 00 00 E3 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 17 00 20 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [14:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:16:36]wFMCommunicate OK [14:16:36]requested_item fd.num is exist - process it [14:16:36]SAM_PROTO_GetFieldsCounters [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 13 00 00 [14:16:36]Write to MH i2c: E2 08 00 21 49 80 13 00 00 00 00 00 00 E6 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 62 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 62 00 21 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 73 00 00 0E 04 04 00 75 00 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 5A [14:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:36]wFMCommunicate OK [14:16:36]SAM_PROTO_GetFieldsCounters done [14:16:36]requested_item shift.num is exist - process it [14:16:36]requested_item shift.opened is exist - process it [14:16:36]req_shift_opened [14:16:36]FM_GetShiftState [14:16:36]SAM_PROTO_GetShiftState [14:16:36]wFMCommunicate request_size=4 [14:16:36]MH_SAM_APDU [14:16:36]CAPDU: 80 13 01 00 [14:16:36]Write to MH i2c: E2 08 00 22 49 80 13 01 00 00 00 00 00 E8 [14:16:36]Write i2c OK [14:16:36]MH_I2C_Read... [14:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:36]Read from MH i2c: E2 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0E 00 [14:16:36]MH_I2C_Read... [14:16:36]Read from MH i2c: E2 0E 00 22 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DC [14:16:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:16:36]wFMCommunicate OK [14:16:36]SAM_PROTO_GetShiftState done [14:16:36]FM_GetShiftState done [14:16:36]req_shift_opened done [14:16:36]requested_item shift.open_date is exist - process it [14:16:36]req_shift_open_date [14:16:36]req_shift_open_date done [14:16:36]produce_requested_data done [14:16:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29562,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:16:36]process_action_free close_receipt [14:16:36]json_value_free [14:16:36]json_value_free done [14:16:36]process_json_proto returns [14:16:36]Send response to host [14:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29562,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:16:36]free response buf [14:16:36]execute_script done [14:16:36]execute_script returns [14:16:36]free content buf [14:16:36]Sock 9.Close socket [14:16:36]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:07]accept exits with 10 [14:24:07]New connection [14:24:07]New thread 3067112804 created [14:24:07]Thread 3066969444 joined [14:24:07]Waiting for new connection... [14:24:07] Sock 10.Parse request [14:24:07]Sock 10.Check first char [14:24:07]Sock 10.First char is OK [14:24:07]request: POST /json_proto HTTP/1.0 [14:24:07]Method: POST [14:24:07]URL: /json_proto [14:24:07]Method is POST - this is cgi request [14:24:07]url: /json_proto [14:24:07]query_string will be loaded in cgi processing [14:24:07]execute_cgi json_proto POST (null) [14:24:07]execute_cgi path=json_proto method=POST [14:24:07]POST find Content-Length [14:24:07]Host: 172.17.33.3:8080 [14:24:07]Content-Length: 1201 [14:24:07]Content-Type: application/json [14:24:07] [14:24:07]POST finish read [14:24:07]Found Content-Length = 1201 [14:24:07]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347993\u000A15.04.2024 14:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.310 x 64.80\u000A\u0418\u0422\u041E\u0413: 538.49\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\u000A3859008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:07]execute_script... [14:24:07]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)347993\u000A15.04.2024 14:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.310 x 64.80\u000A\u0418\u0422\u041E\u0413: 538.49\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\u000A3859008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:07]POST & json_proto [14:24:07]process_json_proto [14:24:07]json parsed OK: [14:24:07]protocol is kg_v1.0 [14:24:07]action value=print_text [14:24:07]process_action print_text [14:24:07]cmd_print_text [14:24:07]ExternCall_PrintAddStr [14:24:07]wPrintStart [14:24:07]Write to MH i2c: 01 00 00 23 49 6C [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 FF 0F 81 [14:24:07]RasterBufferAndPrint [14:24:07]line *****ТОВАРНЫЙ ЧЕК***** [14:24:07]line АЗС 108 [14:24:07]line Партнер нефть [14:24:07]line 02508201610067 [14:24:07]line Кассир : Джумагулова Н. [14:24:07]line Счет N : (1)347993 [14:24:07]line 15.04.2024 14:05 [14:24:07]line ПРОДАЖА [14:24:07]line ТРК (МРК, ГНК): 13 [14:24:07]line Вид ГСМ : 2710124130 [14:24:07]line Аи-92-К-5 [14:24:07]line 8.310 x 64.80 [14:24:07]line ИТОГ: 538.49 [14:24:07]line Тип оплаты: Талоны: Партнер нефть [14:24:07]line 3859008 [14:24:07]line ______________________ [14:24:07]line (подпись) [14:24:07]written 0, free lines is 4095 [14:24:07]Write to MH i2c: 01 00 00 38 49 81 [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 38 49 00 00 00 00 00 F7 0D 8C [14:24:07]RasterBufferAndPrint [14:24:07]line [14:24:07]line [14:24:07]line [14:24:07]line [14:24:07]line [14:24:07]written 0, free lines is 3577 [14:24:07]MH_Cut [14:24:07]Write to MH i2c: D1 01 00 3F 49 01 5A [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: D1 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: D1 01 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: D1 01 00 3F 49 00 59 [14:24:07]Write to MH i2c: 01 00 00 40 49 89 [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]*** Cut start [14:24:07]*** Partial cut [14:24:07]*** CUTSNS_PIN = 1 [14:24:07]*** CUTSNS_PIN = 0 [14:24:08]*** Brake cut motor [14:24:08]Read from MH i2c: 01 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: 01 07 00 [14:24:08]MH_I2C_Read... [14:24:08]*** Stop cut motor [14:24:08]*** Cut end [14:24:08]Read from MH i2c: 01 07 00 40 49 00 00 00 00 00 FF 0F 9E [14:24:08]process_action print_text done [14:24:08]requested_data is exist [14:24:08]produce_requested_data [14:24:08]requested_item fm.sn is exist - process it [14:24:08]wFMCommunicate request_size=4 [14:24:08]MH_SAM_APDU [14:24:08]CAPDU: 80 11 00 00 [14:24:08]Write to MH i2c: E2 08 00 41 49 80 11 00 00 00 00 00 00 04 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:08]Read from MH i2c: E2 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 17 00 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 17 00 41 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [14:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:24:08]wFMCommunicate OK [14:24:08]requested_item fd.num is exist - process it [14:24:08]SAM_PROTO_GetFieldsCounters [14:24:08]wFMCommunicate request_size=4 [14:24:08]MH_SAM_APDU [14:24:08]CAPDU: 80 13 00 00 [14:24:08]Write to MH i2c: E2 08 00 42 49 80 13 00 00 00 00 00 00 07 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:08]Read from MH i2c: E2 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 62 00 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 62 00 42 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 73 00 00 0E 04 04 00 75 00 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 7B [14:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 73 00 00 0E 04 04 00 75 00 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:24:08]wFMCommunicate OK [14:24:08]SAM_PROTO_GetFieldsCounters done [14:24:08]requested_item shift.num is exist - process it [14:24:08]requested_item shift.opened is exist - process it [14:24:08]req_shift_opened [14:24:08]FM_GetShiftState [14:24:08]SAM_PROTO_GetShiftState [14:24:08]wFMCommunicate request_size=4 [14:24:08]MH_SAM_APDU [14:24:08]CAPDU: 80 13 01 00 [14:24:08]Write to MH i2c: E2 08 00 43 49 80 13 01 00 00 00 00 00 09 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:08]Read from MH i2c: E2 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 0E 00 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: E2 0E 00 43 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FD [14:24:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:24:08]wFMCommunicate OK [14:24:08]SAM_PROTO_GetShiftState done [14:24:08]FM_GetShiftState done [14:24:08]req_shift_opened done [14:24:08]requested_item shift.open_date is exist - process it [14:24:08]req_shift_open_date [14:24:08]req_shift_open_date done [14:24:08]produce_requested_data done [14:24:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29562,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:24:08]process_action_free print_text [14:24:08]json_value_free [14:24:08]json_value_free done [14:24:08]process_json_proto returns [14:24:08]Send response to host [14:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29562,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:24:08]free response buf [14:24:08]execute_script done [14:24:08]execute_script returns [14:24:08]free content buf [14:24:08]Sock 10.Close socket [14:24:08]Sock 10.Thread stoped [14:24:08]accept exits with 8 [14:24:08]New connection [14:24:08]New thread 3066969444 created [14:24:08]Thread 3067112804 joined [14:24:08]Waiting for new connection... [14:24:08] Sock 8.Parse request [14:24:08]Sock 8.Check first char [14:24:08]Sock 8.First char is OK [14:24:08]request: POST /json_proto HTTP/1.0 [14:24:08]Method: POST [14:24:08]URL: /json_proto [14:24:08]Method is POST - this is cgi request [14:24:08]url: /json_proto [14:24:08]query_string will be loaded in cgi processing [14:24:08]execute_cgi json_proto POST (null) [14:24:08]execute_cgi path=json_proto method=POST [14:24:08]POST find Content-Length [14:24:08]Host: 172.17.33.3:8080 [14:24:08]Content-Length: 673 [14:24:09]Content-Type: application/json [14:24:09] [14:24:09]POST finish read [14:24:09]Found Content-Length = 673 [14:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.000, "sum" : 64.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 64.00, "total" : 64.00, "payments": [ { "type": 0, "sum" : 64.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]execute_script... [14:24: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)347995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.000, "sum" : 64.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 64.00, "total" : 64.00, "payments": [ { "type": 0, "sum" : 64.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]POST & json_proto [14:24:09]process_json_proto [14:24:09]json parsed OK: [14:24:09]protocol is kg_v1.0 [14:24:09]action value=close_receipt [14:24:09]process_action close_receipt [14:24:09]cmd_close_receipt [14:24:09]MH_GetDate [14:24:09]Write to MH i2c: F0 00 00 44 49 7C [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 44 49 00 8D 38 1D 66 23 5B 8F 65 3F [14:24:09]GetLastDocTimeStamp 1713190597 [14:24:09]current date 1713191053 [14:24:09]FM_GetShiftState [14:24:09]SAM_PROTO_GetShiftState [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 13 01 00 [14:24:09]Write to MH i2c: E2 08 00 45 49 80 13 01 00 00 00 00 00 0B [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 45 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FF [14:24:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:24:09]wFMCommunicate OK [14:24:09]SAM_PROTO_GetShiftState done [14:24:09]FM_GetShiftState done [14:24:09]opened in 1713140468 [14:24:09]opened+sec_in_day 1713226868 [14:24:09]quantity*price = 6480 [14:24:09]sum+1 = 6481 [14:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 64.00 Внесено: 64.00 СДАЧА: 0.00 НСП 1% : 0.57 НДС 12% : 6.88 Наличными: 64.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 157 15.04.2024 14:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29563 ФПД: 9488028096609 1/tax-web-control/client/api/v1/ticket?date=20240415T142413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29563&fm=9488028096609&tin=02508201610067®Number=0000138879044617&sum=6400 [14:24:10]StoreToDocumentArchive [14:24:10]shift 117 fd 29563 [14:24:10]save to /storage/0117/doc_00029563 [14:24:10]save last doc name /storage/0117/doc_00029563 to /storage/kkm_last_doc_name [14:24:10]save OK [14:24:10]Clear old archive folders... [14:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:10]tlvbuf is 002A6B60 [14:24:10]SAM_PROTO_ClearQueue [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 09 00 00 [14:24:10]Write to MH i2c: E2 08 00 52 49 80 09 00 00 00 00 00 00 0D [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 52 49 00 90 00 0F [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]SAM_PROTO_ClearQueue done [14:24:10]KKMCreateOFDPacket [14:24:10]OFDProtocolAddRootSTLVToBuf [14:24:10]FM_MakeSignedData [14:24:10]FM_MakeSignedData [14:24:10]SAM_PROTO_SignData [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 01 02 [14:24:10]Write to MH i2c: E2 08 00 53 49 80 0D 01 02 00 00 00 00 15 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 53 49 00 90 00 10 [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]wFMCommunicate request_size=255 [14:24:10]MH_SAM_APDU [14:24: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 E8 03 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 50 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 02 00 00 00 00 07 04 06 00 00 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8D 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 73 00 00 35 04 06 00 08 [14:24:10]Write to MH i2c: E2 02 01 54 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 E8 03 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 50 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 02 00 00 00 00 07 04 06 00 00 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8D 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 73 00 00 35 04 06 00 08 00 00 66 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]OFD Sender: No OFD packet to send [14:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 54 49 00 90 00 11 [14:24:11]RAPDU: 90 00 [14:24:11]wFMCommunicate OK [14:24:11]wFMCommunicate request_size=10 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 0D 02 02 05 A1 1A 8B 58 61 [14:24:11]Write to MH i2c: E2 0D 00 55 49 80 0D 02 02 05 00 A1 1A 8B 58 61 00 00 21 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 55 49 00 90 00 12 [14:24:11]RAPDU: 90 00 [14:24:11]wFMCommunicate OK [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 0D 03 02 [14:24:11]Write to MH i2c: E2 08 00 56 49 80 0D 03 02 00 00 00 00 1A [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0B 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0B 00 56 49 00 9F 9D D7 D3 84 7B 66 4F 90 00 B5 [14:24:11]RAPDU: 9F 9D D7 D3 84 7B 66 4F 90 00 [14:24:11]wFMCommunicate OK [14:24:11]SAM_PROTO_SignData done [14:24:11]FM_MakeSignedData done [14:24:11]CreateOFDProtocolMessage [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 11 00 00 [14:24:11]Write to MH i2c: E2 08 00 57 49 80 11 00 00 00 00 00 00 1A [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 57 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [14:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:24:11]wFMCommunicate OK [14:24:11]CreateOFDProtocolMessage done [14:24:11]OFDSenderStorePacket 29563 [14:24:11]StoreOFDPacket docnum=29563 [14:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F A6 07 01 49 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 E8 03 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 50 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 02 00 00 00 00 07 04 06 00 00 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8D 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 73 00 00 35 04 06 00 08 A1 1A 8B 58 61 9F 9D D7 D3 84 7B 66 4F [14:24:11]CheckFolder [14:24:11]dirname=/storage/ofd_packets [14:24:11]CheckFolder done [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00029563 [14:24:11]NVStorageSaveData ofd_packets/00029563 [14:24:11]File name is /storage/ofd_packets/00029563 [14:24:11]Write 301 bytes [14:24:11]NVStorageSaveData done [14:24:11]OFDSenderStorePacket done [14:24:11]KKMCreateOFDPacket done [14:24:11]NVStorageSaveData kkm_last_timestamp [14:24:11]File name is /storage/kkm_last_timestamp [14:24:11]Write 4 bytes [14:24:11]NVStorageSaveData done [14:24:11]ExternCall_PrintAddStr [14:24:11]wPrintStart [14:24:11]Write to MH i2c: 01 00 00 58 49 A1 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 58 49 00 00 00 00 00 FF 0F B6 [14:24:11]RasterBufferAndPrint [14:24:11]line Счет N : (1)347995 [14:24:11]line ИНН: 02508201610067 [14:24:11]line Контрольно-Кассовый Чек [14:24:11]line ПРОДАЖА [14:24:11]line ТРК (МРК, ГНК) : 13 [14:24:11]line Товар: 2710124130 [14:24:11]line Аи-92-К-5 [14:24:11]line 1.000 * 64.80 [14:24:11]line = 64.80 [14:24:11]line НДС 12% НСП 1% [14:24:11]line > о реализуемом товаре [14:24:11]line ОКРУГЛЕНИЕ: -0.80 [14:24:11]line ИТОГО: 64.00 [14:24:11]line Внесено: 64.00 [14:24:11]line СДАЧА: 0.00 [14:24:11]line НСП 1% : 0.57 [14:24:11]line НДС 12% : 6.88 [14:24:11]line Наличными: 64.00 [14:24:11]line Безнал.: 0.00 [14:24:11]line Место: АЗС № 108 "Партнер Нефть" [14:24:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:24:11]line СНО: Общий режим [14:24:11]line Чек 157 15.04.2024 14:24 [14:24:11]line Смена: 117 ФФД: 1.0 [14:24:11]line ЗНМ: 0300000027 [14:24:11]line РНМ: 0000138879044617 [14:24:11]line Версия ККМ: 001 [14:24:11]line ФМ: 0000000000963154 [14:24:11]line ФД: 29563 [14:24:11]line ФПД: 9488028096609 [14:24:11]line 1/tax-web-control/client/api/v1/ticket?date=20240415T142413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29563&fm=9488028096609&tin=02508201610067®Number=0000138879044617&sum=6400 [14:24:11]written 0, free lines is 4095 [14:24:11]OFD Sender: Processing packet 29563 [packets to send 8, broken 7] [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00029563 [14:24:11]OFD Sender: To server: pG, [14:24:11]CommunicateWithHost lk.salyk.kg:30040 [14:24:11]ConnectInit lk.salyk.kg [14:24:11]Connected sock=9 [14:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F A6 07 01 49 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 E8 03 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 50 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 02 00 00 00 00 07 04 06 00 00 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8D 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 73 00 00 35 04 06 00 08 A1 1A 8B 58 61 9F 9D D7 D3 84 7B 66 4F [14:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E D4 47 00 DD 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 39 36 33 31 35 34 10 04 04 00 7B 73 00 00 F4 03 04 00 2F E3 1C 66 B6 04 01 00 00 C5 F9 39 65 36 8C 82 B1 [14:24:11]CommunicateWithHost err = 0 [14:24:11]CheckOFDResponse [14:24:11]1017 (14) - 77093643461234 [14:24:11]1041 (16) - 0000000000963154 [14:24:11]1040 (4) - 29563 [14:24:11]1012 (4) - 15.04.2024 08:19 [14:24:11]1206 (1) - 0 [14:24:11]OFD Sender: Remove packet 29563 [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00029563 [14:24:11]NVStorageDeleteData [14:24:11]Write to MH i2c: 01 00 00 82 49 CB [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 82 49 00 00 00 00 00 C0 0C 9E [14:24:11]RasterBufferAndPrint [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]line [14:24:11]written 0, free lines is 3270 [14:24:11]MH_Cut [14:24:11]Write to MH i2c: D1 01 00 89 49 01 A4 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 01 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: D1 01 00 89 49 00 A3 [14:24:11]Write to MH i2c: 01 00 00 8A 49 D3 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:12]OFD Sender: No OFD packet to send [14:24:12]*** Cut start [14:24:12]*** Partial cut [14:24:12]*** CUTSNS_PIN = 1 [14:24:12]*** CUTSNS_PIN = 0 [14:24:12]*** Brake cut motor [14:24:13]Read from MH i2c: 01 [14:24:13]MH_I2C_Read... [14:24:13]*** Stop cut motor [14:24:13]*** Cut end [14:24:13]Read from MH i2c: 01 07 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 8A 49 00 00 00 00 00 FF 0F E8 [14:24:13]process_action close_receipt done [14:24:13]requested_data is exist [14:24:13]produce_requested_data [14:24:13]requested_item fm.sn is exist - process it [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 11 00 00 [14:24:13]Write to MH i2c: E2 08 00 8B 49 80 11 00 00 00 00 00 00 4E [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 8B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [14:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:24:13]wFMCommunicate OK [14:24:13]requested_item fd.num is exist - process it [14:24:13]SAM_PROTO_GetFieldsCounters [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 00 00 [14:24:13]Write to MH i2c: E2 08 00 8C 49 80 13 00 00 00 00 00 00 51 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 8C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 73 00 00 0E 04 04 00 75 00 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 C9 [14:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 73 00 00 0E 04 04 00 75 00 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:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetFieldsCounters done [14:24:13]requested_item shift.num is exist - process it [14:24:13]requested_item shift.opened is exist - process it [14:24:13]req_shift_opened [14:24:13]FM_GetShiftState [14:24:13]SAM_PROTO_GetShiftState [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 01 00 [14:24:13]Write to MH i2c: E2 08 00 8D 49 80 13 01 00 00 00 00 00 53 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 8D 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 47 [14:24:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetShiftState done [14:24:13]FM_GetShiftState done [14:24:13]req_shift_opened done [14:24:13]requested_item shift.open_date is exist - process it [14:24:13]req_shift_open_date [14:24:13]req_shift_open_date done [14:24:13]produce_requested_data done [14:24:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29563,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:24:13]process_action_free close_receipt [14:24:13]json_value_free [14:24:13]json_value_free done [14:24:13]process_json_proto returns [14:24:13]Send response to host [14:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29563,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:24:13]free response buf [14:24:13]execute_script done [14:24:13]execute_script returns [14:24:13]free content buf [14:24:13]Sock 8.Close socket [14:24:13]Sock 8.Thread stoped [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:24:57]accept exits with 10 [14:24:57]New connection [14:24:57]New thread 3067112804 created [14:24:57]Thread 3066969444 joined [14:24:57]Waiting for new connection... [14:24:57] Sock 10.Parse request [14:24:57]Sock 10.Check first char [14:24:57]Sock 10.First char is OK [14:24:57]request: POST /json_proto HTTP/1.0 [14:24:57]Method: POST [14:24:57]URL: /json_proto [14:24:57]Method is POST - this is cgi request [14:24:57]url: /json_proto [14:24:57]query_string will be loaded in cgi processing [14:24:57]execute_cgi json_proto POST (null) [14:24:57]execute_cgi path=json_proto method=POST [14:24:57]POST find Content-Length [14:24:57]Host: 172.17.33.3:8080 [14:24:57]Content-Length: 793 [14:24:57]Content-Type: application/json [14:24:57] [14:24:57]POST finish read [14:24:57]Found Content-Length = 793 [14:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 49.170, "sum" : 3186.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3186.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:57]execute_script... [14:24: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)347992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 49.170, "sum" : 3186.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3186.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:57]POST & json_proto [14:24:57]process_json_proto [14:24:57]json parsed OK: [14:24:57]protocol is kg_v1.0 [14:24:57]action value=close_receipt [14:24:57]process_action close_receipt [14:24:57]cmd_close_receipt [14:24:57]MH_GetDate [14:24:57]Write to MH i2c: F0 00 00 8E 49 C6 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: F0 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: F0 09 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: F0 09 00 8E 49 00 BE 38 1D 66 23 5B 8F 65 BA [14:24:57]GetLastDocTimeStamp 1713191053 [14:24:57]current date 1713191102 [14:24:57]FM_GetShiftState [14:24:57]SAM_PROTO_GetShiftState [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 13 01 00 [14:24:57]Write to MH i2c: E2 08 00 8F 49 80 13 01 00 00 00 00 00 55 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0E 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0E 00 8F 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 49 [14:24:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_GetShiftState done [14:24:57]FM_GetShiftState done [14:24:57]opened in 1713140468 [14:24:57]opened+sec_in_day 1713226868 [14:24:57]quantity*price = 318621 [14:24:57]sum+1 = 318623 [14:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3186.22 НСП 1% : 28.20 НДС 12% : 338.36 Наличными: 0.00 Безнал.: 3186.22 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 158 15.04.2024 14:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 29564 ФПД: 208072437084448 1/tax-web-control/client/api/v1/ticket?date=20240415T142502&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29564&fm=208072437084448&tin=02508201610067®Number=0000138879044617&sum=318622 [14:24:58]StoreToDocumentArchive [14:24:58]shift 117 fd 29564 [14:24:58]save to /storage/0117/doc_00029564 [14:24:58]save last doc name /storage/0117/doc_00029564 to /storage/kkm_last_doc_name [14:24:58]save OK [14:24:58]Clear old archive folders... [14:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:58]tlvbuf is B6F7C780 [14:24:58]SAM_PROTO_ClearQueue [14:24:58]wFMCommunicate request_size=4 [14:24:58]MH_SAM_APDU [14:24:58]CAPDU: 80 09 00 00 [14:24:58]Write to MH i2c: E2 08 00 9C 49 80 09 00 00 00 00 00 00 57 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:58]Read from MH i2c: E2 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 03 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 03 00 9C 49 00 90 00 59 [14:24:58]RAPDU: 90 00 [14:24:58]wFMCommunicate OK [14:24:58]SAM_PROTO_ClearQueue done [14:24:58]KKMCreateOFDPacket [14:24:58]OFDProtocolAddRootSTLVToBuf [14:24:58]FM_MakeSignedData [14:24:58]FM_MakeSignedData [14:24:58]SAM_PROTO_SignData [14:24:58]wFMCommunicate request_size=4 [14:24:58]MH_SAM_APDU [14:24:58]CAPDU: 80 0D 01 02 [14:24:58]Write to MH i2c: E2 08 00 9D 49 80 0D 01 02 00 00 00 00 5F [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:58]Read from MH i2c: E2 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 03 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: E2 03 00 9D 49 00 90 00 5A [14:24:58]RAPDU: 90 00 [14:24:58]wFMCommunicate OK [14:24:58]wFMCommunicate request_size=255 [14:24:58]MH_SAM_APDU [14:24: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 12 C0 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9E DC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DC 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BE 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 73 00 00 35 04 06 00 BD [14:24:58]Write to MH i2c: E2 02 01 9E 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 12 C0 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9E DC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DC 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BE 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 73 00 00 35 04 06 00 BD 00 00 32 [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 03 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 03 00 9E 49 00 90 00 5B [14:24:59]RAPDU: 90 00 [14:24:59]wFMCommunicate OK [14:24:59]wFMCommunicate request_size=10 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 0D 02 02 05 3D A3 B3 31 20 [14:24:59]Write to MH i2c: E2 0D 00 9F 49 80 0D 02 02 05 00 3D A3 B3 31 20 00 00 50 [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 03 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 03 00 9F 49 00 90 00 5C [14:24:59]RAPDU: 90 00 [14:24:59]wFMCommunicate OK [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 0D 03 02 [14:24:59]Write to MH i2c: E2 08 00 A0 49 80 0D 03 02 00 00 00 00 64 [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 0B 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 0B 00 A0 49 00 5E 09 86 BE 08 AF D2 24 90 00 BD [14:24:59]RAPDU: 5E 09 86 BE 08 AF D2 24 90 00 [14:24:59]wFMCommunicate OK [14:24:59]SAM_PROTO_SignData done [14:24:59]FM_MakeSignedData done [14:24:59]CreateOFDProtocolMessage [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 11 00 00 [14:24:59]Write to MH i2c: E2 08 00 A1 49 80 11 00 00 00 00 00 00 64 [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 17 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 17 00 A1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [14:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:24:59]wFMCommunicate OK [14:24:59]CreateOFDProtocolMessage done [14:24:59]OFDSenderStorePacket 29564 [14:24:59]StoreOFDPacket docnum=29564 [14:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 62 40 07 01 BC 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 12 C0 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9E DC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DC 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BE 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 73 00 00 35 04 06 00 BD 3D A3 B3 31 20 5E 09 86 BE 08 AF D2 24 [14:24:59]CheckFolder [14:24:59]dirname=/storage/ofd_packets [14:24:59]CheckFolder done [14:24:59]ProducePacketName [14:24:59]name=ofd_packets/00029564 [14:24:59]NVStorageSaveData ofd_packets/00029564 [14:24:59]File name is /storage/ofd_packets/00029564 [14:24:59]Write 301 bytes [14:24:59]NVStorageSaveData done [14:24:59]OFDSenderStorePacket done [14:24:59]KKMCreateOFDPacket done [14:24:59]NVStorageSaveData kkm_last_timestamp [14:24:59]File name is /storage/kkm_last_timestamp [14:24:59]Write 4 bytes [14:24:59]NVStorageSaveData done [14:24:59]ExternCall_PrintAddStr [14:24:59]wPrintStart [14:24:59]Write to MH i2c: 01 00 00 A2 49 EB [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: 01 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: 01 07 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: 01 07 00 A2 49 00 00 00 00 00 FF 0F 00 [14:24:59]RasterBufferAndPrint [14:24:59]line Счет N : (1)347992 [14:24:59]line ИНН: 02508201610067 [14:24:59]line Контрольно-Кассовый Чек [14:24:59]line ПРОДАЖА [14:24:59]line ТРК (МРК, ГНК) : 32 [14:24:59]line Товар: 2710124130 [14:24:59]line Аи-92-К-5 [14:24:59]line 49.170 * 64.80 [14:24:59]line = 3186.22 [14:24:59]line НДС 12% НСП 1% [14:24:59]line > о реализуемом товаре [14:24:59]line ИТОГО: 3186.22 [14:24:59]line НСП 1% : 28.20 [14:24:59]line НДС 12% : 338.36 [14:24:59]line Наличными: 0.00 [14:24:59]line Безнал.: 3186.22 [14:24:59]line Место: АЗС № 108 "Партнер Нефть" [14:24:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:24:59]line СНО: Общий режим [14:24:59]line Чек 158 15.04.2024 14:25 [14:24:59]line Смена: 117 ФФД: 1.0 [14:24:59]line ЗНМ: 0300000027 [14:24:59]line РНМ: 0000138879044617 [14:24:59]line Версия ККМ: 001 [14:24:59]line Платежная система: KICB Банк [14:24:59]line ФМ: 0000000000963154 [14:24:59]line ФД: 29564 [14:24:59]line ФПД: 208072437084448 [14:24:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T142502&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29564&fm=208072437084448&tin=02508201610067®Number=0000138879044617&sum=318622 [14:24:59]OFD Sender: Processing packet 29564 [packets to send 8, broken 7] [14:24:59]ProducePacketName [14:24:59]name=ofd_packets/00029564 [14:24:59]OFD Sender: To server: pG, [14:24:59]CommunicateWithHost lk.salyk.kg:30040 [14:24:59]ConnectInit lk.salyk.kg [14:24:59]written 0, free lines is 4095 [14:24:59]Connected sock=9 [14:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 62 40 07 01 BC 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 12 C0 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9E DC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E DC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E DC 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 BE 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 73 00 00 35 04 06 00 BD 3D A3 B3 31 20 5E 09 86 BE 08 AF D2 24 [14:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2B 8B 47 00 C9 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 39 36 33 31 35 34 10 04 04 00 7C 73 00 00 F4 03 04 00 5F E3 1C 66 B6 04 01 00 00 83 B8 C1 92 EE 6A E4 9A [14:25:00]CommunicateWithHost err = 0 [14:25:00]CheckOFDResponse [14:25:00]1017 (14) - 77093643461234 [14:25:00]1041 (16) - 0000000000963154 [14:25:00]1040 (4) - 29564 [14:25:00]1012 (4) - 15.04.2024 08:20 [14:25:00]1206 (1) - 0 [14:25:00]OFD Sender: Remove packet 29564 [14:25:00]ProducePacketName [14:25:00]name=ofd_packets/00029564 [14:25:00]NVStorageDeleteData [14:25:00]Write to MH i2c: 01 00 00 CB 49 14 [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 07 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: 01 07 00 CB 49 00 00 00 00 00 DB 0C 02 [14:25:00]RasterBufferAndPrint [14:25:00]line [14:25:00]line [14:25:00]line [14:25:00]line [14:25:00]line [14:25:00]written 0, free lines is 3298 [14:25:00]MH_Cut [14:25:00]Write to MH i2c: D1 01 00 D2 49 01 ED [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: D1 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: D1 01 00 [14:25:00]MH_I2C_Read... [14:25:00]Read from MH i2c: D1 01 00 D2 49 00 EC [14:25:00]Write to MH i2c: 01 00 00 D3 49 1C [14:25:00]Write i2c OK [14:25:00]MH_I2C_Read... [14:25:00]OFD Sender: No OFD packet to send [14:25:00]*** Cut start [14:25:00]*** Partial cut [14:25:00]*** CUTSNS_PIN = 1 [14:25:01]*** CUTSNS_PIN = 0 [14:25:01]*** Brake cut motor [14:25:01]Read from MH i2c: 01 [14:25:01]MH_I2C_Read... [14:25:01]*** Stop cut motor [14:25:01]*** Cut end [14:25:01]Read from MH i2c: 01 07 00 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: 01 07 00 D3 49 00 00 00 00 00 FF 0F 31 [14:25:01]process_action close_receipt done [14:25:01]requested_data is exist [14:25:01]produce_requested_data [14:25:01]requested_item fm.sn is exist - process it [14:25:01]wFMCommunicate request_size=4 [14:25:01]MH_SAM_APDU [14:25:01]CAPDU: 80 11 00 00 [14:25:01]Write to MH i2c: E2 08 00 D4 49 80 11 00 00 00 00 00 00 97 [14:25:01]Write i2c OK [14:25:01]MH_I2C_Read... [14:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:01]Read from MH i2c: E2 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 17 00 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 17 00 D4 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [14:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:01]wFMCommunicate OK [14:25:01]requested_item fd.num is exist - process it [14:25:01]SAM_PROTO_GetFieldsCounters [14:25:01]wFMCommunicate request_size=4 [14:25:01]MH_SAM_APDU [14:25:01]CAPDU: 80 13 00 00 [14:25:01]Write to MH i2c: E2 08 00 D5 49 80 13 00 00 00 00 00 00 9A [14:25:01]Write i2c OK [14:25:01]MH_I2C_Read... [14:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:01]Read from MH i2c: E2 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 62 00 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 62 00 D5 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 73 00 00 0E 04 04 00 75 00 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 16 [14:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 73 00 00 0E 04 04 00 75 00 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:25:01]wFMCommunicate OK [14:25:01]SAM_PROTO_GetFieldsCounters done [14:25:01]requested_item shift.num is exist - process it [14:25:01]requested_item shift.opened is exist - process it [14:25:01]req_shift_opened [14:25:01]FM_GetShiftState [14:25:01]SAM_PROTO_GetShiftState [14:25:01]wFMCommunicate request_size=4 [14:25:01]MH_SAM_APDU [14:25:01]CAPDU: 80 13 01 00 [14:25:01]Write to MH i2c: E2 08 00 D6 49 80 13 01 00 00 00 00 00 9C [14:25:01]Write i2c OK [14:25:01]MH_I2C_Read... [14:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:01]Read from MH i2c: E2 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 0E 00 [14:25:01]MH_I2C_Read... [14:25:01]Read from MH i2c: E2 0E 00 D6 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 90 [14:25:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:25:01]wFMCommunicate OK [14:25:01]SAM_PROTO_GetShiftState done [14:25:01]FM_GetShiftState done [14:25:01]req_shift_opened done [14:25:01]requested_item shift.open_date is exist - process it [14:25:01]req_shift_open_date [14:25:01]req_shift_open_date done [14:25:01]produce_requested_data done [14:25:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29564,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:25:01]process_action_free close_receipt [14:25:01]json_value_free [14:25:01]json_value_free done [14:25:01]process_json_proto returns [14:25:01]Send response to host [14:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29564,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:25:01]free response buf [14:25:01]execute_script done [14:25:01]execute_script returns [14:25:01]free content buf [14:25:01]Sock 10.Close socket [14:25:01]Sock 10.Thread stoped [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:21]accept exits with 8 [14:25:21]New connection [14:25:21]New thread 3066969444 created [14:25:21]Thread 3067112804 joined [14:25:21]Waiting for new connection... [14:25:21] Sock 8.Parse request [14:25:21]Sock 8.Check first char [14:25:21]Sock 8.First char is OK [14:25:21]request: POST /json_proto HTTP/1.0 [14:25:21]Method: POST [14:25:21]URL: /json_proto [14:25:21]Method is POST - this is cgi request [14:25:21]url: /json_proto [14:25:21]query_string will be loaded in cgi processing [14:25:21]execute_cgi json_proto POST (null) [14:25:21]execute_cgi path=json_proto method=POST [14:25:21]POST find Content-Length [14:25:21]Host: 172.17.33.3:8080 [14:25:21]Content-Length: 681 [14:25:21]Content-Type: application/json [14:25:21] [14:25:21]POST finish read [14:25:21]Found Content-Length = 681 [14:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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:25:21]execute_script... [14:25: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)347994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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:25:21]POST & json_proto [14:25:21]process_json_proto [14:25:21]json parsed OK: [14:25:21]protocol is kg_v1.0 [14:25:21]action value=close_receipt [14:25:21]process_action close_receipt [14:25:21]cmd_close_receipt [14:25:21]MH_GetDate [14:25:21]Write to MH i2c: F0 00 00 D7 49 0F [14:25:21]Write i2c OK [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 09 00 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 09 00 D7 49 00 D6 38 1D 66 23 5B 8F 65 1B [14:25:21]GetLastDocTimeStamp 1713191102 [14:25:21]current date 1713191126 [14:25:21]FM_GetShiftState [14:25:21]SAM_PROTO_GetShiftState [14:25:21]wFMCommunicate request_size=4 [14:25:21]MH_SAM_APDU [14:25:21]CAPDU: 80 13 01 00 [14:25:21]Write to MH i2c: E2 08 00 D8 49 80 13 01 00 00 00 00 00 9E [14:25:21]Write i2c OK [14:25:21]MH_I2C_Read... [14:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:21]Read from MH i2c: E2 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 D8 49 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 92 [14:25:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:25:21]wFMCommunicate OK [14:25:21]SAM_PROTO_GetShiftState done [14:25:21]FM_GetShiftState done [14:25:21]opened in 1713140468 [14:25:21]opened+sec_in_day 1713226868 [14:25:21]quantity*price = 50033 [14:25:21]sum+1 = 50034 [14:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 159 15.04.2024 14:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29565 ФПД: 32369250781959 1/tax-web-control/client/api/v1/ticket?date=20240415T142526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29565&fm=32369250781959&tin=02508201610067®Number=0000138879044617&sum=50000 [14:25:23]StoreToDocumentArchive [14:25:23]shift 117 fd 29565 [14:25:23]save to /storage/0117/doc_00029565 [14:25:23]save last doc name /storage/0117/doc_00029565 to /storage/kkm_last_doc_name [14:25:23]save OK [14:25:23]Clear old archive folders... [14:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:25:23]tlvbuf is 0022A660 [14:25:23]SAM_PROTO_ClearQueue [14:25:23]wFMCommunicate request_size=4 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 09 00 00 [14:25:23]Write to MH i2c: E2 08 00 E5 49 80 09 00 00 00 00 00 00 A0 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 E5 49 00 90 00 A2 [14:25:23]RAPDU: 90 00 [14:25:23]wFMCommunicate OK [14:25:23]SAM_PROTO_ClearQueue done [14:25:23]KKMCreateOFDPacket [14:25:23]OFDProtocolAddRootSTLVToBuf [14:25:23]FM_MakeSignedData [14:25:23]FM_MakeSignedData [14:25:23]SAM_PROTO_SignData [14:25:23]wFMCommunicate request_size=4 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 0D 01 02 [14:25:23]Write to MH i2c: E2 08 00 E6 49 80 0D 01 02 00 00 00 00 A8 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 E6 49 00 90 00 A3 [14:25:23]RAPDU: 90 00 [14:25:23]wFMCommunicate OK [14:25:23]wFMCommunicate request_size=255 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D6 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 73 00 00 35 04 06 00 1D 70 [14:25:23]Write to MH i2c: E2 02 01 E7 49 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D6 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 73 00 00 35 04 06 00 1D 70 00 00 63 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 E7 49 00 90 00 A4 [14:25:23]RAPDU: 90 00 [14:25:23]wFMCommunicate OK [14:25:23]wFMCommunicate request_size=9 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 0D 02 02 04 8D B1 CB 07 [14:25:23]Write to MH i2c: E2 0C 00 E8 49 80 0D 02 02 04 00 8D B1 CB 07 00 00 C3 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 03 00 E8 49 00 90 00 A5 [14:25:23]RAPDU: 90 00 [14:25:23]wFMCommunicate OK [14:25:23]wFMCommunicate request_size=4 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 0D 03 02 [14:25:23]Write to MH i2c: E2 08 00 E9 49 80 0D 03 02 00 00 00 00 AD [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 0B 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 0B 00 E9 49 00 31 C1 07 D7 15 7F 32 7E 90 00 C2 [14:25:23]RAPDU: 31 C1 07 D7 15 7F 32 7E 90 00 [14:25:23]wFMCommunicate OK [14:25:23]SAM_PROTO_SignData done [14:25:23]FM_MakeSignedData done [14:25:23]CreateOFDProtocolMessage [14:25:23]wFMCommunicate request_size=4 [14:25:23]MH_SAM_APDU [14:25:23]CAPDU: 80 11 00 00 [14:25:23]Write to MH i2c: E2 08 00 EA 49 80 11 00 00 00 00 00 00 AD [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:23]Read from MH i2c: E2 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 17 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: E2 17 00 EA 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [14:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:23]wFMCommunicate OK [14:25:23]CreateOFDProtocolMessage done [14:25:23]OFDSenderStorePacket 29565 [14:25:23]StoreOFDPacket docnum=29565 [14:25:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5C D0 06 01 5D A3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D6 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 73 00 00 35 04 06 00 1D 70 8D B1 CB 07 31 C1 07 D7 15 7F 32 7E [14:25:23]CheckFolder [14:25:23]dirname=/storage/ofd_packets [14:25:23]CheckFolder done [14:25:23]ProducePacketName [14:25:23]name=ofd_packets/00029565 [14:25:23]NVStorageSaveData ofd_packets/00029565 [14:25:23]File name is /storage/ofd_packets/00029565 [14:25:23]Write 300 bytes [14:25:23]NVStorageSaveData done [14:25:23]OFDSenderStorePacket done [14:25:23]KKMCreateOFDPacket done [14:25:23]NVStorageSaveData kkm_last_timestamp [14:25:23]File name is /storage/kkm_last_timestamp [14:25:23]Write 4 bytes [14:25:23]NVStorageSaveData done [14:25:23]ExternCall_PrintAddStr [14:25:23]wPrintStart [14:25:23]Write to MH i2c: 01 00 00 EB 49 34 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 07 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 07 00 EB 49 00 00 00 00 00 FF 0F 49 [14:25:23]RasterBufferAndPrint [14:25:23]line Счет N : (1)347994 [14:25:23]line ИНН: 02508201610067 [14:25:23]line Контрольно-Кассовый Чек [14:25:23]line ПРОДАЖА [14:25:23]line ТРК (МРК, ГНК) : 71 [14:25:23]line Товар: 2711129700 [14:25:23]line ГАЗ-К-5 [14:25:23]line 14.980 * 33.40 [14:25:23]line = 500.33 [14:25:23]line НДС 12% НСП 1% [14:25:23]line > о реализуемом товаре [14:25:23]line ОКРУГЛЕНИЕ: -0.33 [14:25:23]line ИТОГО: 500.00 [14:25:23]line Внесено: 500.00 [14:25:23]line СДАЧА: 0.00 [14:25:23]line НСП 1% : 4.43 [14:25:23]line НДС 12% : 53.13 [14:25:23]line Наличными: 500.00 [14:25:23]line Безнал.: 0.00 [14:25:23]line Место: АЗС № 108 "Партнер Нефть" [14:25:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:25:23]line СНО: Общий режим [14:25:23]line Чек 159 15.04.2024 14:25 [14:25:23]line Смена: 117 ФФД: 1.0 [14:25:23]line ЗНМ: 0300000027 [14:25:23]line РНМ: 0000138879044617 [14:25:23]line Версия ККМ: 001 [14:25:23]line ФМ: 0000000000963154 [14:25:23]line ФД: 29565 [14:25:23]line ФПД: 32369250781959 [14:25:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T142526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29565&fm=32369250781959&tin=02508201610067®Number=0000138879044617&sum=50000 [14:25:23]OFD Sender: Processing packet 29565 [packets to send 8, broken 7] [14:25:23]ProducePacketName [14:25:23]name=ofd_packets/00029565 [14:25:23]OFD Sender: To server: pG, [14:25:23]CommunicateWithHost lk.salyk.kg:30040 [14:25:23]ConnectInit lk.salyk.kg [14:25:23]written 0, free lines is 4095 [14:25:23]Connected sock=10 [14:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5C D0 06 01 5D A3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D6 38 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 73 00 00 35 04 06 00 1D 70 8D B1 CB 07 31 C1 07 D7 15 7F 32 7E [14:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3C CA 47 00 F5 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 39 36 33 31 35 34 10 04 04 00 7D 73 00 00 F4 03 04 00 77 E3 1C 66 B6 04 01 00 00 3A 73 9C D2 1D 73 9B 3F [14:25:24]CommunicateWithHost err = 0 [14:25:24]CheckOFDResponse [14:25:24]1017 (14) - 77093643461234 [14:25:24]1041 (16) - 0000000000963154 [14:25:24]1040 (4) - 29565 [14:25:24]1012 (4) - 15.04.2024 08:21 [14:25:24]1206 (1) - 0 [14:25:24]OFD Sender: Remove packet 29565 [14:25:24]ProducePacketName [14:25:24]name=ofd_packets/00029565 [14:25:24]NVStorageDeleteData [14:25:24]Write to MH i2c: 01 00 00 15 4A 5F [14:25:24]Write i2c OK [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: 01 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: 01 07 00 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: 01 07 00 15 4A 00 00 00 00 00 BD 0C 2F [14:25:24]RasterBufferAndPrint [14:25:24]line [14:25:24]line [14:25:24]line [14:25:24]line [14:25:24]line [14:25:24]written 0, free lines is 3266 [14:25:24]MH_Cut [14:25:24]Write to MH i2c: D1 01 00 1C 4A 01 38 [14:25:24]Write i2c OK [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: D1 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: D1 01 00 [14:25:24]MH_I2C_Read... [14:25:24]Read from MH i2c: D1 01 00 1C 4A 00 37 [14:25:24]Write to MH i2c: 01 00 00 1D 4A 67 [14:25:24]Write i2c OK [14:25:24]MH_I2C_Read... [14:25:24]OFD Sender: No OFD packet to send [14:25:25]*** Cut start [14:25:25]*** Partial cut [14:25:25]*** CUTSNS_PIN = 1 [14:25:25]*** CUTSNS_PIN = 0 [14:25:25]*** Brake cut motor [14:25:25]Read from MH i2c: 01 [14:25:25]MH_I2C_Read... [14:25:25]*** Stop cut motor [14:25:25]*** Cut end [14:25:25]Read from MH i2c: 01 07 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: 01 07 00 1D 4A 00 00 00 00 00 FF 0F 7C [14:25:25]process_action close_receipt done [14:25:25]requested_data is exist [14:25:25]produce_requested_data [14:25:25]requested_item fm.sn is exist - process it [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 11 00 00 [14:25:25]Write to MH i2c: E2 08 00 1E 4A 80 11 00 00 00 00 00 00 E2 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 17 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 17 00 1E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [14:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:25]wFMCommunicate OK [14:25:25]requested_item fd.num is exist - process it [14:25:25]SAM_PROTO_GetFieldsCounters [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 13 00 00 [14:25:25]Write to MH i2c: E2 08 00 1F 4A 80 13 00 00 00 00 00 00 E5 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 62 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 62 00 1F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 73 00 00 0E 04 04 00 75 00 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 65 [14:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 73 00 00 0E 04 04 00 75 00 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:25:25]wFMCommunicate OK [14:25:25]SAM_PROTO_GetFieldsCounters done [14:25:25]requested_item shift.num is exist - process it [14:25:25]requested_item shift.opened is exist - process it [14:25:25]req_shift_opened [14:25:25]FM_GetShiftState [14:25:25]SAM_PROTO_GetShiftState [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 13 01 00 [14:25:25]Write to MH i2c: E2 08 00 20 4A 80 13 01 00 00 00 00 00 E7 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 0E 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 0E 00 20 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DB [14:25:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:25:26]wFMCommunicate OK [14:25:26]SAM_PROTO_GetShiftState done [14:25:26]FM_GetShiftState done [14:25:26]req_shift_opened done [14:25:26]requested_item shift.open_date is exist - process it [14:25:26]req_shift_open_date [14:25:26]req_shift_open_date done [14:25:26]produce_requested_data done [14:25:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29565,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:25:26]process_action_free close_receipt [14:25:26]json_value_free [14:25:26]json_value_free done [14:25:26]process_json_proto returns [14:25:26]Send response to host [14:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29565,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:25:26]free response buf [14:25:26]execute_script done [14:25:26]execute_script returns [14:25:26]free content buf [14:25:26]Sock 8.Close socket [14:25:26]Sock 8.Thread stoped [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:38]accept exits with 9 [14:30:38]New connection [14:30:38]New thread 3067112804 created [14:30:38]Thread 3066969444 joined [14:30:38]Waiting for new connection... [14:30:38] Sock 9.Parse request [14:30:38]Sock 9.Check first char [14:30:38]Sock 9.First char is OK [14:30:38]request: POST /json_proto HTTP/1.0 [14:30:38]Method: POST [14:30:38]URL: /json_proto [14:30:38]Method is POST - this is cgi request [14:30:38]url: /json_proto [14:30:38]query_string will be loaded in cgi processing [14:30:38]execute_cgi json_proto POST (null) [14:30:38]execute_cgi path=json_proto method=POST [14:30:38]POST find Content-Length [14:30:38]Host: 172.17.33.3:8080 [14:30:38]Content-Length: 808 [14:30:38]Content-Type: application/json [14:30:38] [14:30:38]POST finish read [14:30:38]Found Content-Length = 808 [14:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 37.740, "sum" : 2751.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2751.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:38]execute_script... [14:30: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)347996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 37.740, "sum" : 2751.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2751.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:38]POST & json_proto [14:30:38]process_json_proto [14:30:38]json parsed OK: [14:30:38]protocol is kg_v1.0 [14:30:38]action value=close_receipt [14:30:38]process_action close_receipt [14:30:38]cmd_close_receipt [14:30:38]MH_GetDate [14:30:38]Write to MH i2c: F0 00 00 21 4A 5A [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 09 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: F0 09 00 21 4A 00 13 3A 1D 66 23 5B 8F 65 A5 [14:30:38]GetLastDocTimeStamp 1713191126 [14:30:38]current date 1713191443 [14:30:38]FM_GetShiftState [14:30:38]SAM_PROTO_GetShiftState [14:30:38]wFMCommunicate request_size=4 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 13 01 00 [14:30:38]Write to MH i2c: E2 08 00 22 4A 80 13 01 00 00 00 00 00 E9 [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 0E 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 0E 00 22 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DD [14:30:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:30:38]wFMCommunicate OK [14:30:38]SAM_PROTO_GetShiftState done [14:30:38]FM_GetShiftState done [14:30:38]opened in 1713140468 [14:30:38]opened+sec_in_day 1713226868 [14:30:38]quantity*price = 275124 [14:30:38]sum+1 = 275126 [14:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2751.25 НСП 1% : 24.35 НДС 12% : 292.17 Наличными: 0.00 Безнал.: 2751.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 160 15.04.2024 14:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29566 ФПД: 131941440561648 1/tax-web-control/client/api/v1/ticket?date=20240415T143043&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29566&fm=131941440561648&tin=02508201610067®Number=0000138879044617&sum=275125 [14:30:39]StoreToDocumentArchive [14:30:39]shift 117 fd 29566 [14:30:39]save to /storage/0117/doc_00029566 [14:30:39]save last doc name /storage/0117/doc_00029566 to /storage/kkm_last_doc_name [14:30:39]save OK [14:30:39]Clear old archive folders... [14:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:39]tlvbuf is 0033BAD0 [14:30:39]SAM_PROTO_ClearQueue [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 09 00 00 [14:30:39]Write to MH i2c: E2 08 00 2F 4A 80 09 00 00 00 00 00 00 EB [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 2F 4A 00 90 00 ED [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]SAM_PROTO_ClearQueue done [14:30:39]KKMCreateOFDPacket [14:30:39]OFDProtocolAddRootSTLVToBuf [14:30:39]FM_MakeSignedData [14:30:39]FM_MakeSignedData [14:30:39]SAM_PROTO_SignData [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 0D 01 02 [14:30:39]Write to MH i2c: E2 08 00 30 4A 80 0D 01 02 00 00 00 00 F3 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 30 4A 00 90 00 EE [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]wFMCommunicate request_size=255 [14:30:39]MH_SAM_APDU [14:30: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 6C 93 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B5 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 72 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 32 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 13 3A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 73 00 00 35 04 06 00 78 [14:30:39]Write to MH i2c: E2 02 01 31 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B5 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 72 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 32 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 13 3A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 73 00 00 35 04 06 00 78 00 00 E1 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 31 4A 00 90 00 EF [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]wFMCommunicate request_size=10 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 0D 02 02 05 00 02 B2 21 F0 [14:30:39]Write to MH i2c: E2 0D 00 32 4A 80 0D 02 02 05 00 00 02 B2 21 F0 00 00 C5 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 03 00 32 4A 00 90 00 F0 [14:30:39]RAPDU: 90 00 [14:30:39]wFMCommunicate OK [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 0D 03 02 [14:30:39]Write to MH i2c: E2 08 00 33 4A 80 0D 03 02 00 00 00 00 F8 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:39]OFD Sender: No OFD packet to send [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 0B 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 0B 00 33 4A 00 37 E2 67 CA A1 F4 58 08 90 00 38 [14:30:39]RAPDU: 37 E2 67 CA A1 F4 58 08 90 00 [14:30:39]wFMCommunicate OK [14:30:39]SAM_PROTO_SignData done [14:30:39]FM_MakeSignedData done [14:30:39]CreateOFDProtocolMessage [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 11 00 00 [14:30:39]Write to MH i2c: E2 08 00 34 4A 80 11 00 00 00 00 00 00 F8 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 17 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 17 00 34 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [14:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:30:40]wFMCommunicate OK [14:30:40]CreateOFDProtocolMessage done [14:30:40]OFDSenderStorePacket 29566 [14:30:40]StoreOFDPacket docnum=29566 [14:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B A8 07 01 C6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B5 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 72 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 32 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 13 3A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 73 00 00 35 04 06 00 78 00 02 B2 21 F0 37 E2 67 CA A1 F4 58 08 [14:30:40]CheckFolder [14:30:40]dirname=/storage/ofd_packets [14:30:40]CheckFolder done [14:30:40]ProducePacketName [14:30:40]name=ofd_packets/00029566 [14:30:40]NVStorageSaveData ofd_packets/00029566 [14:30:40]File name is /storage/ofd_packets/00029566 [14:30:40]Write 301 bytes [14:30:40]NVStorageSaveData done [14:30:40]OFDSenderStorePacket done [14:30:40]KKMCreateOFDPacket done [14:30:40]NVStorageSaveData kkm_last_timestamp [14:30:40]File name is /storage/kkm_last_timestamp [14:30:40]Write 4 bytes [14:30:40]NVStorageSaveData done [14:30:40]ExternCall_PrintAddStr [14:30:40]wPrintStart [14:30:40]Write to MH i2c: 01 00 00 35 4A 7F [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 35 4A 00 00 00 00 00 FF 0F 94 [14:30:40]RasterBufferAndPrint [14:30:40]line Счет N : (1)347996 [14:30:40]line ИНН: 02508201610067 [14:30:40]line Контрольно-Кассовый Чек [14:30:40]line ПРОДАЖА [14:30:40]line ТРК (МРК, ГНК) : 43 [14:30:40]line Товар: 2710124500 [14:30:40]line Аи-95-К-5 [14:30:40]line 37.740 * 72.90 [14:30:40]line = 2751.25 [14:30:40]line НДС 12% НСП 1% [14:30:40]line > о реализуемом товаре [14:30:40]line ИТОГО: 2751.25 [14:30:40]line НСП 1% : 24.35 [14:30:40]line НДС 12% : 292.17 [14:30:40]line Наличными: 0.00 [14:30:40]line Безнал.: 2751.25 [14:30:40]line Место: АЗС № 108 "Партнер Нефть" [14:30:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:30:40]line СНО: Общий режим [14:30:40]line Чек 160 15.04.2024 14:30 [14:30:40]line Смена: 117 ФФД: 1.0 [14:30:40]line ЗНМ: 0300000027 [14:30:40]line РНМ: 0000138879044617 [14:30:40]line Версия ККМ: 001 [14:30:40]line Платежная система: О! деньги [14:30:40]line ФМ: 0000000000963154 [14:30:40]line ФД: 29566 [14:30:40]line ФПД: 131941440561648 [14:30:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T143043&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29566&fm=131941440561648&tin=02508201610067®Number=0000138879044617&sum=275125 [14:30:40]OFD Sender: Processing packet 29566 [packets to send 8, broken 7] [14:30:40]ProducePacketName [14:30:40]name=ofd_packets/00029566 [14:30:40]OFD Sender: To server: pG, [14:30:40]CommunicateWithHost lk.salyk.kg:30040 [14:30:40]ConnectInit lk.salyk.kg [14:30:40]written 0, free lines is 4095 [14:30:40]Connected sock=10 [14:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3B A8 07 01 C6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 93 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B5 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 72 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 32 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 13 3A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 73 00 00 35 04 06 00 78 00 02 B2 21 F0 37 E2 67 CA A1 F4 58 08 [14:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 4A 47 00 57 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 39 36 33 31 35 34 10 04 04 00 7E 73 00 00 F4 03 04 00 B4 E4 1C 66 B6 04 01 00 00 A4 CD CE 25 43 8E 8E B6 [14:30:40]CommunicateWithHost err = 0 [14:30:40]CheckOFDResponse [14:30:40]1017 (14) - 77093643461234 [14:30:40]1041 (16) - 0000000000963154 [14:30:40]1040 (4) - 29566 [14:30:40]1012 (4) - 15.04.2024 08:26 [14:30:40]1206 (1) - 0 [14:30:40]OFD Sender: Remove packet 29566 [14:30:40]ProducePacketName [14:30:40]name=ofd_packets/00029566 [14:30:40]NVStorageDeleteData [14:30:40]Write to MH i2c: 01 00 00 5E 4A A8 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: 01 07 00 5E 4A 00 00 00 00 00 D8 0C 93 [14:30:40]RasterBufferAndPrint [14:30:40]line [14:30:40]line [14:30:40]line [14:30:40]line [14:30:40]line [14:30:40]written 0, free lines is 3295 [14:30:40]MH_Cut [14:30:40]Write to MH i2c: D1 01 00 65 4A 01 81 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: D1 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: D1 01 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: D1 01 00 65 4A 00 80 [14:30:40]Write to MH i2c: 01 00 00 66 4A B0 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:41]OFD Sender: No OFD packet to send [14:30:41]*** Cut start [14:30:41]*** Partial cut [14:30:41]*** CUTSNS_PIN = 1 [14:30:41]*** CUTSNS_PIN = 0 [14:30:41]*** Brake cut motor [14:30:42]Read from MH i2c: 01 [14:30:42]MH_I2C_Read... [14:30:42]*** Stop cut motor [14:30:42]*** Cut end [14:30:42]Read from MH i2c: 01 07 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: 01 07 00 66 4A 00 00 00 00 00 FF 0F C5 [14:30:42]process_action close_receipt done [14:30:42]requested_data is exist [14:30:42]produce_requested_data [14:30:42]requested_item fm.sn is exist - process it [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 11 00 00 [14:30:42]Write to MH i2c: E2 08 00 67 4A 80 11 00 00 00 00 00 00 2B [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 17 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 17 00 67 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [14:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:30:42]wFMCommunicate OK [14:30:42]requested_item fd.num is exist - process it [14:30:42]SAM_PROTO_GetFieldsCounters [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 13 00 00 [14:30:42]Write to MH i2c: E2 08 00 68 4A 80 13 00 00 00 00 00 00 2E [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 62 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 62 00 68 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 73 00 00 0E 04 04 00 75 00 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 B2 [14:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 73 00 00 0E 04 04 00 75 00 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:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_GetFieldsCounters done [14:30:42]requested_item shift.num is exist - process it [14:30:42]requested_item shift.opened is exist - process it [14:30:42]req_shift_opened [14:30:42]FM_GetShiftState [14:30:42]SAM_PROTO_GetShiftState [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 13 01 00 [14:30:42]Write to MH i2c: E2 08 00 69 4A 80 13 01 00 00 00 00 00 30 [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 69 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 24 [14:30:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_GetShiftState done [14:30:42]FM_GetShiftState done [14:30:42]req_shift_opened done [14:30:42]requested_item shift.open_date is exist - process it [14:30:42]req_shift_open_date [14:30:42]req_shift_open_date done [14:30:42]produce_requested_data done [14:30:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29566,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:30:42]process_action_free close_receipt [14:30:42]json_value_free [14:30:42]json_value_free done [14:30:42]process_json_proto returns [14:30:42]Send response to host [14:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29566,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:30:42]free response buf [14:30:42]execute_script done [14:30:42]execute_script returns [14:30:42]free content buf [14:30:42]Sock 9.Close socket [14:30:42]Sock 9.Thread stoped [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:23]int [14:32:23]Write to MH i2c: 01 00 00 6A 4A B4 [14:32:23]*** FLAG_PRN_KEY set [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 6A 4A 00 08 00 00 00 FF 0F D1 [14:32:23]state=0 [14:32:23]Key pressed [14:32:23]Feed [14:32:23]Write to MH i2c: D8 00 00 6B 4A 8C [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D8 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D8 01 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D8 01 00 6B 4A 00 8D [14:32:23]int [14:32:23]Write to MH i2c: 01 00 00 6C 4A B6 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 6C 4A 00 48 00 00 00 3C 00 41 [14:32:23]state=2 [14:32:23]Key pressed [14:32:24]int [14:32:24]Write to MH i2c: 01 00 00 6D 4A B7 [14:32:24]*** FLAG_PRN_KEY reset [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 6D 4A 00 00 00 00 00 F6 0F C3 [14:32:24]state=2 [14:32:24]Stop feed [14:32:24]int [14:32:24]Write to MH i2c: 01 00 00 6E 4A B8 [14:32:24]*** FLAG_PRN_KEY set [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 6E 4A 00 08 00 00 00 FF 0F D5 [14:32:24]state=0 [14:32:24]Key pressed [14:32:24]Feed [14:32:24]Write to MH i2c: D8 00 00 6F 4A 90 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D8 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D8 01 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: D8 01 00 6F 4A 00 91 [14:32:24]int [14:32:24]Write to MH i2c: 01 00 00 70 4A BA [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 70 4A 00 48 00 00 00 3C 00 45 [14:32:24]state=2 [14:32:24]Key pressed [14:32:24]int [14:32:24]Write to MH i2c: 01 00 00 71 4A BB [14:32:24]*** FLAG_PRN_KEY reset [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 71 4A 00 00 00 00 00 F6 0F C7 [14:32:24]state=2 [14:32:24]Stop feed [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:38]accept exits with 8 [14:35:38]New connection [14:35:38]New thread 3066969444 created [14:35:38]Thread 3067112804 joined [14:35:38]Waiting for new connection... [14:35:38] Sock 8.Parse request [14:35:38]Sock 8.Check first char [14:35:38]Sock 8.First char is OK [14:35:38]request: POST /json_proto HTTP/1.0 [14:35:38]Method: POST [14:35:38]URL: /json_proto [14:35:38]Method is POST - this is cgi request [14:35:38]url: /json_proto [14:35:38]query_string will be loaded in cgi processing [14:35:38]execute_cgi json_proto POST (null) [14:35:38]execute_cgi path=json_proto method=POST [14:35:38]POST find Content-Length [14:35:38]Host: 172.17.33.3:8080 [14:35:38]Content-Length: 833 [14:35:38]Content-Type: application/json [14:35:38] [14:35:38]POST finish read [14:35:38]Found Content-Length = 833 [14:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:38]execute_script... [14:35: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)347997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:38]POST & json_proto [14:35:38]process_json_proto [14:35:38]json parsed OK: [14:35:38]protocol is kg_v1.0 [14:35:38]action value=close_receipt [14:35:38]process_action close_receipt [14:35:38]cmd_close_receipt [14:35:38]MH_GetDate [14:35:38]Write to MH i2c: F0 00 00 72 4A AB [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 09 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 09 00 72 4A 00 3F 3B 1D 66 23 5B 8F 65 23 [14:35:38]GetLastDocTimeStamp 1713191443 [14:35:38]current date 1713191743 [14:35:38]FM_GetShiftState [14:35:38]SAM_PROTO_GetShiftState [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 01 00 [14:35:38]Write to MH i2c: E2 08 00 73 4A 80 13 01 00 00 00 00 00 3A [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0E 00 73 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2E [14:35:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:35:39]wFMCommunicate OK [14:35:39]SAM_PROTO_GetShiftState done [14:35:39]FM_GetShiftState done [14:35:39]opened in 1713140468 [14:35:39]opened+sec_in_day 1713226868 [14:35:39]quantity*price = 50008 [14:35:39]sum+1 = 50009 [14:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 161 15.04.2024 14:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29567 ФПД: 143402555014378 1/tax-web-control/client/api/v1/ticket?date=20240415T143543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29567&fm=143402555014378&tin=02508201610067®Number=0000138879044617&sum=50008 [14:35:40]StoreToDocumentArchive [14:35:40]shift 117 fd 29567 [14:35:40]save to /storage/0117/doc_00029567 [14:35:40]save last doc name /storage/0117/doc_00029567 to /storage/kkm_last_doc_name [14:35:40]save OK [14:35:40]Clear old archive folders... [14:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:40]tlvbuf is B6DCF440 [14:35:40]SAM_PROTO_ClearQueue [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 09 00 00 [14:35:40]Write to MH i2c: E2 08 00 80 4A 80 09 00 00 00 00 00 00 3C [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 80 4A 00 90 00 3E [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_ClearQueue done [14:35:40]KKMCreateOFDPacket [14:35:40]OFDProtocolAddRootSTLVToBuf [14:35:40]FM_MakeSignedData [14:35:40]FM_MakeSignedData [14:35:40]SAM_PROTO_SignData [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 01 02 [14:35:40]Write to MH i2c: E2 08 00 81 4A 80 0D 01 02 00 00 00 00 44 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 81 4A 00 90 00 3F [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=255 [14:35:40]MH_SAM_APDU [14:35: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 73 00 00 35 04 06 00 [14:35:40]Write to MH i2c: E2 02 01 82 4A 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 73 00 00 35 04 06 00 00 00 93 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 82 4A 00 90 00 40 [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=11 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 02 02 06 82 6C 82 59 FC EA [14:35:40]Write to MH i2c: E2 0E 00 83 4A 80 0D 02 02 06 00 82 6C 82 59 FC EA 00 00 02 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 03 00 83 4A 00 90 00 41 [14:35:40]RAPDU: 90 00 [14:35:40]wFMCommunicate OK [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 0D 03 02 [14:35:40]Write to MH i2c: E2 08 00 84 4A 80 0D 03 02 00 00 00 00 49 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 84 4A 00 0B 31 76 44 DA 9F A6 8A 90 00 E9 [14:35:40]RAPDU: 0B 31 76 44 DA 9F A6 8A 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_SignData done [14:35:40]FM_MakeSignedData done [14:35:40]CreateOFDProtocolMessage [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 11 00 00 [14:35:40]Write to MH i2c: E2 08 00 85 4A 80 11 00 00 00 00 00 00 49 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 85 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [14:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:35:40]wFMCommunicate OK [14:35:40]CreateOFDProtocolMessage done [14:35:40]OFDSenderStorePacket 29567 [14:35:40]StoreOFDPacket docnum=29567 [14:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 12 0B 08 01 56 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 73 00 00 35 04 06 00 82 6C 82 59 FC EA 0B 31 76 44 DA 9F A6 8A [14:35:40]CheckFolder [14:35:40]dirname=/storage/ofd_packets [14:35:40]CheckFolder done [14:35:40]ProducePacketName [14:35:40]name=ofd_packets/00029567 [14:35:40]NVStorageSaveData ofd_packets/00029567 [14:35:40]File name is /storage/ofd_packets/00029567 [14:35:40]Write 302 bytes [14:35:40]NVStorageSaveData done [14:35:40]OFDSenderStorePacket done [14:35:40]KKMCreateOFDPacket done [14:35:40]NVStorageSaveData kkm_last_timestamp [14:35:40]File name is /storage/kkm_last_timestamp [14:35:40]Write 4 bytes [14:35:40]NVStorageSaveData done [14:35:40]ExternCall_PrintAddStr [14:35:40]wPrintStart [14:35:40]Write to MH i2c: 01 00 00 86 4A D0 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 86 4A 00 00 00 00 00 FF 0F E5 [14:35:40]RasterBufferAndPrint [14:35:40]line Счет N : (1)347997 [14:35:40]line ИНН: 02508201610067 [14:35:40]line Контрольно-Кассовый Чек [14:35:40]line ПРОДАЖА [14:35:40]line ТРК (МРК, ГНК) : 12 [14:35:40]line Товар: 2710124130 [14:35:40]line SUPER-92-К-5 [14:35:40]line 7.600 * 65.80 [14:35:40]line = 500.08 [14:35:40]line НДС 12% НСП 1% [14:35:40]line > о реализуемом товаре [14:35:40]line ИТОГО: 500.08 [14:35:40]line НСП 1% : 4.42 [14:35:40]line НДС 12% : 53.11 [14:35:40]line Наличными: 0.00 [14:35:40]line Безнал.: 500.08 [14:35:40]line Место: АЗС № 108 "Партнер Нефть" [14:35:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:35:40]line СНО: Общий режим [14:35:40]line Чек 161 15.04.2024 14:35 [14:35:40]line Смена: 117 ФФД: 1.0 [14:35:40]line ЗНМ: 0300000027 [14:35:40]line РНМ: 0000138879044617 [14:35:40]line Версия ККМ: 001 [14:35:40]line Платежная система: АКБ Кыргызстан [14:35:40]line ФМ: 0000000000963154 [14:35:40]line ФД: 29567 [14:35:40]line ФПД: 143402555014378 [14:35:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T143543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29567&fm=143402555014378&tin=02508201610067®Number=0000138879044617&sum=50008 [14:35:41]OFD Sender: Processing packet 29567 [packets to send 8, broken 7] [14:35:41]ProducePacketName [14:35:41]name=ofd_packets/00029567 [14:35:41]OFD Sender: To server: pG, [14:35:41]CommunicateWithHost lk.salyk.kg:30040 [14:35:41]ConnectInit lk.salyk.kg [14:35:41]written 0, free lines is 4095 [14:35:41]Connected sock=10 [14:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 12 0B 08 01 56 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 3F 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 73 00 00 35 04 06 00 82 6C 82 59 FC EA 0B 31 76 44 DA 9F A6 8A [14:35:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 94 CE 47 00 07 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 39 36 33 31 35 34 10 04 04 00 7F 73 00 00 F4 03 04 00 E0 E5 1C 66 B6 04 01 00 00 53 4C EE 41 F9 0A 07 87 [14:35:41]CommunicateWithHost err = 0 [14:35:41]CheckOFDResponse [14:35:41]1017 (14) - 77093643461234 [14:35:41]1041 (16) - 0000000000963154 [14:35:41]1040 (4) - 29567 [14:35:41]1012 (4) - 15.04.2024 08:31 [14:35:41]1206 (1) - 0 [14:35:41]OFD Sender: Remove packet 29567 [14:35:41]ProducePacketName [14:35:41]name=ofd_packets/00029567 [14:35:41]NVStorageDeleteData [14:35:41]Write to MH i2c: 01 00 00 AF 4A F9 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 07 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: 01 07 00 AF 4A 00 00 00 00 00 F5 0C 01 [14:35:41]RasterBufferAndPrint [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]line [14:35:41]written 0, free lines is 3322 [14:35:41]MH_Cut [14:35:41]Write to MH i2c: D1 01 00 B6 4A 01 D2 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 01 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: D1 01 00 B6 4A 00 D1 [14:35:41]Write to MH i2c: 01 00 00 B7 4A 01 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]OFD Sender: No OFD packet to send [14:35:42]*** Cut start [14:35:42]*** Partial cut [14:35:42]*** CUTSNS_PIN = 1 [14:35:42]*** CUTSNS_PIN = 0 [14:35:42]*** Brake cut motor [14:35:42]Read from MH i2c: 01 [14:35:42]MH_I2C_Read... [14:35:42]*** Stop cut motor [14:35:42]*** Cut end [14:35:42]Read from MH i2c: 01 07 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 B7 4A 00 00 00 00 00 FF 0F 16 [14:35:42]process_action close_receipt done [14:35:42]requested_data is exist [14:35:42]produce_requested_data [14:35:42]requested_item fm.sn is exist - process it [14:35:42]wFMCommunicate request_size=4 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 11 00 00 [14:35:42]Write to MH i2c: E2 08 00 B8 4A 80 11 00 00 00 00 00 00 7C [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 B8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [14:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:35:42]wFMCommunicate OK [14:35:42]requested_item fd.num is exist - process it [14:35:42]SAM_PROTO_GetFieldsCounters [14:35:42]wFMCommunicate request_size=4 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 13 00 00 [14:35:42]Write to MH i2c: E2 08 00 B9 4A 80 13 00 00 00 00 00 00 7F [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 B9 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 73 00 00 0E 04 04 00 75 00 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 07 [14:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 73 00 00 0E 04 04 00 75 00 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:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetFieldsCounters done [14:35:43]requested_item shift.num is exist - process it [14:35:43]requested_item shift.opened is exist - process it [14:35:43]req_shift_opened [14:35:43]FM_GetShiftState [14:35:43]SAM_PROTO_GetShiftState [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 01 00 [14:35:43]Write to MH i2c: E2 08 00 BA 4A 80 13 01 00 00 00 00 00 81 [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 BA 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [14:35:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetShiftState done [14:35:43]FM_GetShiftState done [14:35:43]req_shift_opened done [14:35:43]requested_item shift.open_date is exist - process it [14:35:43]req_shift_open_date [14:35:43]req_shift_open_date done [14:35:43]produce_requested_data done [14:35:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29567,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:35:43]process_action_free close_receipt [14:35:43]json_value_free [14:35:43]json_value_free done [14:35:43]process_json_proto returns [14:35:43]Send response to host [14:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29567,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:35:43]free response buf [14:35:43]execute_script done [14:35:43]execute_script returns [14:35:43]free content buf [14:35:43]Sock 8.Close socket [14:35:43]Sock 8.Thread stoped [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:29]accept exits with 9 [14:38:29]New connection [14:38:29]New thread 3067112804 created [14:38:29]Thread 3066969444 joined [14:38:29]Waiting for new connection... [14:38:29] Sock 9.Parse request [14:38:29]Sock 9.Check first char [14:38:29]Sock 9.First char is OK [14:38:29]request: POST /json_proto HTTP/1.0 [14:38:29]Method: POST [14:38:29]URL: /json_proto [14:38:29]Method is POST - this is cgi request [14:38:29]url: /json_proto [14:38:29]query_string will be loaded in cgi processing [14:38:29]execute_cgi json_proto POST (null) [14:38:29]execute_cgi path=json_proto method=POST [14:38:29]POST find Content-Length [14:38:29]Host: 172.17.33.3:8080 [14:38:29]Content-Length: 682 [14:38:29]Content-Type: application/json [14:38:29] [14:38:29]POST finish read [14:38:29]Found Content-Length = 682 [14:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:29]execute_script... [14:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:29]POST & json_proto [14:38:29]process_json_proto [14:38:29]json parsed OK: [14:38:29]protocol is kg_v1.0 [14:38:29]action value=close_receipt [14:38:29]process_action close_receipt [14:38:29]cmd_close_receipt [14:38:29]MH_GetDate [14:38:29]Write to MH i2c: F0 00 00 BB 4A F4 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 09 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: F0 09 00 BB 4A 00 EA 3B 1D 66 23 5B 8F 65 17 [14:38:29]GetLastDocTimeStamp 1713191743 [14:38:29]current date 1713191914 [14:38:29]FM_GetShiftState [14:38:29]SAM_PROTO_GetShiftState [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 13 01 00 [14:38:29]Write to MH i2c: E2 08 00 BC 4A 80 13 01 00 00 00 00 00 83 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 0E 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 0E 00 BC 4A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 77 [14:38:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:38:29]wFMCommunicate OK [14:38:29]SAM_PROTO_GetShiftState done [14:38:29]FM_GetShiftState done [14:38:29]opened in 1713140468 [14:38:29]opened+sec_in_day 1713226868 [14:38:29]quantity*price = 100051 [14:38:29]sum+1 = 100052 [14:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 162 15.04.2024 14:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29568 ФПД: 167101049646443 1/tax-web-control/client/api/v1/ticket?date=20240415T143834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29568&fm=167101049646443&tin=02508201610067®Number=0000138879044617&sum=100000 [14:38:30]StoreToDocumentArchive [14:38:30]shift 117 fd 29568 [14:38:30]save to /storage/0117/doc_00029568 [14:38:30]save last doc name /storage/0117/doc_00029568 to /storage/kkm_last_doc_name [14:38:30]save OK [14:38:30]Clear old archive folders... [14:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:30]tlvbuf is 002A6B60 [14:38:30]SAM_PROTO_ClearQueue [14:38:30]wFMCommunicate request_size=4 [14:38:30]MH_SAM_APDU [14:38:30]CAPDU: 80 09 00 00 [14:38:30]Write to MH i2c: E2 08 00 C9 4A 80 09 00 00 00 00 00 00 85 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 C9 4A 00 90 00 87 [14:38:30]RAPDU: 90 00 [14:38:30]wFMCommunicate OK [14:38:30]SAM_PROTO_ClearQueue done [14:38:30]KKMCreateOFDPacket [14:38:30]OFDProtocolAddRootSTLVToBuf [14:38:30]FM_MakeSignedData [14:38:30]FM_MakeSignedData [14:38:30]SAM_PROTO_SignData [14:38:30]wFMCommunicate request_size=4 [14:38:30]MH_SAM_APDU [14:38:30]CAPDU: 80 0D 01 02 [14:38:30]Write to MH i2c: E2 08 00 CA 4A 80 0D 01 02 00 00 00 00 8D [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 CA 4A 00 90 00 88 [14:38:30]RAPDU: 90 00 [14:38:30]wFMCommunicate OK [14:38:30]wFMCommunicate request_size=255 [14:38:30]MH_SAM_APDU [14:38: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EA 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 73 00 00 35 04 06 00 97 [14:38:30]Write to MH i2c: E2 02 01 CB 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EA 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 73 00 00 35 04 06 00 97 00 00 BC [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 CB 4A 00 90 00 89 [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]wFMCommunicate request_size=10 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 02 02 05 FA 3E B4 AD 6B [14:38:31]Write to MH i2c: E2 0D 00 CC 4A 80 0D 02 02 05 00 FA 3E B4 AD 6B 00 00 9E [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 03 00 CC 4A 00 90 00 8A [14:38:31]RAPDU: 90 00 [14:38:31]wFMCommunicate OK [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 0D 03 02 [14:38:31]Write to MH i2c: E2 08 00 CD 4A 80 0D 03 02 00 00 00 00 92 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0B 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0B 00 CD 4A 00 CA C5 ED 87 AB 44 AC C7 90 00 F8 [14:38:31]RAPDU: CA C5 ED 87 AB 44 AC C7 90 00 [14:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_SignData done [14:38:31]FM_MakeSignedData done [14:38:31]CreateOFDProtocolMessage [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 11 00 00 [14:38:31]Write to MH i2c: E2 08 00 CE 4A 80 11 00 00 00 00 00 00 92 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 17 00 CE 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [14:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:38:31]wFMCommunicate OK [14:38:31]CreateOFDProtocolMessage done [14:38:31]OFDSenderStorePacket 29568 [14:38:31]StoreOFDPacket docnum=29568 [14:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D AE 07 01 C4 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EA 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 73 00 00 35 04 06 00 97 FA 3E B4 AD 6B CA C5 ED 87 AB 44 AC C7 [14:38:31]CheckFolder [14:38:31]dirname=/storage/ofd_packets [14:38:31]CheckFolder done [14:38:31]ProducePacketName [14:38:31]name=ofd_packets/00029568 [14:38:31]NVStorageSaveData ofd_packets/00029568 [14:38:31]File name is /storage/ofd_packets/00029568 [14:38:31]Write 301 bytes [14:38:31]NVStorageSaveData done [14:38:31]OFDSenderStorePacket done [14:38:31]KKMCreateOFDPacket done [14:38:31]NVStorageSaveData kkm_last_timestamp [14:38:31]File name is /storage/kkm_last_timestamp [14:38:31]Write 4 bytes [14:38:31]NVStorageSaveData done [14:38:31]ExternCall_PrintAddStr [14:38:31]wPrintStart [14:38:31]Write to MH i2c: 01 00 00 CF 4A 19 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 CF 4A 00 00 00 00 00 FF 0F 2E [14:38:31]RasterBufferAndPrint [14:38:31]line Счет N : (1)347998 [14:38:31]line ИНН: 02508201610067 [14:38:31]line Контрольно-Кассовый Чек [14:38:31]line ПРОДАЖА [14:38:31]line ТРК (МРК, ГНК) : 42 [14:38:31]line Товар: 2710124130 [14:38:31]line Аи-92-К-5 [14:38:31]line 15.440 * 64.80 [14:38:31]line = 1000.51 [14:38:31]line НДС 12% НСП 1% [14:38:31]line > о реализуемом товаре [14:38:31]line ОКРУГЛЕНИЕ: -0.51 [14:38:31]line ИТОГО: 1000.00 [14:38:31]line Внесено: 1000.00 [14:38:31]line СДАЧА: 0.00 [14:38:31]line НСП 1% : 8.85 [14:38:31]line НДС 12% : 106.25 [14:38:31]line Наличными: 1000.00 [14:38:31]line Безнал.: 0.00 [14:38:31]line Место: АЗС № 108 "Партнер Нефть" [14:38:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:38:31]line СНО: Общий режим [14:38:31]line Чек 162 15.04.2024 14:38 [14:38:31]line Смена: 117 ФФД: 1.0 [14:38:31]line ЗНМ: 0300000027 [14:38:31]line РНМ: 0000138879044617 [14:38:31]line Версия ККМ: 001 [14:38:31]line ФМ: 0000000000963154 [14:38:31]line ФД: 29568 [14:38:31]line ФПД: 167101049646443 [14:38:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T143834&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29568&fm=167101049646443&tin=02508201610067®Number=0000138879044617&sum=100000 [14:38:31]OFD Sender: Processing packet 29568 [packets to send 8, broken 7] [14:38:31]ProducePacketName [14:38:31]name=ofd_packets/00029568 [14:38:31]OFD Sender: To server: pG, [14:38:31]CommunicateWithHost lk.salyk.kg:30040 [14:38:31]ConnectInit lk.salyk.kg [14:38:31]written 0, free lines is 4095 [14:38:31]Connected sock=10 [14:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D AE 07 01 C4 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 EA 3B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 73 00 00 35 04 06 00 97 FA 3E B4 AD 6B CA C5 ED 87 AB 44 AC C7 [14:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 98 C8 47 00 1B 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 73 00 00 F4 03 04 00 8B E6 1C 66 B6 04 01 00 00 15 6A 7E 56 5B E4 21 10 [14:38:32]CommunicateWithHost err = 0 [14:38:32]CheckOFDResponse [14:38:32]1017 (14) - 77093643461234 [14:38:32]1041 (16) - 0000000000963154 [14:38:32]1040 (4) - 29568 [14:38:32]1012 (4) - 15.04.2024 08:34 [14:38:32]1206 (1) - 0 [14:38:32]OFD Sender: Remove packet 29568 [14:38:32]ProducePacketName [14:38:32]name=ofd_packets/00029568 [14:38:32]NVStorageDeleteData [14:38:32]Write to MH i2c: 01 00 00 F9 4A 43 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 07 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 07 00 F9 4A 00 00 00 00 00 C0 0C 16 [14:38:32]RasterBufferAndPrint [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]line [14:38:32]written 0, free lines is 3270 [14:38:32]MH_Cut [14:38:32]Write to MH i2c: D1 01 00 00 4B 01 1D [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 01 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: D1 01 00 00 4B 00 1C [14:38:32]Write to MH i2c: 01 00 00 01 4B 4C [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]OFD Sender: No OFD packet to send [14:38:32]*** Cut start [14:38:32]*** Partial cut [14:38:32]*** CUTSNS_PIN = 1 [14:38:33]*** CUTSNS_PIN = 0 [14:38:33]*** Brake cut motor [14:38:33]Read from MH i2c: 01 [14:38:33]MH_I2C_Read... [14:38:33]*** Stop cut motor [14:38:33]*** Cut end [14:38:33]Read from MH i2c: 01 07 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: 01 07 00 01 4B 00 00 00 00 00 FF 0F 61 [14:38:33]process_action close_receipt done [14:38:33]requested_data is exist [14:38:33]produce_requested_data [14:38:33]requested_item fm.sn is exist - process it [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 11 00 00 [14:38:33]Write to MH i2c: E2 08 00 02 4B 80 11 00 00 00 00 00 00 C7 [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 02 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [14:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:38:33]wFMCommunicate OK [14:38:33]requested_item fd.num is exist - process it [14:38:33]SAM_PROTO_GetFieldsCounters [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 13 00 00 [14:38:33]Write to MH i2c: E2 08 00 03 4B 80 13 00 00 00 00 00 00 CA [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 62 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 62 00 03 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 73 00 00 0E 04 04 00 75 00 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 56 [14:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 73 00 00 0E 04 04 00 75 00 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:38:33]wFMCommunicate OK [14:38:33]SAM_PROTO_GetFieldsCounters done [14:38:33]requested_item shift.num is exist - process it [14:38:33]requested_item shift.opened is exist - process it [14:38:33]req_shift_opened [14:38:33]FM_GetShiftState [14:38:33]SAM_PROTO_GetShiftState [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 13 01 00 [14:38:33]Write to MH i2c: E2 08 00 04 4B 80 13 01 00 00 00 00 00 CC [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0E 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0E 00 04 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [14:38:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:38:33]wFMCommunicate OK [14:38:33]SAM_PROTO_GetShiftState done [14:38:33]FM_GetShiftState done [14:38:33]req_shift_opened done [14:38:33]requested_item shift.open_date is exist - process it [14:38:33]req_shift_open_date [14:38:33]req_shift_open_date done [14:38:33]produce_requested_data done [14:38:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29568,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:38:33]process_action_free close_receipt [14:38:33]json_value_free [14:38:33]json_value_free done [14:38:33]process_json_proto returns [14:38:33]Send response to host [14:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29568,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:38:33]free response buf [14:38:33]execute_script done [14:38:33]execute_script returns [14:38:33]free content buf [14:38:33]Sock 9.Close socket [14:38:33]Sock 9.Thread stoped [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:38]int [14:41:38]Write to MH i2c: 01 00 00 05 4B 50 [14:41:38]*** FLAG_PRN_KEY set [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 05 4B 00 08 00 00 00 FF 0F 6D [14:41:38]state=0 [14:41:38]Key pressed [14:41:38]Feed [14:41:38]Write to MH i2c: D8 00 00 06 4B 28 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: D8 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: D8 01 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: D8 01 00 06 4B 00 29 [14:41:38]int [14:41:38]Write to MH i2c: 01 00 00 07 4B 52 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 07 4B 00 48 00 00 00 3C 00 DD [14:41:38]state=2 [14:41:38]Key pressed [14:41:38]int [14:41:38]Write to MH i2c: 01 00 00 08 4B 53 [14:41:38]*** FLAG_PRN_KEY reset [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 08 4B 00 00 00 00 00 F6 0F 5F [14:41:38]state=2 [14:41:38]Stop feed [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]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:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:23]accept exits with 8 [14:49:23]New connection [14:49:23]New thread 3066969444 created [14:49:23]Thread 3067112804 joined [14:49:23]Waiting for new connection... [14:49:23] Sock 8.Parse request [14:49:23]Sock 8.Check first char [14:49:23]Sock 8.First char is OK [14:49:23]request: POST /json_proto HTTP/1.0 [14:49:23]Method: POST [14:49:23]URL: /json_proto [14:49:23]Method is POST - this is cgi request [14:49:23]url: /json_proto [14:49:23]query_string will be loaded in cgi processing [14:49:23]execute_cgi json_proto POST (null) [14:49:23]execute_cgi path=json_proto method=POST [14:49:23]POST find Content-Length [14:49:23]Host: 172.17.33.3:8080 [14:49:23]Content-Length: 671 [14:49:23]Content-Type: application/json [14:49:23] [14:49:23]POST finish read [14:49:23]Found Content-Length = 671 [14:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [14:49:23]execute_script... [14:49:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [14:49:23]POST & json_proto [14:49:23]process_json_proto [14:49:23]json parsed OK: [14:49:23]protocol is kg_v1.0 [14:49:23]action value=close_receipt [14:49:23]process_action close_receipt [14:49:23]cmd_close_receipt [14:49:23]MH_GetDate [14:49:23]Write to MH i2c: F0 00 00 09 4B 43 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: F0 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: F0 09 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: F0 09 00 09 4B 00 78 3E 1D 66 23 5B 8F 65 F7 [14:49:23]GetLastDocTimeStamp 1713191914 [14:49:23]current date 1713192568 [14:49:23]FM_GetShiftState [14:49:23]SAM_PROTO_GetShiftState [14:49:23]wFMCommunicate request_size=4 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 13 01 00 [14:49:23]Write to MH i2c: E2 08 00 0A 4B 80 13 01 00 00 00 00 00 D2 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0E 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0E 00 0A 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [14:49:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:49:23]wFMCommunicate OK [14:49:23]SAM_PROTO_GetShiftState done [14:49:23]FM_GetShiftState done [14:49:23]opened in 1713140468 [14:49:23]opened+sec_in_day 1713226868 [14:49:23]quantity*price = 70011 [14:49:23]sum+1 = 70012 [14:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 163 15.04.2024 14:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29569 ФПД: 12743332735771 1/tax-web-control/client/api/v1/ticket?date=20240415T144928&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29569&fm=12743332735771&tin=02508201610067®Number=0000138879044617&sum=70000 [14:49:24]StoreToDocumentArchive [14:49:24]shift 117 fd 29569 [14:49:24]save to /storage/0117/doc_00029569 [14:49:24]save last doc name /storage/0117/doc_00029569 to /storage/kkm_last_doc_name [14:49:24]save OK [14:49:24]Clear old archive folders... [14:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:49:24]tlvbuf is 0022FA90 [14:49:24]SAM_PROTO_ClearQueue [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 09 00 00 [14:49:24]Write to MH i2c: E2 08 00 17 4B 80 09 00 00 00 00 00 00 D4 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 17 4B 00 90 00 D6 [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]SAM_PROTO_ClearQueue done [14:49:24]KKMCreateOFDPacket [14:49:24]OFDProtocolAddRootSTLVToBuf [14:49:24]FM_MakeSignedData [14:49:24]FM_MakeSignedData [14:49:24]SAM_PROTO_SignData [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 0D 01 02 [14:49:24]Write to MH i2c: E2 08 00 18 4B 80 0D 01 02 00 00 00 00 DC [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 18 4B 00 90 00 D7 [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]wFMCommunicate request_size=255 [14:49:24]MH_SAM_APDU [14:49: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 A3 00 00 00 F4 03 04 00 78 3E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 73 00 00 35 04 06 00 [14:49:24]Write to MH i2c: E2 02 01 19 4B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 A3 00 00 00 F4 03 04 00 78 3E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 73 00 00 35 04 06 00 00 00 9F [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 03 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 03 00 19 4B 00 90 00 D8 [14:49:25]RAPDU: 90 00 [14:49:25]wFMCommunicate OK [14:49:25]wFMCommunicate request_size=11 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 0D 02 02 06 0B 97 09 D2 2B 1B [14:49:25]Write to MH i2c: E2 0E 00 1A 4B 80 0D 02 02 06 00 0B 97 09 D2 2B 1B 00 00 AE [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 03 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 03 00 1A 4B 00 90 00 D9 [14:49:25]RAPDU: 90 00 [14:49:25]wFMCommunicate OK [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 0D 03 02 [14:49:25]Write to MH i2c: E2 08 00 1B 4B 80 0D 03 02 00 00 00 00 E1 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0B 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0B 00 1B 4B 00 CD 13 B8 87 49 E2 EC 24 90 00 3C [14:49:25]RAPDU: CD 13 B8 87 49 E2 EC 24 90 00 [14:49:25]wFMCommunicate OK [14:49:25]SAM_PROTO_SignData done [14:49:25]FM_MakeSignedData done [14:49:25]CreateOFDProtocolMessage [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 11 00 00 [14:49:25]Write to MH i2c: E2 08 00 1C 4B 80 11 00 00 00 00 00 00 E1 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 1C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [14:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:49:25]wFMCommunicate OK [14:49:25]CreateOFDProtocolMessage done [14:49:25]OFDSenderStorePacket 29569 [14:49:25]StoreOFDPacket docnum=29569 [14:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0B 56 08 01 61 8A 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 A3 00 00 00 F4 03 04 00 78 3E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 73 00 00 35 04 06 00 0B 97 09 D2 2B 1B CD 13 B8 87 49 E2 EC 24 [14:49:25]CheckFolder [14:49:25]dirname=/storage/ofd_packets [14:49:25]CheckFolder done [14:49:25]ProducePacketName [14:49:25]name=ofd_packets/00029569 [14:49:25]NVStorageSaveData ofd_packets/00029569 [14:49:25]File name is /storage/ofd_packets/00029569 [14:49:25]Write 302 bytes [14:49:25]NVStorageSaveData done [14:49:25]OFDSenderStorePacket done [14:49:25]KKMCreateOFDPacket done [14:49:25]NVStorageSaveData kkm_last_timestamp [14:49:25]File name is /storage/kkm_last_timestamp [14:49:25]Write 4 bytes [14:49:25]NVStorageSaveData done [14:49:25]ExternCall_PrintAddStr [14:49:25]wPrintStart [14:49:25]Write to MH i2c: 01 00 00 1D 4B 68 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 1D 4B 00 00 00 00 00 FF 0F 7D [14:49:25]RasterBufferAndPrint [14:49:25]line Счет N : (1)347999 [14:49:25]line ИНН: 02508201610067 [14:49:25]line Контрольно-Кассовый Чек [14:49:25]line ПРОДАЖА [14:49:25]line ТРК (МРК, ГНК) : 22 [14:49:25]line Товар: 2710124130 [14:49:25]line SUPER-92-К-5 [14:49:25]line 10.640 * 65.80 [14:49:25]line = 700.11 [14:49:25]line НДС 12% НСП 1% [14:49:25]line > о реализуемом товаре [14:49:25]line ОКРУГЛЕНИЕ: -0.11 [14:49:25]line ИТОГО: 700.00 [14:49:25]line Внесено: 700.00 [14:49:25]line СДАЧА: 0.00 [14:49:25]line НСП 1% : 6.20 [14:49:25]line НДС 12% : 74.35 [14:49:25]line Наличными: 700.00 [14:49:25]line Безнал.: 0.00 [14:49:25]line Место: АЗС № 108 "Партнер Нефть" [14:49:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:49:25]line СНО: Общий режим [14:49:25]line Чек 163 15.04.2024 14:49 [14:49:25]line Смена: 117 ФФД: 1.0 [14:49:25]line ЗНМ: 0300000027 [14:49:25]line РНМ: 0000138879044617 [14:49:25]line Версия ККМ: 001 [14:49:25]line ФМ: 0000000000963154 [14:49:25]line ФД: 29569 [14:49:25]line ФПД: 12743332735771 [14:49:25]line 1/tax-web-control/client/api/v1/ticket?date=20240415T144928&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29569&fm=12743332735771&tin=02508201610067®Number=0000138879044617&sum=70000 [14:49:25]OFD Sender: Processing packet 29569 [packets to send 8, broken 7] [14:49:25]ProducePacketName [14:49:25]name=ofd_packets/00029569 [14:49:25]OFD Sender: To server: pG, [14:49:25]CommunicateWithHost lk.salyk.kg:30040 [14:49:25]ConnectInit lk.salyk.kg [14:49:25]written 0, free lines is 4095 [14:49:25]Connected sock=10 [14:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0B 56 08 01 61 8A 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 A3 00 00 00 F4 03 04 00 78 3E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 73 00 00 35 04 06 00 0B 97 09 D2 2B 1B CD 13 B8 87 49 E2 EC 24 [14:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FC B2 47 00 05 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 39 36 33 31 35 34 10 04 04 00 81 73 00 00 F4 03 04 00 19 E9 1C 66 B6 04 01 00 00 D2 FB 7B 2C E0 01 6D 45 [14:49:25]CommunicateWithHost err = 0 [14:49:25]CheckOFDResponse [14:49:25]1017 (14) - 77093643461234 [14:49:25]1041 (16) - 0000000000963154 [14:49:25]1040 (4) - 29569 [14:49:25]1012 (4) - 15.04.2024 08:45 [14:49:25]1206 (1) - 0 [14:49:25]OFD Sender: Remove packet 29569 [14:49:25]ProducePacketName [14:49:25]name=ofd_packets/00029569 [14:49:25]NVStorageDeleteData [14:49:26]Write to MH i2c: 01 00 00 47 4B 92 [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: 01 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: 01 07 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: 01 07 00 47 4B 00 00 00 00 00 C6 0C 6B [14:49:26]RasterBufferAndPrint [14:49:26]line [14:49:26]line [14:49:26]line [14:49:26]line [14:49:26]line [14:49:26]written 0, free lines is 3274 [14:49:26]MH_Cut [14:49:26]Write to MH i2c: D1 01 00 4E 4B 01 6B [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: D1 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: D1 01 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: D1 01 00 4E 4B 00 6A [14:49:26]Write to MH i2c: 01 00 00 4F 4B 9A [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]OFD Sender: No OFD packet to send [14:49:26]*** Cut start [14:49:26]*** Partial cut [14:49:26]*** CUTSNS_PIN = 1 [14:49:26]*** CUTSNS_PIN = 0 [14:49:27]*** Brake cut motor [14:49:27]Read from MH i2c: 01 [14:49:27]MH_I2C_Read... [14:49:27]*** Stop cut motor [14:49:27]*** Cut end [14:49:27]Read from MH i2c: 01 07 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: 01 07 00 4F 4B 00 00 00 00 00 FF 0F AF [14:49:27]process_action close_receipt done [14:49:27]requested_data is exist [14:49:27]produce_requested_data [14:49:27]requested_item fm.sn is exist - process it [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 11 00 00 [14:49:27]Write to MH i2c: E2 08 00 50 4B 80 11 00 00 00 00 00 00 15 [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 17 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 17 00 50 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [14:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:49:27]wFMCommunicate OK [14:49:27]requested_item fd.num is exist - process it [14:49:27]SAM_PROTO_GetFieldsCounters [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 13 00 00 [14:49:27]Write to MH i2c: E2 08 00 51 4B 80 13 00 00 00 00 00 00 18 [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 62 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 62 00 51 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 73 00 00 0E 04 04 00 75 00 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 A8 [14:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 73 00 00 0E 04 04 00 75 00 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:49:27]wFMCommunicate OK [14:49:27]SAM_PROTO_GetFieldsCounters done [14:49:27]requested_item shift.num is exist - process it [14:49:27]requested_item shift.opened is exist - process it [14:49:27]req_shift_opened [14:49:27]FM_GetShiftState [14:49:27]SAM_PROTO_GetShiftState [14:49:27]wFMCommunicate request_size=4 [14:49:27]MH_SAM_APDU [14:49:27]CAPDU: 80 13 01 00 [14:49:27]Write to MH i2c: E2 08 00 52 4B 80 13 01 00 00 00 00 00 1A [14:49:27]Write i2c OK [14:49:27]MH_I2C_Read... [14:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:27]Read from MH i2c: E2 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 0E 00 [14:49:27]MH_I2C_Read... [14:49:27]Read from MH i2c: E2 0E 00 52 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0E [14:49:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:49:27]wFMCommunicate OK [14:49:27]SAM_PROTO_GetShiftState done [14:49:27]FM_GetShiftState done [14:49:27]req_shift_opened done [14:49:27]requested_item shift.open_date is exist - process it [14:49:27]req_shift_open_date [14:49:27]req_shift_open_date done [14:49:27]produce_requested_data done [14:49:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29569,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:49:27]process_action_free close_receipt [14:49:27]json_value_free [14:49:27]json_value_free done [14:49:27]process_json_proto returns [14:49:27]Send response to host [14:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29569,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:49:27]free response buf [14:49:27]execute_script done [14:49:27]execute_script returns [14:49:27]free content buf [14:49:27]Sock 8.Close socket [14:49:27]Sock 8.Thread stoped [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:52:57]accept exits with 9 [14:52:57]New connection [14:52:57]New thread 3067112804 created [14:52:57]Thread 3066969444 joined [14:52:57]Waiting for new connection... [14:52:57] Sock 9.Parse request [14:52:57]Sock 9.Check first char [14:52:57]Sock 9.First char is OK [14:52:57]request: POST /json_proto HTTP/1.0 [14:52:57]Method: POST [14:52:57]URL: /json_proto [14:52:57]Method is POST - this is cgi request [14:52:57]url: /json_proto [14:52:57]query_string will be loaded in cgi processing [14:52:57]execute_cgi json_proto POST (null) [14:52:57]execute_cgi path=json_proto method=POST [14:52:57]POST find Content-Length [14:52:57]Host: 172.17.33.3:8080 [14:52:57]Content-Length: 677 [14:52:57]Content-Type: application/json [14:52:57] [14:52:57]POST finish read [14:52:57]Found Content-Length = 677 [14:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:57]execute_script... [14:52: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)348000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:57]POST & json_proto [14:52:57]process_json_proto [14:52:57]json parsed OK: [14:52:57]protocol is kg_v1.0 [14:52:57]action value=close_receipt [14:52:57]process_action close_receipt [14:52:57]cmd_close_receipt [14:52:57]MH_GetDate [14:52:57]Write to MH i2c: F0 00 00 53 4B 8D [14:52:57]Write i2c OK [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: F0 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: F0 09 00 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: F0 09 00 53 4B 00 4F 3F 1D 66 23 5B 8F 65 19 [14:52:57]GetLastDocTimeStamp 1713192568 [14:52:57]current date 1713192783 [14:52:57]FM_GetShiftState [14:52:57]SAM_PROTO_GetShiftState [14:52:57]wFMCommunicate request_size=4 [14:52:57]MH_SAM_APDU [14:52:57]CAPDU: 80 13 01 00 [14:52:57]Write to MH i2c: E2 08 00 54 4B 80 13 01 00 00 00 00 00 1C [14:52:57]Write i2c OK [14:52:57]MH_I2C_Read... [14:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:58]Read from MH i2c: E2 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: E2 0E 00 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: E2 0E 00 54 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [14:52:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:52:58]wFMCommunicate OK [14:52:58]SAM_PROTO_GetShiftState done [14:52:58]FM_GetShiftState done [14:52:58]opened in 1713140468 [14:52:58]opened+sec_in_day 1713226868 [14:52:58]quantity*price = 50025 [14:52:58]sum+1 = 50027 [14:52:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 164 15.04.2024 14:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29570 ФПД: 96116748754754 1/tax-web-control/client/api/v1/ticket?date=20240415T145303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29570&fm=96116748754754&tin=02508201610067®Number=0000138879044617&sum=50000 [14:52:59]StoreToDocumentArchive [14:52:59]shift 117 fd 29570 [14:52:59]save to /storage/0117/doc_00029570 [14:52:59]save last doc name /storage/0117/doc_00029570 to /storage/kkm_last_doc_name [14:52:59]save OK [14:52:59]Clear old archive folders... [14:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:59]tlvbuf is 002EE890 [14:52:59]SAM_PROTO_ClearQueue [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 09 00 00 [14:52:59]Write to MH i2c: E2 08 00 61 4B 80 09 00 00 00 00 00 00 1E [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 61 4B 00 90 00 20 [14:52:59]RAPDU: 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_ClearQueue done [14:52:59]KKMCreateOFDPacket [14:52:59]OFDProtocolAddRootSTLVToBuf [14:52:59]FM_MakeSignedData [14:52:59]FM_MakeSignedData [14:52:59]SAM_PROTO_SignData [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 0D 01 02 [14:52:59]Write to MH i2c: E2 08 00 62 4B 80 0D 01 02 00 00 00 00 26 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 62 4B 00 90 00 21 [14:52:59]RAPDU: 90 00 [14:52:59]wFMCommunicate OK [14:52:59]wFMCommunicate request_size=255 [14:52:59]MH_SAM_APDU [14:52: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4F 3F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 73 00 00 35 04 06 00 57 [14:52:59]Write to MH i2c: E2 02 01 63 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4F 3F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 73 00 00 35 04 06 00 57 00 00 55 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 63 4B 00 90 00 22 [14:52:59]RAPDU: 90 00 [14:52:59]wFMCommunicate OK [14:52:59]wFMCommunicate request_size=10 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 0D 02 02 05 6A EC AA 9F 42 [14:52:59]Write to MH i2c: E2 0D 00 64 4B 80 0D 02 02 05 00 6A EC AA 9F 42 00 00 14 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 64 4B 00 90 00 23 [14:52:59]RAPDU: 90 00 [14:52:59]wFMCommunicate OK [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 0D 03 02 [14:52:59]Write to MH i2c: E2 08 00 65 4B 80 0D 03 02 00 00 00 00 2B [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0B 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 0B 00 65 4B 00 22 87 8B 0A F7 EE 75 FA 90 00 BE [14:52:59]RAPDU: 22 87 8B 0A F7 EE 75 FA 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_SignData done [14:52:59]FM_MakeSignedData done [14:52:59]CreateOFDProtocolMessage [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 11 00 00 [14:52:59]Write to MH i2c: E2 08 00 66 4B 80 11 00 00 00 00 00 00 2B [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 17 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 17 00 66 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [14:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:52:59]wFMCommunicate OK [14:52:59]CreateOFDProtocolMessage done [14:52:59]OFDSenderStorePacket 29570 [14:52:59]StoreOFDPacket docnum=29570 [14:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 2B 07 01 69 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4F 3F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 73 00 00 35 04 06 00 57 6A EC AA 9F 42 22 87 8B 0A F7 EE 75 FA [14:52:59]CheckFolder [14:52:59]dirname=/storage/ofd_packets [14:52:59]CheckFolder done [14:52:59]ProducePacketName [14:52:59]name=ofd_packets/00029570 [14:52:59]NVStorageSaveData ofd_packets/00029570 [14:52:59]File name is /storage/ofd_packets/00029570 [14:52:59]Write 301 bytes [14:52:59]NVStorageSaveData done [14:52:59]OFDSenderStorePacket done [14:52:59]KKMCreateOFDPacket done [14:52:59]NVStorageSaveData kkm_last_timestamp [14:52:59]File name is /storage/kkm_last_timestamp [14:52:59]Write 4 bytes [14:52:59]NVStorageSaveData done [14:52:59]ExternCall_PrintAddStr [14:52:59]wPrintStart [14:52:59]Write to MH i2c: 01 00 00 67 4B B2 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: 01 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: 01 07 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: 01 07 00 67 4B 00 00 00 00 00 FF 0F C7 [14:52:59]RasterBufferAndPrint [14:52:59]line Счет N : (1)348000 [14:52:59]line ИНН: 02508201610067 [14:52:59]line Контрольно-Кассовый Чек [14:52:59]line ПРОДАЖА [14:52:59]line ТРК (МРК, ГНК) : 42 [14:52:59]line Товар: 2710124130 [14:52:59]line Аи-92-К-5 [14:52:59]line 7.720 * 64.80 [14:52:59]line = 500.26 [14:52:59]line НДС 12% НСП 1% [14:52:59]line > о реализуемом товаре [14:52:59]line ОКРУГЛЕНИЕ: -0.26 [14:52:59]line ИТОГО: 500.00 [14:52:59]line Внесено: 500.00 [14:52:59]line СДАЧА: 0.00 [14:52:59]line НСП 1% : 4.43 [14:52:59]line НДС 12% : 53.12 [14:52:59]line Наличными: 500.00 [14:52:59]line Безнал.: 0.00 [14:52:59]line Место: АЗС № 108 "Партнер Нефть" [14:52:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:52:59]line СНО: Общий режим [14:52:59]line Чек 164 15.04.2024 14:53 [14:52:59]line Смена: 117 ФФД: 1.0 [14:52:59]line ЗНМ: 0300000027 [14:52:59]line РНМ: 0000138879044617 [14:52:59]line Версия ККМ: 001 [14:52:59]line ФМ: 0000000000963154 [14:52:59]line ФД: 29570 [14:52:59]line ФПД: 96116748754754 [14:52:59]line 1/tax-web-control/client/api/v1/ticket?date=20240415T145303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29570&fm=96116748754754&tin=02508201610067®Number=0000138879044617&sum=50000 [14:53:00]OFD Sender: Processing packet 29570 [packets to send 8, broken 7] [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00029570 [14:53:00]OFD Sender: To server: pG, [14:53:00]CommunicateWithHost lk.salyk.kg:30040 [14:53:00]ConnectInit lk.salyk.kg [14:53:00]written 0, free lines is 4095 [14:53:00]Connected sock=10 [14:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 2B 07 01 69 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4F 3F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 73 00 00 35 04 06 00 57 6A EC AA 9F 42 22 87 8B 0A F7 EE 75 FA [14:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 75 9B 47 00 3D 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 39 36 33 31 35 34 10 04 04 00 82 73 00 00 F4 03 04 00 EF E9 1C 66 B6 04 01 00 00 58 6E 7F 7B 29 FD 14 7F [14:53:00]CommunicateWithHost err = 0 [14:53:00]CheckOFDResponse [14:53:00]1017 (14) - 77093643461234 [14:53:00]1041 (16) - 0000000000963154 [14:53:00]1040 (4) - 29570 [14:53:00]1012 (4) - 15.04.2024 08:48 [14:53:00]1206 (1) - 0 [14:53:00]OFD Sender: Remove packet 29570 [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00029570 [14:53:00]NVStorageDeleteData [14:53:00]Write to MH i2c: 01 00 00 91 4B DC [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 91 4B 00 00 00 00 00 BD 0C AC [14:53:00]RasterBufferAndPrint [14:53:00]line [14:53:00]line [14:53:00]line [14:53:00]line [14:53:00]line [14:53:00]written 0, free lines is 3266 [14:53:00]MH_Cut [14:53:00]Write to MH i2c: D1 01 00 98 4B 01 B5 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: D1 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: D1 01 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: D1 01 00 98 4B 00 B4 [14:53:00]Write to MH i2c: 01 00 00 99 4B E4 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]OFD Sender: No OFD packet to send [14:53:01]*** Cut start [14:53:01]*** Partial cut [14:53:01]*** CUTSNS_PIN = 1 [14:53:01]*** CUTSNS_PIN = 0 [14:53:01]*** Brake cut motor [14:53:01]Read from MH i2c: 01 [14:53:01]MH_I2C_Read... [14:53:01]*** Stop cut motor [14:53:01]*** Cut end [14:53:01]Read from MH i2c: 01 07 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: 01 07 00 99 4B 00 00 00 00 00 FF 0F F9 [14:53:01]process_action close_receipt done [14:53:01]requested_data is exist [14:53:01]produce_requested_data [14:53:01]requested_item fm.sn is exist - process it [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 11 00 00 [14:53:01]Write to MH i2c: E2 08 00 9A 4B 80 11 00 00 00 00 00 00 5F [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:01]Read from MH i2c: E2 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: E2 17 00 9A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [14:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:53:01]wFMCommunicate OK [14:53:01]requested_item fd.num is exist - process it [14:53:01]SAM_PROTO_GetFieldsCounters [14:53:01]wFMCommunicate request_size=4 [14:53:01]MH_SAM_APDU [14:53:01]CAPDU: 80 13 00 00 [14:53:01]Write to MH i2c: E2 08 00 9B 4B 80 13 00 00 00 00 00 00 62 [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:02]Read from MH i2c: E2 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 62 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 62 00 9B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 73 00 00 0E 04 04 00 75 00 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 F6 [14:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 73 00 00 0E 04 04 00 75 00 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:53:02]wFMCommunicate OK [14:53:02]SAM_PROTO_GetFieldsCounters done [14:53:02]requested_item shift.num is exist - process it [14:53:02]requested_item shift.opened is exist - process it [14:53:02]req_shift_opened [14:53:02]FM_GetShiftState [14:53:02]SAM_PROTO_GetShiftState [14:53:02]wFMCommunicate request_size=4 [14:53:02]MH_SAM_APDU [14:53:02]CAPDU: 80 13 01 00 [14:53:02]Write to MH i2c: E2 08 00 9C 4B 80 13 01 00 00 00 00 00 64 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:02]Read from MH i2c: E2 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 0E 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 0E 00 9C 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 58 [14:53:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:53:02]wFMCommunicate OK [14:53:02]SAM_PROTO_GetShiftState done [14:53:02]FM_GetShiftState done [14:53:02]req_shift_opened done [14:53:02]requested_item shift.open_date is exist - process it [14:53:02]req_shift_open_date [14:53:02]req_shift_open_date done [14:53:02]produce_requested_data done [14:53:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29570,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:53:02]process_action_free close_receipt [14:53:02]json_value_free [14:53:02]json_value_free done [14:53:02]process_json_proto returns [14:53:02]Send response to host [14:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29570,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:53:02]free response buf [14:53:02]execute_script done [14:53:02]execute_script returns [14:53:02]free content buf [14:53:02]Sock 9.Close socket [14:53:02]Sock 9.Thread stoped [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 9D 4B E8 [14:57:43]*** FLAG_PRN_KEY set [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 9D 4B 00 08 00 00 00 FF 0F 05 [14:57:43]state=0 [14:57:43]Key pressed [14:57:43]Feed [14:57:43]Write to MH i2c: D8 00 00 9E 4B C0 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 9E 4B 00 C1 [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 9F 4B EA [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 9F 4B 00 48 00 00 00 3C 00 75 [14:57:43]state=2 [14:57:43]Key pressed [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A0 4B EB [14:57:43]*** FLAG_PRN_KEY reset [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 A0 4B 00 00 00 00 00 F6 0F F7 [14:57:43]state=2 [14:57:43]Stop feed [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A1 4B EC [14:57:43]*** FLAG_PRN_KEY set [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 A1 4B 00 08 00 00 00 FF 0F 09 [14:57:43]state=0 [14:57:43]Key pressed [14:57:43]Feed [14:57:43]Write to MH i2c: D8 00 00 A2 4B C4 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 A2 4B 00 C5 [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A3 4B EE [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 A3 4B 00 48 00 00 00 3C 00 79 [14:57:43]state=2 [14:57:43]Key pressed [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A4 4B EF [14:57:43]*** FLAG_PRN_KEY reset [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 A4 4B 00 00 00 00 00 F5 0F FA [14:57:43]state=2 [14:57:43]Stop feed [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A5 4B F0 [14:57:43]*** FLAG_PRN_KEY set [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 A5 4B 00 08 00 00 00 FF 0F 0D [14:57:43]state=0 [14:57:43]Key pressed [14:57:43]Feed [14:57:43]Write to MH i2c: D8 00 00 A6 4B C8 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D8 01 00 A6 4B 00 C9 [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A7 4B F2 [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 A7 4B 00 48 00 00 00 3C 00 7D [14:57:43]state=2 [14:57:43]Key pressed [14:57:43]int [14:57:43]Write to MH i2c: 01 00 00 A8 4B F3 [14:57:43]*** FLAG_PRN_KEY reset [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 A8 4B 00 00 00 00 00 F6 0F FF [14:57:43]state=2 [14:57:43]Stop feed [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:12]accept exits with 8 [14:58:12]New connection [14:58:12]New thread 3066969444 created [14:58:12]Thread 3067112804 joined [14:58:12]Waiting for new connection... [14:58:12] Sock 8.Parse request [14:58:12]Sock 8.Check first char [14:58:12]Sock 8.First char is OK [14:58:12]request: POST /json_proto HTTP/1.0 [14:58:12]Method: POST [14:58:12]URL: /json_proto [14:58:12]Method is POST - this is cgi request [14:58:12]url: /json_proto [14:58:12]query_string will be loaded in cgi processing [14:58:12]execute_cgi json_proto POST (null) [14:58:12]execute_cgi path=json_proto method=POST [14:58:12]POST find Content-Length [14:58:12]Host: 172.17.33.3:8080 [14:58:12]Content-Length: 1203 [14:58:12]Content-Type: application/json [14:58:12] [14:58:12]POST finish read [14:58:12]Found Content-Length = 1203 [14:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348001\u000A15.04.2024 14:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3586036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]execute_script... [14:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348001\u000A15.04.2024 14:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3586036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:12]POST & json_proto [14:58:12]process_json_proto [14:58:12]json parsed OK: [14:58:12]protocol is kg_v1.0 [14:58:12]action value=print_text [14:58:12]process_action print_text [14:58:12]cmd_print_text [14:58:12]ExternCall_PrintAddStr [14:58:12]wPrintStart [14:58:12]Write to MH i2c: 01 00 00 A9 4B F4 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 A9 4B 00 00 00 00 00 FF 0F 09 [14:58:12]RasterBufferAndPrint [14:58:12]line *****ТОВАРНЫЙ ЧЕК***** [14:58:12]line АЗС 108 [14:58:12]line Партнер нефть [14:58:12]line 02508201610067 [14:58:12]line Кассир : Джумагулова Н. [14:58:12]line Счет N : (1)348001 [14:58:12]line 15.04.2024 14:39 [14:58:12]line ПРОДАЖА [14:58:12]line ТРК (МРК, ГНК): 13 [14:58:12]line Вид ГСМ : 2710124130 [14:58:12]line Аи-92-К-5 [14:58:12]line 20.000 x 64.80 [14:58:12]line ИТОГ: 1296.00 [14:58:12]line Тип оплаты: Талоны: Партнер нефть [14:58:12]line 3586036 [14:58:12]line ______________________ [14:58:12]line (подпись) [14:58:12]written 0, free lines is 4095 [14:58:12]Write to MH i2c: 01 00 00 BE 4B 09 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 BE 4B 00 00 00 00 00 FA 0D 17 [14:58:12]RasterBufferAndPrint [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]line [14:58:12]written 0, free lines is 3580 [14:58:12]MH_Cut [14:58:12]Write to MH i2c: D1 01 00 C5 4B 01 E2 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 01 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: D1 01 00 C5 4B 00 E1 [14:58:12]Write to MH i2c: 01 00 00 C6 4B 11 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:13]*** Cut start [14:58:13]*** Partial cut [14:58:13]*** CUTSNS_PIN = 1 [14:58:13]*** CUTSNS_PIN = 0 [14:58:13]*** Brake cut motor [14:58:13]Read from MH i2c: 01 [14:58:13]MH_I2C_Read... [14:58:13]*** Stop cut motor [14:58:13]*** Cut end [14:58:13]Read from MH i2c: 01 07 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 C6 4B 00 00 00 00 00 FF 0F 26 [14:58:13]process_action print_text done [14:58:13]requested_data is exist [14:58:13]produce_requested_data [14:58:13]requested_item fm.sn is exist - process it [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 11 00 00 [14:58:13]Write to MH i2c: E2 08 00 C7 4B 80 11 00 00 00 00 00 00 8C [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 C7 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [14:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:58:13]wFMCommunicate OK [14:58:13]requested_item fd.num is exist - process it [14:58:13]SAM_PROTO_GetFieldsCounters [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 13 00 00 [14:58:13]Write to MH i2c: E2 08 00 C8 4B 80 13 00 00 00 00 00 00 8F [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 62 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 62 00 C8 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 73 00 00 0E 04 04 00 75 00 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 23 [14:58:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 73 00 00 0E 04 04 00 75 00 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:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_GetFieldsCounters done [14:58:14]requested_item shift.num is exist - process it [14:58:14]requested_item shift.opened is exist - process it [14:58:14]req_shift_opened [14:58:14]FM_GetShiftState [14:58:14]SAM_PROTO_GetShiftState [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 13 01 00 [14:58:14]Write to MH i2c: E2 08 00 C9 4B 80 13 01 00 00 00 00 00 91 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0E 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0E 00 C9 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [14:58:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [14:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_GetShiftState done [14:58:14]FM_GetShiftState done [14:58:14]req_shift_opened done [14:58:14]requested_item shift.open_date is exist - process it [14:58:14]req_shift_open_date [14:58:14]req_shift_open_date done [14:58:14]produce_requested_data done [14:58:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29570,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [14:58:14]process_action_free print_text [14:58:14]json_value_free [14:58:14]json_value_free done [14:58:14]process_json_proto returns [14:58:14]Send response to host [14:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29570,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [14:58:14]free response buf [14:58:14]execute_script done [14:58:14]execute_script returns [14:58:14]free content buf [14:58:14]Sock 8.Close socket [14:58:14]Sock 8.Thread stoped [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]accept exits with 9 [15:03:01]New connection [15:03:01]New thread 3067112804 created [15:03:01]Thread 3066969444 joined [15:03:01]Waiting for new connection... [15:03:01] Sock 9.Parse request [15:03:01]Sock 9.Check first char [15:03:01]Sock 9.First char is OK [15:03:01]request: POST /json_proto HTTP/1.0 [15:03:01]Method: POST [15:03:01]URL: /json_proto [15:03:01]Method is POST - this is cgi request [15:03:01]url: /json_proto [15:03:01]query_string will be loaded in cgi processing [15:03:01]execute_cgi json_proto POST (null) [15:03:01]execute_cgi path=json_proto method=POST [15:03:01]POST find Content-Length [15:03:01]Host: 172.17.33.3:8080 [15:03:01]Content-Length: 819 [15:03:01]Content-Type: application/json [15:03:01] [15:03:01]POST finish read [15:03:01]Found Content-Length = 819 [15:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.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" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:01]execute_script... [15:03: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)348002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.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" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:01]POST & json_proto [15:03:01]process_json_proto [15:03:01]json parsed OK: [15:03:01]protocol is kg_v1.0 [15:03:01]action value=close_receipt [15:03:01]process_action close_receipt [15:03:01]cmd_close_receipt [15:03:01]MH_GetDate [15:03:01]Write to MH i2c: F0 00 00 CA 4B 04 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 09 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 09 00 CA 4B 00 AA 41 1D 66 23 5B 8F 65 ED [15:03:01]GetLastDocTimeStamp 1713192783 [15:03:01]current date 1713193386 [15:03:01]FM_GetShiftState [15:03:01]SAM_PROTO_GetShiftState [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 13 01 00 [15:03:01]Write to MH i2c: E2 08 00 CB 4B 80 13 01 00 00 00 00 00 93 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0E 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0E 00 CB 4B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 87 [15:03:01]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:03:01]wFMCommunicate OK [15:03:01]SAM_PROTO_GetShiftState done [15:03:01]FM_GetShiftState done [15:03:01]opened in 1713140468 [15:03:01]opened+sec_in_day 1713226868 [15:03:01]quantity*price = 250063 [15:03:01]sum+1 = 250064 [15:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.63 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.63 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 165 15.04.2024 15:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29571 ФПД: 70860326495496 1/tax-web-control/client/api/v1/ticket?date=20240415T150306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29571&fm=70860326495496&tin=02508201610067®Number=0000138879044617&sum=250063 [15:03:02]StoreToDocumentArchive [15:03:02]shift 117 fd 29571 [15:03:02]save to /storage/0117/doc_00029571 [15:03:02]save last doc name /storage/0117/doc_00029571 to /storage/kkm_last_doc_name [15:03:02]save OK [15:03:02]Clear old archive folders... [15:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:02]tlvbuf is B6F7C9D0 [15:03:02]SAM_PROTO_ClearQueue [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 09 00 00 [15:03:02]Write to MH i2c: E2 08 00 D8 4B 80 09 00 00 00 00 00 00 95 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 D8 4B 00 90 00 97 [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]SAM_PROTO_ClearQueue done [15:03:02]KKMCreateOFDPacket [15:03:02]OFDProtocolAddRootSTLVToBuf [15:03:02]FM_MakeSignedData [15:03:02]FM_MakeSignedData [15:03:02]SAM_PROTO_SignData [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 0D 01 02 [15:03:02]Write to MH i2c: E2 08 00 D9 4B 80 0D 01 02 00 00 00 00 9D [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 D9 4B 00 90 00 98 [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]wFMCommunicate request_size=255 [15:03:02]MH_SAM_APDU [15:03: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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AA 41 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 73 00 00 35 04 06 00 40 [15:03:02]Write to MH i2c: E2 02 01 DA 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AA 41 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 73 00 00 35 04 06 00 40 00 00 F4 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 DA 4B 00 90 00 99 [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]wFMCommunicate request_size=10 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 0D 02 02 05 72 74 96 E5 08 [15:03:02]Write to MH i2c: E2 0D 00 DB 4B 80 0D 02 02 05 00 72 74 96 E5 08 00 00 13 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 DB 4B 00 90 00 9A [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 0D 03 02 [15:03:02]Write to MH i2c: E2 08 00 DC 4B 80 0D 03 02 00 00 00 00 A2 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0B 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 0B 00 DC 4B 00 A9 60 0B D2 E2 EC D7 D3 90 00 01 [15:03:02]RAPDU: A9 60 0B D2 E2 EC D7 D3 90 00 [15:03:02]wFMCommunicate OK [15:03:02]SAM_PROTO_SignData done [15:03:02]FM_MakeSignedData done [15:03:02]CreateOFDProtocolMessage [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 11 00 00 [15:03:02]Write to MH i2c: E2 08 00 DD 4B 80 11 00 00 00 00 00 00 A2 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 17 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 17 00 DD 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [15:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:03:02]wFMCommunicate OK [15:03:02]CreateOFDProtocolMessage done [15:03:02]OFDSenderStorePacket 29571 [15:03:02]StoreOFDPacket docnum=29571 [15:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 21 07 01 73 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AA 41 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 73 00 00 35 04 06 00 40 72 74 96 E5 08 A9 60 0B D2 E2 EC D7 D3 [15:03:02]CheckFolder [15:03:02]dirname=/storage/ofd_packets [15:03:02]CheckFolder done [15:03:02]ProducePacketName [15:03:02]name=ofd_packets/00029571 [15:03:02]NVStorageSaveData ofd_packets/00029571 [15:03:02]File name is /storage/ofd_packets/00029571 [15:03:02]Write 301 bytes [15:03:02]NVStorageSaveData done [15:03:02]OFDSenderStorePacket done [15:03:02]KKMCreateOFDPacket done [15:03:02]NVStorageSaveData kkm_last_timestamp [15:03:02]File name is /storage/kkm_last_timestamp [15:03:02]Write 4 bytes [15:03:02]NVStorageSaveData done [15:03:02]ExternCall_PrintAddStr [15:03:02]wPrintStart [15:03:02]Write to MH i2c: 01 00 00 DE 4B 29 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: 01 07 00 DE 4B 00 00 00 00 00 FF 0F 3E [15:03:02]RasterBufferAndPrint [15:03:02]line Счет N : (1)348002 [15:03:02]line ИНН: 02508201610067 [15:03:02]line Контрольно-Кассовый Чек [15:03:02]line ПРОДАЖА [15:03:02]line ТРК (МРК, ГНК) : 42 [15:03:02]line Товар: 2710124130 [15:03:02]line Аи-92-К-5 [15:03:02]line 38.590 * 64.80 [15:03:02]line = 2500.63 [15:03:02]line НДС 12% НСП 1% [15:03:02]line > о реализуемом товаре [15:03:02]line ИТОГО: 2500.63 [15:03:02]line НСП 1% : 22.13 [15:03:02]line НДС 12% : 265.55 [15:03:02]line Наличными: 0.00 [15:03:02]line Безнал.: 2500.63 [15:03:02]line Место: АЗС № 108 "Партнер Нефть" [15:03:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:03:02]line СНО: Общий режим [15:03:02]line Чек 165 15.04.2024 15:03 [15:03:02]line Смена: 117 ФФД: 1.0 [15:03:02]line ЗНМ: 0300000027 [15:03:02]line РНМ: 0000138879044617 [15:03:02]line Версия ККМ: 001 [15:03:02]line Платежная система: Бакай Банк [15:03:02]line ФМ: 0000000000963154 [15:03:02]line ФД: 29571 [15:03:02]line ФПД: 70860326495496 [15:03:02]line 1/tax-web-control/client/api/v1/ticket?date=20240415T150306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29571&fm=70860326495496&tin=02508201610067®Number=0000138879044617&sum=250063 [15:03:03]OFD Sender: Processing packet 29571 [packets to send 8, broken 7] [15:03:03]ProducePacketName [15:03:03]name=ofd_packets/00029571 [15:03:03]OFD Sender: To server: pG, [15:03:03]CommunicateWithHost lk.salyk.kg:30040 [15:03:03]ConnectInit lk.salyk.kg [15:03:03]written 0, free lines is 4095 [15:03:03]Connected sock=10 [15:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 21 07 01 73 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 AA 41 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 73 00 00 35 04 06 00 40 72 74 96 E5 08 A9 60 0B D2 E2 EC D7 D3 [15:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 48 47 00 70 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 39 36 33 31 35 34 10 04 04 00 83 73 00 00 F4 03 04 00 4A EC 1C 66 B6 04 01 00 00 8C 2A E1 03 7B 26 D3 6A [15:03:03]CommunicateWithHost err = 0 [15:03:03]CheckOFDResponse [15:03:03]1017 (14) - 77093643461234 [15:03:03]1041 (16) - 0000000000963154 [15:03:03]1040 (4) - 29571 [15:03:03]1012 (4) - 15.04.2024 08:58 [15:03:03]1206 (1) - 0 [15:03:03]OFD Sender: Remove packet 29571 [15:03:03]ProducePacketName [15:03:03]name=ofd_packets/00029571 [15:03:03]NVStorageDeleteData [15:03:03]Write to MH i2c: 01 00 00 07 4C 53 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 07 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 07 00 07 4C 00 00 00 00 00 DD 0C 43 [15:03:03]RasterBufferAndPrint [15:03:03]line [15:03:03]line [15:03:03]line [15:03:03]line [15:03:03]line [15:03:03]written 0, free lines is 3300 [15:03:03]MH_Cut [15:03:03]Write to MH i2c: D1 01 00 0E 4C 01 2C [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: D1 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: D1 01 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: D1 01 00 0E 4C 00 2B [15:03:03]Write to MH i2c: 01 00 00 0F 4C 5B [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]OFD Sender: No OFD packet to send [15:03:04]*** Cut start [15:03:04]*** Partial cut [15:03:04]*** CUTSNS_PIN = 1 [15:03:04]*** CUTSNS_PIN = 0 [15:03:04]*** Brake cut motor [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]*** Stop cut motor [15:03:04]*** Cut end [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 0F 4C 00 00 00 00 00 FF 0F 70 [15:03:04]process_action close_receipt done [15:03:04]requested_data is exist [15:03:04]produce_requested_data [15:03:04]requested_item fm.sn is exist - process it [15:03:04]wFMCommunicate request_size=4 [15:03:04]MH_SAM_APDU [15:03:04]CAPDU: 80 11 00 00 [15:03:04]Write to MH i2c: E2 08 00 10 4C 80 11 00 00 00 00 00 00 D6 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 10 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [15:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:03:05]wFMCommunicate OK [15:03:05]requested_item fd.num is exist - process it [15:03:05]SAM_PROTO_GetFieldsCounters [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 00 00 [15:03:05]Write to MH i2c: E2 08 00 11 4C 80 13 00 00 00 00 00 00 D9 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 11 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 73 00 00 0E 04 04 00 75 00 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 71 [15:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:05]wFMCommunicate OK [15:03:05]SAM_PROTO_GetFieldsCounters done [15:03:05]requested_item shift.num is exist - process it [15:03:05]requested_item shift.opened is exist - process it [15:03:05]req_shift_opened [15:03:05]FM_GetShiftState [15:03:05]SAM_PROTO_GetShiftState [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 01 00 [15:03:05]Write to MH i2c: E2 08 00 12 4C 80 13 01 00 00 00 00 00 DB [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 0E 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 0E 00 12 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CF [15:03:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:03:05]wFMCommunicate OK [15:03:05]SAM_PROTO_GetShiftState done [15:03:05]FM_GetShiftState done [15:03:05]req_shift_opened done [15:03:05]requested_item shift.open_date is exist - process it [15:03:05]req_shift_open_date [15:03:05]req_shift_open_date done [15:03:05]produce_requested_data done [15:03:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29571,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:03:05]process_action_free close_receipt [15:03:05]json_value_free [15:03:05]json_value_free done [15:03:05]process_json_proto returns [15:03:05]Send response to host [15:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29571,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:03:05]free response buf [15:03:05]execute_script done [15:03:05]execute_script returns [15:03:05]free content buf [15:03:05]Sock 9.Close socket [15:03:05]Sock 9.Thread stoped [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:26]accept exits with 8 [15:07:26]New connection [15:07:26]New thread 3066969444 created [15:07:26]Thread 3067112804 joined [15:07:26]Waiting for new connection... [15:07:26] Sock 8.Parse request [15:07:26]Sock 8.Check first char [15:07:26]Sock 8.First char is OK [15:07:26]request: POST /json_proto HTTP/1.0 [15:07:26]Method: POST [15:07:26]URL: /json_proto [15:07:26]Method is POST - this is cgi request [15:07:26]url: /json_proto [15:07:26]query_string will be loaded in cgi processing [15:07:26]execute_cgi json_proto POST (null) [15:07:26]execute_cgi path=json_proto method=POST [15:07:26]POST find Content-Length [15:07:26]Host: 172.17.33.3:8080 [15:07:26]Content-Length: 1173 [15:07:26]Content-Type: application/json [15:07:26] [15:07:26]POST finish read [15:07:26]Found Content-Length = 1173 [15:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348003\u000A15.04.2024 14:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.850 x 64.80\u000A\u0418\u0422\u041E\u0413: 119.88\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:26]execute_script... [15:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348003\u000A15.04.2024 14:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.850 x 64.80\u000A\u0418\u0422\u041E\u0413: 119.88\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:26]POST & json_proto [15:07:26]process_json_proto [15:07:26]json parsed OK: [15:07:26]protocol is kg_v1.0 [15:07:26]action value=print_text [15:07:26]process_action print_text [15:07:26]cmd_print_text [15:07:26]ExternCall_PrintAddStr [15:07:26]wPrintStart [15:07:26]Write to MH i2c: 01 00 00 13 4C 5F [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 07 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 07 00 13 4C 00 00 00 00 00 FF 0F 74 [15:07:26]RasterBufferAndPrint [15:07:26]line *****ТОВАРНЫЙ ЧЕК***** [15:07:26]line АЗС 108 [15:07:26]line Партнер нефть [15:07:26]line 02508201610067 [15:07:26]line Кассир : Джумагулова Н. [15:07:26]line Счет N : (1)348003 [15:07:26]line 15.04.2024 14:49 [15:07:26]line ПРОДАЖА [15:07:26]line ТРК (МРК, ГНК): 32 [15:07:26]line Вид ГСМ : 2710124130 [15:07:26]line Аи-92-К-5 [15:07:26]line 1.850 x 64.80 [15:07:26]line ИТОГ: 119.88 [15:07:26]line Тип оплаты: Талоны: ТК ГПНА Online [15:07:26]line 30097465 [15:07:26]line ______________________ [15:07:26]line (подпись) [15:07:26]written 0, free lines is 4095 [15:07:26]Write to MH i2c: 01 00 00 28 4C 74 [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 07 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: 01 07 00 28 4C 00 00 00 00 00 F4 0D 7C [15:07:26]RasterBufferAndPrint [15:07:26]line [15:07:26]line [15:07:26]line [15:07:26]line [15:07:26]line [15:07:26]written 0, free lines is 3573 [15:07:26]MH_Cut [15:07:26]Write to MH i2c: D1 01 00 2F 4C 01 4D [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: D1 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: D1 01 00 [15:07:26]MH_I2C_Read... [15:07:26]Read from MH i2c: D1 01 00 2F 4C 00 4C [15:07:26]Write to MH i2c: 01 00 00 30 4C 7C [15:07:26]Write i2c OK [15:07:26]MH_I2C_Read... [15:07:27]*** Cut start [15:07:27]*** Partial cut [15:07:27]*** CUTSNS_PIN = 1 [15:07:27]*** CUTSNS_PIN = 0 [15:07:27]*** Brake cut motor [15:07:27]Read from MH i2c: 01 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: 01 07 00 [15:07:27]MH_I2C_Read... [15:07:27]*** Stop cut motor [15:07:27]*** Cut end [15:07:27]Read from MH i2c: 01 07 00 30 4C 00 00 00 00 00 FF 0F 91 [15:07:27]process_action print_text done [15:07:27]requested_data is exist [15:07:27]produce_requested_data [15:07:27]requested_item fm.sn is exist - process it [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 11 00 00 [15:07:27]Write to MH i2c: E2 08 00 31 4C 80 11 00 00 00 00 00 00 F7 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 17 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 17 00 31 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [15:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:07:27]wFMCommunicate OK [15:07:27]requested_item fd.num is exist - process it [15:07:27]SAM_PROTO_GetFieldsCounters [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 13 00 00 [15:07:27]Write to MH i2c: E2 08 00 32 4C 80 13 00 00 00 00 00 00 FA [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 62 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 62 00 32 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 73 00 00 0E 04 04 00 75 00 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 92 [15:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:28]wFMCommunicate OK [15:07:28]SAM_PROTO_GetFieldsCounters done [15:07:28]requested_item shift.num is exist - process it [15:07:28]requested_item shift.opened is exist - process it [15:07:28]req_shift_opened [15:07:28]FM_GetShiftState [15:07:28]SAM_PROTO_GetShiftState [15:07:28]wFMCommunicate request_size=4 [15:07:28]MH_SAM_APDU [15:07:28]CAPDU: 80 13 01 00 [15:07:28]Write to MH i2c: E2 08 00 33 4C 80 13 01 00 00 00 00 00 FC [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:28]Read from MH i2c: E2 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 0E 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: E2 0E 00 33 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F0 [15:07:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:07:28]wFMCommunicate OK [15:07:28]SAM_PROTO_GetShiftState done [15:07:28]FM_GetShiftState done [15:07:28]req_shift_opened done [15:07:28]requested_item shift.open_date is exist - process it [15:07:28]req_shift_open_date [15:07:28]req_shift_open_date done [15:07:28]produce_requested_data done [15:07:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29571,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:07:28]process_action_free print_text [15:07:28]json_value_free [15:07:28]json_value_free done [15:07:28]process_json_proto returns [15:07:28]Send response to host [15:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29571,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:07:28]free response buf [15:07:28]execute_script done [15:07:28]execute_script returns [15:07:28]free content buf [15:07:28]Sock 8.Close socket [15:07:28]Sock 8.Thread stoped [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:11]accept exits with 9 [15:08:11]New connection [15:08:11]New thread 3067112804 created [15:08:11]Thread 3066969444 joined [15:08:11]Waiting for new connection... [15:08:11] Sock 9.Parse request [15:08:11]Sock 9.Check first char [15:08:11]Sock 9.First char is OK [15:08:11]request: POST /json_proto HTTP/1.0 [15:08:11]Method: POST [15:08:11]URL: /json_proto [15:08:11]Method is POST - this is cgi request [15:08:11]url: /json_proto [15:08:11]query_string will be loaded in cgi processing [15:08:11]execute_cgi json_proto POST (null) [15:08:11]execute_cgi path=json_proto method=POST [15:08:11]POST find Content-Length [15:08:11]Host: 172.17.33.3:8080 [15:08:11]Content-Length: 677 [15:08:11]Content-Type: application/json [15:08:11] [15:08:11]POST finish read [15:08:11]Found Content-Length = 677 [15:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.800, "sum" : 181.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 181.00, "total" : 181.00, "payments": [ { "type": 0, "sum" : 181.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:11]execute_script... [15:08: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)348004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.800, "sum" : 181.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 181.00, "total" : 181.00, "payments": [ { "type": 0, "sum" : 181.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:11]POST & json_proto [15:08:11]process_json_proto [15:08:11]json parsed OK: [15:08:11]protocol is kg_v1.0 [15:08:11]action value=close_receipt [15:08:11]process_action close_receipt [15:08:11]cmd_close_receipt [15:08:11]MH_GetDate [15:08:11]Write to MH i2c: F0 00 00 34 4C 6F [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: F0 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: F0 09 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: F0 09 00 34 4C 00 E0 42 1D 66 23 5B 8F 65 8F [15:08:11]GetLastDocTimeStamp 1713193386 [15:08:11]current date 1713193696 [15:08:11]FM_GetShiftState [15:08:11]SAM_PROTO_GetShiftState [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 13 01 00 [15:08:11]Write to MH i2c: E2 08 00 35 4C 80 13 01 00 00 00 00 00 FE [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0E 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0E 00 35 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F2 [15:08:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_GetShiftState done [15:08:11]FM_GetShiftState done [15:08:11]opened in 1713140468 [15:08:11]opened+sec_in_day 1713226868 [15:08:11]quantity*price = 18144 [15:08:11]sum+1 = 18145 [15:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 181.00 Внесено: 181.00 СДАЧА: 0.00 НСП 1% : 1.61 НДС 12% : 19.27 Наличными: 181.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 166 15.04.2024 15:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29572 ФПД: 242015785800517 1/tax-web-control/client/api/v1/ticket?date=20240415T150816&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29572&fm=242015785800517&tin=02508201610067®Number=0000138879044617&sum=18100 [15:08:12]StoreToDocumentArchive [15:08:12]shift 117 fd 29572 [15:08:12]save to /storage/0117/doc_00029572 [15:08:12]save last doc name /storage/0117/doc_00029572 to /storage/kkm_last_doc_name [15:08:12]save OK [15:08:12]Clear old archive folders... [15:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:12]tlvbuf is 0022F890 [15:08:12]SAM_PROTO_ClearQueue [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 09 00 00 [15:08:12]Write to MH i2c: E2 08 00 42 4C 80 09 00 00 00 00 00 00 00 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 42 4C 00 90 00 02 [15:08:12]RAPDU: 90 00 [15:08:12]wFMCommunicate OK [15:08:12]SAM_PROTO_ClearQueue done [15:08:12]KKMCreateOFDPacket [15:08:12]OFDProtocolAddRootSTLVToBuf [15:08:12]FM_MakeSignedData [15:08:12]FM_MakeSignedData [15:08:12]SAM_PROTO_SignData [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 0D 01 02 [15:08:12]Write to MH i2c: E2 08 00 43 4C 80 0D 01 02 00 00 00 00 08 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 43 4C 00 90 00 03 [15:08:12]RAPDU: 90 00 [15:08:12]wFMCommunicate OK [15:08:12]wFMCommunicate request_size=255 [15:08:12]MH_SAM_APDU [15:08: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 F0 0A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E0 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 42 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 73 00 00 35 04 06 00 DC [15:08:12]Write to MH i2c: E2 02 01 44 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 F0 0A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E0 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 42 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 73 00 00 35 04 06 00 DC 00 00 6E [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 44 4C 00 90 00 04 [15:08:12]RAPDU: 90 00 [15:08:12]wFMCommunicate OK [15:08:12]wFMCommunicate request_size=10 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 0D 02 02 05 1C B0 F1 53 45 [15:08:12]Write to MH i2c: E2 0D 00 45 4C 80 0D 02 02 05 00 1C B0 F1 53 45 00 00 6A [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:12]Read from MH i2c: E2 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [15:08:12]RAPDU: 90 00 [15:08:12]wFMCommunicate OK [15:08:12]wFMCommunicate request_size=4 [15:08:12]MH_SAM_APDU [15:08:12]CAPDU: 80 0D 03 02 [15:08:12]Write to MH i2c: E2 08 00 46 4C 80 0D 03 02 00 00 00 00 0D [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0B 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0B 00 46 4C 00 66 83 1C DE 9E F1 64 64 90 00 48 [15:08:13]RAPDU: 66 83 1C DE 9E F1 64 64 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_SignData done [15:08:13]FM_MakeSignedData done [15:08:13]CreateOFDProtocolMessage [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 11 00 00 [15:08:13]Write to MH i2c: E2 08 00 47 4C 80 11 00 00 00 00 00 00 0D [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 47 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [15:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:08:13]wFMCommunicate OK [15:08:13]CreateOFDProtocolMessage done [15:08:13]OFDSenderStorePacket 29572 [15:08:13]StoreOFDPacket docnum=29572 [15:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 B9 07 01 5C 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 F0 0A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E0 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 42 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 73 00 00 35 04 06 00 DC 1C B0 F1 53 45 66 83 1C DE 9E F1 64 64 [15:08:13]CheckFolder [15:08:13]dirname=/storage/ofd_packets [15:08:13]CheckFolder done [15:08:13]ProducePacketName [15:08:13]name=ofd_packets/00029572 [15:08:13]NVStorageSaveData ofd_packets/00029572 [15:08:13]File name is /storage/ofd_packets/00029572 [15:08:13]Write 301 bytes [15:08:13]NVStorageSaveData done [15:08:13]OFDSenderStorePacket done [15:08:13]KKMCreateOFDPacket done [15:08:13]NVStorageSaveData kkm_last_timestamp [15:08:13]File name is /storage/kkm_last_timestamp [15:08:13]Write 4 bytes [15:08:13]NVStorageSaveData done [15:08:13]ExternCall_PrintAddStr [15:08:13]wPrintStart [15:08:13]Write to MH i2c: 01 00 00 48 4C 94 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 48 4C 00 00 00 00 00 FF 0F A9 [15:08:13]RasterBufferAndPrint [15:08:13]line Счет N : (1)348004 [15:08:13]line ИНН: 02508201610067 [15:08:13]line Контрольно-Кассовый Чек [15:08:13]line ПРОДАЖА [15:08:13]line ТРК (МРК, ГНК) : 32 [15:08:13]line Товар: 2710124130 [15:08:13]line Аи-92-К-5 [15:08:13]line 2.800 * 64.80 [15:08:13]line = 181.44 [15:08:13]line НДС 12% НСП 1% [15:08:13]line > о реализуемом товаре [15:08:13]line ОКРУГЛЕНИЕ: -0.44 [15:08:13]line ИТОГО: 181.00 [15:08:13]line Внесено: 181.00 [15:08:13]line СДАЧА: 0.00 [15:08:13]line НСП 1% : 1.61 [15:08:13]line НДС 12% : 19.27 [15:08:13]line Наличными: 181.00 [15:08:13]line Безнал.: 0.00 [15:08:13]line Место: АЗС № 108 "Партнер Нефть" [15:08:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:08:13]line СНО: Общий режим [15:08:13]line Чек 166 15.04.2024 15:08 [15:08:13]line Смена: 117 ФФД: 1.0 [15:08:13]line ЗНМ: 0300000027 [15:08:13]line РНМ: 0000138879044617 [15:08:13]line Версия ККМ: 001 [15:08:13]line ФМ: 0000000000963154 [15:08:13]line ФД: 29572 [15:08:13]line ФПД: 242015785800517 [15:08:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T150816&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29572&fm=242015785800517&tin=02508201610067®Number=0000138879044617&sum=18100 [15:08:13]OFD Sender: Processing packet 29572 [packets to send 8, broken 7] [15:08:13]ProducePacketName [15:08:13]name=ofd_packets/00029572 [15:08:13]OFD Sender: To server: pG, [15:08:13]CommunicateWithHost lk.salyk.kg:30040 [15:08:13]ConnectInit lk.salyk.kg [15:08:13]written 0, free lines is 4095 [15:08:13]Connected sock=10 [15:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 04 B9 07 01 5C 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 F0 0A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E0 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 42 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 73 00 00 35 04 06 00 DC 1C B0 F1 53 45 66 83 1C DE 9E F1 64 64 [15:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 41 BD 47 00 0A 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 39 36 33 31 35 34 10 04 04 00 84 73 00 00 F4 03 04 00 81 ED 1C 66 B6 04 01 00 00 D4 BE 03 32 73 A6 AD BC [15:08:13]CommunicateWithHost err = 0 [15:08:13]CheckOFDResponse [15:08:13]1017 (14) - 77093643461234 [15:08:13]1041 (16) - 0000000000963154 [15:08:13]1040 (4) - 29572 [15:08:13]1012 (4) - 15.04.2024 09:04 [15:08:13]1206 (1) - 0 [15:08:13]OFD Sender: Remove packet 29572 [15:08:13]ProducePacketName [15:08:13]name=ofd_packets/00029572 [15:08:13]NVStorageDeleteData [15:08:13]Write to MH i2c: 01 00 00 72 4C BE [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 72 4C 00 00 00 00 00 C0 0C 91 [15:08:13]RasterBufferAndPrint [15:08:13]line [15:08:13]line [15:08:13]line [15:08:13]line [15:08:13]line [15:08:13]written 0, free lines is 3271 [15:08:13]MH_Cut [15:08:13]Write to MH i2c: D1 01 00 79 4C 01 97 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: D1 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: D1 01 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: D1 01 00 79 4C 00 96 [15:08:13]Write to MH i2c: 01 00 00 7A 4C C6 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:14]OFD Sender: No OFD packet to send [15:08:14]*** Cut start [15:08:14]*** Partial cut [15:08:14]*** CUTSNS_PIN = 1 [15:08:14]*** CUTSNS_PIN = 0 [15:08:14]*** Brake cut motor [15:08:15]Read from MH i2c: 01 [15:08:15]MH_I2C_Read... [15:08:15]*** Stop cut motor [15:08:15]*** Cut end [15:08:15]Read from MH i2c: 01 07 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: 01 07 00 7A 4C 00 00 00 00 00 FF 0F DB [15:08:15]process_action close_receipt done [15:08:15]requested_data is exist [15:08:15]produce_requested_data [15:08:15]requested_item fm.sn is exist - process it [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 11 00 00 [15:08:15]Write to MH i2c: E2 08 00 7B 4C 80 11 00 00 00 00 00 00 41 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 17 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 17 00 7B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [15:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:08:15]wFMCommunicate OK [15:08:15]requested_item fd.num is exist - process it [15:08:15]SAM_PROTO_GetFieldsCounters [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 13 00 00 [15:08:15]Write to MH i2c: E2 08 00 7C 4C 80 13 00 00 00 00 00 00 44 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 62 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 62 00 7C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 73 00 00 0E 04 04 00 75 00 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 E0 [15:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_GetFieldsCounters done [15:08:15]requested_item shift.num is exist - process it [15:08:15]requested_item shift.opened is exist - process it [15:08:15]req_shift_opened [15:08:15]FM_GetShiftState [15:08:15]SAM_PROTO_GetShiftState [15:08:15]wFMCommunicate request_size=4 [15:08:15]MH_SAM_APDU [15:08:15]CAPDU: 80 13 01 00 [15:08:15]Write to MH i2c: E2 08 00 7D 4C 80 13 01 00 00 00 00 00 46 [15:08:15]Write i2c OK [15:08:15]MH_I2C_Read... [15:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:15]Read from MH i2c: E2 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0E 00 [15:08:15]MH_I2C_Read... [15:08:15]Read from MH i2c: E2 0E 00 7D 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3A [15:08:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:08:15]wFMCommunicate OK [15:08:15]SAM_PROTO_GetShiftState done [15:08:15]FM_GetShiftState done [15:08:15]req_shift_opened done [15:08:15]requested_item shift.open_date is exist - process it [15:08:15]req_shift_open_date [15:08:15]req_shift_open_date done [15:08:15]produce_requested_data done [15:08:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29572,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:08:15]process_action_free close_receipt [15:08:15]json_value_free [15:08:15]json_value_free done [15:08:15]process_json_proto returns [15:08:15]Send response to host [15:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29572,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:08:15]free response buf [15:08:15]execute_script done [15:08:15]execute_script returns [15:08:15]free content buf [15:08:15]Sock 9.Close socket [15:08:15]Sock 9.Thread stoped [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [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:36]accept exits with 8 [15:10:36]New connection [15:10:36]New thread 3066969444 created [15:10:36]Thread 3067112804 joined [15:10:36]Waiting for new connection... [15:10:36] Sock 8.Parse request [15:10:36]Sock 8.Check first char [15:10:36]Sock 8.First char is OK [15:10:36]request: POST /json_proto HTTP/1.0 [15:10:36]Method: POST [15:10:36]URL: /json_proto [15:10:36]Method is POST - this is cgi request [15:10:36]url: /json_proto [15:10:36]query_string will be loaded in cgi processing [15:10:36]execute_cgi json_proto POST (null) [15:10:36]execute_cgi path=json_proto method=POST [15:10:36]POST find Content-Length [15:10:36]Host: 172.17.33.3:8080 [15:10:36]Content-Length: 819 [15:10:36]Content-Type: application/json [15:10:36] [15:10:36]POST finish read [15:10:36]Found Content-Length = 819 [15:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:36]execute_script... [15:10: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)348005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:36]POST & json_proto [15:10:36]process_json_proto [15:10:36]json parsed OK: [15:10:36]protocol is kg_v1.0 [15:10:36]action value=close_receipt [15:10:36]process_action close_receipt [15:10:36]cmd_close_receipt [15:10:36]MH_GetDate [15:10:36]Write to MH i2c: F0 00 00 7E 4C B9 [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: F0 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: F0 09 00 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: F0 09 00 7E 4C 00 71 43 1D 66 23 5B 8F 65 6B [15:10:36]GetLastDocTimeStamp 1713193696 [15:10:36]current date 1713193841 [15:10:36]FM_GetShiftState [15:10:36]SAM_PROTO_GetShiftState [15:10:36]wFMCommunicate request_size=4 [15:10:36]MH_SAM_APDU [15:10:36]CAPDU: 80 13 01 00 [15:10:36]Write to MH i2c: E2 08 00 7F 4C 80 13 01 00 00 00 00 00 48 [15:10:36]Write i2c OK [15:10:36]MH_I2C_Read... [15:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:36]Read from MH i2c: E2 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: E2 0E 00 [15:10:36]MH_I2C_Read... [15:10:36]Read from MH i2c: E2 0E 00 7F 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3C [15:10:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:10:36]wFMCommunicate OK [15:10:36]SAM_PROTO_GetShiftState done [15:10:36]FM_GetShiftState done [15:10:36]opened in 1713140468 [15:10:36]opened+sec_in_day 1713226868 [15:10:36]quantity*price = 150012 [15:10:36]sum+1 = 150013 [15:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 167 15.04.2024 15:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29573 ФПД: 166649302581764 1/tax-web-control/client/api/v1/ticket?date=20240415T151041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29573&fm=166649302581764&tin=02508201610067®Number=0000138879044617&sum=150012 [15:10:37]StoreToDocumentArchive [15:10:37]shift 117 fd 29573 [15:10:37]save to /storage/0117/doc_00029573 [15:10:37]save last doc name /storage/0117/doc_00029573 to /storage/kkm_last_doc_name [15:10:37]save OK [15:10:37]Clear old archive folders... [15:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:37]tlvbuf is 0026F1C0 [15:10:37]SAM_PROTO_ClearQueue [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 09 00 00 [15:10:37]Write to MH i2c: E2 08 00 8C 4C 80 09 00 00 00 00 00 00 4A [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 03 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 03 00 8C 4C 00 90 00 4C [15:10:37]RAPDU: 90 00 [15:10:37]wFMCommunicate OK [15:10:37]SAM_PROTO_ClearQueue done [15:10:37]KKMCreateOFDPacket [15:10:37]OFDProtocolAddRootSTLVToBuf [15:10:37]FM_MakeSignedData [15:10:37]FM_MakeSignedData [15:10:37]SAM_PROTO_SignData [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 0D 01 02 [15:10:37]Write to MH i2c: E2 08 00 8D 4C 80 0D 01 02 00 00 00 00 52 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 03 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 03 00 8D 4C 00 90 00 4D [15:10:37]RAPDU: 90 00 [15:10:37]wFMCommunicate OK [15:10:37]wFMCommunicate request_size=255 [15:10:37]MH_SAM_APDU [15:10: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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 73 00 00 35 04 06 00 97 [15:10:37]Write to MH i2c: E2 02 01 8E 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 73 00 00 35 04 06 00 97 00 00 0D [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 03 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 03 00 8E 4C 00 90 00 4E [15:10:38]RAPDU: 90 00 [15:10:38]wFMCommunicate OK [15:10:38]wFMCommunicate request_size=10 [15:10:38]MH_SAM_APDU [15:10:38]CAPDU: 80 0D 02 02 05 91 10 7B 82 04 [15:10:38]Write to MH i2c: E2 0D 00 8F 4C 80 0D 02 02 05 00 91 10 7B 82 04 00 00 01 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 03 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 03 00 8F 4C 00 90 00 4F [15:10:38]RAPDU: 90 00 [15:10:38]wFMCommunicate OK [15:10:38]wFMCommunicate request_size=4 [15:10:38]MH_SAM_APDU [15:10:38]CAPDU: 80 0D 03 02 [15:10:38]Write to MH i2c: E2 08 00 90 4C 80 0D 03 02 00 00 00 00 57 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 0B 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 0B 00 90 4C 00 D1 BF 46 72 80 04 52 9D 90 00 13 [15:10:38]RAPDU: D1 BF 46 72 80 04 52 9D 90 00 [15:10:38]wFMCommunicate OK [15:10:38]SAM_PROTO_SignData done [15:10:38]FM_MakeSignedData done [15:10:38]CreateOFDProtocolMessage [15:10:38]wFMCommunicate request_size=4 [15:10:38]MH_SAM_APDU [15:10:38]CAPDU: 80 11 00 00 [15:10:38]Write to MH i2c: E2 08 00 91 4C 80 11 00 00 00 00 00 00 57 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:38]Read from MH i2c: E2 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 17 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: E2 17 00 91 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [15:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:10:38]wFMCommunicate OK [15:10:38]CreateOFDProtocolMessage done [15:10:38]OFDSenderStorePacket 29573 [15:10:38]StoreOFDPacket docnum=29573 [15:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 6F 07 01 1A 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 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 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 73 00 00 35 04 06 00 97 91 10 7B 82 04 D1 BF 46 72 80 04 52 9D [15:10:38]CheckFolder [15:10:38]dirname=/storage/ofd_packets [15:10:38]CheckFolder done [15:10:38]ProducePacketName [15:10:38]name=ofd_packets/00029573 [15:10:38]NVStorageSaveData ofd_packets/00029573 [15:10:38]File name is /storage/ofd_packets/00029573 [15:10:38]Write 301 bytes [15:10:38]NVStorageSaveData done [15:10:38]OFDSenderStorePacket done [15:10:38]KKMCreateOFDPacket done [15:10:38]NVStorageSaveData kkm_last_timestamp [15:10:38]File name is /storage/kkm_last_timestamp [15:10:38]Write 4 bytes [15:10:38]NVStorageSaveData done [15:10:38]ExternCall_PrintAddStr [15:10:38]wPrintStart [15:10:38]Write to MH i2c: 01 00 00 92 4C DE [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 07 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 07 00 92 4C 00 00 00 00 00 FF 0F F3 [15:10:38]RasterBufferAndPrint [15:10:38]line Счет N : (1)348005 [15:10:38]line ИНН: 02508201610067 [15:10:38]line Контрольно-Кассовый Чек [15:10:38]line ПРОДАЖА [15:10:38]line ТРК (МРК, ГНК) : 13 [15:10:38]line Товар: 2710124130 [15:10:38]line Аи-92-К-5 [15:10:38]line 23.150 * 64.80 [15:10:38]line = 1500.12 [15:10:38]line НДС 12% НСП 1% [15:10:38]line > о реализуемом товаре [15:10:38]line ИТОГО: 1500.12 [15:10:38]line НСП 1% : 13.27 [15:10:38]line НДС 12% : 159.30 [15:10:38]line Наличными: 0.00 [15:10:38]line Безнал.: 1500.12 [15:10:38]line Место: АЗС № 108 "Партнер Нефть" [15:10:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:10:38]line СНО: Общий режим [15:10:38]line Чек 167 15.04.2024 15:10 [15:10:38]line Смена: 117 ФФД: 1.0 [15:10:38]line ЗНМ: 0300000027 [15:10:38]line РНМ: 0000138879044617 [15:10:38]line Версия ККМ: 001 [15:10:38]line Платежная система: Бакай Банк [15:10:38]line ФМ: 0000000000963154 [15:10:38]line ФД: 29573 [15:10:38]line ФПД: 166649302581764 [15:10:38]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29573&fm=166649302581764&tin=02508201610067®Number=0000138879044617&sum=150012 [15:10:38]OFD Sender: Processing packet 29573 [packets to send 8, broken 7] [15:10:38]ProducePacketName [15:10:38]name=ofd_packets/00029573 [15:10:38]OFD Sender: To server: pG, [15:10:38]CommunicateWithHost lk.salyk.kg:30040 [15:10:38]ConnectInit lk.salyk.kg [15:10:38]written 0, free lines is 4095 [15:10:38]Connected sock=10 [15:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A 6F 07 01 1A 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 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 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 71 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 73 00 00 35 04 06 00 97 91 10 7B 82 04 D1 BF 46 72 80 04 52 9D [15:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C0 60 47 00 9C 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 39 36 33 31 35 34 10 04 04 00 85 73 00 00 F4 03 04 00 12 EE 1C 66 B6 04 01 00 00 0C 54 57 90 57 B5 C7 7D [15:10:38]CommunicateWithHost err = 0 [15:10:38]CheckOFDResponse [15:10:38]1017 (14) - 77093643461234 [15:10:38]1041 (16) - 0000000000963154 [15:10:38]1040 (4) - 29573 [15:10:38]1012 (4) - 15.04.2024 09:06 [15:10:38]1206 (1) - 0 [15:10:38]OFD Sender: Remove packet 29573 [15:10:38]ProducePacketName [15:10:38]name=ofd_packets/00029573 [15:10:38]NVStorageDeleteData [15:10:38]Write to MH i2c: 01 00 00 BB 4C 07 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 07 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: 01 07 00 BB 4C 00 00 00 00 00 DB 0C F5 [15:10:38]RasterBufferAndPrint [15:10:38]line [15:10:38]line [15:10:38]line [15:10:38]line [15:10:38]line [15:10:38]written 0, free lines is 3298 [15:10:38]MH_Cut [15:10:38]Write to MH i2c: D1 01 00 C2 4C 01 E0 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: D1 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: D1 01 00 [15:10:38]MH_I2C_Read... [15:10:38]Read from MH i2c: D1 01 00 C2 4C 00 DF [15:10:38]Write to MH i2c: 01 00 00 C3 4C 0F [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:39]OFD Sender: No OFD packet to send [15:10:39]*** Cut start [15:10:39]*** Partial cut [15:10:39]*** CUTSNS_PIN = 1 [15:10:39]*** CUTSNS_PIN = 0 [15:10:40]*** Brake cut motor [15:10:40]Read from MH i2c: 01 [15:10:40]MH_I2C_Read... [15:10:40]*** Stop cut motor [15:10:40]*** Cut end [15:10:40]Read from MH i2c: 01 07 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: 01 07 00 C3 4C 00 00 00 00 00 FF 0F 24 [15:10:40]process_action close_receipt done [15:10:40]requested_data is exist [15:10:40]produce_requested_data [15:10:40]requested_item fm.sn is exist - process it [15:10:40]wFMCommunicate request_size=4 [15:10:40]MH_SAM_APDU [15:10:40]CAPDU: 80 11 00 00 [15:10:40]Write to MH i2c: E2 08 00 C4 4C 80 11 00 00 00 00 00 00 8A [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:40]Read from MH i2c: E2 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 17 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 17 00 C4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [15:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:10:40]wFMCommunicate OK [15:10:40]requested_item fd.num is exist - process it [15:10:40]SAM_PROTO_GetFieldsCounters [15:10:40]wFMCommunicate request_size=4 [15:10:40]MH_SAM_APDU [15:10:40]CAPDU: 80 13 00 00 [15:10:40]Write to MH i2c: E2 08 00 C5 4C 80 13 00 00 00 00 00 00 8D [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:40]Read from MH i2c: E2 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 62 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 62 00 C5 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 73 00 00 0E 04 04 00 75 00 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 2D [15:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:40]wFMCommunicate OK [15:10:40]SAM_PROTO_GetFieldsCounters done [15:10:40]requested_item shift.num is exist - process it [15:10:40]requested_item shift.opened is exist - process it [15:10:40]req_shift_opened [15:10:40]FM_GetShiftState [15:10:40]SAM_PROTO_GetShiftState [15:10:40]wFMCommunicate request_size=4 [15:10:40]MH_SAM_APDU [15:10:40]CAPDU: 80 13 01 00 [15:10:40]Write to MH i2c: E2 08 00 C6 4C 80 13 01 00 00 00 00 00 8F [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:40]Read from MH i2c: E2 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 0E 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: E2 0E 00 C6 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 83 [15:10:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:10:40]wFMCommunicate OK [15:10:40]SAM_PROTO_GetShiftState done [15:10:40]FM_GetShiftState done [15:10:40]req_shift_opened done [15:10:40]requested_item shift.open_date is exist - process it [15:10:40]req_shift_open_date [15:10:40]req_shift_open_date done [15:10:40]produce_requested_data done [15:10:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29573,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:10:40]process_action_free close_receipt [15:10:40]json_value_free [15:10:40]json_value_free done [15:10:40]process_json_proto returns [15:10:40]Send response to host [15:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29573,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:10:40]free response buf [15:10:40]execute_script done [15:10:40]execute_script returns [15:10:40]free content buf [15:10:40]Sock 8.Close socket [15:10:40]Sock 8.Thread stoped [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:36]accept exits with 9 [15:11:36]New connection [15:11:36]New thread 3067112804 created [15:11:36]Thread 3066969444 joined [15:11:36]Waiting for new connection... [15:11:36] Sock 9.Parse request [15:11:36]Sock 9.Check first char [15:11:36]Sock 9.First char is OK [15:11:36]request: POST /json_proto HTTP/1.0 [15:11:36]Method: POST [15:11:36]URL: /json_proto [15:11:36]Method is POST - this is cgi request [15:11:36]url: /json_proto [15:11:36]query_string will be loaded in cgi processing [15:11:36]execute_cgi json_proto POST (null) [15:11:36]execute_cgi path=json_proto method=POST [15:11:36]POST find Content-Length [15:11:36]Host: 172.17.33.3:8080 [15:11:36]Content-Length: 816 [15:11:36]Content-Type: application/json [15:11:36] [15:11:36]POST finish read [15:11:36]Found Content-Length = 816 [15:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:36]execute_script... [15:11: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)348006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:36]POST & json_proto [15:11:36]process_json_proto [15:11:36]json parsed OK: [15:11:36]protocol is kg_v1.0 [15:11:36]action value=close_receipt [15:11:36]process_action close_receipt [15:11:36]cmd_close_receipt [15:11:36]MH_GetDate [15:11:36]Write to MH i2c: F0 00 00 C7 4C 02 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: F0 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: F0 09 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: F0 09 00 C7 4C 00 AD 43 1D 66 23 5B 8F 65 F0 [15:11:36]GetLastDocTimeStamp 1713193841 [15:11:36]current date 1713193901 [15:11:36]FM_GetShiftState [15:11:36]SAM_PROTO_GetShiftState [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 13 01 00 [15:11:36]Write to MH i2c: E2 08 00 C8 4C 80 13 01 00 00 00 00 00 91 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 0E 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 0E 00 C8 4C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [15:11:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:11:36]wFMCommunicate OK [15:11:36]SAM_PROTO_GetShiftState done [15:11:36]FM_GetShiftState done [15:11:36]opened in 1713140468 [15:11:36]opened+sec_in_day 1713226868 [15:11:36]quantity*price = 60004 [15:11:36]sum+1 = 60006 [15:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.05 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.05 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 168 15.04.2024 15:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29574 ФПД: 125310113054669 1/tax-web-control/client/api/v1/ticket?date=20240415T151141&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29574&fm=125310113054669&tin=02508201610067®Number=0000138879044617&sum=60005 [15:11:37]StoreToDocumentArchive [15:11:37]shift 117 fd 29574 [15:11:37]save to /storage/0117/doc_00029574 [15:11:37]save last doc name /storage/0117/doc_00029574 to /storage/kkm_last_doc_name [15:11:37]save OK [15:11:37]Clear old archive folders... [15:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:37]tlvbuf is 0026ECB0 [15:11:37]SAM_PROTO_ClearQueue [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 09 00 00 [15:11:37]Write to MH i2c: E2 08 00 D5 4C 80 09 00 00 00 00 00 00 93 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 D5 4C 00 90 00 95 [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]SAM_PROTO_ClearQueue done [15:11:37]KKMCreateOFDPacket [15:11:37]OFDProtocolAddRootSTLVToBuf [15:11:37]FM_MakeSignedData [15:11:37]FM_MakeSignedData [15:11:37]SAM_PROTO_SignData [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 0D 01 02 [15:11:37]Write to MH i2c: E2 08 00 D6 4C 80 0D 01 02 00 00 00 00 9B [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 D6 4C 00 90 00 96 [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]wFMCommunicate request_size=255 [15:11:37]MH_SAM_APDU [15:11: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 AD 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 73 00 00 35 04 06 00 71 [15:11:37]Write to MH i2c: E2 02 01 D7 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 AD 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 73 00 00 35 04 06 00 71 00 00 73 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 D7 4C 00 90 00 97 [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]wFMCommunicate request_size=10 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 02 02 05 F8 08 C6 7F CD [15:11:38]Write to MH i2c: E2 0D 00 D8 4C 80 0D 02 02 05 00 F8 08 C6 7F CD 00 00 BA [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 D8 4C 00 90 00 98 [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 03 02 [15:11:38]Write to MH i2c: E2 08 00 D9 4C 80 0D 03 02 00 00 00 00 A0 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 0B 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 0B 00 D9 4C 00 D6 5A F6 A4 2C 5E D4 32 90 00 FB [15:11:38]RAPDU: D6 5A F6 A4 2C 5E D4 32 90 00 [15:11:38]wFMCommunicate OK [15:11:38]SAM_PROTO_SignData done [15:11:38]FM_MakeSignedData done [15:11:38]CreateOFDProtocolMessage [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 11 00 00 [15:11:38]Write to MH i2c: E2 08 00 DA 4C 80 11 00 00 00 00 00 00 A0 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 17 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 17 00 DA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EF [15:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:38]wFMCommunicate OK [15:11:38]CreateOFDProtocolMessage done [15:11:38]OFDSenderStorePacket 29574 [15:11:38]StoreOFDPacket docnum=29574 [15:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 0E 07 01 6F 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 AD 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 73 00 00 35 04 06 00 71 F8 08 C6 7F CD D6 5A F6 A4 2C 5E D4 32 [15:11:38]CheckFolder [15:11:38]dirname=/storage/ofd_packets [15:11:38]CheckFolder done [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00029574 [15:11:38]NVStorageSaveData ofd_packets/00029574 [15:11:38]File name is /storage/ofd_packets/00029574 [15:11:38]Write 301 bytes [15:11:38]NVStorageSaveData done [15:11:38]OFDSenderStorePacket done [15:11:38]KKMCreateOFDPacket done [15:11:38]NVStorageSaveData kkm_last_timestamp [15:11:38]File name is /storage/kkm_last_timestamp [15:11:38]Write 4 bytes [15:11:38]NVStorageSaveData done [15:11:38]ExternCall_PrintAddStr [15:11:38]wPrintStart [15:11:38]Write to MH i2c: 01 00 00 DB 4C 27 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 DB 4C 00 00 00 00 00 FF 0F 3C [15:11:38]RasterBufferAndPrint [15:11:38]line Счет N : (1)348006 [15:11:38]line ИНН: 02508201610067 [15:11:38]line Контрольно-Кассовый Чек [15:11:38]line ПРОДАЖА [15:11:38]line ТРК (МРК, ГНК) : 23 [15:11:38]line Товар: 2710124130 [15:11:38]line Аи-92-К-5 [15:11:38]line 9.260 * 64.80 [15:11:38]line = 600.05 [15:11:38]line НДС 12% НСП 1% [15:11:38]line > о реализуемом товаре [15:11:38]line ИТОГО: 600.05 [15:11:38]line НСП 1% : 5.31 [15:11:38]line НДС 12% : 63.72 [15:11:38]line Наличными: 0.00 [15:11:38]line Безнал.: 600.05 [15:11:38]line Место: АЗС № 108 "Партнер Нефть" [15:11:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:11:38]line СНО: Общий режим [15:11:38]line Чек 168 15.04.2024 15:11 [15:11:38]line Смена: 117 ФФД: 1.0 [15:11:38]line ЗНМ: 0300000027 [15:11:38]line РНМ: 0000138879044617 [15:11:38]line Версия ККМ: 001 [15:11:38]line Платежная система: Бакай Банк [15:11:38]line ФМ: 0000000000963154 [15:11:38]line ФД: 29574 [15:11:38]line ФПД: 125310113054669 [15:11:38]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151141&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29574&fm=125310113054669&tin=02508201610067®Number=0000138879044617&sum=60005 [15:11:38]OFD Sender: Processing packet 29574 [packets to send 8, broken 7] [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00029574 [15:11:38]OFD Sender: To server: pG, [15:11:38]CommunicateWithHost lk.salyk.kg:30040 [15:11:38]ConnectInit lk.salyk.kg [15:11:38]written 0, free lines is 4095 [15:11:38]Connected sock=10 [15:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 0E 07 01 6F 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 AD 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 73 00 00 35 04 06 00 71 F8 08 C6 7F CD D6 5A F6 A4 2C 5E D4 32 [15:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB C2 47 00 12 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 39 36 33 31 35 34 10 04 04 00 86 73 00 00 F4 03 04 00 4E EE 1C 66 B6 04 01 00 00 21 3F 7C F1 17 00 D0 1D [15:11:38]CommunicateWithHost err = 0 [15:11:38]CheckOFDResponse [15:11:38]1017 (14) - 77093643461234 [15:11:38]1041 (16) - 0000000000963154 [15:11:38]1040 (4) - 29574 [15:11:38]1012 (4) - 15.04.2024 09:07 [15:11:38]1206 (1) - 0 [15:11:38]OFD Sender: Remove packet 29574 [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00029574 [15:11:38]NVStorageDeleteData [15:11:39]Write to MH i2c: 01 00 00 04 4D 51 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 07 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 07 00 04 4D 00 00 00 00 00 DC 0C 40 [15:11:39]RasterBufferAndPrint [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]written 0, free lines is 3299 [15:11:39]MH_Cut [15:11:39]Write to MH i2c: D1 01 00 0B 4D 01 2A [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 01 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 01 00 0B 4D 00 29 [15:11:39]Write to MH i2c: 01 00 00 0C 4D 59 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]OFD Sender: No OFD packet to send [15:11:39]*** Cut start [15:11:39]*** Partial cut [15:11:39]*** CUTSNS_PIN = 1 [15:11:39]*** CUTSNS_PIN = 0 [15:11:40]*** Brake cut motor [15:11:40]Read from MH i2c: 01 [15:11:40]MH_I2C_Read... [15:11:40]*** Stop cut motor [15:11:40]*** Cut end [15:11:40]Read from MH i2c: 01 07 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: 01 07 00 0C 4D 00 00 00 00 00 FF 0F 6E [15:11:40]process_action close_receipt done [15:11:40]requested_data is exist [15:11:40]produce_requested_data [15:11:40]requested_item fm.sn is exist - process it [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 11 00 00 [15:11:40]Write to MH i2c: E2 08 00 0D 4D 80 11 00 00 00 00 00 00 D4 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 0D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [15:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:40]wFMCommunicate OK [15:11:40]requested_item fd.num is exist - process it [15:11:40]SAM_PROTO_GetFieldsCounters [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 00 00 [15:11:40]Write to MH i2c: E2 08 00 0E 4D 80 13 00 00 00 00 00 00 D7 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 0E 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 73 00 00 0E 04 04 00 75 00 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 7B [15:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetFieldsCounters done [15:11:40]requested_item shift.num is exist - process it [15:11:40]requested_item shift.opened is exist - process it [15:11:40]req_shift_opened [15:11:40]FM_GetShiftState [15:11:40]SAM_PROTO_GetShiftState [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 01 00 [15:11:40]Write to MH i2c: E2 08 00 0F 4D 80 13 01 00 00 00 00 00 D9 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 0F 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CD [15:11:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetShiftState done [15:11:40]FM_GetShiftState done [15:11:40]req_shift_opened done [15:11:40]requested_item shift.open_date is exist - process it [15:11:40]req_shift_open_date [15:11:40]req_shift_open_date done [15:11:40]produce_requested_data done [15:11:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29574,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:11:40]process_action_free close_receipt [15:11:40]json_value_free [15:11:40]json_value_free done [15:11:40]process_json_proto returns [15:11:40]Send response to host [15:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29574,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:11:40]free response buf [15:11:40]execute_script done [15:11:40]execute_script returns [15:11:40]free content buf [15:11:40]Sock 9.Close socket [15:11:40]Sock 9.Thread stoped [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]accept exits with 8 [15:12:44]New connection [15:12:44]New thread 3066969444 created [15:12:44]Thread 3067112804 joined [15:12:44]Waiting for new connection... [15:12:44] Sock 8.Parse request [15:12:44]Sock 8.Check first char [15:12:44]Sock 8.First char is OK [15:12:44]request: POST /json_proto HTTP/1.0 [15:12:44]Method: POST [15:12:44]URL: /json_proto [15:12:44]Method is POST - this is cgi request [15:12:44]url: /json_proto [15:12:44]query_string will be loaded in cgi processing [15:12:44]execute_cgi json_proto POST (null) [15:12:44]execute_cgi path=json_proto method=POST [15:12:44]POST find Content-Length [15:12:44]Host: 172.17.33.3:8080 [15:12:44]Content-Length: 640 [15:12:44]Content-Type: application/json [15:12:44] [15:12:44]POST finish read [15:12:44]Found Content-Length = 640 [15:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348008", "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" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:44]execute_script... [15:12: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)348008", "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" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:44]POST & json_proto [15:12:44]process_json_proto [15:12:44]json parsed OK: [15:12:44]protocol is kg_v1.0 [15:12:44]action value=close_receipt [15:12:44]process_action close_receipt [15:12:44]cmd_close_receipt [15:12:44]MH_GetDate [15:12:44]Write to MH i2c: F0 00 00 10 4D 4C [15:12:44]Write i2c OK [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: F0 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: F0 09 00 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: F0 09 00 10 4D 00 F1 43 1D 66 23 5B 8F 65 7E [15:12:44]GetLastDocTimeStamp 1713193901 [15:12:44]current date 1713193969 [15:12:44]FM_GetShiftState [15:12:44]SAM_PROTO_GetShiftState [15:12:44]wFMCommunicate request_size=4 [15:12:44]MH_SAM_APDU [15:12:44]CAPDU: 80 13 01 00 [15:12:44]Write to MH i2c: E2 08 00 11 4D 80 13 01 00 00 00 00 00 DB [15:12:44]Write i2c OK [15:12:44]MH_I2C_Read... [15:12:44]OFD Sender: No OFD packet to send [15:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:44]Read from MH i2c: E2 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: E2 0E 00 [15:12:44]MH_I2C_Read... [15:12:44]Read from MH i2c: E2 0E 00 11 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CF [15:12:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:12:44]wFMCommunicate OK [15:12:44]SAM_PROTO_GetShiftState done [15:12:44]FM_GetShiftState done [15:12:44]opened in 1713140468 [15:12:44]opened+sec_in_day 1713226868 [15:12:44]quantity*price = 64800 [15:12:44]sum+1 = 64801 [15:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 648.00 НСП 1% : 5.73 НДС 12% : 68.81 Наличными: 648.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 169 15.04.2024 15:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29575 ФПД: 48508915403993 1/tax-web-control/client/api/v1/ticket?date=20240415T151249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29575&fm=48508915403993&tin=02508201610067®Number=0000138879044617&sum=64800 [15:12:45]StoreToDocumentArchive [15:12:45]shift 117 fd 29575 [15:12:45]save to /storage/0117/doc_00029575 [15:12:45]save last doc name /storage/0117/doc_00029575 to /storage/kkm_last_doc_name [15:12:45]save OK [15:12:45]Clear old archive folders... [15:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:45]tlvbuf is 00267070 [15:12:45]SAM_PROTO_ClearQueue [15:12:45]wFMCommunicate request_size=4 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 09 00 00 [15:12:45]Write to MH i2c: E2 08 00 1E 4D 80 09 00 00 00 00 00 00 DD [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:45]Read from MH i2c: E2 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 1E 4D 00 90 00 DF [15:12:45]RAPDU: 90 00 [15:12:45]wFMCommunicate OK [15:12:45]SAM_PROTO_ClearQueue done [15:12:45]KKMCreateOFDPacket [15:12:45]OFDProtocolAddRootSTLVToBuf [15:12:45]FM_MakeSignedData [15:12:45]FM_MakeSignedData [15:12:45]SAM_PROTO_SignData [15:12:45]wFMCommunicate request_size=4 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 0D 01 02 [15:12:45]Write to MH i2c: E2 08 00 1F 4D 80 0D 01 02 00 00 00 00 E5 [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:45]Read from MH i2c: E2 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 1F 4D 00 90 00 E0 [15:12:45]RAPDU: 90 00 [15:12:45]wFMCommunicate OK [15:12:45]wFMCommunicate request_size=255 [15:12:45]MH_SAM_APDU [15:12: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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 A9 00 00 00 F4 03 04 00 F1 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 73 00 00 35 04 06 00 2C [15:12:45]Write to MH i2c: E2 02 01 20 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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 A9 00 00 00 F4 03 04 00 F1 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 73 00 00 35 04 06 00 2C 00 00 38 [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:45]Read from MH i2c: E2 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 20 4D 00 90 00 E1 [15:12:45]RAPDU: 90 00 [15:12:45]wFMCommunicate OK [15:12:45]wFMCommunicate request_size=10 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 0D 02 02 05 1E 5C AB CC D9 [15:12:45]Write to MH i2c: E2 0D 00 21 4D 80 0D 02 02 05 00 1E 5C AB CC D9 00 00 BC [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:45]Read from MH i2c: E2 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 03 00 21 4D 00 90 00 E2 [15:12:45]RAPDU: 90 00 [15:12:45]wFMCommunicate OK [15:12:45]wFMCommunicate request_size=4 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 0D 03 02 [15:12:45]Write to MH i2c: E2 08 00 22 4D 80 0D 03 02 00 00 00 00 EA [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0B 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0B 00 22 4D 00 B4 E9 8D 8A 37 FD 92 79 90 00 DE [15:12:46]RAPDU: B4 E9 8D 8A 37 FD 92 79 90 00 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_SignData done [15:12:46]FM_MakeSignedData done [15:12:46]CreateOFDProtocolMessage [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 11 00 00 [15:12:46]Write to MH i2c: E2 08 00 23 4D 80 11 00 00 00 00 00 00 EA [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 17 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 17 00 23 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 39 [15:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:12:46]wFMCommunicate OK [15:12:46]CreateOFDProtocolMessage done [15:12:46]OFDSenderStorePacket 29575 [15:12:46]StoreOFDPacket docnum=29575 [15:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 63 07 01 1D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 A9 00 00 00 F4 03 04 00 F1 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 73 00 00 35 04 06 00 2C 1E 5C AB CC D9 B4 E9 8D 8A 37 FD 92 79 [15:12:46]CheckFolder [15:12:46]dirname=/storage/ofd_packets [15:12:46]CheckFolder done [15:12:46]ProducePacketName [15:12:46]name=ofd_packets/00029575 [15:12:46]NVStorageSaveData ofd_packets/00029575 [15:12:46]File name is /storage/ofd_packets/00029575 [15:12:46]Write 301 bytes [15:12:46]NVStorageSaveData done [15:12:46]OFDSenderStorePacket done [15:12:46]KKMCreateOFDPacket done [15:12:46]NVStorageSaveData kkm_last_timestamp [15:12:46]File name is /storage/kkm_last_timestamp [15:12:46]Write 4 bytes [15:12:46]NVStorageSaveData done [15:12:46]ExternCall_PrintAddStr [15:12:46]wPrintStart [15:12:46]Write to MH i2c: 01 00 00 24 4D 71 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 07 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 07 00 24 4D 00 00 00 00 00 FF 0F 86 [15:12:46]RasterBufferAndPrint [15:12:46]line Счет N : (1)348008 [15:12:46]line ИНН: 02508201610067 [15:12:46]line Контрольно-Кассовый Чек [15:12:46]line ПРОДАЖА [15:12:46]line ТРК (МРК, ГНК) : 53 [15:12:46]line Товар: 2710124130 [15:12:46]line Аи-92-К-5 [15:12:46]line 10.000 * 64.80 [15:12:46]line = 648.00 [15:12:46]line НДС 12% НСП 1% [15:12:46]line > о реализуемом товаре [15:12:46]line ИТОГО: 648.00 [15:12:46]line НСП 1% : 5.73 [15:12:46]line НДС 12% : 68.81 [15:12:46]line Наличными: 648.00 [15:12:46]line Безнал.: 0.00 [15:12:46]line Место: АЗС № 108 "Партнер Нефть" [15:12:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:12:46]line СНО: Общий режим [15:12:46]line Чек 169 15.04.2024 15:12 [15:12:46]line Смена: 117 ФФД: 1.0 [15:12:46]line ЗНМ: 0300000027 [15:12:46]line РНМ: 0000138879044617 [15:12:46]line Версия ККМ: 001 [15:12:46]line ФМ: 0000000000963154 [15:12:46]line ФД: 29575 [15:12:46]line ФПД: 48508915403993 [15:12:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29575&fm=48508915403993&tin=02508201610067®Number=0000138879044617&sum=64800 [15:12:46]written 0, free lines is 4095 [15:12:46]OFD Sender: Processing packet 29575 [packets to send 8, broken 7] [15:12:46]ProducePacketName [15:12:46]name=ofd_packets/00029575 [15:12:46]OFD Sender: To server: pG, [15:12:46]CommunicateWithHost lk.salyk.kg:30040 [15:12:46]ConnectInit lk.salyk.kg [15:12:46]Connected sock=10 [15:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 63 07 01 1D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 A9 00 00 00 F4 03 04 00 F1 43 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 73 00 00 35 04 06 00 2C 1E 5C AB CC D9 B4 E9 8D 8A 37 FD 92 79 [15:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9A 3C 47 00 2A C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 73 00 00 F4 03 04 00 92 EE 1C 66 B6 04 01 00 00 A5 90 45 44 89 DF 2E E8 [15:12:46]CommunicateWithHost err = 0 [15:12:46]CheckOFDResponse [15:12:46]1017 (14) - 77093643461234 [15:12:46]1041 (16) - 0000000000963154 [15:12:46]1040 (4) - 29575 [15:12:46]1012 (4) - 15.04.2024 09:08 [15:12:46]1206 (1) - 0 [15:12:46]OFD Sender: Remove packet 29575 [15:12:46]ProducePacketName [15:12:46]name=ofd_packets/00029575 [15:12:46]NVStorageDeleteData [15:12:46]Write to MH i2c: 01 00 00 4B 4D 98 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 07 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: 01 07 00 4B 4D 00 00 00 00 00 FB 0C A6 [15:12:46]RasterBufferAndPrint [15:12:46]line [15:12:46]line [15:12:46]line [15:12:46]line [15:12:46]line [15:12:46]written 0, free lines is 3329 [15:12:46]MH_Cut [15:12:46]Write to MH i2c: D1 01 00 52 4D 01 71 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: D1 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: D1 01 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: D1 01 00 52 4D 00 70 [15:12:46]Write to MH i2c: 01 00 00 53 4D A0 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:47]OFD Sender: No OFD packet to send [15:12:47]*** Cut start [15:12:47]*** Partial cut [15:12:47]*** CUTSNS_PIN = 1 [15:12:47]*** CUTSNS_PIN = 0 [15:12:47]*** Brake cut motor [15:12:48]Read from MH i2c: 01 [15:12:48]MH_I2C_Read... [15:12:48]*** Stop cut motor [15:12:48]*** Cut end [15:12:48]Read from MH i2c: 01 07 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: 01 07 00 53 4D 00 00 00 00 00 FF 0F B5 [15:12:48]process_action close_receipt done [15:12:48]requested_data is exist [15:12:48]produce_requested_data [15:12:48]requested_item fm.sn is exist - process it [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 11 00 00 [15:12:48]Write to MH i2c: E2 08 00 54 4D 80 11 00 00 00 00 00 00 1B [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 17 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 17 00 54 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [15:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:12:48]wFMCommunicate OK [15:12:48]requested_item fd.num is exist - process it [15:12:48]SAM_PROTO_GetFieldsCounters [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 13 00 00 [15:12:48]Write to MH i2c: E2 08 00 55 4D 80 13 00 00 00 00 00 00 1E [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 62 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 62 00 55 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 73 00 00 0E 04 04 00 75 00 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 C6 [15:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 73 00 00 0E 04 04 00 75 00 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:12:48]wFMCommunicate OK [15:12:48]SAM_PROTO_GetFieldsCounters done [15:12:48]requested_item shift.num is exist - process it [15:12:48]requested_item shift.opened is exist - process it [15:12:48]req_shift_opened [15:12:48]FM_GetShiftState [15:12:48]SAM_PROTO_GetShiftState [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 13 01 00 [15:12:48]Write to MH i2c: E2 08 00 56 4D 80 13 01 00 00 00 00 00 20 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 0E 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 0E 00 56 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 14 [15:12:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:12:48]wFMCommunicate OK [15:12:48]SAM_PROTO_GetShiftState done [15:12:48]FM_GetShiftState done [15:12:48]req_shift_opened done [15:12:48]requested_item shift.open_date is exist - process it [15:12:48]req_shift_open_date [15:12:48]req_shift_open_date done [15:12:48]produce_requested_data done [15:12:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29575,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:12:48]process_action_free close_receipt [15:12:48]json_value_free [15:12:48]json_value_free done [15:12:48]process_json_proto returns [15:12:48]Send response to host [15:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29575,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:12:48]free response buf [15:12:48]execute_script done [15:12:48]execute_script returns [15:12:48]free content buf [15:12:48]Sock 8.Close socket [15:12:48]Sock 8.Thread stoped [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:27]accept exits with 9 [15:13:27]New connection [15:13:27]New thread 3067112804 created [15:13:27]Thread 3066969444 joined [15:13:27]Waiting for new connection... [15:13:27] Sock 9.Parse request [15:13:27]Sock 9.Check first char [15:13:27]Sock 9.First char is OK [15:13:27]request: POST /json_proto HTTP/1.0 [15:13:27]Method: POST [15:13:27]URL: /json_proto [15:13:27]Method is POST - this is cgi request [15:13:27]url: /json_proto [15:13:27]query_string will be loaded in cgi processing [15:13:27]execute_cgi json_proto POST (null) [15:13:27]execute_cgi path=json_proto method=POST [15:13:27]POST find Content-Length [15:13:27]Host: 172.17.33.3:8080 [15:13:27]Content-Length: 1172 [15:13:27]Content-Type: application/json [15:13:27] [15:13:27]POST finish read [15:13:27]Found Content-Length = 1172 [15:13:27]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348007\u000A15.04.2024 14:55\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:27]execute_script... [15:13:27]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348007\u000A15.04.2024 14:55\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-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:27]POST & json_proto [15:13:27]process_json_proto [15:13:27]json parsed OK: [15:13:27]protocol is kg_v1.0 [15:13:27]action value=print_text [15:13:27]process_action print_text [15:13:27]cmd_print_text [15:13:27]ExternCall_PrintAddStr [15:13:27]wPrintStart [15:13:27]Write to MH i2c: 01 00 00 57 4D A4 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 57 4D 00 00 00 00 00 FF 0F B9 [15:13:27]RasterBufferAndPrint [15:13:27]line *****ТОВАРНЫЙ ЧЕК***** [15:13:27]line АЗС 108 [15:13:27]line Партнер нефть [15:13:27]line 02508201610067 [15:13:27]line Кассир : Джумагулова Н. [15:13:27]line Счет N : (1)348007 [15:13:27]line 15.04.2024 14:55 [15:13:27]line ПРОДАЖА [15:13:27]line ТРК (МРК, ГНК): 11 [15:13:27]line Вид ГСМ : 2710194210 [15:13:27]line ДТ-К-5 [15:13:27]line 20.580 x 72.90 [15:13:27]line ИТОГ: 1500.28 [15:13:27]line Тип оплаты: Талоны: ТК ГПНА Online [15:13:27]line 30024816 [15:13:27]line ______________________ [15:13:27]line (подпись) [15:13:27]written 0, free lines is 4095 [15:13:27]Write to MH i2c: 01 00 00 6C 4D B9 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: 01 07 00 6C 4D 00 00 00 00 00 F3 0D C0 [15:13:27]RasterBufferAndPrint [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]line [15:13:27]written 0, free lines is 3572 [15:13:27]MH_Cut [15:13:27]Write to MH i2c: D1 01 00 73 4D 01 92 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: D1 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: D1 01 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: D1 01 00 73 4D 00 91 [15:13:27]Write to MH i2c: 01 00 00 74 4D C1 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:28]*** Cut start [15:13:28]*** Partial cut [15:13:28]*** CUTSNS_PIN = 1 [15:13:28]*** CUTSNS_PIN = 0 [15:13:28]*** Brake cut motor [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]*** Stop cut motor [15:13:28]*** Cut end [15:13:28]Read from MH i2c: 01 07 00 74 4D 00 00 00 00 00 FF 0F D6 [15:13:28]process_action print_text done [15:13:28]requested_data is exist [15:13:28]produce_requested_data [15:13:28]requested_item fm.sn is exist - process it [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 11 00 00 [15:13:28]Write to MH i2c: E2 08 00 75 4D 80 11 00 00 00 00 00 00 3C [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 75 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [15:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:28]wFMCommunicate OK [15:13:28]requested_item fd.num is exist - process it [15:13:28]SAM_PROTO_GetFieldsCounters [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 13 00 00 [15:13:28]Write to MH i2c: E2 08 00 76 4D 80 13 00 00 00 00 00 00 3F [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 62 00 [15:13:28]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 62 00 76 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 73 00 00 0E 04 04 00 75 00 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 E7 [15:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 73 00 00 0E 04 04 00 75 00 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:13:29]wFMCommunicate OK [15:13:29]SAM_PROTO_GetFieldsCounters done [15:13:29]requested_item shift.num is exist - process it [15:13:29]requested_item shift.opened is exist - process it [15:13:29]req_shift_opened [15:13:29]FM_GetShiftState [15:13:29]SAM_PROTO_GetShiftState [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 13 01 00 [15:13:29]Write to MH i2c: E2 08 00 77 4D 80 13 01 00 00 00 00 00 41 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 0E 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 0E 00 77 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 35 [15:13:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:13:29]wFMCommunicate OK [15:13:29]SAM_PROTO_GetShiftState done [15:13:29]FM_GetShiftState done [15:13:29]req_shift_opened done [15:13:29]requested_item shift.open_date is exist - process it [15:13:29]req_shift_open_date [15:13:29]req_shift_open_date done [15:13:29]produce_requested_data done [15:13:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29575,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:13:29]process_action_free print_text [15:13:29]json_value_free [15:13:29]json_value_free done [15:13:29]process_json_proto returns [15:13:29]Send response to host [15:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29575,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:13:29]free response buf [15:13:29]execute_script done [15:13:29]execute_script returns [15:13:29]free content buf [15:13:29]Sock 9.Close socket [15:13:29]Sock 9.Thread stoped [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:07]accept exits with 8 [15:15:07]New connection [15:15:07]New thread 3066969444 created [15:15:07]Thread 3067112804 joined [15:15:07]Waiting for new connection... [15:15:07] Sock 8.Parse request [15:15:07]Sock 8.Check first char [15:15:07]Sock 8.First char is OK [15:15:07]request: POST /json_proto HTTP/1.0 [15:15:07]Method: POST [15:15:07]URL: /json_proto [15:15:07]Method is POST - this is cgi request [15:15:07]url: /json_proto [15:15:07]query_string will be loaded in cgi processing [15:15:07]execute_cgi json_proto POST (null) [15:15:07]execute_cgi path=json_proto method=POST [15:15:07]POST find Content-Length [15:15:07]Host: 172.17.33.3:8080 [15:15:07]Content-Length: 674 [15:15:07]Content-Type: application/json [15:15:07] [15:15:07]POST finish read [15:15:07]Found Content-Length = 674 [15:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:07]execute_script... [15:15: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)348010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:07]POST & json_proto [15:15:07]process_json_proto [15:15:07]json parsed OK: [15:15:07]protocol is kg_v1.0 [15:15:07]action value=close_receipt [15:15:07]process_action close_receipt [15:15:07]cmd_close_receipt [15:15:07]MH_GetDate [15:15:07]Write to MH i2c: F0 00 00 78 4D B4 [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: F0 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: F0 09 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: F0 09 00 78 4D 00 80 44 1D 66 23 5B 8F 65 76 [15:15:07]GetLastDocTimeStamp 1713193969 [15:15:07]current date 1713194112 [15:15:07]FM_GetShiftState [15:15:07]SAM_PROTO_GetShiftState [15:15:07]wFMCommunicate request_size=4 [15:15:07]MH_SAM_APDU [15:15:07]CAPDU: 80 13 01 00 [15:15:07]Write to MH i2c: E2 08 00 79 4D 80 13 01 00 00 00 00 00 43 [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:07]Read from MH i2c: E2 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 0E 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: E2 0E 00 79 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 37 [15:15:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:15:07]wFMCommunicate OK [15:15:07]SAM_PROTO_GetShiftState done [15:15:07]FM_GetShiftState done [15:15:07]opened in 1713140468 [15:15:07]opened+sec_in_day 1713226868 [15:15:07]quantity*price = 50009 [15:15:07]sum+1 = 50010 [15:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 170 15.04.2024 15:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29576 ФПД: 103274901944889 1/tax-web-control/client/api/v1/ticket?date=20240415T151512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29576&fm=103274901944889&tin=02508201610067®Number=0000138879044617&sum=50000 [15:15:08]StoreToDocumentArchive [15:15:08]shift 117 fd 29576 [15:15:08]save to /storage/0117/doc_00029576 [15:15:08]save last doc name /storage/0117/doc_00029576 to /storage/kkm_last_doc_name [15:15:08]save OK [15:15:08]Clear old archive folders... [15:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:08]tlvbuf is 0022F3D0 [15:15:08]SAM_PROTO_ClearQueue [15:15:08]wFMCommunicate request_size=4 [15:15:08]MH_SAM_APDU [15:15:08]CAPDU: 80 09 00 00 [15:15:08]Write to MH i2c: E2 08 00 86 4D 80 09 00 00 00 00 00 00 45 [15:15:08]Write i2c OK [15:15:08]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 86 4D 00 90 00 47 [15:15:09]RAPDU: 90 00 [15:15:09]wFMCommunicate OK [15:15:09]SAM_PROTO_ClearQueue done [15:15:09]KKMCreateOFDPacket [15:15:09]OFDProtocolAddRootSTLVToBuf [15:15:09]FM_MakeSignedData [15:15:09]FM_MakeSignedData [15:15:09]SAM_PROTO_SignData [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 0D 01 02 [15:15:09]Write to MH i2c: E2 08 00 87 4D 80 0D 01 02 00 00 00 00 4D [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 87 4D 00 90 00 48 [15:15:09]RAPDU: 90 00 [15:15:09]wFMCommunicate OK [15:15:09]wFMCommunicate request_size=255 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 80 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 73 00 00 35 04 06 00 5D ED 8F D8 [15:15:09]Write to MH i2c: E2 02 01 88 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 80 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 73 00 00 35 04 06 00 5D ED 8F D8 00 00 26 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 88 4D 00 90 00 49 [15:15:09]RAPDU: 90 00 [15:15:09]wFMCommunicate OK [15:15:09]wFMCommunicate request_size=7 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 0D 02 02 02 3A 39 [15:15:09]Write to MH i2c: E2 0A 00 89 4D 80 0D 02 02 02 00 3A 39 00 00 C7 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [15:15:09]RAPDU: 90 00 [15:15:09]wFMCommunicate OK [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 0D 03 02 [15:15:09]Write to MH i2c: E2 08 00 8A 4D 80 0D 03 02 00 00 00 00 52 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 0B 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 0B 00 8A 4D 00 9A 1C D5 08 CC 85 4C 88 90 00 0B [15:15:09]RAPDU: 9A 1C D5 08 CC 85 4C 88 90 00 [15:15:09]wFMCommunicate OK [15:15:09]SAM_PROTO_SignData done [15:15:09]FM_MakeSignedData done [15:15:09]CreateOFDProtocolMessage [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 11 00 00 [15:15:09]Write to MH i2c: E2 08 00 8B 4D 80 11 00 00 00 00 00 00 52 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 17 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 17 00 8B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [15:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:15:09]wFMCommunicate OK [15:15:09]CreateOFDProtocolMessage done [15:15:09]OFDSenderStorePacket 29576 [15:15:09]StoreOFDPacket docnum=29576 [15:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0C F9 04 01 6C 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 80 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 73 00 00 35 04 06 00 5D ED 8F D8 3A 39 9A 1C D5 08 CC 85 4C 88 [15:15:09]CheckFolder [15:15:09]dirname=/storage/ofd_packets [15:15:09]CheckFolder done [15:15:09]ProducePacketName [15:15:09]name=ofd_packets/00029576 [15:15:09]NVStorageSaveData ofd_packets/00029576 [15:15:09]File name is /storage/ofd_packets/00029576 [15:15:09]Write 298 bytes [15:15:09]NVStorageSaveData done [15:15:09]OFDSenderStorePacket done [15:15:09]KKMCreateOFDPacket done [15:15:09]NVStorageSaveData kkm_last_timestamp [15:15:09]File name is /storage/kkm_last_timestamp [15:15:09]Write 4 bytes [15:15:09]NVStorageSaveData done [15:15:09]ExternCall_PrintAddStr [15:15:09]wPrintStart [15:15:09]Write to MH i2c: 01 00 00 8C 4D D9 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: 01 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: 01 07 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: 01 07 00 8C 4D 00 00 00 00 00 FF 0F EE [15:15:09]RasterBufferAndPrint [15:15:09]line Счет N : (1)348010 [15:15:09]line ИНН: 02508201610067 [15:15:09]line Контрольно-Кассовый Чек [15:15:09]line ПРОДАЖА [15:15:09]line ТРК (МРК, ГНК) : 11 [15:15:09]line Товар: 2710194210 [15:15:09]line ДТ-К-5 [15:15:09]line 6.860 * 72.90 [15:15:09]line = 500.09 [15:15:09]line НДС 12% НСП 1% [15:15:09]line > о реализуемом товаре [15:15:09]line ОКРУГЛЕНИЕ: -0.09 [15:15:09]line ИТОГО: 500.00 [15:15:09]line Внесено: 500.00 [15:15:09]line СДАЧА: 0.00 [15:15:09]line НСП 1% : 4.43 [15:15:09]line НДС 12% : 53.11 [15:15:09]line Наличными: 500.00 [15:15:09]line Безнал.: 0.00 [15:15:09]line Место: АЗС № 108 "Партнер Нефть" [15:15:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:15:09]line СНО: Общий режим [15:15:09]line Чек 170 15.04.2024 15:15 [15:15:09]line Смена: 117 ФФД: 1.0 [15:15:09]line ЗНМ: 0300000027 [15:15:09]line РНМ: 0000138879044617 [15:15:09]line Версия ККМ: 001 [15:15:09]line ФМ: 0000000000963154 [15:15:09]line ФД: 29576 [15:15:09]line ФПД: 103274901944889 [15:15:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151512&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29576&fm=103274901944889&tin=02508201610067®Number=0000138879044617&sum=50000 [15:15:09]OFD Sender: Processing packet 29576 [packets to send 8, broken 7] [15:15:09]ProducePacketName [15:15:09]name=ofd_packets/00029576 [15:15:09]OFD Sender: To server: pG, [15:15:09]CommunicateWithHost lk.salyk.kg:30040 [15:15:09]ConnectInit lk.salyk.kg [15:15:09]written 0, free lines is 4095 [15:15:09]Connected sock=10 [15:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 0C F9 04 01 6C 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 80 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 73 00 00 35 04 06 00 5D ED 8F D8 3A 39 9A 1C D5 08 CC 85 4C 88 [15:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BF 6D 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 88 73 00 00 F4 03 04 00 21 EF 1C 66 B6 04 01 00 00 BB EA FB 6A 94 78 59 7C [15:15:10]CommunicateWithHost err = 0 [15:15:10]CheckOFDResponse [15:15:10]1017 (14) - 77093643461234 [15:15:10]1041 (16) - 0000000000963154 [15:15:10]1040 (4) - 29576 [15:15:10]1012 (4) - 15.04.2024 09:10 [15:15:10]1206 (1) - 0 [15:15:10]OFD Sender: Remove packet 29576 [15:15:10]ProducePacketName [15:15:10]name=ofd_packets/00029576 [15:15:10]NVStorageDeleteData [15:15:10]Write to MH i2c: 01 00 00 B6 4D 03 [15:15:10]Write i2c OK [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: 01 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: 01 07 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: 01 07 00 B6 4D 00 00 00 00 00 BC 0C D2 [15:15:10]RasterBufferAndPrint [15:15:10]line [15:15:10]line [15:15:10]line [15:15:10]line [15:15:10]line [15:15:10]written 0, free lines is 3266 [15:15:10]MH_Cut [15:15:10]Write to MH i2c: D1 01 00 BD 4D 01 DC [15:15:10]Write i2c OK [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: D1 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: D1 01 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: D1 01 00 BD 4D 00 DB [15:15:10]Write to MH i2c: 01 00 00 BE 4D 0B [15:15:10]Write i2c OK [15:15:10]MH_I2C_Read... [15:15:10]OFD Sender: No OFD packet to send [15:15:11]*** Cut start [15:15:11]*** Partial cut [15:15:11]*** CUTSNS_PIN = 1 [15:15:11]*** CUTSNS_PIN = 0 [15:15:11]*** Brake cut motor [15:15:11]Read from MH i2c: 01 [15:15:11]MH_I2C_Read... [15:15:11]*** Stop cut motor [15:15:11]*** Cut end [15:15:11]Read from MH i2c: 01 07 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 07 00 BE 4D 00 00 00 00 00 FF 0F 20 [15:15:11]process_action close_receipt done [15:15:11]requested_data is exist [15:15:11]produce_requested_data [15:15:11]requested_item fm.sn is exist - process it [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 11 00 00 [15:15:11]Write to MH i2c: E2 08 00 BF 4D 80 11 00 00 00 00 00 00 86 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 BF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [15:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:15:11]wFMCommunicate OK [15:15:11]requested_item fd.num is exist - process it [15:15:11]SAM_PROTO_GetFieldsCounters [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 13 00 00 [15:15:11]Write to MH i2c: E2 08 00 C0 4D 80 13 00 00 00 00 00 00 89 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 62 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 62 00 C0 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 73 00 00 0E 04 04 00 75 00 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 35 [15:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_GetFieldsCounters done [15:15:11]requested_item shift.num is exist - process it [15:15:11]requested_item shift.opened is exist - process it [15:15:11]req_shift_opened [15:15:11]FM_GetShiftState [15:15:11]SAM_PROTO_GetShiftState [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 13 01 00 [15:15:11]Write to MH i2c: E2 08 00 C1 4D 80 13 01 00 00 00 00 00 8B [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 C1 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7F [15:15:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_GetShiftState done [15:15:11]FM_GetShiftState done [15:15:11]req_shift_opened done [15:15:11]requested_item shift.open_date is exist - process it [15:15:11]req_shift_open_date [15:15:11]req_shift_open_date done [15:15:11]produce_requested_data done [15:15:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29576,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:15:11]process_action_free close_receipt [15:15:11]json_value_free [15:15:11]json_value_free done [15:15:11]process_json_proto returns [15:15:11]Send response to host [15:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29576,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:15:11]free response buf [15:15:11]execute_script done [15:15:11]execute_script returns [15:15:11]free content buf [15:15:11]Sock 8.Close socket [15:15:11]Sock 8.Thread stoped [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]accept exits with 9 [15:16:10]New connection [15:16:10]New thread 3067112804 created [15:16:10]Thread 3066969444 joined [15:16:10]Waiting for new connection... [15:16:10] Sock 9.Parse request [15:16:10]Sock 9.Check first char [15:16:10]Sock 9.First char is OK [15:16:10]request: POST /json_proto HTTP/1.0 [15:16:10]Method: POST [15:16:10]URL: /json_proto [15:16:10]Method is POST - this is cgi request [15:16:10]url: /json_proto [15:16:10]query_string will be loaded in cgi processing [15:16:10]execute_cgi json_proto POST (null) [15:16:10]execute_cgi path=json_proto method=POST [15:16:10]POST find Content-Length [15:16:10]Host: 172.17.33.3:8080 [15:16:10]Content-Length: 816 [15:16:10]Content-Type: application/json [15:16:10] [15:16:10]POST finish read [15:16:10]Found Content-Length = 816 [15:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:10]execute_script... [15:16: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)348009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:10]POST & json_proto [15:16:10]process_json_proto [15:16:10]json parsed OK: [15:16:10]protocol is kg_v1.0 [15:16:10]action value=close_receipt [15:16:10]process_action close_receipt [15:16:10]cmd_close_receipt [15:16:10]MH_GetDate [15:16:10]Write to MH i2c: F0 00 00 C2 4D FE [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: F0 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: F0 09 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: F0 09 00 C2 4D 00 BF 44 1D 66 23 5B 8F 65 FF [15:16:10]GetLastDocTimeStamp 1713194112 [15:16:10]current date 1713194175 [15:16:10]FM_GetShiftState [15:16:10]SAM_PROTO_GetShiftState [15:16:10]wFMCommunicate request_size=4 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 13 01 00 [15:16:10]Write to MH i2c: E2 08 00 C3 4D 80 13 01 00 00 00 00 00 8D [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 0E 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 0E 00 C3 4D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 81 [15:16:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:16:10]wFMCommunicate OK [15:16:10]SAM_PROTO_GetShiftState done [15:16:10]FM_GetShiftState done [15:16:10]opened in 1713140468 [15:16:10]opened+sec_in_day 1713226868 [15:16:10]quantity*price = 400002 [15:16:10]sum+1 = 400003 [15:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.02 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 0.00 Безнал.: 4000.02 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 171 15.04.2024 15:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29577 ФПД: 186672117195928 1/tax-web-control/client/api/v1/ticket?date=20240415T151615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29577&fm=186672117195928&tin=02508201610067®Number=0000138879044617&sum=400002 [15:16:11]StoreToDocumentArchive [15:16:11]shift 117 fd 29577 [15:16:11]save to /storage/0117/doc_00029577 [15:16:11]save last doc name /storage/0117/doc_00029577 to /storage/kkm_last_doc_name [15:16:11]save OK [15:16:11]Clear old archive folders... [15:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:11]tlvbuf is 00258B70 [15:16:11]SAM_PROTO_ClearQueue [15:16:11]wFMCommunicate request_size=4 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 09 00 00 [15:16:11]Write to MH i2c: E2 08 00 D0 4D 80 09 00 00 00 00 00 00 8F [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:11]Read from MH i2c: E2 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 D0 4D 00 90 00 91 [15:16:11]RAPDU: 90 00 [15:16:11]wFMCommunicate OK [15:16:11]SAM_PROTO_ClearQueue done [15:16:11]KKMCreateOFDPacket [15:16:11]OFDProtocolAddRootSTLVToBuf [15:16:11]FM_MakeSignedData [15:16:11]FM_MakeSignedData [15:16:11]SAM_PROTO_SignData [15:16:11]wFMCommunicate request_size=4 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 0D 01 02 [15:16:11]Write to MH i2c: E2 08 00 D1 4D 80 0D 01 02 00 00 00 00 97 [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:11]Read from MH i2c: E2 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [15:16:11]RAPDU: 90 00 [15:16:11]wFMCommunicate OK [15:16:11]wFMCommunicate request_size=255 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 73 00 00 35 04 06 00 A9 C6 FD 3C [15:16:11]Write to MH i2c: E2 02 01 D2 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 73 00 00 35 04 06 00 A9 C6 FD 3C 00 00 77 [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:11]Read from MH i2c: E2 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [15:16:11]RAPDU: 90 00 [15:16:11]wFMCommunicate OK [15:16:11]wFMCommunicate request_size=7 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 0D 02 02 02 24 98 [15:16:11]Write to MH i2c: E2 0A 00 D3 4D 80 0D 02 02 02 00 24 98 00 00 5A [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:11]Read from MH i2c: E2 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 03 00 D3 4D 00 90 00 94 [15:16:11]RAPDU: 90 00 [15:16:11]wFMCommunicate OK [15:16:11]wFMCommunicate request_size=4 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 0D 03 02 [15:16:11]Write to MH i2c: E2 08 00 D4 4D 80 0D 03 02 00 00 00 00 9C [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:11]Read from MH i2c: E2 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 0B 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: E2 0B 00 D4 4D 00 2F 54 14 4E FF AC 86 DE 90 00 91 [15:16:11]RAPDU: 2F 54 14 4E FF AC 86 DE 90 00 [15:16:11]wFMCommunicate OK [15:16:11]SAM_PROTO_SignData done [15:16:11]FM_MakeSignedData done [15:16:11]CreateOFDProtocolMessage [15:16:11]wFMCommunicate request_size=4 [15:16:11]MH_SAM_APDU [15:16:11]CAPDU: 80 11 00 00 [15:16:11]Write to MH i2c: E2 08 00 D5 4D 80 11 00 00 00 00 00 00 9C [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 17 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 17 00 D5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [15:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:16:12]wFMCommunicate OK [15:16:12]CreateOFDProtocolMessage done [15:16:12]OFDSenderStorePacket 29577 [15:16:12]StoreOFDPacket docnum=29577 [15:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 79 AB 04 01 0A 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 73 00 00 35 04 06 00 A9 C6 FD 3C 24 98 2F 54 14 4E FF AC 86 DE [15:16:12]CheckFolder [15:16:12]dirname=/storage/ofd_packets [15:16:12]CheckFolder done [15:16:12]ProducePacketName [15:16:12]name=ofd_packets/00029577 [15:16:12]NVStorageSaveData ofd_packets/00029577 [15:16:12]File name is /storage/ofd_packets/00029577 [15:16:12]Write 298 bytes [15:16:12]NVStorageSaveData done [15:16:12]OFDSenderStorePacket done [15:16:12]KKMCreateOFDPacket done [15:16:12]NVStorageSaveData kkm_last_timestamp [15:16:12]File name is /storage/kkm_last_timestamp [15:16:12]Write 4 bytes [15:16:12]NVStorageSaveData done [15:16:12]ExternCall_PrintAddStr [15:16:12]wPrintStart [15:16:12]Write to MH i2c: 01 00 00 D6 4D 23 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 07 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 07 00 D6 4D 00 00 00 00 00 FF 0F 38 [15:16:12]RasterBufferAndPrint [15:16:12]line Счет N : (1)348009 [15:16:12]line ИНН: 02508201610067 [15:16:12]line Контрольно-Кассовый Чек [15:16:12]line ПРОДАЖА [15:16:12]line ТРК (МРК, ГНК) : 21 [15:16:12]line Товар: 2710194210 [15:16:12]line ДТ-К-5 [15:16:12]line 54.870 * 72.90 [15:16:12]line = 4000.02 [15:16:12]line НДС 12% НСП 1% [15:16:12]line > о реализуемом товаре [15:16:12]line ИТОГО: 4000.02 [15:16:12]line НСП 1% : 35.40 [15:16:12]line НДС 12% : 424.78 [15:16:12]line Наличными: 0.00 [15:16:12]line Безнал.: 4000.02 [15:16:12]line Место: АЗС № 108 "Партнер Нефть" [15:16:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:16:12]line СНО: Общий режим [15:16:12]line Чек 171 15.04.2024 15:16 [15:16:12]line Смена: 117 ФФД: 1.0 [15:16:12]line ЗНМ: 0300000027 [15:16:12]line РНМ: 0000138879044617 [15:16:12]line Версия ККМ: 001 [15:16:12]line Платежная система: Бакай Банк [15:16:12]line ФМ: 0000000000963154 [15:16:12]line ФД: 29577 [15:16:12]line ФПД: 186672117195928 [15:16:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29577&fm=186672117195928&tin=02508201610067®Number=0000138879044617&sum=400002 [15:16:12]OFD Sender: Processing packet 29577 [packets to send 8, broken 7] [15:16:12]ProducePacketName [15:16:12]name=ofd_packets/00029577 [15:16:12]OFD Sender: To server: pG, [15:16:12]CommunicateWithHost lk.salyk.kg:30040 [15:16:12]ConnectInit lk.salyk.kg [15:16:12]written 0, free lines is 4095 [15:16:12]Connected sock=10 [15:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 79 AB 04 01 0A 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 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 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF 44 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 73 00 00 35 04 06 00 A9 C6 FD 3C 24 98 2F 54 14 4E FF AC 86 DE [15:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 F8 47 00 9F 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 39 36 33 31 35 34 10 04 04 00 89 73 00 00 F4 03 04 00 60 EF 1C 66 B6 04 01 00 00 80 99 6F 0B C6 BE 3A 19 [15:16:12]CommunicateWithHost err = 0 [15:16:12]CheckOFDResponse [15:16:12]1017 (14) - 77093643461234 [15:16:12]1041 (16) - 0000000000963154 [15:16:12]1040 (4) - 29577 [15:16:12]1012 (4) - 15.04.2024 09:12 [15:16:12]1206 (1) - 0 [15:16:12]OFD Sender: Remove packet 29577 [15:16:12]ProducePacketName [15:16:12]name=ofd_packets/00029577 [15:16:12]NVStorageDeleteData [15:16:12]Write to MH i2c: 01 00 00 FF 4D 4C [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 07 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 07 00 FF 4D 00 00 00 00 00 DE 0C 3D [15:16:12]RasterBufferAndPrint [15:16:12]line [15:16:12]line [15:16:12]line [15:16:12]line [15:16:12]line [15:16:12]written 0, free lines is 3300 [15:16:12]MH_Cut [15:16:12]Write to MH i2c: D1 01 00 06 4E 01 26 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: D1 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: D1 01 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: D1 01 00 06 4E 00 25 [15:16:12]Write to MH i2c: 01 00 00 07 4E 55 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:13]OFD Sender: No OFD packet to send [15:16:13]*** Cut start [15:16:13]*** Partial cut [15:16:13]*** CUTSNS_PIN = 1 [15:16:13]*** CUTSNS_PIN = 0 [15:16:13]*** Brake cut motor [15:16:14]Read from MH i2c: 01 [15:16:14]MH_I2C_Read... [15:16:14]*** Stop cut motor [15:16:14]*** Cut end [15:16:14]Read from MH i2c: 01 07 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: 01 07 00 07 4E 00 00 00 00 00 FF 0F 6A [15:16:14]process_action close_receipt done [15:16:14]requested_data is exist [15:16:14]produce_requested_data [15:16:14]requested_item fm.sn is exist - process it [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 11 00 00 [15:16:14]Write to MH i2c: E2 08 00 08 4E 80 11 00 00 00 00 00 00 D0 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 17 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 17 00 08 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [15:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:16:14]wFMCommunicate OK [15:16:14]requested_item fd.num is exist - process it [15:16:14]SAM_PROTO_GetFieldsCounters [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 13 00 00 [15:16:14]Write to MH i2c: E2 08 00 09 4E 80 13 00 00 00 00 00 00 D3 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 62 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 62 00 09 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 73 00 00 0E 04 04 00 75 00 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 83 [15:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 73 00 00 0E 04 04 00 75 00 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:16:14]wFMCommunicate OK [15:16:14]SAM_PROTO_GetFieldsCounters done [15:16:14]requested_item shift.num is exist - process it [15:16:14]requested_item shift.opened is exist - process it [15:16:14]req_shift_opened [15:16:14]FM_GetShiftState [15:16:14]SAM_PROTO_GetShiftState [15:16:14]wFMCommunicate request_size=4 [15:16:14]MH_SAM_APDU [15:16:14]CAPDU: 80 13 01 00 [15:16:14]Write to MH i2c: E2 08 00 0A 4E 80 13 01 00 00 00 00 00 D5 [15:16:14]Write i2c OK [15:16:14]MH_I2C_Read... [15:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:14]Read from MH i2c: E2 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 [15:16:14]MH_I2C_Read... [15:16:14]Read from MH i2c: E2 0E 00 0A 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C9 [15:16:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:16:14]wFMCommunicate OK [15:16:14]SAM_PROTO_GetShiftState done [15:16:14]FM_GetShiftState done [15:16:14]req_shift_opened done [15:16:14]requested_item shift.open_date is exist - process it [15:16:14]req_shift_open_date [15:16:14]req_shift_open_date done [15:16:14]produce_requested_data done [15:16:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29577,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:16:14]process_action_free close_receipt [15:16:14]json_value_free [15:16:14]json_value_free done [15:16:14]process_json_proto returns [15:16:14]Send response to host [15:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29577,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:16:14]free response buf [15:16:14]execute_script done [15:16:14]execute_script returns [15:16:14]free content buf [15:16:14]Sock 9.Close socket [15:16:14]Sock 9.Thread stoped [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:31]accept exits with 8 [15:19:31]New connection [15:19:31]New thread 3066969444 created [15:19:31]Thread 3067112804 joined [15:19:31]Waiting for new connection... [15:19:31] Sock 8.Parse request [15:19:31]Sock 8.Check first char [15:19:31]Sock 8.First char is OK [15:19:31]request: POST /json_proto HTTP/1.0 [15:19:31]Method: POST [15:19:31]URL: /json_proto [15:19:31]Method is POST - this is cgi request [15:19:31]url: /json_proto [15:19:31]query_string will be loaded in cgi processing [15:19:31]execute_cgi json_proto POST (null) [15:19:31]execute_cgi path=json_proto method=POST [15:19:31]POST find Content-Length [15:19:31]Host: 172.17.33.3:8080 [15:19:31]Content-Length: 677 [15:19:31]Content-Type: application/json [15:19:31] [15:19:31]POST finish read [15:19:31]Found Content-Length = 677 [15:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:31]execute_script... [15:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:31]POST & json_proto [15:19:31]process_json_proto [15:19:31]json parsed OK: [15:19:31]protocol is kg_v1.0 [15:19:31]action value=close_receipt [15:19:31]process_action close_receipt [15:19:31]cmd_close_receipt [15:19:31]MH_GetDate [15:19:31]Write to MH i2c: F0 00 00 0B 4E 48 [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: F0 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: F0 09 00 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: F0 09 00 0B 4E 00 89 45 1D 66 23 5B 8F 65 14 [15:19:31]GetLastDocTimeStamp 1713194175 [15:19:31]current date 1713194377 [15:19:31]FM_GetShiftState [15:19:31]SAM_PROTO_GetShiftState [15:19:31]wFMCommunicate request_size=4 [15:19:31]MH_SAM_APDU [15:19:31]CAPDU: 80 13 01 00 [15:19:31]Write to MH i2c: E2 08 00 0C 4E 80 13 01 00 00 00 00 00 D7 [15:19:31]Write i2c OK [15:19:31]MH_I2C_Read... [15:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:31]Read from MH i2c: E2 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: E2 0E 00 [15:19:31]MH_I2C_Read... [15:19:31]Read from MH i2c: E2 0E 00 0C 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CB [15:19:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:19:31]wFMCommunicate OK [15:19:31]SAM_PROTO_GetShiftState done [15:19:31]FM_GetShiftState done [15:19:31]opened in 1713140468 [15:19:31]opened+sec_in_day 1713226868 [15:19:31]quantity*price = 30002 [15:19:31]sum+1 = 30003 [15:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 172 15.04.2024 15:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29578 ФПД: 42039744905748 1/tax-web-control/client/api/v1/ticket?date=20240415T151937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29578&fm=42039744905748&tin=02508201610067®Number=0000138879044617&sum=30000 [15:19:33]StoreToDocumentArchive [15:19:33]shift 117 fd 29578 [15:19:33]save to /storage/0117/doc_00029578 [15:19:33]save last doc name /storage/0117/doc_00029578 to /storage/kkm_last_doc_name [15:19:33]save OK [15:19:33]Clear old archive folders... [15:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:33]tlvbuf is 00267140 [15:19:33]SAM_PROTO_ClearQueue [15:19:33]wFMCommunicate request_size=4 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 09 00 00 [15:19:33]Write to MH i2c: E2 08 00 19 4E 80 09 00 00 00 00 00 00 D9 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 19 4E 00 90 00 DB [15:19:33]RAPDU: 90 00 [15:19:33]wFMCommunicate OK [15:19:33]SAM_PROTO_ClearQueue done [15:19:33]KKMCreateOFDPacket [15:19:33]OFDProtocolAddRootSTLVToBuf [15:19:33]FM_MakeSignedData [15:19:33]FM_MakeSignedData [15:19:33]SAM_PROTO_SignData [15:19:33]wFMCommunicate request_size=4 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 0D 01 02 [15:19:33]Write to MH i2c: E2 08 00 1A 4E 80 0D 01 02 00 00 00 00 E1 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 1A 4E 00 90 00 DC [15:19:33]RAPDU: 90 00 [15:19:33]wFMCommunicate OK [15:19:33]wFMCommunicate request_size=255 [15:19:33]MH_SAM_APDU [15:19: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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AC 00 00 00 F4 03 04 00 89 45 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 73 00 00 35 04 06 00 26 [15:19:33]Write to MH i2c: E2 02 01 1B 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AC 00 00 00 F4 03 04 00 89 45 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 73 00 00 35 04 06 00 26 00 00 A7 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]OFD Sender: No OFD packet to send [15:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 1B 4E 00 90 00 DD [15:19:33]RAPDU: 90 00 [15:19:33]wFMCommunicate OK [15:19:33]wFMCommunicate request_size=10 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 0D 02 02 05 3C 24 0F C2 14 [15:19:33]Write to MH i2c: E2 0D 00 1C 4E 80 0D 02 02 05 00 3C 24 0F C2 14 00 00 33 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 03 00 1C 4E 00 90 00 DE [15:19:33]RAPDU: 90 00 [15:19:33]wFMCommunicate OK [15:19:33]wFMCommunicate request_size=4 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 0D 03 02 [15:19:33]Write to MH i2c: E2 08 00 1D 4E 80 0D 03 02 00 00 00 00 E6 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 0B 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 0B 00 1D 4E 00 6B 78 8E 22 55 F5 30 0A 90 00 FE [15:19:33]RAPDU: 6B 78 8E 22 55 F5 30 0A 90 00 [15:19:33]wFMCommunicate OK [15:19:33]SAM_PROTO_SignData done [15:19:33]FM_MakeSignedData done [15:19:33]CreateOFDProtocolMessage [15:19:33]wFMCommunicate request_size=4 [15:19:33]MH_SAM_APDU [15:19:33]CAPDU: 80 11 00 00 [15:19:33]Write to MH i2c: E2 08 00 1E 4E 80 11 00 00 00 00 00 00 E6 [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:33]Read from MH i2c: E2 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 17 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: E2 17 00 1E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [15:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:19:33]wFMCommunicate OK [15:19:33]CreateOFDProtocolMessage done [15:19:33]OFDSenderStorePacket 29578 [15:19:33]StoreOFDPacket docnum=29578 [15:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CE 9E 07 01 98 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AC 00 00 00 F4 03 04 00 89 45 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 73 00 00 35 04 06 00 26 3C 24 0F C2 14 6B 78 8E 22 55 F5 30 0A [15:19:33]CheckFolder [15:19:33]dirname=/storage/ofd_packets [15:19:33]CheckFolder done [15:19:33]ProducePacketName [15:19:33]name=ofd_packets/00029578 [15:19:33]NVStorageSaveData ofd_packets/00029578 [15:19:33]File name is /storage/ofd_packets/00029578 [15:19:33]Write 301 bytes [15:19:33]NVStorageSaveData done [15:19:33]OFDSenderStorePacket done [15:19:33]KKMCreateOFDPacket done [15:19:33]NVStorageSaveData kkm_last_timestamp [15:19:33]File name is /storage/kkm_last_timestamp [15:19:33]Write 4 bytes [15:19:33]NVStorageSaveData done [15:19:33]ExternCall_PrintAddStr [15:19:33]wPrintStart [15:19:33]Write to MH i2c: 01 00 00 1F 4E 6D [15:19:33]Write i2c OK [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: 01 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: 01 07 00 [15:19:33]MH_I2C_Read... [15:19:33]Read from MH i2c: 01 07 00 1F 4E 00 00 00 00 00 FF 0F 82 [15:19:33]RasterBufferAndPrint [15:19:33]line Счет N : (1)348011 [15:19:33]line ИНН: 02508201610067 [15:19:33]line Контрольно-Кассовый Чек [15:19:33]line ПРОДАЖА [15:19:33]line ТРК (МРК, ГНК) : 23 [15:19:33]line Товар: 2710124130 [15:19:33]line Аи-92-К-5 [15:19:33]line 4.630 * 64.80 [15:19:33]line = 300.02 [15:19:33]line НДС 12% НСП 1% [15:19:33]line > о реализуемом товаре [15:19:33]line ОКРУГЛЕНИЕ: -0.02 [15:19:33]line ИТОГО: 300.00 [15:19:33]line Внесено: 300.00 [15:19:33]line СДАЧА: 0.00 [15:19:33]line НСП 1% : 2.65 [15:19:33]line НДС 12% : 31.86 [15:19:33]line Наличными: 300.00 [15:19:33]line Безнал.: 0.00 [15:19:33]line Место: АЗС № 108 "Партнер Нефть" [15:19:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:19:33]line СНО: Общий режим [15:19:33]line Чек 172 15.04.2024 15:19 [15:19:33]line Смена: 117 ФФД: 1.0 [15:19:33]line ЗНМ: 0300000027 [15:19:33]line РНМ: 0000138879044617 [15:19:33]line Версия ККМ: 001 [15:19:33]line ФМ: 0000000000963154 [15:19:33]line ФД: 29578 [15:19:33]line ФПД: 42039744905748 [15:19:33]line 1/tax-web-control/client/api/v1/ticket?date=20240415T151937&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29578&fm=42039744905748&tin=02508201610067®Number=0000138879044617&sum=30000 [15:19:33]OFD Sender: Processing packet 29578 [packets to send 8, broken 7] [15:19:33]ProducePacketName [15:19:33]name=ofd_packets/00029578 [15:19:33]OFD Sender: To server: pG, [15:19:33]CommunicateWithHost lk.salyk.kg:30040 [15:19:33]ConnectInit lk.salyk.kg [15:19:33]written 0, free lines is 4095 [15:19:34]Connected sock=10 [15:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CE 9E 07 01 98 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AC 00 00 00 F4 03 04 00 89 45 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 73 00 00 35 04 06 00 26 3C 24 0F C2 14 6B 78 8E 22 55 F5 30 0A [15:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 84 36 47 00 1D 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 39 36 33 31 35 34 10 04 04 00 8A 73 00 00 F4 03 04 00 29 F0 1C 66 B6 04 01 00 00 5F 46 97 AD 66 C9 0C 8A [15:19:34]CommunicateWithHost err = 0 [15:19:34]CheckOFDResponse [15:19:34]1017 (14) - 77093643461234 [15:19:34]1041 (16) - 0000000000963154 [15:19:34]1040 (4) - 29578 [15:19:34]1012 (4) - 15.04.2024 09:15 [15:19:34]1206 (1) - 0 [15:19:34]OFD Sender: Remove packet 29578 [15:19:34]ProducePacketName [15:19:34]name=ofd_packets/00029578 [15:19:34]NVStorageDeleteData [15:19:34]Write to MH i2c: 01 00 00 49 4E 97 [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: 01 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: 01 07 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: 01 07 00 49 4E 00 00 00 00 00 CE 0C 78 [15:19:34]RasterBufferAndPrint [15:19:34]line [15:19:34]line [15:19:34]line [15:19:34]line [15:19:34]line [15:19:34]written 0, free lines is 3284 [15:19:34]MH_Cut [15:19:34]Write to MH i2c: D1 01 00 50 4E 01 70 [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: D1 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: D1 01 00 [15:19:34]MH_I2C_Read... [15:19:34]Read from MH i2c: D1 01 00 50 4E 00 6F [15:19:34]Write to MH i2c: 01 00 00 51 4E 9F [15:19:34]Write i2c OK [15:19:34]MH_I2C_Read... [15:19:34]OFD Sender: No OFD packet to send [15:19:35]*** Cut start [15:19:35]*** Partial cut [15:19:35]*** CUTSNS_PIN = 1 [15:19:35]*** CUTSNS_PIN = 0 [15:19:35]*** Brake cut motor [15:19:35]Read from MH i2c: 01 [15:19:35]MH_I2C_Read... [15:19:35]*** Stop cut motor [15:19:35]*** Cut end [15:19:35]Read from MH i2c: 01 07 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: 01 07 00 51 4E 00 00 00 00 00 FF 0F B4 [15:19:35]process_action close_receipt done [15:19:35]requested_data is exist [15:19:35]produce_requested_data [15:19:35]requested_item fm.sn is exist - process it [15:19:35]wFMCommunicate request_size=4 [15:19:35]MH_SAM_APDU [15:19:35]CAPDU: 80 11 00 00 [15:19:35]Write to MH i2c: E2 08 00 52 4E 80 11 00 00 00 00 00 00 1A [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:35]Read from MH i2c: E2 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 17 00 [15:19:35]MH_I2C_Read... [15:19:35]Read from MH i2c: E2 17 00 52 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [15:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:19:35]wFMCommunicate OK [15:19:35]requested_item fd.num is exist - process it [15:19:35]SAM_PROTO_GetFieldsCounters [15:19:35]wFMCommunicate request_size=4 [15:19:35]MH_SAM_APDU [15:19:35]CAPDU: 80 13 00 00 [15:19:35]Write to MH i2c: E2 08 00 53 4E 80 13 00 00 00 00 00 00 1D [15:19:35]Write i2c OK [15:19:35]MH_I2C_Read... [15:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:36]Read from MH i2c: E2 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 62 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 62 00 53 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 73 00 00 0E 04 04 00 75 00 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 D1 [15:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 73 00 00 0E 04 04 00 75 00 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:19:36]wFMCommunicate OK [15:19:36]SAM_PROTO_GetFieldsCounters done [15:19:36]requested_item shift.num is exist - process it [15:19:36]requested_item shift.opened is exist - process it [15:19:36]req_shift_opened [15:19:36]FM_GetShiftState [15:19:36]SAM_PROTO_GetShiftState [15:19:36]wFMCommunicate request_size=4 [15:19:36]MH_SAM_APDU [15:19:36]CAPDU: 80 13 01 00 [15:19:36]Write to MH i2c: E2 08 00 54 4E 80 13 01 00 00 00 00 00 1F [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:36]Read from MH i2c: E2 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 0E 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 0E 00 54 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 13 [15:19:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:19:36]wFMCommunicate OK [15:19:36]SAM_PROTO_GetShiftState done [15:19:36]FM_GetShiftState done [15:19:36]req_shift_opened done [15:19:36]requested_item shift.open_date is exist - process it [15:19:36]req_shift_open_date [15:19:36]req_shift_open_date done [15:19:36]produce_requested_data done [15:19:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29578,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:19:36]process_action_free close_receipt [15:19:36]json_value_free [15:19:36]json_value_free done [15:19:36]process_json_proto returns [15:19:36]Send response to host [15:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29578,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:19:36]free response buf [15:19:36]execute_script done [15:19:36]execute_script returns [15:19:36]free content buf [15:19:36]Sock 8.Close socket [15:19:36]Sock 8.Thread stoped [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:42]accept exits with 9 [15:21:42]New connection [15:21:42]New thread 3067112804 created [15:21:42]Thread 3066969444 joined [15:21:42]Waiting for new connection... [15:21:42] Sock 9.Parse request [15:21:42]Sock 9.Check first char [15:21:42]Sock 9.First char is OK [15:21:42]request: POST /json_proto HTTP/1.0 [15:21:42]Method: POST [15:21:42]URL: /json_proto [15:21:42]Method is POST - this is cgi request [15:21:42]url: /json_proto [15:21:42]query_string will be loaded in cgi processing [15:21:42]execute_cgi json_proto POST (null) [15:21:42]execute_cgi path=json_proto method=POST [15:21:42]POST find Content-Length [15:21:42]Host: 172.17.33.3:8080 [15:21:42]Content-Length: 840 [15:21:42]Content-Type: application/json [15:21:42] [15:21:42]POST finish read [15:21:42]Found Content-Length = 840 [15:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:42]execute_script... [15:21: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)348012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:42]POST & json_proto [15:21:42]process_json_proto [15:21:42]json parsed OK: [15:21:42]protocol is kg_v1.0 [15:21:42]action value=close_receipt [15:21:42]process_action close_receipt [15:21:42]cmd_close_receipt [15:21:42]MH_GetDate [15:21:42]Write to MH i2c: F0 00 00 55 4E 92 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 09 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: F0 09 00 55 4E 00 0B 46 1D 66 23 5B 8F 65 E1 [15:21:42]GetLastDocTimeStamp 1713194377 [15:21:42]current date 1713194507 [15:21:42]FM_GetShiftState [15:21:42]SAM_PROTO_GetShiftState [15:21:42]wFMCommunicate request_size=4 [15:21:42]MH_SAM_APDU [15:21:42]CAPDU: 80 13 01 00 [15:21:42]Write to MH i2c: E2 08 00 56 4E 80 13 01 00 00 00 00 00 21 [15:21:42]Write i2c OK [15:21:42]MH_I2C_Read... [15:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:42]Read from MH i2c: E2 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0E 00 [15:21:42]MH_I2C_Read... [15:21:42]Read from MH i2c: E2 0E 00 56 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 15 [15:21:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:21:42]wFMCommunicate OK [15:21:42]SAM_PROTO_GetShiftState done [15:21:42]FM_GetShiftState done [15:21:42]opened in 1713140468 [15:21:42]opened+sec_in_day 1713226868 [15:21:42]quantity*price = 100018 [15:21:42]sum+1 = 100020 [15:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 173 15.04.2024 15:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29579 ФПД: 242171607985016 1/tax-web-control/client/api/v1/ticket?date=20240415T152147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29579&fm=242171607985016&tin=02508201610067®Number=0000138879044617&sum=100019 [15:21:43]StoreToDocumentArchive [15:21:43]shift 117 fd 29579 [15:21:43]save to /storage/0117/doc_00029579 [15:21:43]save last doc name /storage/0117/doc_00029579 to /storage/kkm_last_doc_name [15:21:43]save OK [15:21:43]Clear old archive folders... [15:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:21:43]tlvbuf is 00252DD0 [15:21:43]SAM_PROTO_ClearQueue [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 09 00 00 [15:21:43]Write to MH i2c: E2 08 00 63 4E 80 09 00 00 00 00 00 00 23 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 63 4E 00 90 00 25 [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]SAM_PROTO_ClearQueue done [15:21:43]KKMCreateOFDPacket [15:21:43]OFDProtocolAddRootSTLVToBuf [15:21:43]FM_MakeSignedData [15:21:43]FM_MakeSignedData [15:21:43]SAM_PROTO_SignData [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 01 02 [15:21:43]Write to MH i2c: E2 08 00 64 4E 80 0D 01 02 00 00 00 00 2B [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 64 4E 00 90 00 26 [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=255 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0B 46 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 73 00 00 35 04 06 00 DC 40 F8 AB [15:21:44]Write to MH i2c: E2 02 01 65 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0B 46 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 73 00 00 35 04 06 00 DC 40 F8 AB 00 00 87 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 65 4E 00 90 00 27 [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=7 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 02 02 02 2B 78 [15:21:44]Write to MH i2c: E2 0A 00 66 4E 80 0D 02 02 02 00 2B 78 00 00 D5 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 03 00 66 4E 00 90 00 28 [15:21:44]RAPDU: 90 00 [15:21:44]wFMCommunicate OK [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 0D 03 02 [15:21:44]Write to MH i2c: E2 08 00 67 4E 80 0D 03 02 00 00 00 00 30 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 0B 00 67 4E 00 51 8A 16 9D FF 24 CB 93 90 00 40 [15:21:44]RAPDU: 51 8A 16 9D FF 24 CB 93 90 00 [15:21:44]wFMCommunicate OK [15:21:44]SAM_PROTO_SignData done [15:21:44]FM_MakeSignedData done [15:21:44]CreateOFDProtocolMessage [15:21:44]wFMCommunicate request_size=4 [15:21:44]MH_SAM_APDU [15:21:44]CAPDU: 80 11 00 00 [15:21:44]Write to MH i2c: E2 08 00 68 4E 80 11 00 00 00 00 00 00 30 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:44]Read from MH i2c: E2 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 17 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: E2 17 00 68 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [15:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:21:44]wFMCommunicate OK [15:21:44]CreateOFDProtocolMessage done [15:21:44]OFDSenderStorePacket 29579 [15:21:44]StoreOFDPacket docnum=29579 [15:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8C A8 04 01 9C 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0B 46 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 73 00 00 35 04 06 00 DC 40 F8 AB 2B 78 51 8A 16 9D FF 24 CB 93 [15:21:44]CheckFolder [15:21:44]dirname=/storage/ofd_packets [15:21:44]CheckFolder done [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00029579 [15:21:44]NVStorageSaveData ofd_packets/00029579 [15:21:44]File name is /storage/ofd_packets/00029579 [15:21:44]Write 298 bytes [15:21:44]NVStorageSaveData done [15:21:44]OFDSenderStorePacket done [15:21:44]KKMCreateOFDPacket done [15:21:44]NVStorageSaveData kkm_last_timestamp [15:21:44]File name is /storage/kkm_last_timestamp [15:21:44]Write 4 bytes [15:21:44]NVStorageSaveData done [15:21:44]ExternCall_PrintAddStr [15:21:44]wPrintStart [15:21:44]Write to MH i2c: 01 00 00 69 4E B7 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 69 4E 00 00 00 00 00 FF 0F CC [15:21:44]RasterBufferAndPrint [15:21:44]line Счет N : (1)348012 [15:21:44]line ИНН: 02508201610067 [15:21:44]line Контрольно-Кассовый Чек [15:21:44]line ПРОДАЖА [15:21:44]line ТРК (МРК, ГНК) : 11 [15:21:44]line Товар: 2710194210 [15:21:44]line ДТ-К-5 [15:21:44]line 13.720 * 72.90 [15:21:44]line = 1000.19 [15:21:44]line НДС 12% НСП 1% [15:21:44]line > о реализуемом товаре [15:21:44]line ИТОГО: 1000.19 [15:21:44]line НСП 1% : 8.85 [15:21:44]line НДС 12% : 106.21 [15:21:44]line Наличными: 0.00 [15:21:44]line Безнал.: 1000.19 [15:21:44]line Место: АЗС № 108 "Партнер Нефть" [15:21:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:21:44]line СНО: Общий режим [15:21:44]line Чек 173 15.04.2024 15:21 [15:21:44]line Смена: 117 ФФД: 1.0 [15:21:44]line ЗНМ: 0300000027 [15:21:44]line РНМ: 0000138879044617 [15:21:44]line Версия ККМ: 001 [15:21:44]line Платежная система: АКБ Кыргызстан [15:21:44]line ФМ: 0000000000963154 [15:21:44]line ФД: 29579 [15:21:44]line ФПД: 242171607985016 [15:21:44]line 1/tax-web-control/client/api/v1/ticket?date=20240415T152147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29579&fm=242171607985016&tin=02508201610067®Number=0000138879044617&sum=100019 [15:21:44]OFD Sender: Processing packet 29579 [packets to send 8, broken 7] [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00029579 [15:21:44]OFD Sender: To server: pG, [15:21:44]CommunicateWithHost lk.salyk.kg:30040 [15:21:44]ConnectInit lk.salyk.kg [15:21:44]written 0, free lines is 4095 [15:21:45]Connected sock=10 [15:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8C A8 04 01 9C 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 0B 46 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 73 00 00 35 04 06 00 DC 40 F8 AB 2B 78 51 8A 16 9D FF 24 CB 93 [15:21:45]Write to MH i2c: 01 00 00 92 4E E0 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 92 4E 00 00 00 00 00 DB 0C CE [15:21:45]RasterBufferAndPrint [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]line [15:21:45]written 0, free lines is 3298 [15:21:45]MH_Cut [15:21:45]Write to MH i2c: D1 01 00 99 4E 01 B9 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: D1 01 00 99 4E 00 B8 [15:21:45]Write to MH i2c: 01 00 00 9A 4E E8 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E9 CD 47 00 0D A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 73 00 00 F4 03 04 00 AC F0 1C 66 B6 04 01 00 00 5A CA 2F 8B D8 77 24 6B [15:21:45]CommunicateWithHost err = 0 [15:21:45]CheckOFDResponse [15:21:45]1017 (14) - 77093643461234 [15:21:45]1041 (16) - 0000000000963154 [15:21:45]1040 (4) - 29579 [15:21:45]1012 (4) - 15.04.2024 09:17 [15:21:45]1206 (1) - 0 [15:21:45]OFD Sender: Remove packet 29579 [15:21:45]ProducePacketName [15:21:45]name=ofd_packets/00029579 [15:21:45]NVStorageDeleteData [15:21:45]OFD Sender: No OFD packet to send [15:21:45]*** Cut start [15:21:45]*** Partial cut [15:21:45]*** CUTSNS_PIN = 1 [15:21:46]*** CUTSNS_PIN = 0 [15:21:46]*** Brake cut motor [15:21:46]Read from MH i2c: 01 [15:21:46]MH_I2C_Read... [15:21:46]*** Stop cut motor [15:21:46]*** Cut end [15:21:46]Read from MH i2c: 01 07 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: 01 07 00 9A 4E 00 00 00 00 00 FF 0F FD [15:21:46]process_action close_receipt done [15:21:46]requested_data is exist [15:21:46]produce_requested_data [15:21:46]requested_item fm.sn is exist - process it [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 11 00 00 [15:21:46]Write to MH i2c: E2 08 00 9B 4E 80 11 00 00 00 00 00 00 63 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 17 00 9B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [15:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:21:46]wFMCommunicate OK [15:21:46]requested_item fd.num is exist - process it [15:21:46]SAM_PROTO_GetFieldsCounters [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 00 00 [15:21:46]Write to MH i2c: E2 08 00 9C 4E 80 13 00 00 00 00 00 00 66 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 9C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 73 00 00 0E 04 04 00 75 00 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 1E [15:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetFieldsCounters done [15:21:46]requested_item shift.num is exist - process it [15:21:46]requested_item shift.opened is exist - process it [15:21:46]req_shift_opened [15:21:46]FM_GetShiftState [15:21:46]SAM_PROTO_GetShiftState [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 01 00 [15:21:46]Write to MH i2c: E2 08 00 9D 4E 80 13 01 00 00 00 00 00 68 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 9D 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [15:21:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetShiftState done [15:21:46]FM_GetShiftState done [15:21:46]req_shift_opened done [15:21:46]requested_item shift.open_date is exist - process it [15:21:46]req_shift_open_date [15:21:46]req_shift_open_date done [15:21:46]produce_requested_data done [15:21:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29579,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:21:46]process_action_free close_receipt [15:21:46]json_value_free [15:21:46]json_value_free done [15:21:46]process_json_proto returns [15:21:46]Send response to host [15:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29579,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:21:46]free response buf [15:21:46]execute_script done [15:21:46]execute_script returns [15:21:46]free content buf [15:21:46]Sock 9.Close socket [15:21:46]Sock 9.Thread stoped [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:32]accept exits with 8 [15:23:32]New connection [15:23:32]New thread 3066969444 created [15:23:32]Thread 3067112804 joined [15:23:32]Waiting for new connection... [15:23:32] Sock 8.Parse request [15:23:32]Sock 8.Check first char [15:23:32]Sock 8.First char is OK [15:23:32]request: POST /json_proto HTTP/1.0 [15:23:32]Method: POST [15:23:32]URL: /json_proto [15:23:32]Method is POST - this is cgi request [15:23:32]url: /json_proto [15:23:32]query_string will be loaded in cgi processing [15:23:32]execute_cgi json_proto POST (null) [15:23:32]execute_cgi path=json_proto method=POST [15:23:32]POST find Content-Length [15:23:32]Host: 172.17.33.3:8080 [15:23:32]Content-Length: 1199 [15:23:32]Content-Type: application/json [15:23:32] [15:23:32]POST finish read [15:23:32]Found Content-Length = 1199 [15:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348013\u000A15.04.2024 15:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A3729145\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]execute_script... [15:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348013\u000A15.04.2024 15:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A3729145\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]POST & json_proto [15:23:32]process_json_proto [15:23:32]json parsed OK: [15:23:32]protocol is kg_v1.0 [15:23:32]action value=print_text [15:23:32]process_action print_text [15:23:32]cmd_print_text [15:23:32]ExternCall_PrintAddStr [15:23:32]wPrintStart [15:23:32]Write to MH i2c: 01 00 00 9E 4E EC [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 9E 4E 00 00 00 00 00 FF 0F 01 [15:23:32]RasterBufferAndPrint [15:23:32]line *****ТОВАРНЫЙ ЧЕК***** [15:23:32]line АЗС 108 [15:23:32]line Партнер нефть [15:23:32]line 02508201610067 [15:23:32]line Кассир : Джумагулова Н. [15:23:32]line Счет N : (1)348013 [15:23:32]line 15.04.2024 15:05 [15:23:32]line ПРОДАЖА [15:23:32]line ТРК (МРК, ГНК): 61 [15:23:32]line Вид ГСМ : 2710194210 [15:23:32]line ДТ-К-5 [15:23:32]line 10.000 x 72.90 [15:23:32]line ИТОГ: 729.00 [15:23:32]line Тип оплаты: Талоны: Партнер нефть [15:23:32]line 3729145 [15:23:32]line ______________________ [15:23:32]line (подпись) [15:23:32]written 0, free lines is 4095 [15:23:32]Write to MH i2c: 01 00 00 B3 4E 01 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 B3 4E 00 00 00 00 00 F5 0D 0A [15:23:32]RasterBufferAndPrint [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]written 0, free lines is 3575 [15:23:32]MH_Cut [15:23:32]Write to MH i2c: D1 01 00 BA 4E 01 DA [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 BA 4E 00 D9 [15:23:32]Write to MH i2c: 01 00 00 BB 4E 09 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:33]*** Cut start [15:23:33]*** Partial cut [15:23:33]*** CUTSNS_PIN = 1 [15:23:33]*** CUTSNS_PIN = 0 [15:23:33]*** Brake cut motor [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]*** Stop cut motor [15:23:33]*** Cut end [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 BB 4E 00 00 00 00 00 FF 0F 1E [15:23:33]process_action print_text done [15:23:33]requested_data is exist [15:23:33]produce_requested_data [15:23:33]requested_item fm.sn is exist - process it [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 BC 4E 80 11 00 00 00 00 00 00 84 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 17 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 17 00 BC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [15:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:23:34]wFMCommunicate OK [15:23:34]requested_item fd.num is exist - process it [15:23:34]SAM_PROTO_GetFieldsCounters [15:23:34]wFMCommunicate request_size=4 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 13 00 00 [15:23:34]Write to MH i2c: E2 08 00 BD 4E 80 13 00 00 00 00 00 00 87 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 62 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 62 00 BD 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 73 00 00 0E 04 04 00 75 00 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 3F [15:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 73 00 00 0E 04 04 00 75 00 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:23:34]wFMCommunicate OK [15:23:34]SAM_PROTO_GetFieldsCounters done [15:23:34]requested_item shift.num is exist - process it [15:23:34]requested_item shift.opened is exist - process it [15:23:34]req_shift_opened [15:23:34]FM_GetShiftState [15:23:34]SAM_PROTO_GetShiftState [15:23:34]wFMCommunicate request_size=4 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 13 01 00 [15:23:34]Write to MH i2c: E2 08 00 BE 4E 80 13 01 00 00 00 00 00 89 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 0E 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 0E 00 BE 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [15:23:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:23:34]wFMCommunicate OK [15:23:34]SAM_PROTO_GetShiftState done [15:23:34]FM_GetShiftState done [15:23:34]req_shift_opened done [15:23:34]requested_item shift.open_date is exist - process it [15:23:34]req_shift_open_date [15:23:34]req_shift_open_date done [15:23:34]produce_requested_data done [15:23:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29579,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:23:34]process_action_free print_text [15:23:34]json_value_free [15:23:34]json_value_free done [15:23:34]process_json_proto returns [15:23:34]Send response to host [15:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29579,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:23:34]free response buf [15:23:34]execute_script done [15:23:34]execute_script returns [15:23:34]free content buf [15:23:34]Sock 8.Close socket [15:23:34]Sock 8.Thread stoped [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:18]accept exits with 9 [15:26:18]New connection [15:26:18]New thread 3067112804 created [15:26:18]Thread 3066969444 joined [15:26:18]Waiting for new connection... [15:26:18] Sock 9.Parse request [15:26:18]Sock 9.Check first char [15:26:18]Sock 9.First char is OK [15:26:18]request: POST /json_proto HTTP/1.0 [15:26:18]Method: POST [15:26:18]URL: /json_proto [15:26:18]Method is POST - this is cgi request [15:26:18]url: /json_proto [15:26:18]query_string will be loaded in cgi processing [15:26:18]execute_cgi json_proto POST (null) [15:26:18]execute_cgi path=json_proto method=POST [15:26:18]POST find Content-Length [15:26:18]Host: 172.17.33.3:8080 [15:26:18]Content-Length: 677 [15:26:18]Content-Type: application/json [15:26:18] [15:26:18]POST finish read [15:26:18]Found Content-Length = 677 [15:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.860, "sum" : 250.13, "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" ] } } [15:26:18]execute_script... [15:26:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.860, "sum" : 250.13, "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" ] } } [15:26:18]POST & json_proto [15:26:18]process_json_proto [15:26:18]json parsed OK: [15:26:18]protocol is kg_v1.0 [15:26:18]action value=close_receipt [15:26:18]process_action close_receipt [15:26:18]cmd_close_receipt [15:26:18]MH_GetDate [15:26:18]Write to MH i2c: F0 00 00 BF 4E FC [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: F0 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: F0 09 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: F0 09 00 BF 4E 00 20 47 1D 66 23 5B 8F 65 61 [15:26:18]GetLastDocTimeStamp 1713194507 [15:26:18]current date 1713194784 [15:26:18]FM_GetShiftState [15:26:18]SAM_PROTO_GetShiftState [15:26:18]wFMCommunicate request_size=4 [15:26:18]MH_SAM_APDU [15:26:18]CAPDU: 80 13 01 00 [15:26:18]Write to MH i2c: E2 08 00 C0 4E 80 13 01 00 00 00 00 00 8B [15:26:18]Write i2c OK [15:26:18]MH_I2C_Read... [15:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:18]Read from MH i2c: E2 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: E2 0E 00 [15:26:18]MH_I2C_Read... [15:26:18]Read from MH i2c: E2 0E 00 C0 4E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7F [15:26:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:26:18]wFMCommunicate OK [15:26:18]SAM_PROTO_GetShiftState done [15:26:18]FM_GetShiftState done [15:26:18]opened in 1713140468 [15:26:18]opened+sec_in_day 1713226868 [15:26:18]quantity*price = 25012 [15:26:18]sum+1 = 25014 [15:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 174 15.04.2024 15:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29580 ФПД: 85330241824229 1/tax-web-control/client/api/v1/ticket?date=20240415T152624&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29580&fm=85330241824229&tin=02508201610067®Number=0000138879044617&sum=25000 [15:26:20]StoreToDocumentArchive [15:26:20]shift 117 fd 29580 [15:26:20]save to /storage/0117/doc_00029580 [15:26:20]save last doc name /storage/0117/doc_00029580 to /storage/kkm_last_doc_name [15:26:20]save OK [15:26:20]Clear old archive folders... [15:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:20]tlvbuf is 001EEF70 [15:26:20]SAM_PROTO_ClearQueue [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 09 00 00 [15:26:20]Write to MH i2c: E2 08 00 CD 4E 80 09 00 00 00 00 00 00 8D [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 CD 4E 00 90 00 8F [15:26:20]RAPDU: 90 00 [15:26:20]wFMCommunicate OK [15:26:20]SAM_PROTO_ClearQueue done [15:26:20]KKMCreateOFDPacket [15:26:20]OFDProtocolAddRootSTLVToBuf [15:26:20]FM_MakeSignedData [15:26:20]FM_MakeSignedData [15:26:20]SAM_PROTO_SignData [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 0D 01 02 [15:26:20]Write to MH i2c: E2 08 00 CE 4E 80 0D 01 02 00 00 00 00 95 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 CE 4E 00 90 00 90 [15:26:20]RAPDU: 90 00 [15:26:20]wFMCommunicate OK [15:26:20]wFMCommunicate request_size=255 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 20 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 73 00 00 35 04 06 00 4D [15:26:20]Write to MH i2c: E2 02 01 CF 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 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 20 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 73 00 00 35 04 06 00 4D 00 00 10 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 CF 4E 00 90 00 91 [15:26:20]RAPDU: 90 00 [15:26:20]wFMCommunicate OK [15:26:20]wFMCommunicate request_size=10 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 0D 02 02 05 9B 7E C0 A5 E5 [15:26:20]Write to MH i2c: E2 0D 00 D0 4E 80 0D 02 02 05 00 9B 7E C0 A5 E5 00 00 05 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 03 00 D0 4E 00 90 00 92 [15:26:20]RAPDU: 90 00 [15:26:20]wFMCommunicate OK [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 0D 03 02 [15:26:20]Write to MH i2c: E2 08 00 D1 4E 80 0D 03 02 00 00 00 00 9A [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0B 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0B 00 D1 4E 00 1A 83 EA 0E D4 13 D5 0E 90 00 FA [15:26:20]RAPDU: 1A 83 EA 0E D4 13 D5 0E 90 00 [15:26:20]wFMCommunicate OK [15:26:20]SAM_PROTO_SignData done [15:26:20]FM_MakeSignedData done [15:26:20]CreateOFDProtocolMessage [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 11 00 00 [15:26:20]Write to MH i2c: E2 08 00 D2 4E 80 11 00 00 00 00 00 00 9A [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 17 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 17 00 D2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [15:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:20]wFMCommunicate OK [15:26:20]CreateOFDProtocolMessage done [15:26:20]OFDSenderStorePacket 29580 [15:26:20]StoreOFDPacket docnum=29580 [15:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F 6C 07 01 E8 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 20 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 73 00 00 35 04 06 00 4D 9B 7E C0 A5 E5 1A 83 EA 0E D4 13 D5 0E [15:26:20]CheckFolder [15:26:20]dirname=/storage/ofd_packets [15:26:20]CheckFolder done [15:26:20]ProducePacketName [15:26:20]name=ofd_packets/00029580 [15:26:20]NVStorageSaveData ofd_packets/00029580 [15:26:20]File name is /storage/ofd_packets/00029580 [15:26:20]Write 301 bytes [15:26:20]NVStorageSaveData done [15:26:20]OFDSenderStorePacket done [15:26:20]KKMCreateOFDPacket done [15:26:20]NVStorageSaveData kkm_last_timestamp [15:26:20]File name is /storage/kkm_last_timestamp [15:26:20]Write 4 bytes [15:26:20]NVStorageSaveData done [15:26:20]ExternCall_PrintAddStr [15:26:20]wPrintStart [15:26:20]Write to MH i2c: 01 00 00 D3 4E 21 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 07 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: 01 07 00 D3 4E 00 00 00 00 00 FF 0F 36 [15:26:20]RasterBufferAndPrint [15:26:20]line Счет N : (1)348015 [15:26:20]line ИНН: 02508201610067 [15:26:20]line Контрольно-Кассовый Чек [15:26:20]line ПРОДАЖА [15:26:20]line ТРК (МРК, ГНК) : 13 [15:26:20]line Товар: 2710124130 [15:26:20]line Аи-92-К-5 [15:26:20]line 3.860 * 64.80 [15:26:20]line = 250.13 [15:26:20]line НДС 12% НСП 1% [15:26:20]line > о реализуемом товаре [15:26:20]line ОКРУГЛЕНИЕ: -0.13 [15:26:20]line ИТОГО: 250.00 [15:26:20]line Внесено: 250.00 [15:26:20]line СДАЧА: 0.00 [15:26:20]line НСП 1% : 2.21 [15:26:20]line НДС 12% : 26.56 [15:26:20]line Наличными: 250.00 [15:26:20]line Безнал.: 0.00 [15:26:20]line Место: АЗС № 108 "Партнер Нефть" [15:26:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:26:20]line СНО: Общий режим [15:26:20]line Чек 174 15.04.2024 15:26 [15:26:20]line Смена: 117 ФФД: 1.0 [15:26:20]line ЗНМ: 0300000027 [15:26:20]line РНМ: 0000138879044617 [15:26:20]line Версия ККМ: 001 [15:26:20]line ФМ: 0000000000963154 [15:26:20]line ФД: 29580 [15:26:20]line ФПД: 85330241824229 [15:26:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T152624&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29580&fm=85330241824229&tin=02508201610067®Number=0000138879044617&sum=25000 [15:26:20]OFD Sender: Processing packet 29580 [packets to send 8, broken 7] [15:26:20]ProducePacketName [15:26:20]name=ofd_packets/00029580 [15:26:20]OFD Sender: To server: pG, [15:26:20]CommunicateWithHost lk.salyk.kg:30040 [15:26:20]ConnectInit lk.salyk.kg [15:26:20]written 0, free lines is 4095 [15:26:21]Connected sock=10 [15:26:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F 6C 07 01 E8 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 20 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 73 00 00 35 04 06 00 4D 9B 7E C0 A5 E5 1A 83 EA 0E D4 13 D5 0E [15:26:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA F5 47 00 38 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 39 36 33 31 35 34 10 04 04 00 8C 73 00 00 F4 03 04 00 C0 F1 1C 66 B6 04 01 00 00 17 D6 BB 80 26 78 99 8E [15:26:21]CommunicateWithHost err = 0 [15:26:21]CheckOFDResponse [15:26:21]1017 (14) - 77093643461234 [15:26:21]1041 (16) - 0000000000963154 [15:26:21]1040 (4) - 29580 [15:26:21]1012 (4) - 15.04.2024 09:22 [15:26:21]1206 (1) - 0 [15:26:21]OFD Sender: Remove packet 29580 [15:26:21]ProducePacketName [15:26:21]name=ofd_packets/00029580 [15:26:21]NVStorageDeleteData [15:26:21]Write to MH i2c: 01 00 00 FD 4E 4B [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 07 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 07 00 FD 4E 00 00 00 00 00 CE 0C 2C [15:26:21]RasterBufferAndPrint [15:26:21]line [15:26:21]line [15:26:21]line [15:26:21]line [15:26:21]line [15:26:21]written 0, free lines is 3286 [15:26:21]MH_Cut [15:26:21]Write to MH i2c: D1 01 00 04 4F 01 25 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: D1 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: D1 01 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: D1 01 00 04 4F 00 24 [15:26:21]Write to MH i2c: 01 00 00 05 4F 54 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]OFD Sender: No OFD packet to send [15:26:22]*** Cut start [15:26:22]*** Partial cut [15:26:22]*** CUTSNS_PIN = 1 [15:26:22]*** CUTSNS_PIN = 0 [15:26:22]*** Brake cut motor [15:26:22]Read from MH i2c: 01 [15:26:22]MH_I2C_Read... [15:26:22]*** Stop cut motor [15:26:22]*** Cut end [15:26:22]Read from MH i2c: 01 07 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: 01 07 00 05 4F 00 00 00 00 00 FF 0F 69 [15:26:22]process_action close_receipt done [15:26:22]requested_data is exist [15:26:22]produce_requested_data [15:26:22]requested_item fm.sn is exist - process it [15:26:22]wFMCommunicate request_size=4 [15:26:22]MH_SAM_APDU [15:26:22]CAPDU: 80 11 00 00 [15:26:22]Write to MH i2c: E2 08 00 06 4F 80 11 00 00 00 00 00 00 CF [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:22]Read from MH i2c: E2 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 17 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: E2 17 00 06 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [15:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:22]wFMCommunicate OK [15:26:22]requested_item fd.num is exist - process it [15:26:22]SAM_PROTO_GetFieldsCounters [15:26:22]wFMCommunicate request_size=4 [15:26:22]MH_SAM_APDU [15:26:22]CAPDU: 80 13 00 00 [15:26:22]Write to MH i2c: E2 08 00 07 4F 80 13 00 00 00 00 00 00 D2 [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:23]Read from MH i2c: E2 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 62 00 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 62 00 07 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 73 00 00 0E 04 04 00 75 00 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 8E [15:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 73 00 00 0E 04 04 00 75 00 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:26:23]wFMCommunicate OK [15:26:23]SAM_PROTO_GetFieldsCounters done [15:26:23]requested_item shift.num is exist - process it [15:26:23]requested_item shift.opened is exist - process it [15:26:23]req_shift_opened [15:26:23]FM_GetShiftState [15:26:23]SAM_PROTO_GetShiftState [15:26:23]wFMCommunicate request_size=4 [15:26:23]MH_SAM_APDU [15:26:23]CAPDU: 80 13 01 00 [15:26:23]Write to MH i2c: E2 08 00 08 4F 80 13 01 00 00 00 00 00 D4 [15:26:23]Write i2c OK [15:26:23]MH_I2C_Read... [15:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:23]Read from MH i2c: E2 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 0E 00 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 0E 00 08 4F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [15:26:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:26:23]wFMCommunicate OK [15:26:23]SAM_PROTO_GetShiftState done [15:26:23]FM_GetShiftState done [15:26:23]req_shift_opened done [15:26:23]requested_item shift.open_date is exist - process it [15:26:23]req_shift_open_date [15:26:23]req_shift_open_date done [15:26:23]produce_requested_data done [15:26:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29580,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:26:23]process_action_free close_receipt [15:26:23]json_value_free [15:26:23]json_value_free done [15:26:23]process_json_proto returns [15:26:23]Send response to host [15:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29580,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:26:23]free response buf [15:26:23]execute_script done [15:26:23]execute_script returns [15:26:23]free content buf [15:26:23]Sock 9.Close socket [15:26:23]Sock 9.Thread stoped [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:32]accept exits with 8 [15:26:32]New connection [15:26:32]New thread 3066969444 created [15:26:32]Thread 3067112804 joined [15:26:32]Waiting for new connection... [15:26:32] Sock 8.Parse request [15:26:32]Sock 8.Check first char [15:26:32]Sock 8.First char is OK [15:26:32]request: POST /json_proto HTTP/1.0 [15:26:32]Method: POST [15:26:32]URL: /json_proto [15:26:32]Method is POST - this is cgi request [15:26:32]url: /json_proto [15:26:32]query_string will be loaded in cgi processing [15:26:32]execute_cgi json_proto POST (null) [15:26:32]execute_cgi path=json_proto method=POST [15:26:32]POST find Content-Length [15:26:32]Host: 172.17.33.3:8080 [15:26:32]Content-Length: 833 [15:26:32]Content-Type: application/json [15:26:32] [15:26:32]POST finish read [15:26:32]Found Content-Length = 833 [15:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.500, "sum" : 625.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 625.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]execute_script... [15:26: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)348014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.500, "sum" : 625.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 625.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]POST & json_proto [15:26:32]process_json_proto [15:26:32]json parsed OK: [15:26:32]protocol is kg_v1.0 [15:26:32]action value=close_receipt [15:26:32]process_action close_receipt [15:26:32]cmd_close_receipt [15:26:32]MH_GetDate [15:26:32]Write to MH i2c: F0 00 00 09 4F 47 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 09 4F 00 2D 47 1D 66 23 5B 8F 65 B9 [15:26:32]GetLastDocTimeStamp 1713194784 [15:26:32]current date 1713194797 [15:26:32]FM_GetShiftState [15:26:32]SAM_PROTO_GetShiftState [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 13 01 00 [15:26:32]Write to MH i2c: E2 08 00 0A 4F 80 13 01 00 00 00 00 00 D6 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 0A 4F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CA [15:26:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:26:32]wFMCommunicate OK [15:26:32]SAM_PROTO_GetShiftState done [15:26:32]FM_GetShiftState done [15:26:32]opened in 1713140468 [15:26:32]opened+sec_in_day 1713226868 [15:26:32]quantity*price = 62510 [15:26:32]sum+1 = 62511 [15:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 625.10 НСП 1% : 5.53 НДС 12% : 66.38 Наличными: 0.00 Безнал.: 625.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 175 15.04.2024 15:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29581 ФПД: 110711076036141 1/tax-web-control/client/api/v1/ticket?date=20240415T152637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29581&fm=110711076036141&tin=02508201610067®Number=0000138879044617&sum=62510 [15:26:33]StoreToDocumentArchive [15:26:33]shift 117 fd 29581 [15:26:33]save to /storage/0117/doc_00029581 [15:26:33]save last doc name /storage/0117/doc_00029581 to /storage/kkm_last_doc_name [15:26:33]save OK [15:26:33]Clear old archive folders... [15:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:26:33]tlvbuf is B6DCF6D0 [15:26:33]SAM_PROTO_ClearQueue [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 09 00 00 [15:26:33]Write to MH i2c: E2 08 00 17 4F 80 09 00 00 00 00 00 00 D8 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 17 4F 00 90 00 DA [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_ClearQueue done [15:26:33]KKMCreateOFDPacket [15:26:33]OFDProtocolAddRootSTLVToBuf [15:26:33]FM_MakeSignedData [15:26:33]FM_MakeSignedData [15:26:33]SAM_PROTO_SignData [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 01 02 [15:26:33]Write to MH i2c: E2 08 00 18 4F 80 0D 01 02 00 00 00 00 E0 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 18 4F 00 90 00 DB [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=255 [15:26:33]MH_SAM_APDU [15:26: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2E F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 73 00 00 35 04 06 00 [15:26:33]Write to MH i2c: E2 02 01 19 4F 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2E F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 73 00 00 35 04 06 00 00 00 72 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 19 4F 00 90 00 DC [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=11 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 02 02 06 64 B0 EE 5C 1E 2D [15:26:33]Write to MH i2c: E2 0E 00 1A 4F 80 0D 02 02 06 00 64 B0 EE 5C 1E 2D 00 00 98 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 1A 4F 00 90 00 DD [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 03 02 [15:26:33]Write to MH i2c: E2 08 00 1B 4F 80 0D 03 02 00 00 00 00 E5 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0B 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0B 00 1B 4F 00 68 1D E9 D2 FC 0A 48 7B 90 00 EF [15:26:33]RAPDU: 68 1D E9 D2 FC 0A 48 7B 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_SignData done [15:26:33]FM_MakeSignedData done [15:26:33]CreateOFDProtocolMessage [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 11 00 00 [15:26:33]Write to MH i2c: E2 08 00 1C 4F 80 11 00 00 00 00 00 00 E5 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 1C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [15:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:33]wFMCommunicate OK [15:26:33]CreateOFDProtocolMessage done [15:26:33]OFDSenderStorePacket 29581 [15:26:33]StoreOFDPacket docnum=29581 [15:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 44 A2 08 01 4D 7A 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2E F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 73 00 00 35 04 06 00 64 B0 EE 5C 1E 2D 68 1D E9 D2 FC 0A 48 7B [15:26:33]CheckFolder [15:26:33]dirname=/storage/ofd_packets [15:26:33]CheckFolder done [15:26:33]ProducePacketName [15:26:33]name=ofd_packets/00029581 [15:26:33]NVStorageSaveData ofd_packets/00029581 [15:26:33]File name is /storage/ofd_packets/00029581 [15:26:33]Write 302 bytes [15:26:33]NVStorageSaveData done [15:26:33]OFDSenderStorePacket done [15:26:33]KKMCreateOFDPacket done [15:26:33]NVStorageSaveData kkm_last_timestamp [15:26:33]File name is /storage/kkm_last_timestamp [15:26:33]Write 4 bytes [15:26:33]NVStorageSaveData done [15:26:33]ExternCall_PrintAddStr [15:26:33]wPrintStart [15:26:33]Write to MH i2c: 01 00 00 1D 4F 6C [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 1D 4F 00 00 00 00 00 FF 0F 81 [15:26:33]RasterBufferAndPrint [15:26:33]line Счет N : (1)348014 [15:26:33]line ИНН: 02508201610067 [15:26:33]line Контрольно-Кассовый Чек [15:26:33]line ПРОДАЖА [15:26:33]line ТРК (МРК, ГНК) : 31 [15:26:33]line Товар: 2710124130 [15:26:33]line SUPER-92-К-5 [15:26:33]line 9.500 * 65.80 [15:26:33]line = 625.10 [15:26:33]line НДС 12% НСП 1% [15:26:33]line > о реализуемом товаре [15:26:33]line ИТОГО: 625.10 [15:26:33]line НСП 1% : 5.53 [15:26:33]line НДС 12% : 66.38 [15:26:33]line Наличными: 0.00 [15:26:33]line Безнал.: 625.10 [15:26:33]line Место: АЗС № 108 "Партнер Нефть" [15:26:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:26:33]line СНО: Общий режим [15:26:33]line Чек 175 15.04.2024 15:26 [15:26:33]line Смена: 117 ФФД: 1.0 [15:26:33]line ЗНМ: 0300000027 [15:26:33]line РНМ: 0000138879044617 [15:26:33]line Версия ККМ: 001 [15:26:33]line Платежная система: АКБ Кыргызстан [15:26:33]line ФМ: 0000000000963154 [15:26:33]line ФД: 29581 [15:26:33]line ФПД: 110711076036141 [15:26:33]line 1/tax-web-control/client/api/v1/ticket?date=20240415T152637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29581&fm=110711076036141&tin=02508201610067®Number=0000138879044617&sum=62510 [15:26:34]OFD Sender: Processing packet 29581 [packets to send 8, broken 7] [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00029581 [15:26:34]OFD Sender: To server: pG, [15:26:34]CommunicateWithHost lk.salyk.kg:30040 [15:26:34]ConnectInit lk.salyk.kg [15:26:34]written 0, free lines is 4095 [15:26:34]Connected sock=10 [15:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 44 A2 08 01 4D 7A 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2E F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 73 00 00 35 04 06 00 64 B0 EE 5C 1E 2D 68 1D E9 D2 FC 0A 48 7B [15:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F0 A0 47 00 34 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 39 36 33 31 35 34 10 04 04 00 8D 73 00 00 F4 03 04 00 CD F1 1C 66 B6 04 01 00 00 99 D3 71 E0 60 04 D4 89 [15:26:34]CommunicateWithHost err = 0 [15:26:34]CheckOFDResponse [15:26:34]1017 (14) - 77093643461234 [15:26:34]1041 (16) - 0000000000963154 [15:26:34]1040 (4) - 29581 [15:26:34]1012 (4) - 15.04.2024 09:22 [15:26:34]1206 (1) - 0 [15:26:34]OFD Sender: Remove packet 29581 [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00029581 [15:26:34]NVStorageDeleteData [15:26:34]Write to MH i2c: 01 00 00 46 4F 95 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 46 4F 00 00 00 00 00 EB 0C 93 [15:26:34]RasterBufferAndPrint [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]written 0, free lines is 3316 [15:26:34]MH_Cut [15:26:34]Write to MH i2c: D1 01 00 4D 4F 01 6E [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 01 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 01 00 4D 4F 00 6D [15:26:34]Write to MH i2c: 01 00 00 4E 4F 9D [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]OFD Sender: No OFD packet to send [15:26:35]*** Cut start [15:26:35]*** Partial cut [15:26:35]*** CUTSNS_PIN = 1 [15:26:35]*** CUTSNS_PIN = 0 [15:26:35]*** Brake cut motor [15:26:36]Read from MH i2c: 01 [15:26:36]MH_I2C_Read... [15:26:36]*** Stop cut motor [15:26:36]*** Cut end [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 4E 4F 00 00 00 00 00 FF 0F B2 [15:26:36]process_action close_receipt done [15:26:36]requested_data is exist [15:26:36]produce_requested_data [15:26:36]requested_item fm.sn is exist - process it [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 11 00 00 [15:26:36]Write to MH i2c: E2 08 00 4F 4F 80 11 00 00 00 00 00 00 18 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 4F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [15:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:26:36]wFMCommunicate OK [15:26:36]requested_item fd.num is exist - process it [15:26:36]SAM_PROTO_GetFieldsCounters [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 00 00 [15:26:36]Write to MH i2c: E2 08 00 50 4F 80 13 00 00 00 00 00 00 1B [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 50 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 73 00 00 0E 04 04 00 75 00 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 DB [15:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 73 00 00 0E 04 04 00 75 00 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:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetFieldsCounters done [15:26:36]requested_item shift.num is exist - process it [15:26:36]requested_item shift.opened is exist - process it [15:26:36]req_shift_opened [15:26:36]FM_GetShiftState [15:26:36]SAM_PROTO_GetShiftState [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 01 00 [15:26:36]Write to MH i2c: E2 08 00 51 4F 80 13 01 00 00 00 00 00 1D [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 51 4F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 11 [15:26:36]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetShiftState done [15:26:36]FM_GetShiftState done [15:26:36]req_shift_opened done [15:26:36]requested_item shift.open_date is exist - process it [15:26:36]req_shift_open_date [15:26:36]req_shift_open_date done [15:26:36]produce_requested_data done [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 89 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725E4 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 9301133+1703893795=1713194928 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8A [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 65 00 64 00 FF FF A7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B0 47 1D 66 23 5B 8F 65 EB [15:28:48]Current date/time: 15.04.2024 15:28 [15:28:48]FM_Init [15:28:48]wFMConnect [15:28:48]MH_SAM_On [15:28:48]Write to MH i2c: E0 00 00 08 00 E7 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_init finished! [15:28:48]*** atr: [15:28:48]*** 0F 3B D5 18 FF 81 91 FE [15:28:48]*** 1F C3 80 73 C8 21 10 0A [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]*** 00 00 00 00 00 00 00 00 [15:28:48]Read from MH i2c: E0 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E0 10 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:28:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:28:48]wFMCommunicate request_size=10 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:28:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:28:48]RAPDU: 90 00 [15:28:48]wFMCommunicate OK [15:28:48]wFMCommunicate request_size=4 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 11 00 00 [15:28:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [15:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:28:48]wFMCommunicate OK [15:28:48]Detected FM SN is 0000000000963154 [15:28:48]Stored FM SN is 0000000000963154 [15:28:48]wFMCommunicate request_size=9 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 16 00 00 04 9D 42 01 00 [15:28:48]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 9D 42 01 00 00 00 72 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:28:48]RAPDU: 90 00 [15:28:48]wFMCommunicate OK [15:28:48]FM PIN OK [15:28:48]wFMCommunicate request_size=8 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 14 04 00 03 02 00 01 [15:28:48]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:28:48]RAPDU: 90 00 [15:28:48]wFMCommunicate OK [15:28:48]wFMCommunicate request_size=13 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:28:48]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:28:48]RAPDU: 90 00 [15:28:48]wFMCommunicate OK [15:28:48]wFMCommunicate request_size=4 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 11 00 00 [15:28:48]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [15:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:28:48]wFMCommunicate OK [15:28:48]DocumentArchiveInit [15:28:48]Start Httpd... [15:28:48]Httpd thread 3067395428 created [15:28:48]Write to MH i2c: 01 00 00 0F 00 0F [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: 01 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: 01 07 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:28:48]MH Int Process started [15:28:48]Allocated Socket 8 [15:28:48]Bind OK [15:28:48]Listen OK [15:28:48]httpd running on port 8080 [15:28:48]Waiting for new connection... [15:28:48]OFD Sender: Processing packet 29582 [packets to send 8, broken 7] [15:28:48]ProducePacketName [15:28:48]name=ofd_packets/00029582 [15:28:48]OFD Sender: To server: pG, [15:28:48]CommunicateWithHost lk.salyk.kg:30040 [15:28:48]ConnectInit lk.salyk.kg [15:28:48]Connected sock=7 [15:28:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A5 84 04 01 DE 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3B 47 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 73 00 00 35 04 06 00 D9 30 F9 20 6E 8B 25 23 2C FE 32 1D EE 41 [15:28:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 3C 47 00 44 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 73 00 00 F4 03 04 00 4F F2 1C 66 B6 04 01 00 00 15 D1 AD 30 37 44 46 1F [15:28:48]CommunicateWithHost err = 0 [15:28:48]CheckOFDResponse [15:28:48]1017 (14) - 77093643461234 [15:28:48]1041 (16) - 0000000000963154 [15:28:48]1040 (4) - 29582 [15:28:48]1012 (4) - 15.04.2024 09:24 [15:28:48]1206 (1) - 0 [15:28:48]OFD Sender: Remove packet 29582 [15:28:48]ProducePacketName [15:28:48]name=ofd_packets/00029582 [15:28:48]NVStorageDeleteData [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:57]accept exits with 9 [15:28:57]New connection [15:28:57]New thread 3067108708 created [15:28:57]Waiting for new connection... [15:28:57] Sock 9.Parse request [15:28:57]Sock 9.Check first char [15:28:57]Sock 9.First char is OK [15:28:57]request: POST /json_proto HTTP/1.0 [15:28:57]Method: POST [15:28:57]URL: /json_proto [15:28:57]Method is POST - this is cgi request [15:28:57]url: /json_proto [15:28:57]query_string will be loaded in cgi processing [15:28:57]execute_cgi json_proto POST (null) [15:28:57]execute_cgi path=json_proto method=POST [15:28:57]POST find Content-Length [15:28:57]Host: 172.17.33.3:8080 [15:28:57]Content-Length: 215 [15:28:57]Content-Type: application/json [15:28:57] [15:28:57]POST finish read [15:28:57]Found Content-Length = 215 [15:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:57]execute_script... [15:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:57]POST & json_proto [15:28:57]process_json_proto [15:28:57]json parsed OK: [15:28:57]protocol is kg_v1.0 [15:28:57]action value=get_value [15:28:57]process_action get_value [15:28:57]cmd_get_value [15:28:57]process_action get_value done [15:28:57]requested_data is exist [15:28:57]produce_requested_data [15:28:57]requested_item kkm.sn is exist - process it [15:28:57]requested_item kkm.ver is exist - process it [15:28:57]requested_item fm.sn is exist - process it [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 11 00 00 [15:28:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:57]Read from MH i2c: E2 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 17 00 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [15:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:28:57]wFMCommunicate OK [15:28:57]requested_item fd.num is exist - process it [15:28:57]SAM_PROTO_GetFieldsCounters [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 13 00 00 [15:28:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:57]Read from MH i2c: E2 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 62 00 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 73 00 00 0E 04 04 00 75 00 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 51 [15:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 73 00 00 0E 04 04 00 75 00 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:57]wFMCommunicate OK [15:28:57]SAM_PROTO_GetFieldsCounters done [15:28:57]requested_item shift.num is exist - process it [15:28:57]requested_item shift.opened is exist - process it [15:28:57]req_shift_opened [15:28:57]FM_GetShiftState [15:28:57]SAM_PROTO_GetShiftState [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 13 01 00 [15:28:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:57]Read from MH i2c: E2 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 0E 00 [15:28:57]MH_I2C_Read... [15:28:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 83 [15:28:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:28:57]wFMCommunicate OK [15:28:57]SAM_PROTO_GetShiftState done [15:28:57]FM_GetShiftState done [15:28:57]req_shift_opened done [15:28:57]requested_item shift.open_date is exist - process it [15:28:57]req_shift_open_date [15:28:57]req_shift_open_date done [15:28:57]produce_requested_data done [15:28:57]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29582,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:28:57]process_action_free get_value [15:28:57]json_value_free [15:28:57]json_value_free done [15:28:57]process_json_proto returns [15:28:57]Send response to host [15:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29582,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:28:57]free response buf [15:28:57]execute_script done [15:28:57]execute_script returns [15:28:57]free content buf [15:28:57]Sock 9.Close socket [15:28:57]Sock 9.Thread stoped [15:28:57]accept exits with 7 [15:28:57]New connection [15:28:57]New thread 3066965348 created [15:28:57]Thread 3067108708 joined [15:28:57]Waiting for new connection... [15:28:57] Sock 7.Parse request [15:28:57]Sock 7.Check first char [15:28:57]Sock 7.First char is OK [15:28:57]request: POST /json_proto HTTP/1.0 [15:28:57]Method: POST [15:28:57]URL: /json_proto [15:28:57]Method is POST - this is cgi request [15:28:57]url: /json_proto [15:28:57]query_string will be loaded in cgi processing [15:28:57]execute_cgi json_proto POST (null) [15:28:57]execute_cgi path=json_proto method=POST [15:28:57]POST find Content-Length [15:28:57]Host: 172.17.33.3:8080 [15:28:57]Content-Length: 331 [15:28:57]Content-Type: application/json [15:28:57] [15:28:57]POST finish read [15:28:57]Found Content-Length = 331 [15:28:57]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" ] } } [15:28:57]execute_script... [15:28:57]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" ] } } [15:28:57]POST & json_proto [15:28:57]process_json_proto [15:28:57]json parsed OK: [15:28:57]protocol is kg_v1.0 [15:28:57]action value=get_value [15:28:57]process_action get_value [15:28:57]cmd_get_value [15:28:57]process_action get_value done [15:28:57]requested_data is exist [15:28:57]produce_requested_data [15:28:57]requested_item fm.sale.total is exist - process it [15:28:57]SAM_PROTO_GetFMData [15:28:57]wFMCommunicate request_size=4 [15:28:57]MH_SAM_APDU [15:28:57]CAPDU: 80 13 03 00 [15:28:57]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:28:57]Write i2c OK [15:28:57]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 A4 72 00 00 69 04 A1 00 6F 04 04 00 3A 6F 00 00 B1 04 04 00 14 97 3E B5 70 04 04 00 D0 1F 51 73 72 04 04 00 44 77 ED 41 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 91 40 40 13 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 EB A6 9A 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 9C 00 6F 04 04 00 6A 03 00 00 B1 04 04 00 44 04 00 0D 70 04 04 00 44 04 00 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 74 61 01 EF 03 09 00 F6 90 00 BD [15:28:58]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 A4 72 00 00 69 04 A1 00 6F 04 04 00 3A 6F 00 00 B1 04 04 00 14 97 3E B5 70 04 04 00 D0 1F 51 73 72 04 04 00 44 77 ED 41 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 91 40 40 13 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 EB A6 9A 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 9C 00 6F 04 04 00 6A 03 00 00 B1 04 04 00 44 04 00 0D 70 04 04 00 44 04 00 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 74 61 01 EF 03 09 00 F6 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 17 00 00 [15:28:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 73 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DC [15:28:58]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 73 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 17 00 00 [15:28:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [15:28:58]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 17 00 00 [15:28:58]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:28:58]Read from MH i2c: E2 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 [15:28:58]MH_I2C_Read... [15:28:58]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [15:28:58]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:28:58]wFMCommunicate OK [15:28:58]wFMCommunicate request_size=4 [15:28:58]MH_SAM_APDU [15:28:58]CAPDU: 80 17 00 00 [15:28:58]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:28:58]Write i2c OK [15:28:58]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 E0 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [15:28:59]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:28:59]wFMCommunicate OK [15:28:59]SAM_PROTO_GetFMData done [15:28:59]requested_item fm.sale_refund.total is exist - process it [15:28:59]requested_item fm.buy.total is exist - process it [15:28:59]requested_item shift.sale.total is exist - process it [15:28:59]SAM_PROTO_GetShiftData [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 13 02 00 [15:28:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:28:59]OFD Sender: No OFD packet to send [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 FD 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 B0 00 00 00 69 04 9D 00 6F 04 04 00 AD 00 00 00 B1 04 04 00 C8 82 20 01 70 04 03 00 AC 08 9B 72 04 03 00 1C 7A 85 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 DC A4 1E 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 BB 8D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 33 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8C [15:28:59]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 B0 00 00 00 69 04 9D 00 6F 04 04 00 AD 00 00 00 B1 04 04 00 C8 82 20 01 70 04 03 00 AC 08 9B 72 04 03 00 1C 7A 85 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 DC A4 1E 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 BB 8D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 33 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:28:59]wFMCommunicate OK [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 17 00 00 [15:28:59]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:28:59]Read from MH i2c: E2 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 FD 00 [15:28:59]MH_I2C_Read... [15:28:59]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 5A [15:28:59]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:28:59]wFMCommunicate OK [15:28:59]wFMCommunicate request_size=4 [15:28:59]MH_SAM_APDU [15:28:59]CAPDU: 80 17 00 00 [15:28:59]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:28:59]Write i2c OK [15:28:59]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 FD 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C6 [15:29:00]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 17 00 00 [15:29:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 FD 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 13 [15:29:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:29:00]wFMCommunicate OK [15:29:00]wFMCommunicate request_size=4 [15:29:00]MH_SAM_APDU [15:29:00]CAPDU: 80 17 00 00 [15:29:00]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:29:00]Read from MH i2c: E2 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 D7 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [15:29:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:29:00]wFMCommunicate OK [15:29:00]SAM_PROTO_GetShiftData done [15:29:00]requested_item shift.sale.total_cash is exist - process it [15:29:00]requested_item shift.sale_refund.total is exist - process it [15:29:00]requested_item shift.sale_refund.total_cash is exist - process it [15:29:00]requested_item shift.buy.total is exist - process it [15:29:00]requested_item shift.buy.total_cash is exist - process it [15:29:00]produce_requested_data done [15:29:00]produce_requested_data return {"fm.sale.total":30407780.04,"fm.sale_refund.total":2181049.00,"fm.buy.total":0.00,"shift.sale.total":189078.48,"shift.sale.total_cash":101603.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:29:00]process_action_free get_value [15:29:00]json_value_free [15:29:00]json_value_free done [15:29:00]process_json_proto returns [15:29:00]Send response to host [15:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30407780.04,"fm.sale_refund.total":2181049.00,"fm.buy.total":0.00,"shift.sale.total":189078.48,"shift.sale.total_cash":101603.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:29:00]free response buf [15:29:00]execute_script done [15:29:00]execute_script returns [15:29:00]free content buf [15:29:00]Sock 7.Close socket [15:29:00]Sock 7.Thread stoped [15:29:00]accept exits with 9 [15:29:00]New connection [15:29:00]New thread 3067108708 created [15:29:00]Thread 3066965348 joined [15:29:00]Waiting for new connection... [15:29:00] Sock 9.Parse request [15:29:00]Sock 9.Check first char [15:29:00]Sock 9.First char is OK [15:29:00]request: POST /json_proto HTTP/1.0 [15:29:00]Method: POST [15:29:00]URL: /json_proto [15:29:00]Method is POST - this is cgi request [15:29:00]url: /json_proto [15:29:00]query_string will be loaded in cgi processing [15:29:00]execute_cgi json_proto POST (null) [15:29:00]execute_cgi path=json_proto method=POST [15:29:00]POST find Content-Length [15:29:00]Host: 172.17.33.3:8080 [15:29:00]Content-Length: 144 [15:29:00]Content-Type: application/json [15:29:00] [15:29:00]POST finish read [15:29:00]Found Content-Length = 144 [15:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:29:00]execute_script... [15:29:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:29:00]POST & json_proto [15:29:00]process_json_proto [15:29:00]json parsed OK: [15:29:00]protocol is kg_v1.0 [15:29:00]action value=print_doc [15:29:00]process_action print_doc [15:29:00]ExternCall_PrintAddStr [15:29:00]wPrintStart [15:29:00]Write to MH i2c: 01 00 00 1D 00 1D [15:29:00]Write i2c OK [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 07 00 [15:29:00]MH_I2C_Read... [15:29:00]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [15:29:00]RasterBufferAndPrint [15:29:00]line Счет N : (1)348016 [15:29:00]line ИНН: 02508201610067 [15:29:00]line Контрольно-Кассовый Чек [15:29:00]line ПРОДАЖА [15:29:00]line ТРК (МРК, ГНК) : 51 [15:29:00]line Товар: 2710194210 [15:29:00]line ДТ-К-5 [15:29:00]line 13.720 * 72.90 [15:29:00]line = 1000.19 [15:29:00]line НДС 12% НСП 1% [15:29:00]line > о реализуемом товаре [15:29:00]line ОКРУГЛЕНИЕ: -0.19 [15:29:00]line ИТОГО: 1000.00 [15:29:00]line Внесено: 1000.00 [15:29:00]line СДАЧА: 0.00 [15:29:00]line НСП 1% : 8.85 [15:29:00]line НДС 12% : 106.21 [15:29:00]line Наличными: 1000.00 [15:29:00]line Безнал.: 0.00 [15:29:00]line Место: АЗС № 108 "Партнер Нефть" [15:29:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:29:00]line СНО: Общий режим [15:29:00]line Чек 176 15.04.2024 15:26 [15:29:00]line Смена: 117 ФФД: 1.0 [15:29:00]line ЗНМ: 0300000027 [15:29:00]line РНМ: 0000138879044617 [15:29:00]line Версия ККМ: 001 [15:29:00]line ФМ: 0000000000963154 [15:29:00]line ФД: 29582 [15:29:00]line ФПД: 238804361309835 [15:29:00]line 1/tax-web-control/client/api/v1/ticket?date=20240415T152651&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29582&fm=238804361309835&tin=02508201610067®Number=0000138879044617&sum=100000 [15:29:00]written 0, free lines is 4095 [15:29:01]Write to MH i2c: 01 00 00 47 00 47 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 D2 0C 2C [15:29:01]RasterBufferAndPrint [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]line [15:29:01]written 0, free lines is 3295 [15:29:01]MH_Cut [15:29:01]Write to MH i2c: D1 01 00 4E 00 01 20 [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 01 00 [15:29:01]MH_I2C_Read... [15:29:01]Read from MH i2c: D1 01 00 4E 00 00 1F [15:29:01]Write to MH i2c: 01 00 00 4F 00 4F [15:29:01]Write i2c OK [15:29:01]MH_I2C_Read... [15:29:02]*** Cut start [15:29:02]*** Partial cut [15:29:02]*** CUTSNS_PIN = 1 [15:29:02]*** CUTSNS_PIN = 0 [15:29:02]*** Brake cut motor [15:29:02]Read from MH i2c: 01 [15:29:02]MH_I2C_Read... [15:29:02]*** Stop cut motor [15:29:02]*** Cut end [15:29:02]Read from MH i2c: 01 07 00 [15:29:02]MH_I2C_Read... [15:29:02]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [15:29:02]process_action print_doc done [15:29:02]requested_data is exist [15:29:02]produce_requested_data [15:29:02]produce_requested_data return (null) [15:29:02]process_action_free print_doc [15:29:02]json_value_free [15:29:02]json_value_free done [15:29:02]process_json_proto returns [15:29:02]Send response to host [15:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:29:02]free response buf [15:29:02]execute_script done [15:29:02]execute_script returns [15:29:02]free content buf [15:29:02]Sock 9.Close socket [15:29:02]Sock 9.Thread stoped [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:11]accept exits with 7 [15:32:11]New connection [15:32:11]New thread 3066965348 created [15:32:11]Thread 3067108708 joined [15:32:11]Waiting for new connection... [15:32:11] Sock 7.Parse request [15:32:11]Sock 7.Check first char [15:32:11]Sock 7.First char is OK [15:32:11]request: POST /json_proto HTTP/1.0 [15:32:11]Method: POST [15:32:11]URL: /json_proto [15:32:11]Method is POST - this is cgi request [15:32:11]url: /json_proto [15:32:11]query_string will be loaded in cgi processing [15:32:11]execute_cgi json_proto POST (null) [15:32:11]execute_cgi path=json_proto method=POST [15:32:11]POST find Content-Length [15:32:11]Host: 172.17.33.3:8080 [15:32:11]Content-Length: 1175 [15:32:11]Content-Type: application/json [15:32:11] [15:32:11]POST finish read [15:32:11]Found Content-Length = 1175 [15:32: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348017\u000A15.04.2024 15:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 53.350 x 64.80\u000A\u0418\u0422\u041E\u0413: 3457.08\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069894\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:11]execute_script... [15:32: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348017\u000A15.04.2024 15:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 53.350 x 64.80\u000A\u0418\u0422\u041E\u0413: 3457.08\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069894\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:11]POST & json_proto [15:32:11]process_json_proto [15:32:11]json parsed OK: [15:32:11]protocol is kg_v1.0 [15:32:11]action value=print_text [15:32:11]process_action print_text [15:32:11]cmd_print_text [15:32:11]ExternCall_PrintAddStr [15:32:11]wPrintStart [15:32:11]Write to MH i2c: 01 00 00 50 00 50 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [15:32:11]RasterBufferAndPrint [15:32:11]line *****ТОВАРНЫЙ ЧЕК***** [15:32:11]line АЗС 108 [15:32:11]line Партнер нефть [15:32:11]line 02508201610067 [15:32:11]line Кассир : Джумагулова Н. [15:32:11]line Счет N : (1)348017 [15:32:11]line 15.04.2024 15:13 [15:32:11]line ПРОДАЖА [15:32:11]line ТРК (МРК, ГНК): 13 [15:32:11]line Вид ГСМ : 2710124130 [15:32:11]line Аи-92-К-5 [15:32:11]line 53.350 x 64.80 [15:32:11]line ИТОГ: 3457.08 [15:32:11]line Тип оплаты: Талоны: ТК ГПНА Online [15:32:11]line 30069894 [15:32:11]line ______________________ [15:32:11]line (подпись) [15:32:11]written 0, free lines is 4095 [15:32:11]Write to MH i2c: 01 00 00 65 00 65 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 F6 0D 6F [15:32:11]RasterBufferAndPrint [15:32:11]line [15:32:11]line [15:32:11]line [15:32:11]line [15:32:11]line [15:32:11]written 0, free lines is 3576 [15:32:11]MH_Cut [15:32:11]Write to MH i2c: D1 01 00 6C 00 01 3E [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: D1 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: D1 01 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: D1 01 00 6C 00 00 3D [15:32:11]Write to MH i2c: 01 00 00 6D 00 6D [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:12]*** Cut start [15:32:12]*** Partial cut [15:32:12]*** CUTSNS_PIN = 1 [15:32:12]*** CUTSNS_PIN = 0 [15:32:12]*** Brake cut motor [15:32:12]Read from MH i2c: 01 [15:32:12]MH_I2C_Read... [15:32:12]*** Stop cut motor [15:32:12]*** Cut end [15:32:12]Read from MH i2c: 01 07 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [15:32:12]process_action print_text done [15:32:12]requested_data is exist [15:32:12]produce_requested_data [15:32:12]requested_item fm.sn is exist - process it [15:32:12]wFMCommunicate request_size=4 [15:32:12]MH_SAM_APDU [15:32:12]CAPDU: 80 11 00 00 [15:32:12]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:12]Read from MH i2c: E2 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 17 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [15:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:32:12]wFMCommunicate OK [15:32:12]requested_item fd.num is exist - process it [15:32:12]SAM_PROTO_GetFieldsCounters [15:32:12]wFMCommunicate request_size=4 [15:32:12]MH_SAM_APDU [15:32:12]CAPDU: 80 13 00 00 [15:32:12]Write to MH i2c: E2 08 00 6F 00 80 13 00 00 00 00 00 00 EB [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:12]Read from MH i2c: E2 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 62 00 [15:32:12]MH_I2C_Read... [15:32:12]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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 73 00 00 0E 04 04 00 75 00 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 AF [15:32:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:12]wFMCommunicate OK [15:32:12]SAM_PROTO_GetFieldsCounters done [15:32:12]requested_item shift.num is exist - process it [15:32:12]requested_item shift.opened is exist - process it [15:32:12]req_shift_opened [15:32:12]FM_GetShiftState [15:32:12]SAM_PROTO_GetShiftState [15:32:12]wFMCommunicate request_size=4 [15:32:12]MH_SAM_APDU [15:32:12]CAPDU: 80 13 01 00 [15:32:12]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:12]Read from MH i2c: E2 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 0E 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [15:32:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:32:12]wFMCommunicate OK [15:32:12]SAM_PROTO_GetShiftState done [15:32:12]FM_GetShiftState done [15:32:12]req_shift_opened done [15:32:12]requested_item shift.open_date is exist - process it [15:32:12]req_shift_open_date [15:32:12]req_shift_open_date done [15:32:12]produce_requested_data done [15:32:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29582,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:32:12]process_action_free print_text [15:32:12]json_value_free [15:32:12]json_value_free done [15:32:12]process_json_proto returns [15:32:12]Send response to host [15:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29582,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:32:12]free response buf [15:32:12]execute_script done [15:32:12]execute_script returns [15:32:12]free content buf [15:32:12]Sock 7.Close socket [15:32:12]Sock 7.Thread stoped [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]accept exits with 10 [15:38:24]New connection [15:38:24]New thread 3067108708 created [15:38:24]Thread 3066965348 joined [15:38:24]Waiting for new connection... [15:38:24] Sock 10.Parse request [15:38:24]Sock 10.Check first char [15:38:24]Sock 10.First char is OK [15:38:24]request: POST /json_proto HTTP/1.0 [15:38:24]Method: POST [15:38:24]URL: /json_proto [15:38:24]Method is POST - this is cgi request [15:38:24]url: /json_proto [15:38:24]query_string will be loaded in cgi processing [15:38:24]execute_cgi json_proto POST (null) [15:38:24]execute_cgi path=json_proto method=POST [15:38:24]POST find Content-Length [15:38:24]Host: 172.17.33.3:8080 [15:38:24]Content-Length: 682 [15:38:24]Content-Type: application/json [15:38:24] [15:38:24]POST finish read [15:38:24]Found Content-Length = 682 [15:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:38:24]execute_script... [15:38:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:38:24]POST & json_proto [15:38:24]process_json_proto [15:38:24]json parsed OK: [15:38:24]protocol is kg_v1.0 [15:38:24]action value=close_receipt [15:38:24]process_action close_receipt [15:38:24]cmd_close_receipt [15:38:24]MH_GetDate [15:38:24]Write to MH i2c: F0 00 00 71 00 60 [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 09 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: F0 09 00 71 00 00 F1 49 1D 66 23 5B 8F 65 98 [15:38:24]GetLastDocTimeStamp 1713194811 [15:38:24]current date 1713195505 [15:38:24]FM_GetShiftState [15:38:24]SAM_PROTO_GetShiftState [15:38:24]wFMCommunicate request_size=4 [15:38:24]MH_SAM_APDU [15:38:24]CAPDU: 80 13 01 00 [15:38:24]Write to MH i2c: E2 08 00 72 00 80 13 01 00 00 00 00 00 EF [15:38:24]Write i2c OK [15:38:24]MH_I2C_Read... [15:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:24]Read from MH i2c: E2 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0E 00 [15:38:24]MH_I2C_Read... [15:38:24]Read from MH i2c: E2 0E 00 72 00 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E3 [15:38:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:38:24]wFMCommunicate OK [15:38:24]SAM_PROTO_GetShiftState done [15:38:24]FM_GetShiftState done [15:38:24]opened in 1713140468 [15:38:24]opened+sec_in_day 1713226868 [15:38:24]quantity*price = 100018 [15:38:24]sum+1 = 100020 [15:38:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 177 15.04.2024 15:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29583 ФПД: 14872408137375 1/tax-web-control/client/api/v1/ticket?date=20240415T153825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29583&fm=14872408137375&tin=02508201610067®Number=0000138879044617&sum=100000 [15:38:25]StoreToDocumentArchive [15:38:25]shift 117 fd 29583 [15:38:25]save to /storage/0117/doc_00029583 [15:38:25]save last doc name /storage/0117/doc_00029583 to /storage/kkm_last_doc_name [15:38:25]save OK [15:38:25]Clear old archive folders... [15:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:25]tlvbuf is 01A21380 [15:38:25]SAM_PROTO_ClearQueue [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 09 00 00 [15:38:25]Write to MH i2c: E2 08 00 7F 00 80 09 00 00 00 00 00 00 F1 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_ClearQueue done [15:38:25]KKMCreateOFDPacket [15:38:25]OFDProtocolAddRootSTLVToBuf [15:38:25]FM_MakeSignedData [15:38:25]FM_MakeSignedData [15:38:25]SAM_PROTO_SignData [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 01 02 [15:38:25]Write to MH i2c: E2 08 00 80 00 80 0D 01 02 00 00 00 00 F9 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]wFMCommunicate request_size=255 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F1 49 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 73 00 00 35 04 06 00 0D [15:38:25]Write to MH i2c: E2 02 01 81 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F1 49 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 73 00 00 35 04 06 00 0D 00 00 1F [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]wFMCommunicate request_size=10 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 02 02 05 86 C0 9A 9E 9F [15:38:25]Write to MH i2c: E2 0D 00 82 00 80 0D 02 02 05 00 86 C0 9A 9E 9F 00 00 23 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [15:38:25]RAPDU: 90 00 [15:38:25]wFMCommunicate OK [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 0D 03 02 [15:38:25]Write to MH i2c: E2 08 00 83 00 80 0D 03 02 00 00 00 00 FE [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0B 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0B 00 83 00 00 DA 61 17 AB 2B CE E6 84 90 00 5F [15:38:25]RAPDU: DA 61 17 AB 2B CE E6 84 90 00 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_SignData done [15:38:25]FM_MakeSignedData done [15:38:25]CreateOFDProtocolMessage [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 11 00 00 [15:38:25]Write to MH i2c: E2 08 00 84 00 80 11 00 00 00 00 00 00 FE [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 17 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 17 00 84 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [15:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:38:25]wFMCommunicate OK [15:38:25]CreateOFDProtocolMessage done [15:38:25]OFDSenderStorePacket 29583 [15:38:25]StoreOFDPacket docnum=29583 [15:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 24 05 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F1 49 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 73 00 00 35 04 06 00 0D 86 C0 9A 9E 9F DA 61 17 AB 2B CE E6 84 [15:38:25]CheckFolder [15:38:25]dirname=/storage/ofd_packets [15:38:25]CheckFolder done [15:38:25]ProducePacketName [15:38:25]name=ofd_packets/00029583 [15:38:25]NVStorageSaveData ofd_packets/00029583 [15:38:25]File name is /storage/ofd_packets/00029583 [15:38:25]Write 301 bytes [15:38:25]NVStorageSaveData done [15:38:25]OFDSenderStorePacket done [15:38:25]KKMCreateOFDPacket done [15:38:25]NVStorageSaveData kkm_last_timestamp [15:38:25]File name is /storage/kkm_last_timestamp [15:38:25]Write 4 bytes [15:38:25]NVStorageSaveData done [15:38:25]ExternCall_PrintAddStr [15:38:25]wPrintStart [15:38:25]Write to MH i2c: 01 00 00 85 00 85 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 85 00 00 00 00 00 00 FF 0F 9A [15:38:26]RasterBufferAndPrint [15:38:26]line Счет N : (1)348018 [15:38:26]line ИНН: 02508201610067 [15:38:26]line Контрольно-Кассовый Чек [15:38:26]line ПРОДАЖА [15:38:26]line ТРК (МРК, ГНК) : 33 [15:38:26]line Товар: 2710124500 [15:38:26]line Аи-95-К-5 [15:38:26]line 13.720 * 72.90 [15:38:26]line = 1000.19 [15:38:26]line НДС 12% НСП 1% [15:38:26]line > о реализуемом товаре [15:38:26]line ОКРУГЛЕНИЕ: -0.19 [15:38:26]line ИТОГО: 1000.00 [15:38:26]line Внесено: 1000.00 [15:38:26]line СДАЧА: 0.00 [15:38:26]line НСП 1% : 8.85 [15:38:26]line НДС 12% : 106.21 [15:38:26]line Наличными: 1000.00 [15:38:26]line Безнал.: 0.00 [15:38:26]line Место: АЗС № 108 "Партнер Нефть" [15:38:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:38:26]line СНО: Общий режим [15:38:26]line Чек 177 15.04.2024 15:38 [15:38:26]line Смена: 117 ФФД: 1.0 [15:38:26]line ЗНМ: 0300000027 [15:38:26]line РНМ: 0000138879044617 [15:38:26]line Версия ККМ: 001 [15:38:26]line ФМ: 0000000000963154 [15:38:26]line ФД: 29583 [15:38:26]line ФПД: 14872408137375 [15:38:26]line 1/tax-web-control/client/api/v1/ticket?date=20240415T153825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29583&fm=14872408137375&tin=02508201610067®Number=0000138879044617&sum=100000 [15:38:26]OFD Sender: Processing packet 29583 [packets to send 8, broken 7] [15:38:26]ProducePacketName [15:38:26]name=ofd_packets/00029583 [15:38:26]OFD Sender: To server: pG, [15:38:26]CommunicateWithHost lk.salyk.kg:30040 [15:38:26]ConnectInit lk.salyk.kg [15:38:26]written 0, free lines is 4095 [15:38:26]Connected sock=9 [15:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 24 05 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F1 49 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 73 00 00 35 04 06 00 0D 86 C0 9A 9E 9F DA 61 17 AB 2B CE E6 84 [15:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 DF 47 00 8E 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 39 36 33 31 35 34 10 04 04 00 8F 73 00 00 F4 03 04 00 91 F4 1C 66 B6 04 01 00 00 08 BA 23 A2 67 72 0C 95 [15:38:26]CommunicateWithHost err = 0 [15:38:26]CheckOFDResponse [15:38:26]1017 (14) - 77093643461234 [15:38:26]1041 (16) - 0000000000963154 [15:38:26]1040 (4) - 29583 [15:38:26]1012 (4) - 15.04.2024 09:34 [15:38:26]1206 (1) - 0 [15:38:26]OFD Sender: Remove packet 29583 [15:38:26]ProducePacketName [15:38:26]name=ofd_packets/00029583 [15:38:26]NVStorageDeleteData [15:38:26]Write to MH i2c: 01 00 00 AF 00 AF [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 D9 0C 9B [15:38:26]RasterBufferAndPrint [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]line [15:38:26]written 0, free lines is 3296 [15:38:26]MH_Cut [15:38:26]Write to MH i2c: D1 01 00 B6 00 01 88 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 01 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: D1 01 00 B6 00 00 87 [15:38:26]Write to MH i2c: 01 00 00 B7 00 B7 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:27]OFD Sender: No OFD packet to send [15:38:27]*** Cut start [15:38:27]*** Partial cut [15:38:27]*** CUTSNS_PIN = 1 [15:38:27]*** CUTSNS_PIN = 0 [15:38:27]*** Brake cut motor [15:38:28]Read from MH i2c: 01 [15:38:28]MH_I2C_Read... [15:38:28]*** Stop cut motor [15:38:28]*** Cut end [15:38:28]Read from MH i2c: 01 07 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [15:38:28]process_action close_receipt done [15:38:28]requested_data is exist [15:38:28]produce_requested_data [15:38:28]requested_item fm.sn is exist - process it [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 11 00 00 [15:38:28]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [15:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:38:28]wFMCommunicate OK [15:38:28]requested_item fd.num is exist - process it [15:38:28]SAM_PROTO_GetFieldsCounters [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 00 00 [15:38:28]Write to MH i2c: E2 08 00 B9 00 80 13 00 00 00 00 00 00 35 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 62 00 B9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 73 00 00 0E 04 04 00 75 00 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 FD [15:38:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetFieldsCounters done [15:38:28]requested_item shift.num is exist - process it [15:38:28]requested_item shift.opened is exist - process it [15:38:28]req_shift_opened [15:38:28]FM_GetShiftState [15:38:28]SAM_PROTO_GetShiftState [15:38:28]wFMCommunicate request_size=4 [15:38:28]MH_SAM_APDU [15:38:28]CAPDU: 80 13 01 00 [15:38:28]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [15:38:28]Write i2c OK [15:38:28]MH_I2C_Read... [15:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:28]Read from MH i2c: E2 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 [15:38:28]MH_I2C_Read... [15:38:28]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2B [15:38:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:38:28]wFMCommunicate OK [15:38:28]SAM_PROTO_GetShiftState done [15:38:28]FM_GetShiftState done [15:38:28]req_shift_opened done [15:38:28]requested_item shift.open_date is exist - process it [15:38:28]req_shift_open_date [15:38:28]req_shift_open_date done [15:38:28]produce_requested_data done [15:38:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29583,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:38:28]process_action_free close_receipt [15:38:28]json_value_free [15:38:28]json_value_free done [15:38:28]process_json_proto returns [15:38:28]Send response to host [15:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29583,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:38:28]free response buf [15:38:28]execute_script done [15:38:28]execute_script returns [15:38:28]free content buf [15:38:28]Sock 10.Close socket [15:38:28]Sock 10.Thread stoped [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:51]accept exits with 7 [15:41:51]New connection [15:41:51]New thread 3066965348 created [15:41:51]Thread 3067108708 joined [15:41:51]Waiting for new connection... [15:41:51] Sock 7.Parse request [15:41:51]Sock 7.Check first char [15:41:51]Sock 7.First char is OK [15:41:51]request: POST /json_proto HTTP/1.0 [15:41:51]Method: POST [15:41:51]URL: /json_proto [15:41:51]Method is POST - this is cgi request [15:41:51]url: /json_proto [15:41:51]query_string will be loaded in cgi processing [15:41:51]execute_cgi json_proto POST (null) [15:41:51]execute_cgi path=json_proto method=POST [15:41:51]POST find Content-Length [15:41:51]Host: 172.17.33.3:8080 [15:41:51]Content-Length: 678 [15:41:51]Content-Type: application/json [15:41:51] [15:41:51]POST finish read [15:41:51]Found Content-Length = 678 [15:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 11.120, "sum" : 720.58, "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" ] } } [15:41:51]execute_script... [15:41: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)348019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 11.120, "sum" : 720.58, "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" ] } } [15:41:51]POST & json_proto [15:41:51]process_json_proto [15:41:51]json parsed OK: [15:41:51]protocol is kg_v1.0 [15:41:51]action value=close_receipt [15:41:51]process_action close_receipt [15:41:51]cmd_close_receipt [15:41:51]MH_GetDate [15:41:51]Write to MH i2c: F0 00 00 BB 00 AA [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: F0 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: F0 09 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: F0 09 00 BB 00 00 C0 4A 1D 66 23 5B 8F 65 B2 [15:41:51]GetLastDocTimeStamp 1713195505 [15:41:51]current date 1713195712 [15:41:51]FM_GetShiftState [15:41:51]SAM_PROTO_GetShiftState [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 13 01 00 [15:41:51]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0E 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2D [15:41:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:41:51]wFMCommunicate OK [15:41:51]SAM_PROTO_GetShiftState done [15:41:51]FM_GetShiftState done [15:41:51]opened in 1713140468 [15:41:51]opened+sec_in_day 1713226868 [15:41:51]quantity*price = 72057 [15:41:51]sum+1 = 72059 [15:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.52 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 178 15.04.2024 15:41 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29584 ФПД: 200452960458250 1/tax-web-control/client/api/v1/ticket?date=20240415T154152&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29584&fm=200452960458250&tin=02508201610067®Number=0000138879044617&sum=72000 [15:41:52]StoreToDocumentArchive [15:41:52]shift 117 fd 29584 [15:41:52]save to /storage/0117/doc_00029584 [15:41:52]save last doc name /storage/0117/doc_00029584 to /storage/kkm_last_doc_name [15:41:52]save OK [15:41:52]Clear old archive folders... [15:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:52]tlvbuf is 01A19BD0 [15:41:52]SAM_PROTO_ClearQueue [15:41:52]wFMCommunicate request_size=4 [15:41:52]MH_SAM_APDU [15:41:52]CAPDU: 80 09 00 00 [15:41:52]Write to MH i2c: E2 08 00 C9 00 80 09 00 00 00 00 00 00 3B [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:52]Read from MH i2c: E2 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 03 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [15:41:52]RAPDU: 90 00 [15:41:52]wFMCommunicate OK [15:41:52]SAM_PROTO_ClearQueue done [15:41:52]KKMCreateOFDPacket [15:41:52]OFDProtocolAddRootSTLVToBuf [15:41:52]FM_MakeSignedData [15:41:52]FM_MakeSignedData [15:41:52]SAM_PROTO_SignData [15:41:52]wFMCommunicate request_size=4 [15:41:52]MH_SAM_APDU [15:41:52]CAPDU: 80 0D 01 02 [15:41:52]Write to MH i2c: E2 08 00 CA 00 80 0D 01 02 00 00 00 00 43 [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:52]Read from MH i2c: E2 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 03 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [15:41:52]RAPDU: 90 00 [15:41:52]wFMCommunicate OK [15:41:52]wFMCommunicate request_size=255 [15:41:52]MH_SAM_APDU [15:41: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 70 2B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 7A 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 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 B2 00 00 00 F4 03 04 00 C0 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 73 00 00 35 04 06 00 B6 [15:41:52]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 2B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 7A 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 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 B2 00 00 00 F4 03 04 00 C0 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 73 00 00 35 04 06 00 B6 00 00 A4 [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]wFMCommunicate request_size=10 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 02 02 05 4F 97 80 96 0A [15:41:53]Write to MH i2c: E2 0D 00 CC 00 80 0D 02 02 05 00 4F 97 80 96 0A 00 00 56 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 03 02 [15:41:53]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 0B 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 0B 00 CD 00 00 E8 50 6B 92 2B CB F5 92 90 00 FB [15:41:53]RAPDU: E8 50 6B 92 2B CB F5 92 90 00 [15:41:53]wFMCommunicate OK [15:41:53]SAM_PROTO_SignData done [15:41:53]FM_MakeSignedData done [15:41:53]CreateOFDProtocolMessage [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 11 00 00 [15:41:53]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 17 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [15:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:41:53]wFMCommunicate OK [15:41:53]CreateOFDProtocolMessage done [15:41:53]OFDSenderStorePacket 29584 [15:41:53]StoreOFDPacket docnum=29584 [15:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 54 07 01 CE 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 70 2B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 7A 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 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 B2 00 00 00 F4 03 04 00 C0 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 73 00 00 35 04 06 00 B6 4F 97 80 96 0A E8 50 6B 92 2B CB F5 92 [15:41:53]CheckFolder [15:41:53]dirname=/storage/ofd_packets [15:41:53]CheckFolder done [15:41:53]ProducePacketName [15:41:53]name=ofd_packets/00029584 [15:41:53]NVStorageSaveData ofd_packets/00029584 [15:41:53]File name is /storage/ofd_packets/00029584 [15:41:53]Write 301 bytes [15:41:53]NVStorageSaveData done [15:41:53]OFDSenderStorePacket done [15:41:53]KKMCreateOFDPacket done [15:41:53]NVStorageSaveData kkm_last_timestamp [15:41:53]File name is /storage/kkm_last_timestamp [15:41:53]Write 4 bytes [15:41:53]NVStorageSaveData done [15:41:53]ExternCall_PrintAddStr [15:41:53]wPrintStart [15:41:53]Write to MH i2c: 01 00 00 CF 00 CF [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: 01 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: 01 07 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [15:41:53]RasterBufferAndPrint [15:41:53]line Счет N : (1)348019 [15:41:53]line ИНН: 02508201610067 [15:41:53]line Контрольно-Кассовый Чек [15:41:53]line ПРОДАЖА [15:41:53]line ТРК (МРК, ГНК) : 32 [15:41:53]line Товар: 2710124130 [15:41:53]line Аи-92-К-5 [15:41:53]line 11.120 * 64.80 [15:41:53]line = 720.58 [15:41:53]line НДС 12% НСП 1% [15:41:53]line > о реализуемом товаре [15:41:53]line ОКРУГЛЕНИЕ: -0.58 [15:41:53]line ИТОГО: 720.00 [15:41:53]line Внесено: 720.00 [15:41:53]line СДАЧА: 0.00 [15:41:53]line НСП 1% : 6.38 [15:41:53]line НДС 12% : 76.52 [15:41:53]line Наличными: 720.00 [15:41:53]line Безнал.: 0.00 [15:41:53]line Место: АЗС № 108 "Партнер Нефть" [15:41:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:41:53]line СНО: Общий режим [15:41:53]line Чек 178 15.04.2024 15:41 [15:41:53]line Смена: 117 ФФД: 1.0 [15:41:53]line ЗНМ: 0300000027 [15:41:53]line РНМ: 0000138879044617 [15:41:53]line Версия ККМ: 001 [15:41:53]line ФМ: 0000000000963154 [15:41:53]line ФД: 29584 [15:41:53]line ФПД: 200452960458250 [15:41:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T154152&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29584&fm=200452960458250&tin=02508201610067®Number=0000138879044617&sum=72000 [15:41:53]OFD Sender: Processing packet 29584 [packets to send 8, broken 7] [15:41:53]ProducePacketName [15:41:53]name=ofd_packets/00029584 [15:41:53]OFD Sender: To server: pG, [15:41:53]CommunicateWithHost lk.salyk.kg:30040 [15:41:53]ConnectInit lk.salyk.kg [15:41:53]written 0, free lines is 4095 [15:41:53]Connected sock=10 [15:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 54 07 01 CE 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 70 2B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 7A 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 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 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 B2 00 00 00 F4 03 04 00 C0 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 73 00 00 35 04 06 00 B6 4F 97 80 96 0A E8 50 6B 92 2B CB F5 92 [15:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 8F 47 00 94 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 73 00 00 F4 03 04 00 61 F5 1C 66 B6 04 01 00 00 E2 69 0E 37 86 4C B7 9D [15:41:53]CommunicateWithHost err = 0 [15:41:53]CheckOFDResponse [15:41:53]1017 (14) - 77093643461234 [15:41:53]1041 (16) - 0000000000963154 [15:41:53]1040 (4) - 29584 [15:41:53]1012 (4) - 15.04.2024 09:37 [15:41:53]1206 (1) - 0 [15:41:53]OFD Sender: Remove packet 29584 [15:41:53]ProducePacketName [15:41:53]name=ofd_packets/00029584 [15:41:53]NVStorageDeleteData [15:41:54]Write to MH i2c: 01 00 00 F9 00 F9 [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 07 00 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 D3 0C DF [15:41:54]RasterBufferAndPrint [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]written 0, free lines is 3289 [15:41:54]MH_Cut [15:41:54]Write to MH i2c: D1 01 00 00 01 01 D3 [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 01 00 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 01 00 00 01 00 D2 [15:41:54]Write to MH i2c: 01 00 00 01 01 02 [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]OFD Sender: No OFD packet to send [15:41:54]*** Cut start [15:41:54]*** Partial cut [15:41:54]*** CUTSNS_PIN = 1 [15:41:54]*** CUTSNS_PIN = 0 [15:41:55]*** Brake cut motor [15:41:55]Read from MH i2c: 01 [15:41:55]MH_I2C_Read... [15:41:55]*** Stop cut motor [15:41:55]*** Cut end [15:41:55]Read from MH i2c: 01 07 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [15:41:55]process_action close_receipt done [15:41:55]requested_data is exist [15:41:55]produce_requested_data [15:41:55]requested_item fm.sn is exist - process it [15:41:55]wFMCommunicate request_size=4 [15:41:55]MH_SAM_APDU [15:41:55]CAPDU: 80 11 00 00 [15:41:55]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:55]Read from MH i2c: E2 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 17 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [15:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:41:55]wFMCommunicate OK [15:41:55]requested_item fd.num is exist - process it [15:41:55]SAM_PROTO_GetFieldsCounters [15:41:55]wFMCommunicate request_size=4 [15:41:55]MH_SAM_APDU [15:41:55]CAPDU: 80 13 00 00 [15:41:55]Write to MH i2c: E2 08 00 03 01 80 13 00 00 00 00 00 00 80 [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:55]Read from MH i2c: E2 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 62 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 62 00 03 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 73 00 00 0E 04 04 00 75 00 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 4C [15:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 73 00 00 0E 04 04 00 75 00 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:41:55]wFMCommunicate OK [15:41:55]SAM_PROTO_GetFieldsCounters done [15:41:55]requested_item shift.num is exist - process it [15:41:55]requested_item shift.opened is exist - process it [15:41:55]req_shift_opened [15:41:55]FM_GetShiftState [15:41:55]SAM_PROTO_GetShiftState [15:41:55]wFMCommunicate request_size=4 [15:41:55]MH_SAM_APDU [15:41:55]CAPDU: 80 13 01 00 [15:41:55]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:55]Read from MH i2c: E2 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 0E 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 76 [15:41:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:41:55]wFMCommunicate OK [15:41:55]SAM_PROTO_GetShiftState done [15:41:55]FM_GetShiftState done [15:41:55]req_shift_opened done [15:41:55]requested_item shift.open_date is exist - process it [15:41:55]req_shift_open_date [15:41:55]req_shift_open_date done [15:41:55]produce_requested_data done [15:41:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29584,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:41:55]process_action_free close_receipt [15:41:55]json_value_free [15:41:55]json_value_free done [15:41:55]process_json_proto returns [15:41:55]Send response to host [15:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29584,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:41:55]free response buf [15:41:55]execute_script done [15:41:55]execute_script returns [15:41:55]free content buf [15:41:55]Sock 7.Close socket [15:41:55]Sock 7.Thread stoped [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:17]accept exits with 9 [15:42:17]New connection [15:42:17]New thread 3067108708 created [15:42:17]Thread 3066965348 joined [15:42:17]Waiting for new connection... [15:42:17] Sock 9.Parse request [15:42:17]Sock 9.Check first char [15:42:17]Sock 9.First char is OK [15:42:17]request: POST /json_proto HTTP/1.0 [15:42:17]Method: POST [15:42:17]URL: /json_proto [15:42:17]Method is POST - this is cgi request [15:42:17]url: /json_proto [15:42:17]query_string will be loaded in cgi processing [15:42:17]execute_cgi json_proto POST (null) [15:42:17]execute_cgi path=json_proto method=POST [15:42:17]POST find Content-Length [15:42:17]Host: 172.17.33.3:8080 [15:42:17]Content-Length: 677 [15:42:17]Content-Type: application/json [15:42:17] [15:42:17]POST finish read [15:42:17]Found Content-Length = 677 [15:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:17]execute_script... [15:42: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)348020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:17]POST & json_proto [15:42:17]process_json_proto [15:42:17]json parsed OK: [15:42:17]protocol is kg_v1.0 [15:42:17]action value=close_receipt [15:42:17]process_action close_receipt [15:42:17]cmd_close_receipt [15:42:17]MH_GetDate [15:42:17]Write to MH i2c: F0 00 00 05 01 F5 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 09 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 09 00 05 01 00 DA 4A 1D 66 23 5B 8F 65 17 [15:42:17]GetLastDocTimeStamp 1713195712 [15:42:17]current date 1713195738 [15:42:17]FM_GetShiftState [15:42:17]SAM_PROTO_GetShiftState [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 13 01 00 [15:42:17]Write to MH i2c: E2 08 00 06 01 80 13 01 00 00 00 00 00 84 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 06 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 78 [15:42:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_GetShiftState done [15:42:17]FM_GetShiftState done [15:42:17]opened in 1713140468 [15:42:17]opened+sec_in_day 1713226868 [15:42:17]quantity*price = 30002 [15:42:17]sum+1 = 30003 [15:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 179 15.04.2024 15:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29585 ФПД: 100990526737487 1/tax-web-control/client/api/v1/ticket?date=20240415T154218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29585&fm=100990526737487&tin=02508201610067®Number=0000138879044617&sum=30000 [15:42:18]StoreToDocumentArchive [15:42:18]shift 117 fd 29585 [15:42:18]save to /storage/0117/doc_00029585 [15:42:18]save last doc name /storage/0117/doc_00029585 to /storage/kkm_last_doc_name [15:42:18]save OK [15:42:18]Clear old archive folders... [15:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:18]tlvbuf is 01A7FB60 [15:42:18]SAM_PROTO_ClearQueue [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 09 00 00 [15:42:18]Write to MH i2c: E2 08 00 13 01 80 09 00 00 00 00 00 00 86 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]SAM_PROTO_ClearQueue done [15:42:19]KKMCreateOFDPacket [15:42:19]OFDProtocolAddRootSTLVToBuf [15:42:19]FM_MakeSignedData [15:42:19]FM_MakeSignedData [15:42:19]SAM_PROTO_SignData [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 01 02 [15:42:19]Write to MH i2c: E2 08 00 14 01 80 0D 01 02 00 00 00 00 8E [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=255 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 DA 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 73 00 00 35 04 06 00 5B [15:42:19]Write to MH i2c: E2 02 01 15 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 DA 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 73 00 00 35 04 06 00 5B 00 00 ED [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=10 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 02 02 05 D9 B0 78 CC 4F [15:42:19]Write to MH i2c: E2 0D 00 16 01 80 0D 02 02 05 00 D9 B0 78 CC 4F 00 00 B7 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 03 02 [15:42:19]Write to MH i2c: E2 08 00 17 01 80 0D 03 02 00 00 00 00 93 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:19]OFD Sender: No OFD packet to send [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 0B 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 0B 00 17 01 00 5F 52 9C 79 74 62 50 CA 90 00 4A [15:42:19]RAPDU: 5F 52 9C 79 74 62 50 CA 90 00 [15:42:19]wFMCommunicate OK [15:42:19]SAM_PROTO_SignData done [15:42:19]FM_MakeSignedData done [15:42:19]CreateOFDProtocolMessage [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 11 00 00 [15:42:19]Write to MH i2c: E2 08 00 18 01 80 11 00 00 00 00 00 00 93 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 18 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [15:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:42:19]wFMCommunicate OK [15:42:19]CreateOFDProtocolMessage done [15:42:19]OFDSenderStorePacket 29585 [15:42:19]StoreOFDPacket docnum=29585 [15:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 29 AE 07 01 89 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 DA 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 73 00 00 35 04 06 00 5B D9 B0 78 CC 4F 5F 52 9C 79 74 62 50 CA [15:42:19]CheckFolder [15:42:19]dirname=/storage/ofd_packets [15:42:19]CheckFolder done [15:42:19]ProducePacketName [15:42:19]name=ofd_packets/00029585 [15:42:19]NVStorageSaveData ofd_packets/00029585 [15:42:19]File name is /storage/ofd_packets/00029585 [15:42:19]Write 301 bytes [15:42:19]NVStorageSaveData done [15:42:19]OFDSenderStorePacket done [15:42:19]KKMCreateOFDPacket done [15:42:19]NVStorageSaveData kkm_last_timestamp [15:42:19]File name is /storage/kkm_last_timestamp [15:42:19]Write 4 bytes [15:42:19]NVStorageSaveData done [15:42:19]ExternCall_PrintAddStr [15:42:19]wPrintStart [15:42:19]Write to MH i2c: 01 00 00 19 01 1A [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [15:42:19]RasterBufferAndPrint [15:42:19]line Счет N : (1)348020 [15:42:19]line ИНН: 02508201610067 [15:42:19]line Контрольно-Кассовый Чек [15:42:19]line ПРОДАЖА [15:42:19]line ТРК (МРК, ГНК) : 42 [15:42:19]line Товар: 2710124130 [15:42:19]line Аи-92-К-5 [15:42:19]line 4.630 * 64.80 [15:42:19]line = 300.02 [15:42:19]line НДС 12% НСП 1% [15:42:19]line > о реализуемом товаре [15:42:19]line ОКРУГЛЕНИЕ: -0.02 [15:42:19]line ИТОГО: 300.00 [15:42:19]line Внесено: 300.00 [15:42:19]line СДАЧА: 0.00 [15:42:19]line НСП 1% : 2.65 [15:42:19]line НДС 12% : 31.86 [15:42:19]line Наличными: 300.00 [15:42:19]line Безнал.: 0.00 [15:42:19]line Место: АЗС № 108 "Партнер Нефть" [15:42:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:42:19]line СНО: Общий режим [15:42:19]line Чек 179 15.04.2024 15:42 [15:42:19]line Смена: 117 ФФД: 1.0 [15:42:19]line ЗНМ: 0300000027 [15:42:19]line РНМ: 0000138879044617 [15:42:19]line Версия ККМ: 001 [15:42:19]line ФМ: 0000000000963154 [15:42:19]line ФД: 29585 [15:42:19]line ФПД: 100990526737487 [15:42:19]line 1/tax-web-control/client/api/v1/ticket?date=20240415T154218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29585&fm=100990526737487&tin=02508201610067®Number=0000138879044617&sum=30000 [15:42:19]OFD Sender: Processing packet 29585 [packets to send 8, broken 7] [15:42:19]ProducePacketName [15:42:19]name=ofd_packets/00029585 [15:42:19]OFD Sender: To server: pG, [15:42:19]CommunicateWithHost lk.salyk.kg:30040 [15:42:19]ConnectInit lk.salyk.kg [15:42:19]written 0, free lines is 4095 [15:42:19]Connected sock=10 [15:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 29 AE 07 01 89 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 DA 4A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 73 00 00 35 04 06 00 5B D9 B0 78 CC 4F 5F 52 9C 79 74 62 50 CA [15:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 4B 47 00 82 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 73 00 00 F4 03 04 00 7B F5 1C 66 B6 04 01 00 00 98 D2 70 D8 1E C2 DD EA [15:42:20]CommunicateWithHost err = 0 [15:42:20]CheckOFDResponse [15:42:20]1017 (14) - 77093643461234 [15:42:20]1041 (16) - 0000000000963154 [15:42:20]1040 (4) - 29585 [15:42:20]1012 (4) - 15.04.2024 09:38 [15:42:20]1206 (1) - 0 [15:42:20]OFD Sender: Remove packet 29585 [15:42:20]ProducePacketName [15:42:20]name=ofd_packets/00029585 [15:42:20]NVStorageDeleteData [15:42:20]Write to MH i2c: 01 00 00 43 01 44 [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 D3 0C 2A [15:42:20]RasterBufferAndPrint [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]written 0, free lines is 3289 [15:42:20]MH_Cut [15:42:20]Write to MH i2c: D1 01 00 4A 01 01 1D [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 01 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 01 00 4A 01 00 1C [15:42:20]Write to MH i2c: 01 00 00 4B 01 4C [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]OFD Sender: No OFD packet to send [15:42:21]*** Cut start [15:42:21]*** Partial cut [15:42:21]*** CUTSNS_PIN = 1 [15:42:21]*** CUTSNS_PIN = 0 [15:42:21]*** Brake cut motor [15:42:21]Read from MH i2c: 01 [15:42:21]MH_I2C_Read... [15:42:21]*** Stop cut motor [15:42:21]*** Cut end [15:42:21]Read from MH i2c: 01 07 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [15:42:21]process_action close_receipt done [15:42:21]requested_data is exist [15:42:21]produce_requested_data [15:42:21]requested_item fm.sn is exist - process it [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 11 00 00 [15:42:21]Write to MH i2c: E2 08 00 4C 01 80 11 00 00 00 00 00 00 C7 [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 17 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 17 00 4C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [15:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:42:21]wFMCommunicate OK [15:42:21]requested_item fd.num is exist - process it [15:42:21]SAM_PROTO_GetFieldsCounters [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 13 00 00 [15:42:21]Write to MH i2c: E2 08 00 4D 01 80 13 00 00 00 00 00 00 CA [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 62 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 62 00 4D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 73 00 00 0E 04 04 00 75 00 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 9A [15:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 73 00 00 0E 04 04 00 75 00 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:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_GetFieldsCounters done [15:42:21]requested_item shift.num is exist - process it [15:42:21]requested_item shift.opened is exist - process it [15:42:21]req_shift_opened [15:42:21]FM_GetShiftState [15:42:21]SAM_PROTO_GetShiftState [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 13 01 00 [15:42:21]Write to MH i2c: E2 08 00 4E 01 80 13 01 00 00 00 00 00 CC [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 4E 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [15:42:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_GetShiftState done [15:42:21]FM_GetShiftState done [15:42:21]req_shift_opened done [15:42:21]requested_item shift.open_date is exist - process it [15:42:21]req_shift_open_date [15:42:21]req_shift_open_date done [15:42:21]produce_requested_data done [15:42:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29585,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:42:21]process_action_free close_receipt [15:42:21]json_value_free [15:42:21]json_value_free done [15:42:21]process_json_proto returns [15:42:21]Send response to host [15:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29585,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:42:21]free response buf [15:42:21]execute_script done [15:42:21]execute_script returns [15:42:21]free content buf [15:42:21]Sock 9.Close socket [15:42:21]Sock 9.Thread stoped [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:34]accept exits with 7 [15:43:34]New connection [15:43:34]New thread 3066965348 created [15:43:34]Thread 3067108708 joined [15:43:34]Waiting for new connection... [15:43:34] Sock 7.Parse request [15:43:34]Sock 7.Check first char [15:43:34]Sock 7.First char is OK [15:43:34]request: POST /json_proto HTTP/1.0 [15:43:34]Method: POST [15:43:34]URL: /json_proto [15:43:34]Method is POST - this is cgi request [15:43:34]url: /json_proto [15:43:34]query_string will be loaded in cgi processing [15:43:34]execute_cgi json_proto POST (null) [15:43:34]execute_cgi path=json_proto method=POST [15:43:34]POST find Content-Length [15:43:34]Host: 172.17.33.3:8080 [15:43:34]Content-Length: 677 [15:43:34]Content-Type: application/json [15:43:34] [15:43:34]POST finish read [15:43:34]Found Content-Length = 677 [15:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [15:43:34]execute_script... [15:43: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)348021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "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" ] } } [15:43:34]POST & json_proto [15:43:34]process_json_proto [15:43:34]json parsed OK: [15:43:34]protocol is kg_v1.0 [15:43:34]action value=close_receipt [15:43:34]process_action close_receipt [15:43:34]cmd_close_receipt [15:43:34]MH_GetDate [15:43:34]Write to MH i2c: F0 00 00 4F 01 3F [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 09 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 09 00 4F 01 00 27 4B 1D 66 23 5B 8F 65 AF [15:43:34]GetLastDocTimeStamp 1713195738 [15:43:34]current date 1713195815 [15:43:34]FM_GetShiftState [15:43:34]SAM_PROTO_GetShiftState [15:43:34]wFMCommunicate request_size=4 [15:43:34]MH_SAM_APDU [15:43:34]CAPDU: 80 13 01 00 [15:43:34]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:34]Read from MH i2c: E2 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: E2 0E 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C2 [15:43:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:43:34]wFMCommunicate OK [15:43:34]SAM_PROTO_GetShiftState done [15:43:34]FM_GetShiftState done [15:43:34]opened in 1713140468 [15:43:34]opened+sec_in_day 1713226868 [15:43:34]quantity*price = 20023 [15:43:34]sum+1 = 20024 [15:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 180 15.04.2024 15:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29586 ФПД: 208272908105915 1/tax-web-control/client/api/v1/ticket?date=20240415T154335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29586&fm=208272908105915&tin=02508201610067®Number=0000138879044617&sum=20000 [15:43:35]StoreToDocumentArchive [15:43:35]shift 117 fd 29586 [15:43:35]save to /storage/0117/doc_00029586 [15:43:35]save last doc name /storage/0117/doc_00029586 to /storage/kkm_last_doc_name [15:43:35]save OK [15:43:35]Clear old archive folders... [15:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:35]tlvbuf is 01A764F0 [15:43:35]SAM_PROTO_ClearQueue [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 09 00 00 [15:43:35]Write to MH i2c: E2 08 00 5D 01 80 09 00 00 00 00 00 00 D0 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_ClearQueue done [15:43:35]KKMCreateOFDPacket [15:43:35]OFDProtocolAddRootSTLVToBuf [15:43:35]FM_MakeSignedData [15:43:35]FM_MakeSignedData [15:43:35]SAM_PROTO_SignData [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 0D 01 02 [15:43:35]Write to MH i2c: E2 08 00 5E 01 80 0D 01 02 00 00 00 00 D8 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]wFMCommunicate request_size=255 [15:43:35]MH_SAM_APDU [15:43: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 12 0C 00 00 00 00 00 37 04 06 00 50 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 B4 00 00 00 F4 03 04 00 27 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 73 00 00 35 04 06 00 BD [15:43:35]Write to MH i2c: E2 02 01 5F 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 B4 00 00 00 F4 03 04 00 27 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 73 00 00 35 04 06 00 BD 00 00 CE [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]wFMCommunicate request_size=10 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 02 02 05 6C 50 B4 38 BB [15:43:36]Write to MH i2c: E2 0D 00 60 01 80 0D 02 02 05 00 6C 50 B4 38 BB 00 00 48 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 03 02 [15:43:36]Write to MH i2c: E2 08 00 61 01 80 0D 03 02 00 00 00 00 DD [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 0B 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 0B 00 61 01 00 F2 15 D5 52 09 C9 66 A7 90 00 EB [15:43:36]RAPDU: F2 15 D5 52 09 C9 66 A7 90 00 [15:43:36]wFMCommunicate OK [15:43:36]SAM_PROTO_SignData done [15:43:36]FM_MakeSignedData done [15:43:36]CreateOFDProtocolMessage [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 11 00 00 [15:43:36]Write to MH i2c: E2 08 00 62 01 80 11 00 00 00 00 00 00 DD [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 62 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [15:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:43:36]wFMCommunicate OK [15:43:36]CreateOFDProtocolMessage done [15:43:36]OFDSenderStorePacket 29586 [15:43:36]StoreOFDPacket docnum=29586 [15:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 86 AD 07 01 6E 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 B4 00 00 00 F4 03 04 00 27 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 73 00 00 35 04 06 00 BD 6C 50 B4 38 BB F2 15 D5 52 09 C9 66 A7 [15:43:36]CheckFolder [15:43:36]dirname=/storage/ofd_packets [15:43:36]CheckFolder done [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00029586 [15:43:36]NVStorageSaveData ofd_packets/00029586 [15:43:36]File name is /storage/ofd_packets/00029586 [15:43:36]Write 301 bytes [15:43:36]NVStorageSaveData done [15:43:36]OFDSenderStorePacket done [15:43:36]KKMCreateOFDPacket done [15:43:36]NVStorageSaveData kkm_last_timestamp [15:43:36]File name is /storage/kkm_last_timestamp [15:43:36]Write 4 bytes [15:43:36]NVStorageSaveData done [15:43:36]ExternCall_PrintAddStr [15:43:36]wPrintStart [15:43:36]Write to MH i2c: 01 00 00 63 01 64 [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 63 01 00 00 00 00 00 FF 0F 79 [15:43:36]RasterBufferAndPrint [15:43:36]line Счет N : (1)348021 [15:43:36]line ИНН: 02508201610067 [15:43:36]line Контрольно-Кассовый Чек [15:43:36]line ПРОДАЖА [15:43:36]line ТРК (МРК, ГНК) : 13 [15:43:36]line Товар: 2710124130 [15:43:36]line Аи-92-К-5 [15:43:36]line 3.090 * 64.80 [15:43:36]line = 200.23 [15:43:36]line НДС 12% НСП 1% [15:43:36]line > о реализуемом товаре [15:43:36]line ОКРУГЛЕНИЕ: -0.23 [15:43:36]line ИТОГО: 200.00 [15:43:36]line Внесено: 200.00 [15:43:36]line СДАЧА: 0.00 [15:43:36]line НСП 1% : 1.77 [15:43:36]line НДС 12% : 21.26 [15:43:36]line Наличными: 200.00 [15:43:36]line Безнал.: 0.00 [15:43:36]line Место: АЗС № 108 "Партнер Нефть" [15:43:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:43:36]line СНО: Общий режим [15:43:36]line Чек 180 15.04.2024 15:43 [15:43:36]line Смена: 117 ФФД: 1.0 [15:43:36]line ЗНМ: 0300000027 [15:43:36]line РНМ: 0000138879044617 [15:43:36]line Версия ККМ: 001 [15:43:36]line ФМ: 0000000000963154 [15:43:36]line ФД: 29586 [15:43:36]line ФПД: 208272908105915 [15:43:36]line 1/tax-web-control/client/api/v1/ticket?date=20240415T154335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29586&fm=208272908105915&tin=02508201610067®Number=0000138879044617&sum=20000 [15:43:36]OFD Sender: Processing packet 29586 [packets to send 8, broken 7] [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00029586 [15:43:36]OFD Sender: To server: pG, [15:43:36]CommunicateWithHost lk.salyk.kg:30040 [15:43:36]ConnectInit lk.salyk.kg [15:43:36]written 0, free lines is 4095 [15:43:36]Connected sock=10 [15:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 86 AD 07 01 6E 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 12 0C 00 00 00 00 00 37 04 06 00 50 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 B4 00 00 00 F4 03 04 00 27 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 73 00 00 35 04 06 00 BD 6C 50 B4 38 BB F2 15 D5 52 09 C9 66 A7 [15:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BA 73 47 00 99 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 39 36 33 31 35 34 10 04 04 00 92 73 00 00 F4 03 04 00 C8 F5 1C 66 B6 04 01 00 00 2D 5D 11 51 C4 67 D9 4D [15:43:36]CommunicateWithHost err = 0 [15:43:36]CheckOFDResponse [15:43:36]1017 (14) - 77093643461234 [15:43:36]1041 (16) - 0000000000963154 [15:43:36]1040 (4) - 29586 [15:43:36]1012 (4) - 15.04.2024 09:39 [15:43:36]1206 (1) - 0 [15:43:36]OFD Sender: Remove packet 29586 [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00029586 [15:43:36]NVStorageDeleteData [15:43:37]Write to MH i2c: 01 00 00 8D 01 8E [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 07 00 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 D5 0C 76 [15:43:37]RasterBufferAndPrint [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]written 0, free lines is 3291 [15:43:37]MH_Cut [15:43:37]Write to MH i2c: D1 01 00 94 01 01 67 [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 01 00 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 01 00 94 01 00 66 [15:43:37]Write to MH i2c: 01 00 00 95 01 96 [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]OFD Sender: No OFD packet to send [15:43:37]*** Cut start [15:43:37]*** Partial cut [15:43:37]*** CUTSNS_PIN = 1 [15:43:37]*** CUTSNS_PIN = 0 [15:43:38]*** Brake cut motor [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 95 01 00 00 00 00 00 FF 0F AB [15:43:38]process_action close_receipt 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 96 01 80 11 00 00 00 00 00 00 11 [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 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [15:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 97 01 80 13 00 00 00 00 00 00 14 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:38]Read from MH i2c: E2 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 62 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 62 00 97 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 73 00 00 0E 04 04 00 75 00 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 E8 [15:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 73 00 00 0E 04 04 00 75 00 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:43:38]wFMCommunicate OK [15:43:38]SAM_PROTO_GetFieldsCounters done [15:43:38]requested_item shift.num is exist - process it [15:43:38]requested_item shift.opened is exist - process it [15:43:38]req_shift_opened [15:43:38]FM_GetShiftState [15:43:38]SAM_PROTO_GetShiftState [15:43:38]wFMCommunicate request_size=4 [15:43:38]MH_SAM_APDU [15:43:38]CAPDU: 80 13 01 00 [15:43:38]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:38]Read from MH i2c: E2 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 0E 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0A [15:43:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:43:38]wFMCommunicate OK [15:43:38]SAM_PROTO_GetShiftState done [15:43:38]FM_GetShiftState done [15:43:38]req_shift_opened done [15:43:38]requested_item shift.open_date is exist - process it [15:43:38]req_shift_open_date [15:43:38]req_shift_open_date done [15:43:38]produce_requested_data done [15:43:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29586,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:43:38]process_action_free close_receipt [15:43:38]json_value_free [15:43:38]json_value_free done [15:43:38]process_json_proto returns [15:43:38]Send response to host [15:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29586,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:43:38]free response buf [15:43:38]execute_script done [15:43:38]execute_script returns [15:43:38]free content buf [15:43:38]Sock 7.Close socket [15:43:38]Sock 7.Thread stoped [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:25]accept exits with 9 [15:45:25]New connection [15:45:25]New thread 3067108708 created [15:45:25]Thread 3066965348 joined [15:45:25]Waiting for new connection... [15:45:25] Sock 9.Parse request [15:45:25]Sock 9.Check first char [15:45:25]Sock 9.First char is OK [15:45:25]request: POST /json_proto HTTP/1.0 [15:45:25]Method: POST [15:45:25]URL: /json_proto [15:45:25]Method is POST - this is cgi request [15:45:25]url: /json_proto [15:45:25]query_string will be loaded in cgi processing [15:45:25]execute_cgi json_proto POST (null) [15:45:25]execute_cgi path=json_proto method=POST [15:45:25]POST find Content-Length [15:45:25]Host: 172.17.33.3:8080 [15:45:25]Content-Length: 819 [15:45:25]Content-Type: application/json [15:45:25] [15:45:25]POST finish read [15:45:25]Found Content-Length = 819 [15:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:25]execute_script... [15:45: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)348022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:25]POST & json_proto [15:45:25]process_json_proto [15:45:25]json parsed OK: [15:45:25]protocol is kg_v1.0 [15:45:25]action value=close_receipt [15:45:25]process_action close_receipt [15:45:25]cmd_close_receipt [15:45:25]MH_GetDate [15:45:25]Write to MH i2c: F0 00 00 99 01 89 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: F0 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: F0 09 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: F0 09 00 99 01 00 96 4B 1D 66 23 5B 8F 65 68 [15:45:25]GetLastDocTimeStamp 1713195815 [15:45:25]current date 1713195926 [15:45:25]FM_GetShiftState [15:45:25]SAM_PROTO_GetShiftState [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 13 01 00 [15:45:25]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 0E 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0C [15:45:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:45:25]wFMCommunicate OK [15:45:25]SAM_PROTO_GetShiftState done [15:45:25]FM_GetShiftState done [15:45:25]opened in 1713140468 [15:45:25]opened+sec_in_day 1713226868 [15:45:25]quantity*price = 100051 [15:45:25]sum+1 = 100052 [15:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 181 15.04.2024 15:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29587 ФПД: 47450096244616 1/tax-web-control/client/api/v1/ticket?date=20240415T154526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29587&fm=47450096244616&tin=02508201610067®Number=0000138879044617&sum=100051 [15:45:26]StoreToDocumentArchive [15:45:26]shift 117 fd 29587 [15:45:26]save to /storage/0117/doc_00029587 [15:45:26]save last doc name /storage/0117/doc_00029587 to /storage/kkm_last_doc_name [15:45:26]save OK [15:45:26]Clear old archive folders... [15:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:26]tlvbuf is 01A64A30 [15:45:26]SAM_PROTO_ClearQueue [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 09 00 00 [15:45:26]Write to MH i2c: E2 08 00 A7 01 80 09 00 00 00 00 00 00 1A [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_ClearQueue done [15:45:26]KKMCreateOFDPacket [15:45:26]OFDProtocolAddRootSTLVToBuf [15:45:26]FM_MakeSignedData [15:45:26]FM_MakeSignedData [15:45:26]SAM_PROTO_SignData [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 0D 01 02 [15:45:26]Write to MH i2c: E2 08 00 A8 01 80 0D 01 02 00 00 00 00 22 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]wFMCommunicate request_size=255 [15:45:26]MH_SAM_APDU [15:45: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 73 00 00 35 04 06 00 2B [15:45:26]Write to MH i2c: E2 02 01 A9 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 73 00 00 35 04 06 00 2B 00 00 2D [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]wFMCommunicate request_size=10 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 0D 02 02 05 27 D6 21 97 88 [15:45:26]Write to MH i2c: E2 0D 00 AA 01 80 0D 02 02 05 00 27 D6 21 97 88 00 00 6C [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [15:45:26]RAPDU: 90 00 [15:45:26]wFMCommunicate OK [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 0D 03 02 [15:45:26]Write to MH i2c: E2 08 00 AB 01 80 0D 03 02 00 00 00 00 27 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0B 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0B 00 AB 01 00 4A A4 D5 0D 92 79 64 2E 90 00 95 [15:45:26]RAPDU: 4A A4 D5 0D 92 79 64 2E 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_SignData done [15:45:26]FM_MakeSignedData done [15:45:26]CreateOFDProtocolMessage [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 11 00 00 [15:45:26]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [15:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:45:26]wFMCommunicate OK [15:45:26]CreateOFDProtocolMessage done [15:45:26]OFDSenderStorePacket 29587 [15:45:26]StoreOFDPacket docnum=29587 [15:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 08 07 01 E2 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 73 00 00 35 04 06 00 2B 27 D6 21 97 88 4A A4 D5 0D 92 79 64 2E [15:45:27]CheckFolder [15:45:27]dirname=/storage/ofd_packets [15:45:27]CheckFolder done [15:45:27]ProducePacketName [15:45:27]name=ofd_packets/00029587 [15:45:27]NVStorageSaveData ofd_packets/00029587 [15:45:27]File name is /storage/ofd_packets/00029587 [15:45:27]Write 301 bytes [15:45:27]NVStorageSaveData done [15:45:27]OFDSenderStorePacket done [15:45:27]KKMCreateOFDPacket done [15:45:27]NVStorageSaveData kkm_last_timestamp [15:45:27]File name is /storage/kkm_last_timestamp [15:45:27]Write 4 bytes [15:45:27]NVStorageSaveData done [15:45:27]ExternCall_PrintAddStr [15:45:27]wPrintStart [15:45:27]Write to MH i2c: 01 00 00 AD 01 AE [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [15:45:27]RasterBufferAndPrint [15:45:27]line Счет N : (1)348022 [15:45:27]line ИНН: 02508201610067 [15:45:27]line Контрольно-Кассовый Чек [15:45:27]line ПРОДАЖА [15:45:27]line ТРК (МРК, ГНК) : 23 [15:45:27]line Товар: 2710124130 [15:45:27]line Аи-92-К-5 [15:45:27]line 15.440 * 64.80 [15:45:27]line = 1000.51 [15:45:27]line НДС 12% НСП 1% [15:45:27]line > о реализуемом товаре [15:45:27]line ИТОГО: 1000.51 [15:45:27]line НСП 1% : 8.85 [15:45:27]line НДС 12% : 106.25 [15:45:27]line Наличными: 0.00 [15:45:27]line Безнал.: 1000.51 [15:45:27]line Место: АЗС № 108 "Партнер Нефть" [15:45:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:45:27]line СНО: Общий режим [15:45:27]line Чек 181 15.04.2024 15:45 [15:45:27]line Смена: 117 ФФД: 1.0 [15:45:27]line ЗНМ: 0300000027 [15:45:27]line РНМ: 0000138879044617 [15:45:27]line Версия ККМ: 001 [15:45:27]line Платежная система: Бакай Банк [15:45:27]line ФМ: 0000000000963154 [15:45:27]line ФД: 29587 [15:45:27]line ФПД: 47450096244616 [15:45:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T154526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29587&fm=47450096244616&tin=02508201610067®Number=0000138879044617&sum=100051 [15:45:27]OFD Sender: Processing packet 29587 [packets to send 8, broken 7] [15:45:27]ProducePacketName [15:45:27]name=ofd_packets/00029587 [15:45:27]OFD Sender: To server: pG, [15:45:27]CommunicateWithHost lk.salyk.kg:30040 [15:45:27]ConnectInit lk.salyk.kg [15:45:27]written 0, free lines is 4095 [15:45:27]Connected sock=10 [15:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 08 07 01 E2 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 4B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 73 00 00 35 04 06 00 2B 27 D6 21 97 88 4A A4 D5 0D 92 79 64 2E [15:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DA 9B 47 00 AB 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 73 00 00 F4 03 04 00 36 F6 1C 66 B6 04 01 00 00 27 20 9E E5 FB 40 3A E3 [15:45:27]CommunicateWithHost err = 0 [15:45:27]CheckOFDResponse [15:45:27]1017 (14) - 77093643461234 [15:45:27]1041 (16) - 0000000000963154 [15:45:27]1040 (4) - 29587 [15:45:27]1012 (4) - 15.04.2024 09:41 [15:45:27]1206 (1) - 0 [15:45:27]OFD Sender: Remove packet 29587 [15:45:27]ProducePacketName [15:45:27]name=ofd_packets/00029587 [15:45:27]NVStorageDeleteData [15:45:27]Write to MH i2c: 01 00 00 D6 01 D7 [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 EA 0C D4 [15:45:27]RasterBufferAndPrint [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]line [15:45:27]written 0, free lines is 3312 [15:45:27]MH_Cut [15:45:27]Write to MH i2c: D1 01 00 DD 01 01 B0 [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 01 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: D1 01 00 DD 01 00 AF [15:45:27]Write to MH i2c: 01 00 00 DE 01 DF [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:28]OFD Sender: No OFD packet to send [15:45:28]*** Cut start [15:45:28]*** Partial cut [15:45:28]*** CUTSNS_PIN = 1 [15:45:28]*** CUTSNS_PIN = 0 [15:45:28]*** Brake cut motor [15:45:29]Read from MH i2c: 01 [15:45:29]MH_I2C_Read... [15:45:29]*** Stop cut motor [15:45:29]*** Cut end [15:45:29]Read from MH i2c: 01 07 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [15:45:29]process_action close_receipt done [15:45:29]requested_data is exist [15:45:29]produce_requested_data [15:45:29]requested_item fm.sn is exist - process it [15:45:29]wFMCommunicate request_size=4 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 11 00 00 [15:45:29]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 17 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [15:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:45:29]wFMCommunicate OK [15:45:29]requested_item fd.num is exist - process it [15:45:29]SAM_PROTO_GetFieldsCounters [15:45:29]wFMCommunicate request_size=4 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 13 00 00 [15:45:29]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 62 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 62 00 E0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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 35 [15:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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:45:29]wFMCommunicate OK [15:45:29]SAM_PROTO_GetFieldsCounters done [15:45:29]requested_item shift.num is exist - process it [15:45:29]requested_item shift.opened is exist - process it [15:45:29]req_shift_opened [15:45:29]FM_GetShiftState [15:45:29]SAM_PROTO_GetShiftState [15:45:29]wFMCommunicate request_size=4 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 13 01 00 [15:45:29]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 0E 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 53 [15:45:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:45:29]wFMCommunicate OK [15:45:29]SAM_PROTO_GetShiftState done [15:45:29]FM_GetShiftState done [15:45:29]req_shift_opened done [15:45:29]requested_item shift.open_date is exist - process it [15:45:29]req_shift_open_date [15:45:29]req_shift_open_date done [15:45:29]produce_requested_data done [15:45:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:45:29]process_action_free close_receipt [15:45:29]json_value_free [15:45:29]json_value_free done [15:45:29]process_json_proto returns [15:45:29]Send response to host [15:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:45:29]free response buf [15:45:29]execute_script done [15:45:29]execute_script returns [15:45:29]free content buf [15:45:29]Sock 9.Close socket [15:45:29]Sock 9.Thread stoped [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:47]accept exits with 7 [15:47:47]New connection [15:47:47]New thread 3066965348 created [15:47:47]Thread 3067108708 joined [15:47:47]Waiting for new connection... [15:47:47] Sock 7.Parse request [15:47:47]Sock 7.Check first char [15:47:47]Sock 7.First char is OK [15:47:47]request: POST /json_proto HTTP/1.0 [15:47:47]Method: POST [15:47:47]URL: /json_proto [15:47:47]Method is POST - this is cgi request [15:47:47]url: /json_proto [15:47:47]query_string will be loaded in cgi processing [15:47:47]execute_cgi json_proto POST (null) [15:47:47]execute_cgi path=json_proto method=POST [15:47:47]POST find Content-Length [15:47:47]Host: 172.17.33.3:8080 [15:47:47]Content-Length: 1175 [15:47:47]Content-Type: application/json [15:47:47] [15:47:47]POST finish read [15:47:47]Found Content-Length = 1175 [15:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348023\u000A15.04.2024 15:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:47]execute_script... [15:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348023\u000A15.04.2024 15:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:47]POST & json_proto [15:47:47]process_json_proto [15:47:47]json parsed OK: [15:47:47]protocol is kg_v1.0 [15:47:47]action value=print_text [15:47:47]process_action print_text [15:47:47]cmd_print_text [15:47:47]ExternCall_PrintAddStr [15:47:47]wPrintStart [15:47:47]Write to MH i2c: 01 00 00 E2 01 E3 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [15:47:47]RasterBufferAndPrint [15:47:47]line *****ТОВАРНЫЙ ЧЕК***** [15:47:47]line АЗС 108 [15:47:47]line Партнер нефть [15:47:47]line 02508201610067 [15:47:47]line Кассир : Джумагулова Н. [15:47:47]line Счет N : (1)348023 [15:47:47]line 15.04.2024 15:29 [15:47:47]line ПРОДАЖА [15:47:47]line ТРК (МРК, ГНК): 42 [15:47:47]line Вид ГСМ : 2710124130 [15:47:47]line Аи-92-К-5 [15:47:47]line 20.000 x 64.80 [15:47:47]line ИТОГ: 1296.00 [15:47:47]line Тип оплаты: Талоны: ТК ГПНА Online [15:47:47]line 30021242 [15:47:47]line ______________________ [15:47:47]line (подпись) [15:47:47]written 0, free lines is 4095 [15:47:47]Write to MH i2c: 01 00 00 F7 01 F8 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 F7 0D 03 [15:47:47]RasterBufferAndPrint [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]written 0, free lines is 3577 [15:47:47]MH_Cut [15:47:47]Write to MH i2c: D1 01 00 FE 01 01 D1 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 01 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 01 00 FE 01 00 D0 [15:47:47]Write to MH i2c: 01 00 00 FF 01 00 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:48]*** Cut start [15:47:48]*** Partial cut [15:47:48]*** CUTSNS_PIN = 1 [15:47:48]OFD Sender: No OFD packet to send [15:47:48]*** CUTSNS_PIN = 0 [15:47:48]*** Brake cut motor [15:47:48]Read from MH i2c: 01 [15:47:48]MH_I2C_Read... [15:47:48]*** Stop cut motor [15:47:48]*** Cut end [15:47:48]Read from MH i2c: 01 07 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FF 0F 15 [15:47:48]process_action print_text done [15:47:48]requested_data is exist [15:47:48]produce_requested_data [15:47:48]requested_item fm.sn is exist - process it [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 11 00 00 [15:47:48]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 17 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [15:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:47:48]wFMCommunicate OK [15:47:48]requested_item fd.num is exist - process it [15:47:48]SAM_PROTO_GetFieldsCounters [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 13 00 00 [15:47:48]Write to MH i2c: E2 08 00 01 02 80 13 00 00 00 00 00 00 7F [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 62 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 62 00 01 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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:47:49]wFMCommunicate OK [15:47:49]SAM_PROTO_GetFieldsCounters done [15:47:49]requested_item shift.num is exist - process it [15:47:49]requested_item shift.opened is exist - process it [15:47:49]req_shift_opened [15:47:49]FM_GetShiftState [15:47:49]SAM_PROTO_GetShiftState [15:47:49]wFMCommunicate request_size=4 [15:47:49]MH_SAM_APDU [15:47:49]CAPDU: 80 13 01 00 [15:47:49]Write to MH i2c: E2 08 00 02 02 80 13 01 00 00 00 00 00 81 [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 0E 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 0E 00 02 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [15:47:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:47:49]wFMCommunicate OK [15:47:49]SAM_PROTO_GetShiftState done [15:47:49]FM_GetShiftState done [15:47:49]req_shift_opened done [15:47:49]requested_item shift.open_date is exist - process it [15:47:49]req_shift_open_date [15:47:49]req_shift_open_date done [15:47:49]produce_requested_data done [15:47:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:47:49]process_action_free print_text [15:47:49]json_value_free [15:47:49]json_value_free done [15:47:49]process_json_proto returns [15:47:49]Send response to host [15:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:47:49]free response buf [15:47:49]execute_script done [15:47:49]execute_script returns [15:47:49]free content buf [15:47:49]Sock 7.Close socket [15:47:49]Sock 7.Thread stoped [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 03 02 05 [15:48:48]*** FLAG_PRN_KEY set [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 03 02 00 08 00 00 00 FF 0F 22 [15:48:48]state=0 [15:48:48]Key pressed [15:48:48]Feed [15:48:48]Write to MH i2c: D8 00 00 04 02 DD [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 01 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 01 00 04 02 00 DE [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 05 02 07 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 05 02 00 48 00 00 00 3C 00 92 [15:48:48]state=2 [15:48:48]Key pressed [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 06 02 08 [15:48:48]*** FLAG_PRN_KEY reset [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 F5 0F 13 [15:48:48]state=2 [15:48:48]Stop feed [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 07 02 09 [15:48:48]*** FLAG_PRN_KEY set [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 07 02 00 08 00 00 00 FF 0F 26 [15:48:48]state=0 [15:48:48]Key pressed [15:48:48]Feed [15:48:48]Write to MH i2c: D8 00 00 08 02 E1 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 01 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: D8 01 00 08 02 00 E2 [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 09 02 0B [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 09 02 00 48 00 00 00 3C 00 96 [15:48:48]state=2 [15:48:48]Key pressed [15:48:48]int [15:48:48]Write to MH i2c: 01 00 00 0A 02 0C [15:48:48]*** FLAG_PRN_KEY reset [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 F5 0F 17 [15:48:48]state=2 [15:48:48]Stop feed [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 0B 02 0D [15:48:49]*** FLAG_PRN_KEY set [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 0B 02 00 08 00 00 00 FF 0F 2A [15:48:49]state=0 [15:48:49]Key pressed [15:48:49]Feed [15:48:49]Write to MH i2c: D8 00 00 0C 02 E5 [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 01 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 01 00 0C 02 00 E6 [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 0D 02 0F [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 0D 02 00 48 00 00 00 3C 00 9A [15:48:49]state=2 [15:48:49]Key pressed [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 0E 02 10 [15:48:49]*** FLAG_PRN_KEY reset [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 F5 0F 1B [15:48:49]state=2 [15:48:49]Stop feed [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 0F 02 11 [15:48:49]*** FLAG_PRN_KEY set [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 0F 02 00 08 00 00 00 FF 0F 2E [15:48:49]state=0 [15:48:49]Key pressed [15:48:49]Feed [15:48:49]Write to MH i2c: D8 00 00 10 02 E9 [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 01 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: D8 01 00 10 02 00 EA [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 11 02 13 [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 11 02 00 48 00 00 00 3C 00 9E [15:48:49]state=2 [15:48:49]Key pressed [15:48:49]int [15:48:49]Write to MH i2c: 01 00 00 12 02 14 [15:48:49]*** FLAG_PRN_KEY reset [15:48:49]Write i2c OK [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 [15:48:49]MH_I2C_Read... [15:48:49]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 F5 0F 1F [15:48:49]state=2 [15:48:49]Stop feed [15:48:50]int [15:48:50]Write to MH i2c: 01 00 00 13 02 15 [15:48:50]*** FLAG_PRN_KEY set [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 13 02 00 08 00 00 00 FF 0F 32 [15:48:50]state=0 [15:48:50]Key pressed [15:48:50]Feed [15:48:50]Write to MH i2c: D8 00 00 14 02 ED [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D8 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D8 01 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D8 01 00 14 02 00 EE [15:48:50]int [15:48:50]Write to MH i2c: 01 00 00 15 02 17 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 15 02 00 48 00 00 00 3C 00 A2 [15:48:50]state=2 [15:48:50]Key pressed [15:48:50]int [15:48:50]Write to MH i2c: 01 00 00 16 02 18 [15:48:50]*** FLAG_PRN_KEY reset [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 F5 0F 23 [15:48:50]state=2 [15:48:50]Stop feed [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:22]accept exits with 9 [15:50:22]New connection [15:50:22]New thread 3067108708 created [15:50:22]Thread 3066965348 joined [15:50:22]Waiting for new connection... [15:50:22] Sock 9.Parse request [15:50:22]Sock 9.Check first char [15:50:22]Sock 9.First char is OK [15:50:22]request: POST /json_proto HTTP/1.0 [15:50:22]Method: POST [15:50:22]URL: /json_proto [15:50:22]Method is POST - this is cgi request [15:50:22]url: /json_proto [15:50:22]query_string will be loaded in cgi processing [15:50:22]execute_cgi json_proto POST (null) [15:50:22]execute_cgi path=json_proto method=POST [15:50:22]POST find Content-Length [15:50:22]Host: 172.17.33.3:8080 [15:50:22]Content-Length: 1173 [15:50:22]Content-Type: application/json [15:50:22] [15:50:22]POST finish read [15:50:22]Found Content-Length = 1173 [15:50:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348025\u000A15.04.2024 15:32\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 7.860 x 72.90\u000A\u0418\u0422\u041E\u0413: 572.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:22]execute_script... [15:50:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348025\u000A15.04.2024 15:32\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 7.860 x 72.90\u000A\u0418\u0422\u041E\u0413: 572.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:22]POST & json_proto [15:50:22]process_json_proto [15:50:22]json parsed OK: [15:50:22]protocol is kg_v1.0 [15:50:22]action value=print_text [15:50:22]process_action print_text [15:50:22]cmd_print_text [15:50:22]ExternCall_PrintAddStr [15:50:22]wPrintStart [15:50:22]Write to MH i2c: 01 00 00 17 02 19 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 07 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [15:50:22]RasterBufferAndPrint [15:50:22]line *****ТОВАРНЫЙ ЧЕК***** [15:50:22]line АЗС 108 [15:50:22]line Партнер нефть [15:50:22]line 02508201610067 [15:50:22]line Кассир : Джумагулова Н. [15:50:22]line Счет N : (1)348025 [15:50:22]line 15.04.2024 15:32 [15:50:22]line ПРОДАЖА [15:50:22]line ТРК (МРК, ГНК): 33 [15:50:22]line Вид ГСМ : 2710124500 [15:50:22]line Аи-95-К-5 [15:50:22]line 7.860 x 72.90 [15:50:22]line ИТОГ: 572.99 [15:50:22]line Тип оплаты: Талоны: ТК ГПНА Online [15:50:22]line 30042701 [15:50:22]line ______________________ [15:50:22]line (подпись) [15:50:22]written 0, free lines is 4095 [15:50:22]Write to MH i2c: 01 00 00 2C 02 2E [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 07 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 F9 0D 3B [15:50:22]RasterBufferAndPrint [15:50:22]line [15:50:22]line [15:50:22]line [15:50:22]line [15:50:22]line [15:50:22]written 0, free lines is 3578 [15:50:22]MH_Cut [15:50:22]Write to MH i2c: D1 01 00 33 02 01 07 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: D1 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: D1 01 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: D1 01 00 33 02 00 06 [15:50:22]Write to MH i2c: 01 00 00 34 02 36 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:23]*** Cut start [15:50:23]*** Partial cut [15:50:23]*** CUTSNS_PIN = 1 [15:50:23]*** CUTSNS_PIN = 0 [15:50:23]*** Brake cut motor [15:50:23]OFD Sender: No OFD packet to send [15:50:23]Read from MH i2c: 01 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: 01 07 00 [15:50:23]MH_I2C_Read... [15:50:23]*** Stop cut motor [15:50:23]*** Cut end [15:50:23]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [15:50:23]process_action print_text done [15:50:23]requested_data is exist [15:50:23]produce_requested_data [15:50:23]requested_item fm.sn is exist - process it [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 11 00 00 [15:50:23]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 17 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [15:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:50:23]wFMCommunicate OK [15:50:23]requested_item fd.num is exist - process it [15:50:23]SAM_PROTO_GetFieldsCounters [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 13 00 00 [15:50:23]Write to MH i2c: E2 08 00 36 02 80 13 00 00 00 00 00 00 B4 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 62 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 62 00 36 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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 8C [15:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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:50:23]wFMCommunicate OK [15:50:23]SAM_PROTO_GetFieldsCounters done [15:50:23]requested_item shift.num is exist - process it [15:50:23]requested_item shift.opened is exist - process it [15:50:23]req_shift_opened [15:50:23]FM_GetShiftState [15:50:23]SAM_PROTO_GetShiftState [15:50:23]wFMCommunicate request_size=4 [15:50:23]MH_SAM_APDU [15:50:23]CAPDU: 80 13 01 00 [15:50:23]Write to MH i2c: E2 08 00 37 02 80 13 01 00 00 00 00 00 B6 [15:50:23]Write i2c OK [15:50:23]MH_I2C_Read... [15:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:23]Read from MH i2c: E2 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 0E 00 [15:50:23]MH_I2C_Read... [15:50:23]Read from MH i2c: E2 0E 00 37 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AA [15:50:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:50:23]wFMCommunicate OK [15:50:23]SAM_PROTO_GetShiftState done [15:50:23]FM_GetShiftState done [15:50:23]req_shift_opened done [15:50:23]requested_item shift.open_date is exist - process it [15:50:23]req_shift_open_date [15:50:23]req_shift_open_date done [15:50:23]produce_requested_data done [15:50:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:50:23]process_action_free print_text [15:50:23]json_value_free [15:50:23]json_value_free done [15:50:23]process_json_proto returns [15:50:23]Send response to host [15:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:50:23]free response buf [15:50:23]execute_script done [15:50:23]execute_script returns [15:50:23]free content buf [15:50:23]Sock 9.Close socket [15:50:23]Sock 9.Thread stoped [15:50:27]accept exits with 10 [15:50:27]New connection [15:50:27]New thread 3066965348 created [15:50:27]Thread 3067108708 joined [15:50:27]Waiting for new connection... [15:50:27] Sock 10.Parse request [15:50:27]Sock 10.Check first char [15:50:27]Sock 10.First char is OK [15:50:27]request: POST /json_proto HTTP/1.0 [15:50:27]Method: POST [15:50:27]URL: /json_proto [15:50:27]Method is POST - this is cgi request [15:50:27]url: /json_proto [15:50:27]query_string will be loaded in cgi processing [15:50:27]execute_cgi json_proto POST (null) [15:50:27]execute_cgi path=json_proto method=POST [15:50:27]POST find Content-Length [15:50:27]Host: 172.17.33.3:8080 [15:50:27]Content-Length: 1210 [15:50:27]Content-Type: application/json [15:50:27] [15:50:27]POST finish read [15:50:27]Found Content-Length = 1210 [15:50:27]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348024\u000A15.04.2024 15:32\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-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:27]execute_script... [15:50:27]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348024\u000A15.04.2024 15:32\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-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:27]POST & json_proto [15:50:27]process_json_proto [15:50:27]json parsed OK: [15:50:27]protocol is kg_v1.0 [15:50:27]action value=print_text [15:50:27]process_action print_text [15:50:27]cmd_print_text [15:50:27]ExternCall_PrintAddStr [15:50:27]wPrintStart [15:50:27]Write to MH i2c: 01 00 00 38 02 3A [15:50:27]Write i2c OK [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 07 00 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [15:50:27]RasterBufferAndPrint [15:50:27]line *****ТОВАРНЫЙ ЧЕК***** [15:50:27]line АЗС 108 [15:50:27]line Партнер нефть [15:50:27]line 02508201610067 [15:50:27]line Кассир : Джумагулова Н. [15:50:27]line Счет N : (1)348024 [15:50:27]line 15.04.2024 15:32 [15:50:27]line ПРОДАЖА [15:50:27]line ТРК (МРК, ГНК): 51 [15:50:27]line Вид ГСМ : 2710194210 [15:50:27]line ДТ-К-5 [15:50:27]line 20.000 x 72.90 [15:50:27]line ИТОГ: 1458.00 [15:50:27]line Тип оплаты: Талоны: Топливная Карта [15:50:27]line 43345 [15:50:27]line ______________________ [15:50:27]line (подпись) [15:50:27]written 0, free lines is 4095 [15:50:28]Write to MH i2c: 01 00 00 4D 02 4F [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: 01 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: 01 07 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 F4 0D 57 [15:50:28]RasterBufferAndPrint [15:50:28]line [15:50:28]line [15:50:28]line [15:50:28]line [15:50:28]line [15:50:28]written 0, free lines is 3574 [15:50:28]MH_Cut [15:50:28]Write to MH i2c: D1 01 00 54 02 01 28 [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: D1 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: D1 01 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: D1 01 00 54 02 00 27 [15:50:28]Write to MH i2c: 01 00 00 55 02 57 [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]OFD Sender: No OFD packet to send [15:50:28]*** Cut start [15:50:28]*** Partial cut [15:50:28]*** CUTSNS_PIN = 1 [15:50:28]*** CUTSNS_PIN = 0 [15:50:28]*** Brake cut motor [15:50:29]Read from MH i2c: 01 [15:50:29]MH_I2C_Read... [15:50:29]*** Stop cut motor [15:50:29]*** Cut end [15:50:29]Read from MH i2c: 01 07 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [15:50:29]process_action print_text done [15:50:29]requested_data is exist [15:50:29]produce_requested_data [15:50:29]requested_item fm.sn is exist - process it [15:50:29]wFMCommunicate request_size=4 [15:50:29]MH_SAM_APDU [15:50:29]CAPDU: 80 11 00 00 [15:50:29]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [15:50:29]Write i2c OK [15:50:29]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 17 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [15:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:50:29]wFMCommunicate OK [15:50:29]requested_item fd.num is exist - process it [15:50:29]SAM_PROTO_GetFieldsCounters [15:50:29]wFMCommunicate request_size=4 [15:50:29]MH_SAM_APDU [15:50:29]CAPDU: 80 13 00 00 [15:50:29]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [15:50:29]Write i2c OK [15:50:29]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 62 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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 AD [15:50:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 73 00 00 0E 04 04 00 75 00 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:50:29]wFMCommunicate OK [15:50:29]SAM_PROTO_GetFieldsCounters done [15:50:29]requested_item shift.num is exist - process it [15:50:29]requested_item shift.opened is exist - process it [15:50:29]req_shift_opened [15:50:29]FM_GetShiftState [15:50:29]SAM_PROTO_GetShiftState [15:50:29]wFMCommunicate request_size=4 [15:50:29]MH_SAM_APDU [15:50:29]CAPDU: 80 13 01 00 [15:50:29]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [15:50:29]Write i2c OK [15:50:29]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 0E 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CB [15:50:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:50:29]wFMCommunicate OK [15:50:29]SAM_PROTO_GetShiftState done [15:50:29]FM_GetShiftState done [15:50:29]req_shift_opened done [15:50:29]requested_item shift.open_date is exist - process it [15:50:29]req_shift_open_date [15:50:29]req_shift_open_date done [15:50:29]produce_requested_data done [15:50:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:50:29]process_action_free print_text [15:50:29]json_value_free [15:50:29]json_value_free done [15:50:29]process_json_proto returns [15:50:29]Send response to host [15:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29587,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:50:29]free response buf [15:50:29]execute_script done [15:50:29]execute_script returns [15:50:29]free content buf [15:50:29]Sock 10.Close socket [15:50:29]Sock 10.Thread stoped [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:07]accept exits with 7 [15:51:07]New connection [15:51:07]New thread 3067108708 created [15:51:07]Thread 3066965348 joined [15:51:07]Waiting for new connection... [15:51:07] Sock 7.Parse request [15:51:07]Sock 7.Check first char [15:51:07]Sock 7.First char is OK [15:51:07]request: POST /json_proto HTTP/1.0 [15:51:07]Method: POST [15:51:07]URL: /json_proto [15:51:07]Method is POST - this is cgi request [15:51:07]url: /json_proto [15:51:07]query_string will be loaded in cgi processing [15:51:07]execute_cgi json_proto POST (null) [15:51:07]execute_cgi path=json_proto method=POST [15:51:07]POST find Content-Length [15:51:07]Host: 172.17.33.3:8080 [15:51:07]Content-Length: 677 [15:51:07]Content-Type: application/json [15:51:07] [15:51:07]POST finish read [15:51:07]Found Content-Length = 677 [15:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]execute_script... [15:51: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)348026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]POST & json_proto [15:51:07]process_json_proto [15:51:07]json parsed OK: [15:51:07]protocol is kg_v1.0 [15:51:07]action value=close_receipt [15:51:07]process_action close_receipt [15:51:07]cmd_close_receipt [15:51:07]MH_GetDate [15:51:07]Write to MH i2c: F0 00 00 59 02 4A [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 09 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: F0 09 00 59 02 00 EC 4C 1D 66 23 5B 8F 65 80 [15:51:07]GetLastDocTimeStamp 1713195926 [15:51:07]current date 1713196268 [15:51:07]FM_GetShiftState [15:51:07]SAM_PROTO_GetShiftState [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 01 00 [15:51:07]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CD [15:51:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetShiftState done [15:51:07]FM_GetShiftState done [15:51:07]opened in 1713140468 [15:51:07]opened+sec_in_day 1713226868 [15:51:07]quantity*price = 50025 [15:51:07]sum+1 = 50027 [15:51:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 182 15.04.2024 15:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29588 ФПД: 203954412637322 1/tax-web-control/client/api/v1/ticket?date=20240415T155108&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29588&fm=203954412637322&tin=02508201610067®Number=0000138879044617&sum=50000 [15:51:08]StoreToDocumentArchive [15:51:08]shift 117 fd 29588 [15:51:08]save to /storage/0117/doc_00029588 [15:51:08]save last doc name /storage/0117/doc_00029588 to /storage/kkm_last_doc_name [15:51:08]save OK [15:51:08]Clear old archive folders... [15:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:08]tlvbuf is 01A64200 [15:51:08]SAM_PROTO_ClearQueue [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 09 00 00 [15:51:08]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_ClearQueue done [15:51:08]KKMCreateOFDPacket [15:51:08]OFDProtocolAddRootSTLVToBuf [15:51:08]FM_MakeSignedData [15:51:08]FM_MakeSignedData [15:51:08]SAM_PROTO_SignData [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 01 02 [15:51:08]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=255 [15:51:08]MH_SAM_APDU [15:51: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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EC 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 73 00 00 35 04 06 00 B9 [15:51:08]Write to MH i2c: E2 02 01 69 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EC 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 73 00 00 35 04 06 00 B9 00 00 42 [15:51:08]OFD Sender: No OFD packet to send [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=10 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 02 02 05 7E D6 50 CC 8A [15:51:08]Write to MH i2c: E2 0D 00 6A 02 80 0D 02 02 05 00 7E D6 50 CC 8A 00 00 EA [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [15:51:08]RAPDU: 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 0D 03 02 [15:51:08]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 0B 00 6B 02 00 42 A9 20 79 AC D9 D0 1D 90 00 DF [15:51:08]RAPDU: 42 A9 20 79 AC D9 D0 1D 90 00 [15:51:08]wFMCommunicate OK [15:51:08]SAM_PROTO_SignData done [15:51:08]FM_MakeSignedData done [15:51:08]CreateOFDProtocolMessage [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 11 00 00 [15:51:08]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [15:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:08]wFMCommunicate OK [15:51:08]CreateOFDProtocolMessage done [15:51:08]OFDSenderStorePacket 29588 [15:51:08]StoreOFDPacket docnum=29588 [15:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 E7 07 01 44 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EC 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 73 00 00 35 04 06 00 B9 7E D6 50 CC 8A 42 A9 20 79 AC D9 D0 1D [15:51:08]CheckFolder [15:51:08]dirname=/storage/ofd_packets [15:51:08]CheckFolder done [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00029588 [15:51:08]NVStorageSaveData ofd_packets/00029588 [15:51:08]File name is /storage/ofd_packets/00029588 [15:51:08]Write 301 bytes [15:51:08]NVStorageSaveData done [15:51:08]OFDSenderStorePacket done [15:51:08]KKMCreateOFDPacket done [15:51:08]NVStorageSaveData kkm_last_timestamp [15:51:08]File name is /storage/kkm_last_timestamp [15:51:08]Write 4 bytes [15:51:08]NVStorageSaveData done [15:51:08]ExternCall_PrintAddStr [15:51:08]wPrintStart [15:51:08]Write to MH i2c: 01 00 00 6D 02 6F [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [15:51:08]RasterBufferAndPrint [15:51:08]line Счет N : (1)348026 [15:51:08]line ИНН: 02508201610067 [15:51:08]line Контрольно-Кассовый Чек [15:51:08]line ПРОДАЖА [15:51:08]line ТРК (МРК, ГНК) : 42 [15:51:08]line Товар: 2710124130 [15:51:08]line Аи-92-К-5 [15:51:08]line 7.720 * 64.80 [15:51:08]line = 500.26 [15:51:08]line НДС 12% НСП 1% [15:51:08]line > о реализуемом товаре [15:51:08]line ОКРУГЛЕНИЕ: -0.26 [15:51:08]line ИТОГО: 500.00 [15:51:08]line Внесено: 500.00 [15:51:08]line СДАЧА: 0.00 [15:51:08]line НСП 1% : 4.43 [15:51:08]line НДС 12% : 53.12 [15:51:08]line Наличными: 500.00 [15:51:08]line Безнал.: 0.00 [15:51:08]line Место: АЗС № 108 "Партнер Нефть" [15:51:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:51:08]line СНО: Общий режим [15:51:08]line Чек 182 15.04.2024 15:51 [15:51:08]line Смена: 117 ФФД: 1.0 [15:51:08]line ЗНМ: 0300000027 [15:51:08]line РНМ: 0000138879044617 [15:51:08]line Версия ККМ: 001 [15:51:08]line ФМ: 0000000000963154 [15:51:08]line ФД: 29588 [15:51:08]line ФПД: 203954412637322 [15:51:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155108&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29588&fm=203954412637322&tin=02508201610067®Number=0000138879044617&sum=50000 [15:51:09]written 0, free lines is 4095 [15:51:09]OFD Sender: Processing packet 29588 [packets to send 8, broken 7] [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00029588 [15:51:09]OFD Sender: To server: pG, [15:51:09]CommunicateWithHost lk.salyk.kg:30040 [15:51:09]ConnectInit lk.salyk.kg [15:51:09]Connected sock=11 [15:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 66 E7 07 01 44 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EC 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 73 00 00 35 04 06 00 B9 7E D6 50 CC 8A 42 A9 20 79 AC D9 D0 1D [15:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 73 0B 47 00 37 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 39 36 33 31 35 34 10 04 04 00 94 73 00 00 F4 03 04 00 8C F7 1C 66 B6 04 01 00 00 57 A7 4F C8 D6 0E 50 C5 [15:51:09]CommunicateWithHost err = 0 [15:51:09]CheckOFDResponse [15:51:09]1017 (14) - 77093643461234 [15:51:09]1041 (16) - 0000000000963154 [15:51:09]1040 (4) - 29588 [15:51:09]1012 (4) - 15.04.2024 09:46 [15:51:09]1206 (1) - 0 [15:51:09]OFD Sender: Remove packet 29588 [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00029588 [15:51:09]NVStorageDeleteData [15:51:09]Write to MH i2c: 01 00 00 97 02 99 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 C6 0C 72 [15:51:09]RasterBufferAndPrint [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]line [15:51:09]written 0, free lines is 3276 [15:51:09]MH_Cut [15:51:09]Write to MH i2c: D1 01 00 9E 02 01 72 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: D1 01 00 9E 02 00 71 [15:51:09]Write to MH i2c: 01 00 00 9F 02 A1 [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]OFD Sender: No OFD packet to send [15:51:10]*** Cut start [15:51:10]*** Partial cut [15:51:10]*** CUTSNS_PIN = 1 [15:51:10]*** CUTSNS_PIN = 0 [15:51:10]*** Brake cut motor [15:51:11]Read from MH i2c: 01 [15:51:11]MH_I2C_Read... [15:51:11]*** Stop cut motor [15:51:11]*** Cut end [15:51:11]Read from MH i2c: 01 07 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [15:51:11]process_action close_receipt done [15:51:11]requested_data is exist [15:51:11]produce_requested_data [15:51:11]requested_item fm.sn is exist - process it [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 11 00 00 [15:51:11]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 17 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [15:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:11]wFMCommunicate OK [15:51:11]requested_item fd.num is exist - process it [15:51:11]SAM_PROTO_GetFieldsCounters [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 00 00 [15:51:11]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 73 00 00 0E 04 04 00 75 00 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 FB [15:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 73 00 00 0E 04 04 00 75 00 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:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetFieldsCounters done [15:51:11]requested_item shift.num is exist - process it [15:51:11]requested_item shift.opened is exist - process it [15:51:11]req_shift_opened [15:51:11]FM_GetShiftState [15:51:11]SAM_PROTO_GetShiftState [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 01 00 [15:51:11]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 15 [15:51:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetShiftState done [15:51:11]FM_GetShiftState done [15:51:11]req_shift_opened done [15:51:11]requested_item shift.open_date is exist - process it [15:51:11]req_shift_open_date [15:51:11]req_shift_open_date done [15:51:11]produce_requested_data done [15:51:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29588,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:51:11]process_action_free close_receipt [15:51:11]json_value_free [15:51:11]json_value_free done [15:51:11]process_json_proto returns [15:51:11]Send response to host [15:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29588,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:51:11]free response buf [15:51:11]execute_script done [15:51:11]execute_script returns [15:51:11]free content buf [15:51:11]Sock 7.Close socket [15:51:11]Sock 7.Thread stoped [15:51:11]accept exits with 9 [15:51:11]New connection [15:51:11]New thread 3066965348 created [15:51:11]Thread 3067108708 joined [15:51:11]Waiting for new connection... [15:51:11] Sock 9.Parse request [15:51:11]Sock 9.Check first char [15:51:11]Sock 9.First char is OK [15:51:11]request: POST /json_proto HTTP/1.0 [15:51:11]Method: POST [15:51:11]URL: /json_proto [15:51:11]Method is POST - this is cgi request [15:51:11]url: /json_proto [15:51:11]query_string will be loaded in cgi processing [15:51:11]execute_cgi json_proto POST (null) [15:51:11]execute_cgi path=json_proto method=POST [15:51:11]POST find Content-Length [15:51:11]Host: 172.17.33.3:8080 [15:51:11]Content-Length: 677 [15:51:11]Content-Type: application/json [15:51:11] [15:51:11]POST finish read [15:51:11]Found Content-Length = 677 [15:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 2.160, "sum" : 157.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 157.00, "total" : 157.00, "payments": [ { "type": 0, "sum" : 157.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:11]execute_script... [15:51: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)348027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 2.160, "sum" : 157.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 157.00, "total" : 157.00, "payments": [ { "type": 0, "sum" : 157.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:11]POST & json_proto [15:51:11]process_json_proto [15:51:11]json parsed OK: [15:51:11]protocol is kg_v1.0 [15:51:11]action value=close_receipt [15:51:11]process_action close_receipt [15:51:11]cmd_close_receipt [15:51:11]MH_GetDate [15:51:11]Write to MH i2c: F0 00 00 A3 02 94 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: F0 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: F0 09 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: F0 09 00 A3 02 00 F0 4C 1D 66 23 5B 8F 65 CE [15:51:11]GetLastDocTimeStamp 1713196268 [15:51:11]current date 1713196272 [15:51:11]FM_GetShiftState [15:51:11]SAM_PROTO_GetShiftState [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 01 00 [15:51:11]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 17 [15:51:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetShiftState done [15:51:11]FM_GetShiftState done [15:51:11]opened in 1713140468 [15:51:11]opened+sec_in_day 1713226868 [15:51:11]quantity*price = 15746 [15:51:11]sum+1 = 15747 [15:51:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 157.00 Внесено: 157.00 СДАЧА: 0.00 НСП 1% : 1.39 НДС 12% : 16.72 Наличными: 157.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 183 15.04.2024 15:51 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29589 ФПД: 134636611579133 1/tax-web-control/client/api/v1/ticket?date=20240415T155112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29589&fm=134636611579133&tin=02508201610067®Number=0000138879044617&sum=15700 [15:51:12]StoreToDocumentArchive [15:51:12]shift 117 fd 29589 [15:51:12]save to /storage/0117/doc_00029589 [15:51:12]save last doc name /storage/0117/doc_00029589 to /storage/kkm_last_doc_name [15:51:12]save OK [15:51:12]Clear old archive folders... [15:51:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:12]tlvbuf is 01A180B0 [15:51:12]SAM_PROTO_ClearQueue [15:51:12]wFMCommunicate request_size=4 [15:51:12]MH_SAM_APDU [15:51:12]CAPDU: 80 09 00 00 [15:51:12]Write to MH i2c: E2 08 00 B1 02 80 09 00 00 00 00 00 00 25 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]SAM_PROTO_ClearQueue done [15:51:13]KKMCreateOFDPacket [15:51:13]OFDProtocolAddRootSTLVToBuf [15:51:13]FM_MakeSignedData [15:51:13]FM_MakeSignedData [15:51:13]SAM_PROTO_SignData [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 01 02 [15:51:13]Write to MH i2c: E2 08 00 B2 02 80 0D 01 02 00 00 00 00 2D [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=255 [15:51:13]MH_SAM_APDU [15:51: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 70 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 73 00 00 35 04 06 00 7A [15:51:13]Write to MH i2c: E2 02 01 B3 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 70 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 73 00 00 35 04 06 00 7A 00 00 CD [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=10 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 02 02 05 73 87 68 2C FD [15:51:13]Write to MH i2c: E2 0D 00 B4 02 80 0D 02 02 05 00 73 87 68 2C FD 00 00 C5 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [15:51:13]RAPDU: 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 0D 03 02 [15:51:13]Write to MH i2c: E2 08 00 B5 02 80 0D 03 02 00 00 00 00 32 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 0B 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 0B 00 B5 02 00 09 24 3F AA DD 1B F0 B5 90 00 E6 [15:51:13]RAPDU: 09 24 3F AA DD 1B F0 B5 90 00 [15:51:13]wFMCommunicate OK [15:51:13]SAM_PROTO_SignData done [15:51:13]FM_MakeSignedData done [15:51:13]CreateOFDProtocolMessage [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 11 00 00 [15:51:13]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 17 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [15:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:13]wFMCommunicate OK [15:51:13]CreateOFDProtocolMessage done [15:51:13]OFDSenderStorePacket 29589 [15:51:13]StoreOFDPacket docnum=29589 [15:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 92 07 01 05 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 73 00 00 35 04 06 00 7A 73 87 68 2C FD 09 24 3F AA DD 1B F0 B5 [15:51:13]CheckFolder [15:51:13]dirname=/storage/ofd_packets [15:51:13]CheckFolder done [15:51:13]ProducePacketName [15:51:13]name=ofd_packets/00029589 [15:51:13]NVStorageSaveData ofd_packets/00029589 [15:51:13]File name is /storage/ofd_packets/00029589 [15:51:13]Write 301 bytes [15:51:13]NVStorageSaveData done [15:51:13]OFDSenderStorePacket done [15:51:13]KKMCreateOFDPacket done [15:51:13]NVStorageSaveData kkm_last_timestamp [15:51:13]File name is /storage/kkm_last_timestamp [15:51:13]Write 4 bytes [15:51:13]NVStorageSaveData done [15:51:13]ExternCall_PrintAddStr [15:51:13]wPrintStart [15:51:13]Write to MH i2c: 01 00 00 B7 02 B9 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 07 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [15:51:13]RasterBufferAndPrint [15:51:13]line Счет N : (1)348027 [15:51:13]line ИНН: 02508201610067 [15:51:13]line Контрольно-Кассовый Чек [15:51:13]line ПРОДАЖА [15:51:13]line ТРК (МРК, ГНК) : 33 [15:51:13]line Товар: 2710124500 [15:51:13]line Аи-95-К-5 [15:51:13]line 2.160 * 72.90 [15:51:13]line = 157.46 [15:51:13]line НДС 12% НСП 1% [15:51:13]line > о реализуемом товаре [15:51:13]line ОКРУГЛЕНИЕ: -0.46 [15:51:13]line ИТОГО: 157.00 [15:51:13]line Внесено: 157.00 [15:51:13]line СДАЧА: 0.00 [15:51:13]line НСП 1% : 1.39 [15:51:13]line НДС 12% : 16.72 [15:51:13]line Наличными: 157.00 [15:51:13]line Безнал.: 0.00 [15:51:13]line Место: АЗС № 108 "Партнер Нефть" [15:51:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:51:13]line СНО: Общий режим [15:51:13]line Чек 183 15.04.2024 15:51 [15:51:13]line Смена: 117 ФФД: 1.0 [15:51:13]line ЗНМ: 0300000027 [15:51:13]line РНМ: 0000138879044617 [15:51:13]line Версия ККМ: 001 [15:51:13]line ФМ: 0000000000963154 [15:51:13]line ФД: 29589 [15:51:13]line ФПД: 134636611579133 [15:51:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155112&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29589&fm=134636611579133&tin=02508201610067®Number=0000138879044617&sum=15700 [15:51:13]OFD Sender: Processing packet 29589 [packets to send 8, broken 7] [15:51:13]ProducePacketName [15:51:13]name=ofd_packets/00029589 [15:51:13]OFD Sender: To server: pG, [15:51:13]CommunicateWithHost lk.salyk.kg:30040 [15:51:13]ConnectInit lk.salyk.kg [15:51:13]written 0, free lines is 4095 [15:51:14]Connected sock=10 [15:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 92 07 01 05 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 06 00 00 00 00 07 04 06 00 54 3D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F0 4C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 73 00 00 35 04 06 00 7A 73 87 68 2C FD 09 24 3F AA DD 1B F0 B5 [15:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E3 E9 47 00 D3 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 73 00 00 F4 03 04 00 91 F7 1C 66 B6 04 01 00 00 6E 77 45 31 24 7F CB F2 [15:51:14]CommunicateWithHost err = 0 [15:51:14]CheckOFDResponse [15:51:14]1017 (14) - 77093643461234 [15:51:14]1041 (16) - 0000000000963154 [15:51:14]1040 (4) - 29589 [15:51:14]1012 (4) - 15.04.2024 09:46 [15:51:14]1206 (1) - 0 [15:51:14]OFD Sender: Remove packet 29589 [15:51:14]ProducePacketName [15:51:14]name=ofd_packets/00029589 [15:51:14]NVStorageDeleteData [15:51:14]Write to MH i2c: 01 00 00 E1 02 E3 [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 07 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 DC 0C D2 [15:51:14]RasterBufferAndPrint [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]line [15:51:14]written 0, free lines is 3304 [15:51:14]MH_Cut [15:51:14]Write to MH i2c: D1 01 00 E8 02 01 BC [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 01 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: D1 01 00 E8 02 00 BB [15:51:14]Write to MH i2c: 01 00 00 E9 02 EB [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]OFD Sender: No OFD packet to send [15:51:15]*** Cut start [15:51:15]*** Partial cut [15:51:15]*** CUTSNS_PIN = 1 [15:51:15]*** CUTSNS_PIN = 0 [15:51:15]*** Brake cut motor [15:51:15]Read from MH i2c: 01 [15:51:15]MH_I2C_Read... [15:51:15]*** Stop cut motor [15:51:15]*** Cut end [15:51:15]Read from MH i2c: 01 07 00 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [15:51:15]process_action close_receipt done [15:51:15]requested_data is exist [15:51:15]produce_requested_data [15:51:15]requested_item fm.sn is exist - process it [15:51:15]wFMCommunicate request_size=4 [15:51:15]MH_SAM_APDU [15:51:15]CAPDU: 80 11 00 00 [15:51:15]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [15:51:15]Write i2c OK [15:51:15]MH_I2C_Read... [15:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:15]Read from MH i2c: E2 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 17 00 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [15:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:15]wFMCommunicate OK [15:51:15]requested_item fd.num is exist - process it [15:51:15]SAM_PROTO_GetFieldsCounters [15:51:15]wFMCommunicate request_size=4 [15:51:15]MH_SAM_APDU [15:51:15]CAPDU: 80 13 00 00 [15:51:15]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [15:51:15]Write i2c OK [15:51:15]MH_I2C_Read... [15:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:15]Read from MH i2c: E2 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 62 00 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 62 00 EB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 73 00 00 0E 04 04 00 75 00 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 49 [15:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 73 00 00 0E 04 04 00 75 00 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:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetFieldsCounters done [15:51:16]requested_item shift.num is exist - process it [15:51:16]requested_item shift.opened is exist - process it [15:51:16]req_shift_opened [15:51:16]FM_GetShiftState [15:51:16]SAM_PROTO_GetShiftState [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 01 00 [15:51:16]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5F [15:51:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetShiftState done [15:51:16]FM_GetShiftState done [15:51:16]req_shift_opened done [15:51:16]requested_item shift.open_date is exist - process it [15:51:16]req_shift_open_date [15:51:16]req_shift_open_date done [15:51:16]produce_requested_data done [15:51:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29589,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:51:16]process_action_free close_receipt [15:51:16]json_value_free [15:51:16]json_value_free done [15:51:16]process_json_proto returns [15:51:16]Send response to host [15:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29589,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:51:16]free response buf [15:51:16]execute_script done [15:51:16]execute_script returns [15:51:16]free content buf [15:51:16]Sock 9.Close socket [15:51:16]Sock 9.Thread stoped [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:33]accept exits with 7 [15:52:33]New connection [15:52:33]New thread 3067108708 created [15:52:33]Thread 3066965348 joined [15:52:33]Waiting for new connection... [15:52:33] Sock 7.Parse request [15:52:33]Sock 7.Check first char [15:52:33]Sock 7.First char is OK [15:52:33]request: POST /json_proto HTTP/1.0 [15:52:33]Method: POST [15:52:33]URL: /json_proto [15:52:33]Method is POST - this is cgi request [15:52:33]url: /json_proto [15:52:33]query_string will be loaded in cgi processing [15:52:33]execute_cgi json_proto POST (null) [15:52:33]execute_cgi path=json_proto method=POST [15:52:33]POST find Content-Length [15:52:33]Host: 172.17.33.3:8080 [15:52:33]Content-Length: 819 [15:52:33]Content-Type: application/json [15:52:33] [15:52:33]POST finish read [15:52:33]Found Content-Length = 819 [15:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:33]execute_script... [15:52: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)348028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:33]POST & json_proto [15:52:33]process_json_proto [15:52:33]json parsed OK: [15:52:33]protocol is kg_v1.0 [15:52:33]action value=close_receipt [15:52:33]process_action close_receipt [15:52:33]cmd_close_receipt [15:52:33]MH_GetDate [15:52:33]Write to MH i2c: F0 00 00 ED 02 DE [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 09 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 09 00 ED 02 00 41 4D 1D 66 23 5B 8F 65 6A [15:52:33]GetLastDocTimeStamp 1713196272 [15:52:33]current date 1713196353 [15:52:33]FM_GetShiftState [15:52:33]SAM_PROTO_GetShiftState [15:52:33]wFMCommunicate request_size=4 [15:52:33]MH_SAM_APDU [15:52:33]CAPDU: 80 13 01 00 [15:52:33]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0E 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 61 [15:52:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:52:33]wFMCommunicate OK [15:52:33]SAM_PROTO_GetShiftState done [15:52:33]FM_GetShiftState done [15:52:33]opened in 1713140468 [15:52:33]opened+sec_in_day 1713226868 [15:52:33]quantity*price = 100051 [15:52:33]sum+1 = 100052 [15:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 184 15.04.2024 15:52 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29590 ФПД: 201887654186145 1/tax-web-control/client/api/v1/ticket?date=20240415T155234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29590&fm=201887654186145&tin=02508201610067®Number=0000138879044617&sum=100051 [15:52:34]StoreToDocumentArchive [15:52:34]shift 117 fd 29590 [15:52:34]save to /storage/0117/doc_00029590 [15:52:34]save last doc name /storage/0117/doc_00029590 to /storage/kkm_last_doc_name [15:52:34]save OK [15:52:34]Clear old archive folders... [15:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:34]tlvbuf is 01A60B10 [15:52:34]SAM_PROTO_ClearQueue [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 09 00 00 [15:52:34]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [15:52:34]RAPDU: 90 00 [15:52:34]wFMCommunicate OK [15:52:34]SAM_PROTO_ClearQueue done [15:52:34]KKMCreateOFDPacket [15:52:34]OFDProtocolAddRootSTLVToBuf [15:52:34]FM_MakeSignedData [15:52:34]FM_MakeSignedData [15:52:34]SAM_PROTO_SignData [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 0D 01 02 [15:52:34]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [15:52:34]RAPDU: 90 00 [15:52:34]wFMCommunicate OK [15:52:34]wFMCommunicate request_size=255 [15:52:34]MH_SAM_APDU [15:52: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 4D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 73 00 00 35 04 06 00 B7 [15:52:34]Write to MH i2c: E2 02 01 FD 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 4D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 73 00 00 35 04 06 00 B7 00 00 C2 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [15:52:34]RAPDU: 90 00 [15:52:34]wFMCommunicate OK [15:52:34]wFMCommunicate request_size=10 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 0D 02 02 05 9D A1 E9 8C A1 [15:52:34]Write to MH i2c: E2 0D 00 FE 02 80 0D 02 02 05 00 9D A1 E9 8C A1 00 00 D8 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [15:52:34]RAPDU: 90 00 [15:52:34]wFMCommunicate OK [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 0D 03 02 [15:52:34]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 0B 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 0B 00 FF 02 00 61 C9 05 C8 54 77 01 3F 90 00 7F [15:52:34]RAPDU: 61 C9 05 C8 54 77 01 3F 90 00 [15:52:34]wFMCommunicate OK [15:52:34]SAM_PROTO_SignData done [15:52:34]FM_MakeSignedData done [15:52:34]CreateOFDProtocolMessage [15:52:34]wFMCommunicate request_size=4 [15:52:34]MH_SAM_APDU [15:52:34]CAPDU: 80 11 00 00 [15:52:34]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:34]Read from MH i2c: E2 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 17 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [15:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:52:34]wFMCommunicate OK [15:52:34]CreateOFDProtocolMessage done [15:52:34]OFDSenderStorePacket 29590 [15:52:34]StoreOFDPacket docnum=29590 [15:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C0 2B 07 01 A6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 4D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 73 00 00 35 04 06 00 B7 9D A1 E9 8C A1 61 C9 05 C8 54 77 01 3F [15:52:34]CheckFolder [15:52:34]dirname=/storage/ofd_packets [15:52:34]CheckFolder done [15:52:34]ProducePacketName [15:52:34]name=ofd_packets/00029590 [15:52:34]NVStorageSaveData ofd_packets/00029590 [15:52:34]File name is /storage/ofd_packets/00029590 [15:52:34]Write 301 bytes [15:52:34]NVStorageSaveData done [15:52:34]OFDSenderStorePacket done [15:52:34]KKMCreateOFDPacket done [15:52:34]NVStorageSaveData kkm_last_timestamp [15:52:34]File name is /storage/kkm_last_timestamp [15:52:34]Write 4 bytes [15:52:34]NVStorageSaveData done [15:52:34]ExternCall_PrintAddStr [15:52:34]wPrintStart [15:52:34]Write to MH i2c: 01 00 00 01 03 04 [15:52:34]Write i2c OK [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 07 00 [15:52:34]MH_I2C_Read... [15:52:34]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [15:52:34]RasterBufferAndPrint [15:52:34]line Счет N : (1)348028 [15:52:34]line ИНН: 02508201610067 [15:52:34]line Контрольно-Кассовый Чек [15:52:34]line ПРОДАЖА [15:52:34]line ТРК (МРК, ГНК) : 13 [15:52:34]line Товар: 2710124130 [15:52:34]line Аи-92-К-5 [15:52:34]line 15.440 * 64.80 [15:52:34]line = 1000.51 [15:52:34]line НДС 12% НСП 1% [15:52:34]line > о реализуемом товаре [15:52:34]line ИТОГО: 1000.51 [15:52:34]line НСП 1% : 8.85 [15:52:34]line НДС 12% : 106.25 [15:52:34]line Наличными: 0.00 [15:52:34]line Безнал.: 1000.51 [15:52:34]line Место: АЗС № 108 "Партнер Нефть" [15:52:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:52:34]line СНО: Общий режим [15:52:34]line Чек 184 15.04.2024 15:52 [15:52:34]line Смена: 117 ФФД: 1.0 [15:52:34]line ЗНМ: 0300000027 [15:52:34]line РНМ: 0000138879044617 [15:52:34]line Версия ККМ: 001 [15:52:34]line Платежная система: Бакай Банк [15:52:34]line ФМ: 0000000000963154 [15:52:34]line ФД: 29590 [15:52:34]line ФПД: 201887654186145 [15:52:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29590&fm=201887654186145&tin=02508201610067®Number=0000138879044617&sum=100051 [15:52:35]OFD Sender: Processing packet 29590 [packets to send 8, broken 7] [15:52:35]ProducePacketName [15:52:35]name=ofd_packets/00029590 [15:52:35]OFD Sender: To server: pG, [15:52:35]CommunicateWithHost lk.salyk.kg:30040 [15:52:35]ConnectInit lk.salyk.kg [15:52:35]written 0, free lines is 4095 [15:52:35]Connected sock=10 [15:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C0 2B 07 01 A6 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 42 4D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 73 00 00 35 04 06 00 B7 9D A1 E9 8C A1 61 C9 05 C8 54 77 01 3F [15:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2F 19 47 00 C6 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 73 00 00 F4 03 04 00 E2 F7 1C 66 B6 04 01 00 00 A6 35 47 D1 16 D8 C3 7E [15:52:35]CommunicateWithHost err = 0 [15:52:35]CheckOFDResponse [15:52:35]1017 (14) - 77093643461234 [15:52:35]1041 (16) - 0000000000963154 [15:52:35]1040 (4) - 29590 [15:52:35]1012 (4) - 15.04.2024 09:48 [15:52:35]1206 (1) - 0 [15:52:35]OFD Sender: Remove packet 29590 [15:52:35]ProducePacketName [15:52:35]name=ofd_packets/00029590 [15:52:35]NVStorageDeleteData [15:52:35]Write to MH i2c: 01 00 00 2A 03 2D [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 07 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 DE 0C 1E [15:52:35]RasterBufferAndPrint [15:52:35]line [15:52:35]line [15:52:35]line [15:52:35]line [15:52:35]line [15:52:35]written 0, free lines is 3300 [15:52:35]MH_Cut [15:52:35]Write to MH i2c: D1 01 00 31 03 01 06 [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: D1 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: D1 01 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: D1 01 00 31 03 00 05 [15:52:35]Write to MH i2c: 01 00 00 32 03 35 [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]OFD Sender: No OFD packet to send [15:52:36]*** Cut start [15:52:36]*** Partial cut [15:52:36]*** CUTSNS_PIN = 1 [15:52:36]*** CUTSNS_PIN = 0 [15:52:36]*** Brake cut motor [15:52:36]Read from MH i2c: 01 [15:52:36]MH_I2C_Read... [15:52:36]*** Stop cut motor [15:52:36]*** Cut end [15:52:36]Read from MH i2c: 01 07 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [15:52:36]process_action close_receipt done [15:52:36]requested_data is exist [15:52:36]produce_requested_data [15:52:36]requested_item fm.sn is exist - process it [15:52:36]wFMCommunicate request_size=4 [15:52:36]MH_SAM_APDU [15:52:36]CAPDU: 80 11 00 00 [15:52:36]Write to MH i2c: E2 08 00 33 03 80 11 00 00 00 00 00 00 B0 [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:36]Read from MH i2c: E2 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: E2 17 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: E2 17 00 33 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [15:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:52:36]wFMCommunicate OK [15:52:36]requested_item fd.num is exist - process it [15:52:36]SAM_PROTO_GetFieldsCounters [15:52:36]wFMCommunicate request_size=4 [15:52:36]MH_SAM_APDU [15:52:36]CAPDU: 80 13 00 00 [15:52:36]Write to MH i2c: E2 08 00 34 03 80 13 00 00 00 00 00 00 B3 [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 62 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 62 00 34 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 73 00 00 0E 04 04 00 75 00 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 97 [15:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 73 00 00 0E 04 04 00 75 00 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 [15:52:37]wFMCommunicate OK [15:52:37]SAM_PROTO_GetFieldsCounters done [15:52:37]requested_item shift.num is exist - process it [15:52:37]requested_item shift.opened is exist - process it [15:52:37]req_shift_opened [15:52:37]FM_GetShiftState [15:52:37]SAM_PROTO_GetShiftState [15:52:37]wFMCommunicate request_size=4 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 13 01 00 [15:52:37]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 0E 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A9 [15:52:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:52:37]wFMCommunicate OK [15:52:37]SAM_PROTO_GetShiftState done [15:52:37]FM_GetShiftState done [15:52:37]req_shift_opened done [15:52:37]requested_item shift.open_date is exist - process it [15:52:37]req_shift_open_date [15:52:37]req_shift_open_date done [15:52:37]produce_requested_data done [15:52:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29590,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:52:37]process_action_free close_receipt [15:52:37]json_value_free [15:52:37]json_value_free done [15:52:37]process_json_proto returns [15:52:37]Send response to host [15:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29590,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:52:37]free response buf [15:52:37]execute_script done [15:52:37]execute_script returns [15:52:37]free content buf [15:52:37]Sock 7.Close socket [15:52:37]Sock 7.Thread stoped [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]accept exits with 9 [15:55:45]New connection [15:55:45]New thread 3066965348 created [15:55:45]Thread 3067108708 joined [15:55:45]Waiting for new connection... [15:55:45] Sock 9.Parse request [15:55:45]Sock 9.Check first char [15:55:45]Sock 9.First char is OK [15:55:45]request: POST /json_proto HTTP/1.0 [15:55:45]Method: POST [15:55:45]URL: /json_proto [15:55:45]Method is POST - this is cgi request [15:55:45]url: /json_proto [15:55:45]query_string will be loaded in cgi processing [15:55:45]execute_cgi json_proto POST (null) [15:55:45]execute_cgi path=json_proto method=POST [15:55:45]POST find Content-Length [15:55:45]Host: 172.17.33.3:8080 [15:55:45]Content-Length: 805 [15:55:45]Content-Type: application/json [15:55:45] [15:55:45]POST finish read [15:55:45]Found Content-Length = 805 [15:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:45]execute_script... [15:55:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:45]POST & json_proto [15:55:45]process_json_proto [15:55:45]json parsed OK: [15:55:45]protocol is kg_v1.0 [15:55:45]action value=close_receipt [15:55:45]process_action close_receipt [15:55:45]cmd_close_receipt [15:55:45]MH_GetDate [15:55:45]Write to MH i2c: F0 00 00 36 03 28 [15:55:45]Write i2c OK [15:55:45]MH_I2C_Read... [15:55:45]Read from MH i2c: F0 [15:55:45]MH_I2C_Read... [15:55:45]Read from MH i2c: F0 09 00 [15:55:45]MH_I2C_Read... [15:55:45]Read from MH i2c: F0 09 00 36 03 00 02 4E 1D 66 23 5B 8F 65 76 [15:55:45]GetLastDocTimeStamp 1713196354 [15:55:45]current date 1713196546 [15:55:45]FM_GetShiftState [15:55:45]SAM_PROTO_GetShiftState [15:55:45]wFMCommunicate request_size=4 [15:55:45]MH_SAM_APDU [15:55:45]CAPDU: 80 13 01 00 [15:55:45]Write to MH i2c: E2 08 00 37 03 80 13 01 00 00 00 00 00 B7 [15:55:45]Write i2c OK [15:55:45]MH_I2C_Read... [15:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:45]Read from MH i2c: E2 [15:55:45]MH_I2C_Read... [15:55:45]Read from MH i2c: E2 0E 00 [15:55:45]MH_I2C_Read... [15:55:45]Read from MH i2c: E2 0E 00 37 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AB [15:55:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:55:45]wFMCommunicate OK [15:55:45]SAM_PROTO_GetShiftState done [15:55:45]FM_GetShiftState done [15:55:45]opened in 1713140468 [15:55:45]opened+sec_in_day 1713226868 [15:55:45]quantity*price = 500021 [15:55:45]sum+1 = 500022 [15:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.21 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.21 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 185 15.04.2024 15:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29591 ФПД: 201319451255719 1/tax-web-control/client/api/v1/ticket?date=20240415T155546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29591&fm=201319451255719&tin=02508201610067®Number=0000138879044617&sum=500021 [15:55:46]StoreToDocumentArchive [15:55:46]shift 117 fd 29591 [15:55:46]save to /storage/0117/doc_00029591 [15:55:46]save last doc name /storage/0117/doc_00029591 to /storage/kkm_last_doc_name [15:55:46]save OK [15:55:46]Clear old archive folders... [15:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:55:46]tlvbuf is 01A7FF20 [15:55:46]SAM_PROTO_ClearQueue [15:55:46]wFMCommunicate request_size=4 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 09 00 00 [15:55:46]Write to MH i2c: E2 08 00 44 03 80 09 00 00 00 00 00 00 B9 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [15:55:46]RAPDU: 90 00 [15:55:46]wFMCommunicate OK [15:55:46]SAM_PROTO_ClearQueue done [15:55:46]KKMCreateOFDPacket [15:55:46]OFDProtocolAddRootSTLVToBuf [15:55:46]FM_MakeSignedData [15:55:46]FM_MakeSignedData [15:55:46]SAM_PROTO_SignData [15:55:46]wFMCommunicate request_size=4 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 0D 01 02 [15:55:46]Write to MH i2c: E2 08 00 45 03 80 0D 01 02 00 00 00 00 C1 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [15:55:46]RAPDU: 90 00 [15:55:46]wFMCommunicate OK [15:55:46]wFMCommunicate request_size=255 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 73 00 00 35 04 06 00 B7 19 56 60 [15:55:46]Write to MH i2c: E2 02 01 46 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 73 00 00 35 04 06 00 B7 19 56 60 00 00 88 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [15:55:46]RAPDU: 90 00 [15:55:46]wFMCommunicate OK [15:55:46]wFMCommunicate request_size=7 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 0D 02 02 02 E3 A7 [15:55:46]Write to MH i2c: E2 0A 00 47 03 80 0D 02 02 02 00 E3 A7 00 00 52 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [15:55:46]RAPDU: 90 00 [15:55:46]wFMCommunicate OK [15:55:46]wFMCommunicate request_size=4 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 0D 03 02 [15:55:46]Write to MH i2c: E2 08 00 48 03 80 0D 03 02 00 00 00 00 C6 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 0B 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 0B 00 48 03 00 6B 72 43 47 FF 28 DF 89 90 00 BD [15:55:46]RAPDU: 6B 72 43 47 FF 28 DF 89 90 00 [15:55:46]wFMCommunicate OK [15:55:46]SAM_PROTO_SignData done [15:55:46]FM_MakeSignedData done [15:55:46]CreateOFDProtocolMessage [15:55:46]wFMCommunicate request_size=4 [15:55:46]MH_SAM_APDU [15:55:46]CAPDU: 80 11 00 00 [15:55:46]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:46]Read from MH i2c: E2 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 17 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [15:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:55:46]wFMCommunicate OK [15:55:46]CreateOFDProtocolMessage done [15:55:46]OFDSenderStorePacket 29591 [15:55:46]StoreOFDPacket docnum=29591 [15:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 EE 6C 04 01 20 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 73 00 00 35 04 06 00 B7 19 56 60 E3 A7 6B 72 43 47 FF 28 DF 89 [15:55:46]CheckFolder [15:55:46]dirname=/storage/ofd_packets [15:55:46]CheckFolder done [15:55:46]ProducePacketName [15:55:46]name=ofd_packets/00029591 [15:55:46]NVStorageSaveData ofd_packets/00029591 [15:55:46]File name is /storage/ofd_packets/00029591 [15:55:46]Write 298 bytes [15:55:46]NVStorageSaveData done [15:55:46]OFDSenderStorePacket done [15:55:46]KKMCreateOFDPacket done [15:55:46]NVStorageSaveData kkm_last_timestamp [15:55:46]File name is /storage/kkm_last_timestamp [15:55:46]Write 4 bytes [15:55:46]NVStorageSaveData done [15:55:46]ExternCall_PrintAddStr [15:55:46]wPrintStart [15:55:46]Write to MH i2c: 01 00 00 4A 03 4D [15:55:46]Write i2c OK [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: 01 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: 01 07 00 [15:55:46]MH_I2C_Read... [15:55:46]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [15:55:46]RasterBufferAndPrint [15:55:46]line Счет N : (1)348029 [15:55:46]line ИНН: 02508201610067 [15:55:46]line Контрольно-Кассовый Чек [15:55:46]line ПРОДАЖА [15:55:46]line ТРК (МРК, ГНК) : 51 [15:55:46]line Товар: 2710194210 [15:55:46]line ДТ-К-5 [15:55:46]line 68.590 * 72.90 [15:55:46]line = 5000.21 [15:55:46]line НДС 12% НСП 1% [15:55:46]line > о реализуемом товаре [15:55:46]line ИТОГО: 5000.21 [15:55:46]line НСП 1% : 44.25 [15:55:46]line НДС 12% : 531.00 [15:55:46]line Наличными: 0.00 [15:55:46]line Безнал.: 5000.21 [15:55:46]line Место: АЗС № 108 "Партнер Нефть" [15:55:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:55:46]line СНО: Общий режим [15:55:46]line Чек 185 15.04.2024 15:55 [15:55:46]line Смена: 117 ФФД: 1.0 [15:55:46]line ЗНМ: 0300000027 [15:55:46]line РНМ: 0000138879044617 [15:55:46]line Версия ККМ: 001 [15:55:46]line Платежная система: О! деньги [15:55:46]line ФМ: 0000000000963154 [15:55:46]line ФД: 29591 [15:55:46]line ФПД: 201319451255719 [15:55:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155546&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29591&fm=201319451255719&tin=02508201610067®Number=0000138879044617&sum=500021 [15:55:46]written 0, free lines is 4095 [15:55:46]OFD Sender: Processing packet 29591 [packets to send 8, broken 7] [15:55:46]ProducePacketName [15:55:46]name=ofd_packets/00029591 [15:55:46]OFD Sender: To server: pG, [15:55:46]CommunicateWithHost lk.salyk.kg:30040 [15:55:46]ConnectInit lk.salyk.kg [15:55:46]Connected sock=10 [15:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 EE 6C 04 01 20 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 02 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 73 00 00 35 04 06 00 B7 19 56 60 E3 A7 6B 72 43 47 FF 28 DF 89 [15:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 55 71 47 00 BC 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 39 36 33 31 35 34 10 04 04 00 97 73 00 00 F4 03 04 00 A2 F8 1C 66 B6 04 01 00 00 D4 BC FF 19 29 A2 51 6C [15:55:47]CommunicateWithHost err = 0 [15:55:47]CheckOFDResponse [15:55:47]1017 (14) - 77093643461234 [15:55:47]1041 (16) - 0000000000963154 [15:55:47]1040 (4) - 29591 [15:55:47]1012 (4) - 15.04.2024 09:51 [15:55:47]1206 (1) - 0 [15:55:47]OFD Sender: Remove packet 29591 [15:55:47]ProducePacketName [15:55:47]name=ofd_packets/00029591 [15:55:47]NVStorageDeleteData [15:55:47]Write to MH i2c: 01 00 00 73 03 76 [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 07 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 DC 0C 65 [15:55:47]RasterBufferAndPrint [15:55:47]line [15:55:47]line [15:55:47]line [15:55:47]line [15:55:47]line [15:55:47]written 0, free lines is 3296 [15:55:47]MH_Cut [15:55:47]Write to MH i2c: D1 01 00 7A 03 01 4F [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D1 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D1 01 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D1 01 00 7A 03 00 4E [15:55:47]Write to MH i2c: 01 00 00 7B 03 7E [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]OFD Sender: No OFD packet to send [15:55:48]*** Cut start [15:55:48]*** Partial cut [15:55:48]*** CUTSNS_PIN = 1 [15:55:48]*** CUTSNS_PIN = 0 [15:55:48]*** Brake cut motor [15:55:48]Read from MH i2c: 01 [15:55:48]MH_I2C_Read... [15:55:48]*** Stop cut motor [15:55:48]*** Cut end [15:55:48]Read from MH i2c: 01 07 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 FF 0F 93 [15:55:48]process_action close_receipt done [15:55:48]requested_data is exist [15:55:48]produce_requested_data [15:55:48]requested_item fm.sn is exist - process it [15:55:48]wFMCommunicate request_size=4 [15:55:48]MH_SAM_APDU [15:55:48]CAPDU: 80 11 00 00 [15:55:48]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:48]Read from MH i2c: E2 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 17 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [15:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:55:48]wFMCommunicate OK [15:55:48]requested_item fd.num is exist - process it [15:55:48]SAM_PROTO_GetFieldsCounters [15:55:48]wFMCommunicate request_size=4 [15:55:48]MH_SAM_APDU [15:55:48]CAPDU: 80 13 00 00 [15:55:48]Write to MH i2c: E2 08 00 7D 03 80 13 00 00 00 00 00 00 FC [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:48]Read from MH i2c: E2 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 62 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 62 00 7D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 73 00 00 0E 04 04 00 75 00 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 E4 [15:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 73 00 00 0E 04 04 00 75 00 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 [15:55:48]wFMCommunicate OK [15:55:48]SAM_PROTO_GetFieldsCounters done [15:55:48]requested_item shift.num is exist - process it [15:55:48]requested_item shift.opened is exist - process it [15:55:48]req_shift_opened [15:55:48]FM_GetShiftState [15:55:48]SAM_PROTO_GetShiftState [15:55:48]wFMCommunicate request_size=4 [15:55:48]MH_SAM_APDU [15:55:48]CAPDU: 80 13 01 00 [15:55:48]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:48]Read from MH i2c: E2 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 0E 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F2 [15:55:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:55:48]wFMCommunicate OK [15:55:48]SAM_PROTO_GetShiftState done [15:55:48]FM_GetShiftState done [15:55:48]req_shift_opened done [15:55:48]requested_item shift.open_date is exist - process it [15:55:48]req_shift_open_date [15:55:48]req_shift_open_date done [15:55:48]produce_requested_data done [15:55:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29591,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:55:48]process_action_free close_receipt [15:55:48]json_value_free [15:55:48]json_value_free done [15:55:48]process_json_proto returns [15:55:48]Send response to host [15:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29591,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:55:48]free response buf [15:55:48]execute_script done [15:55:48]execute_script returns [15:55:48]free content buf [15:55:48]Sock 9.Close socket [15:55:48]Sock 9.Thread stoped [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]accept exits with 7 [15:56:02]New connection [15:56:02]New thread 3067108708 created [15:56:02]Thread 3066965348 joined [15:56:02]Waiting for new connection... [15:56:02] Sock 7.Parse request [15:56:02]Sock 7.Check first char [15:56:02]Sock 7.First char is OK [15:56:02]request: POST /json_proto HTTP/1.0 [15:56:02]Method: POST [15:56:02]URL: /json_proto [15:56:02]Method is POST - this is cgi request [15:56:02]url: /json_proto [15:56:02]query_string will be loaded in cgi processing [15:56:02]execute_cgi json_proto POST (null) [15:56:02]execute_cgi path=json_proto method=POST [15:56:02]POST find Content-Length [15:56:02]Host: 172.17.33.3:8080 [15:56:02]Content-Length: 678 [15:56:02]Content-Type: application/json [15:56:02] [15:56:02]POST finish read [15:56:02]Found Content-Length = 678 [15:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:02]execute_script... [15:56:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:02]POST & json_proto [15:56:02]process_json_proto [15:56:02]json parsed OK: [15:56:02]protocol is kg_v1.0 [15:56:02]action value=close_receipt [15:56:02]process_action close_receipt [15:56:02]cmd_close_receipt [15:56:02]MH_GetDate [15:56:02]Write to MH i2c: F0 00 00 7F 03 71 [15:56:02]Write i2c OK [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 09 00 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: F0 09 00 7F 03 00 13 4E 1D 66 23 5B 8F 65 D0 [15:56:02]GetLastDocTimeStamp 1713196546 [15:56:02]current date 1713196563 [15:56:02]FM_GetShiftState [15:56:02]SAM_PROTO_GetShiftState [15:56:02]wFMCommunicate request_size=4 [15:56:02]MH_SAM_APDU [15:56:02]CAPDU: 80 13 01 00 [15:56:02]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [15:56:02]Write i2c OK [15:56:02]MH_I2C_Read... [15:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:02]Read from MH i2c: E2 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: E2 0E 00 [15:56:02]MH_I2C_Read... [15:56:02]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F4 [15:56:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:56:02]wFMCommunicate OK [15:56:02]SAM_PROTO_GetShiftState done [15:56:02]FM_GetShiftState done [15:56:02]opened in 1713140468 [15:56:02]opened+sec_in_day 1713226868 [15:56:02]quantity*price = 70048 [15:56:02]sum+1 = 70050 [15:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 186 15.04.2024 15:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29592 ФПД: 16851192662023 1/tax-web-control/client/api/v1/ticket?date=20240415T155603&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29592&fm=16851192662023&tin=02508201610067®Number=0000138879044617&sum=70000 [15:56:03]StoreToDocumentArchive [15:56:03]shift 117 fd 29592 [15:56:03]save to /storage/0117/doc_00029592 [15:56:03]save last doc name /storage/0117/doc_00029592 to /storage/kkm_last_doc_name [15:56:03]save OK [15:56:03]Clear old archive folders... [15:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:03]tlvbuf is 01A65FD0 [15:56:03]SAM_PROTO_ClearQueue [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 09 00 00 [15:56:03]Write to MH i2c: E2 08 00 8D 03 80 09 00 00 00 00 00 00 02 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_ClearQueue done [15:56:03]KKMCreateOFDPacket [15:56:03]OFDProtocolAddRootSTLVToBuf [15:56:03]FM_MakeSignedData [15:56:03]FM_MakeSignedData [15:56:03]SAM_PROTO_SignData [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 01 02 [15:56:03]Write to MH i2c: E2 08 00 8E 03 80 0D 01 02 00 00 00 00 0A [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=255 [15:56:03]MH_SAM_APDU [15:56: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 BA 00 00 00 F4 03 04 00 13 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 73 00 00 35 04 06 00 0F [15:56:03]Write to MH i2c: E2 02 01 8F 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 BA 00 00 00 F4 03 04 00 13 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 73 00 00 35 04 06 00 0F 00 00 7C [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=10 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 02 02 05 53 79 5A 48 07 [15:56:03]Write to MH i2c: E2 0D 00 90 03 80 0D 02 02 05 00 53 79 5A 48 07 00 00 8C [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 03 02 [15:56:03]Write to MH i2c: E2 08 00 91 03 80 0D 03 02 00 00 00 00 0F [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0B 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0B 00 91 03 00 25 C3 E4 76 73 C8 BD 25 90 00 6F [15:56:03]RAPDU: 25 C3 E4 76 73 C8 BD 25 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_SignData done [15:56:03]FM_MakeSignedData done [15:56:03]CreateOFDProtocolMessage [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 11 00 00 [15:56:03]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [15:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:56:03]wFMCommunicate OK [15:56:03]CreateOFDProtocolMessage done [15:56:03]OFDSenderStorePacket 29592 [15:56:03]StoreOFDPacket docnum=29592 [15:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CC 6F 07 01 1E FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 BA 00 00 00 F4 03 04 00 13 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 73 00 00 35 04 06 00 0F 53 79 5A 48 07 25 C3 E4 76 73 C8 BD 25 [15:56:03]CheckFolder [15:56:03]dirname=/storage/ofd_packets [15:56:03]CheckFolder done [15:56:03]ProducePacketName [15:56:03]name=ofd_packets/00029592 [15:56:03]NVStorageSaveData ofd_packets/00029592 [15:56:03]File name is /storage/ofd_packets/00029592 [15:56:03]Write 301 bytes [15:56:03]NVStorageSaveData done [15:56:03]OFDSenderStorePacket done [15:56:03]KKMCreateOFDPacket done [15:56:03]NVStorageSaveData kkm_last_timestamp [15:56:03]File name is /storage/kkm_last_timestamp [15:56:03]Write 4 bytes [15:56:03]NVStorageSaveData done [15:56:03]ExternCall_PrintAddStr [15:56:03]wPrintStart [15:56:03]Write to MH i2c: 01 00 00 93 03 96 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 07 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [15:56:03]RasterBufferAndPrint [15:56:03]line Счет N : (1)348031 [15:56:03]line ИНН: 02508201610067 [15:56:03]line Контрольно-Кассовый Чек [15:56:03]line ПРОДАЖА [15:56:03]line ТРК (МРК, ГНК) : 13 [15:56:03]line Товар: 2710124130 [15:56:03]line Аи-92-К-5 [15:56:03]line 10.810 * 64.80 [15:56:03]line = 700.49 [15:56:03]line НДС 12% НСП 1% [15:56:03]line > о реализуемом товаре [15:56:03]line ОКРУГЛЕНИЕ: -0.49 [15:56:03]line ИТОГО: 700.00 [15:56:03]line Внесено: 700.00 [15:56:03]line СДАЧА: 0.00 [15:56:03]line НСП 1% : 6.20 [15:56:03]line НДС 12% : 74.39 [15:56:03]line Наличными: 700.00 [15:56:03]line Безнал.: 0.00 [15:56:03]line Место: АЗС № 108 "Партнер Нефть" [15:56:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:56:03]line СНО: Общий режим [15:56:03]line Чек 186 15.04.2024 15:56 [15:56:03]line Смена: 117 ФФД: 1.0 [15:56:04]line ЗНМ: 0300000027 [15:56:04]line РНМ: 0000138879044617 [15:56:04]line Версия ККМ: 001 [15:56:04]line ФМ: 0000000000963154 [15:56:04]line ФД: 29592 [15:56:04]line ФПД: 16851192662023 [15:56:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155603&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29592&fm=16851192662023&tin=02508201610067®Number=0000138879044617&sum=70000 [15:56:04]OFD Sender: Processing packet 29592 [packets to send 8, broken 7] [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00029592 [15:56:04]OFD Sender: To server: pG, [15:56:04]CommunicateWithHost lk.salyk.kg:30040 [15:56:04]ConnectInit lk.salyk.kg [15:56:04]written 0, free lines is 4095 [15:56:04]Connected sock=10 [15:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CC 6F 07 01 1E FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 BA 00 00 00 F4 03 04 00 13 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 73 00 00 35 04 06 00 0F 53 79 5A 48 07 25 C3 E4 76 73 C8 BD 25 [15:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 04 47 00 CA B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 73 00 00 F4 03 04 00 B3 F8 1C 66 B6 04 01 00 00 8A 88 20 AC 4F CD E3 2C [15:56:04]CommunicateWithHost err = 0 [15:56:04]CheckOFDResponse [15:56:04]1017 (14) - 77093643461234 [15:56:04]1041 (16) - 0000000000963154 [15:56:04]1040 (4) - 29592 [15:56:04]1012 (4) - 15.04.2024 09:51 [15:56:04]1206 (1) - 0 [15:56:04]OFD Sender: Remove packet 29592 [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00029592 [15:56:04]NVStorageDeleteData [15:56:04]Write to MH i2c: 01 00 00 BD 03 C0 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 D6 0C A9 [15:56:04]RasterBufferAndPrint [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]written 0, free lines is 3292 [15:56:04]MH_Cut [15:56:04]Write to MH i2c: D1 01 00 C4 03 01 99 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 C4 03 00 98 [15:56:04]Write to MH i2c: 01 00 00 C5 03 C8 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]OFD Sender: No OFD packet to send [15:56:05]*** Cut start [15:56:05]*** Partial cut [15:56:05]*** CUTSNS_PIN = 1 [15:56:05]*** CUTSNS_PIN = 0 [15:56:05]*** Brake cut motor [15:56:06]Read from MH i2c: 01 [15:56:06]MH_I2C_Read... [15:56:06]*** Stop cut motor [15:56:06]*** Cut end [15:56:06]Read from MH i2c: 01 07 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 FF 0F DD [15:56:06]process_action close_receipt done [15:56:06]requested_data is exist [15:56:06]produce_requested_data [15:56:06]requested_item fm.sn is exist - process it [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 11 00 00 [15:56:06]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [15:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:56:06]wFMCommunicate OK [15:56:06]requested_item fd.num is exist - process it [15:56:06]SAM_PROTO_GetFieldsCounters [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 13 00 00 [15:56:06]Write to MH i2c: E2 08 00 C7 03 80 13 00 00 00 00 00 00 46 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 C7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 73 00 00 0E 04 04 00 75 00 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 32 [15:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 73 00 00 0E 04 04 00 75 00 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 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetFieldsCounters done [15:56:06]requested_item shift.num is exist - process it [15:56:06]requested_item shift.opened is exist - process it [15:56:06]req_shift_opened [15:56:06]FM_GetShiftState [15:56:06]SAM_PROTO_GetShiftState [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 13 01 00 [15:56:06]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3C [15:56:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetShiftState done [15:56:06]FM_GetShiftState done [15:56:06]req_shift_opened done [15:56:06]requested_item shift.open_date is exist - process it [15:56:06]req_shift_open_date [15:56:06]req_shift_open_date done [15:56:06]produce_requested_data done [15:56:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29592,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:56:06]process_action_free close_receipt [15:56:06]json_value_free [15:56:06]json_value_free done [15:56:06]process_json_proto returns [15:56:06]Send response to host [15:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29592,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:56:06]free response buf [15:56:06]execute_script done [15:56:06]execute_script returns [15:56:06]free content buf [15:56:06]Sock 7.Close socket [15:56:06]Sock 7.Thread stoped [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:17]accept exits with 9 [15:56:17]New connection [15:56:17]New thread 3066965348 created [15:56:17]Thread 3067108708 joined [15:56:17]Waiting for new connection... [15:56:17] Sock 9.Parse request [15:56:17]Sock 9.Check first char [15:56:17]Sock 9.First char is OK [15:56:17]request: POST /json_proto HTTP/1.0 [15:56:17]Method: POST [15:56:17]URL: /json_proto [15:56:17]Method is POST - this is cgi request [15:56:17]url: /json_proto [15:56:17]query_string will be loaded in cgi processing [15:56:17]execute_cgi json_proto POST (null) [15:56:17]execute_cgi path=json_proto method=POST [15:56:17]POST find Content-Length [15:56:17]Host: 172.17.33.3:8080 [15:56:17]Content-Length: 1200 [15:56:17]Content-Type: application/json [15:56:17] [15:56:17]POST finish read [15:56:17]Found Content-Length = 1200 [15:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348030\u000A15.04.2024 15:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A3466231\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:17]execute_script... [15:56:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348030\u000A15.04.2024 15:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A3466231\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:17]POST & json_proto [15:56:17]process_json_proto [15:56:17]json parsed OK: [15:56:17]protocol is kg_v1.0 [15:56:17]action value=print_text [15:56:17]process_action print_text [15:56:17]cmd_print_text [15:56:17]ExternCall_PrintAddStr [15:56:17]wPrintStart [15:56:17]Write to MH i2c: 01 00 00 C9 03 CC [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [15:56:17]RasterBufferAndPrint [15:56:17]line *****ТОВАРНЫЙ ЧЕК***** [15:56:17]line АЗС 108 [15:56:17]line Партнер нефть [15:56:17]line 02508201610067 [15:56:17]line Кассир : Джумагулова Н. [15:56:17]line Счет N : (1)348030 [15:56:17]line 15.04.2024 15:37 [15:56:17]line ПРОДАЖА [15:56:17]line ТРК (МРК, ГНК): 61 [15:56:17]line Вид ГСМ : 2710194210 [15:56:17]line ДТ-К-5 [15:56:17]line 50.000 x 72.90 [15:56:17]line ИТОГ: 3645.00 [15:56:17]line Тип оплаты: Талоны: Партнер нефть [15:56:17]line 3466231 [15:56:17]line ______________________ [15:56:17]line (подпись) [15:56:17]written 0, free lines is 4095 [15:56:17]Write to MH i2c: 01 00 00 DE 03 E1 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 F7 0D EC [15:56:17]RasterBufferAndPrint [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]line [15:56:17]written 0, free lines is 3577 [15:56:17]MH_Cut [15:56:17]Write to MH i2c: D1 01 00 E5 03 01 BA [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 01 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: D1 01 00 E5 03 00 B9 [15:56:17]Write to MH i2c: 01 00 00 E6 03 E9 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** Cut start [15:56:17]*** Partial cut [15:56:17]*** CUTSNS_PIN = 1 [15:56:17]*** CUTSNS_PIN = 0 [15:56:18]*** Brake cut motor [15:56:18]Read from MH i2c: 01 [15:56:18]MH_I2C_Read... [15:56:18]*** Stop cut motor [15:56:18]*** Cut end [15:56:18]Read from MH i2c: 01 07 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [15:56:18]process_action print_text done [15:56:18]requested_data is exist [15:56:18]produce_requested_data [15:56:18]requested_item fm.sn is exist - process it [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 11 00 00 [15:56:18]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 17 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [15:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:56:18]wFMCommunicate OK [15:56:18]requested_item fd.num is exist - process it [15:56:18]SAM_PROTO_GetFieldsCounters [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 13 00 00 [15:56:18]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 62 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 73 00 00 0E 04 04 00 75 00 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 53 [15:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 73 00 00 0E 04 04 00 75 00 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 [15:56:18]wFMCommunicate OK [15:56:18]SAM_PROTO_GetFieldsCounters done [15:56:18]requested_item shift.num is exist - process it [15:56:18]requested_item shift.opened is exist - process it [15:56:18]req_shift_opened [15:56:18]FM_GetShiftState [15:56:18]SAM_PROTO_GetShiftState [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 13 01 00 [15:56:18]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 0E 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5D [15:56:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:56:18]wFMCommunicate OK [15:56:18]SAM_PROTO_GetShiftState done [15:56:18]FM_GetShiftState done [15:56:18]req_shift_opened done [15:56:18]requested_item shift.open_date is exist - process it [15:56:18]req_shift_open_date [15:56:18]req_shift_open_date done [15:56:18]produce_requested_data done [15:56:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29592,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:56:18]process_action_free print_text [15:56:18]json_value_free [15:56:18]json_value_free done [15:56:18]process_json_proto returns [15:56:18]Send response to host [15:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29592,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:56:18]free response buf [15:56:18]execute_script done [15:56:18]execute_script returns [15:56:18]free content buf [15:56:18]Sock 9.Close socket [15:56:18]Sock 9.Thread stoped [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:47]accept exits with 7 [15:59:47]New connection [15:59:47]New thread 3067108708 created [15:59:47]Thread 3066965348 joined [15:59:47]Waiting for new connection... [15:59:47] Sock 7.Parse request [15:59:47]Sock 7.Check first char [15:59:47]Sock 7.First char is OK [15:59:47]request: POST /json_proto HTTP/1.0 [15:59:47]Method: POST [15:59:47]URL: /json_proto [15:59:47]Method is POST - this is cgi request [15:59:47]url: /json_proto [15:59:47]query_string will be loaded in cgi processing [15:59:47]execute_cgi json_proto POST (null) [15:59:47]execute_cgi path=json_proto method=POST [15:59:47]POST find Content-Length [15:59:47]Host: 172.17.33.3:8080 [15:59:47]Content-Length: 677 [15:59:47]Content-Type: application/json [15:59:47] [15:59:47]POST finish read [15:59:47]Found Content-Length = 677 [15:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.800, "sum" : 505.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:47]execute_script... [15:59: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)348032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.800, "sum" : 505.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 505.00, "total" : 505.00, "payments": [ { "type": 0, "sum" : 505.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:47]POST & json_proto [15:59:47]process_json_proto [15:59:47]json parsed OK: [15:59:47]protocol is kg_v1.0 [15:59:47]action value=close_receipt [15:59:47]process_action close_receipt [15:59:47]cmd_close_receipt [15:59:47]MH_GetDate [15:59:47]Write to MH i2c: F0 00 00 EA 03 DC [15:59:47]Write i2c OK [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 09 00 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: F0 09 00 EA 03 00 F4 4E 1D 66 23 5B 8F 65 1C [15:59:47]GetLastDocTimeStamp 1713196563 [15:59:47]current date 1713196788 [15:59:47]FM_GetShiftState [15:59:47]SAM_PROTO_GetShiftState [15:59:47]wFMCommunicate request_size=4 [15:59:47]MH_SAM_APDU [15:59:47]CAPDU: 80 13 01 00 [15:59:47]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [15:59:47]Write i2c OK [15:59:47]MH_I2C_Read... [15:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:47]Read from MH i2c: E2 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 0E 00 [15:59:47]MH_I2C_Read... [15:59:47]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5F [15:59:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:59:47]wFMCommunicate OK [15:59:47]SAM_PROTO_GetShiftState done [15:59:47]FM_GetShiftState done [15:59:47]opened in 1713140468 [15:59:47]opened+sec_in_day 1713226868 [15:59:47]quantity*price = 50544 [15:59:47]sum+1 = 50545 [15:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 505.00 Внесено: 505.00 СДАЧА: 0.00 НСП 1% : 4.47 НДС 12% : 53.67 Наличными: 505.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 187 15.04.2024 15:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29593 ФПД: 6038218572977 1/tax-web-control/client/api/v1/ticket?date=20240415T155948&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29593&fm=6038218572977&tin=02508201610067®Number=0000138879044617&sum=50500 [15:59:48]StoreToDocumentArchive [15:59:48]shift 117 fd 29593 [15:59:48]save to /storage/0117/doc_00029593 [15:59:48]save last doc name /storage/0117/doc_00029593 to /storage/kkm_last_doc_name [15:59:48]save OK [15:59:48]Clear old archive folders... [15:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:48]tlvbuf is 01A82080 [15:59:48]SAM_PROTO_ClearQueue [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 09 00 00 [15:59:48]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]SAM_PROTO_ClearQueue done [15:59:48]KKMCreateOFDPacket [15:59:48]OFDProtocolAddRootSTLVToBuf [15:59:48]FM_MakeSignedData [15:59:48]FM_MakeSignedData [15:59:48]SAM_PROTO_SignData [15:59:48]wFMCommunicate request_size=4 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 01 02 [15:59:48]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:48]Read from MH i2c: E2 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 [15:59:48]MH_I2C_Read... [15:59:48]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [15:59:48]RAPDU: 90 00 [15:59:48]wFMCommunicate OK [15:59:48]wFMCommunicate request_size=255 [15:59:48]MH_SAM_APDU [15:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F4 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 73 00 00 35 04 06 00 05 [15:59:48]Write to MH i2c: E2 02 01 FA 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 78 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F4 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 73 00 00 35 04 06 00 05 00 00 B3 [15:59:48]Write i2c OK [15:59:48]MH_I2C_Read... [15:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:49]Read from MH i2c: E2 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 03 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [15:59:49]RAPDU: 90 00 [15:59:49]wFMCommunicate OK [15:59:49]wFMCommunicate request_size=10 [15:59:49]MH_SAM_APDU [15:59:49]CAPDU: 80 0D 02 02 05 7D E1 DF 84 B1 [15:59:49]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 7D E1 DF 84 B1 00 00 F4 [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:49]Read from MH i2c: E2 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 03 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [15:59:49]RAPDU: 90 00 [15:59:49]wFMCommunicate OK [15:59:49]wFMCommunicate request_size=4 [15:59:49]MH_SAM_APDU [15:59:49]CAPDU: 80 0D 03 02 [15:59:49]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:49]Read from MH i2c: E2 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 0B 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 0B 00 FC 03 00 4A 74 E4 5C 34 3C D3 78 90 00 34 [15:59:49]RAPDU: 4A 74 E4 5C 34 3C D3 78 90 00 [15:59:49]wFMCommunicate OK [15:59:49]SAM_PROTO_SignData done [15:59:49]FM_MakeSignedData done [15:59:49]CreateOFDProtocolMessage [15:59:49]wFMCommunicate request_size=4 [15:59:49]MH_SAM_APDU [15:59:49]CAPDU: 80 11 00 00 [15:59:49]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:49]Read from MH i2c: E2 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 17 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [15:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:59:49]wFMCommunicate OK [15:59:49]CreateOFDProtocolMessage done [15:59:49]OFDSenderStorePacket 29593 [15:59:49]StoreOFDPacket docnum=29593 [15:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 99 07 01 29 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 78 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F4 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 73 00 00 35 04 06 00 05 7D E1 DF 84 B1 4A 74 E4 5C 34 3C D3 78 [15:59:49]CheckFolder [15:59:49]dirname=/storage/ofd_packets [15:59:49]CheckFolder done [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00029593 [15:59:49]NVStorageSaveData ofd_packets/00029593 [15:59:49]File name is /storage/ofd_packets/00029593 [15:59:49]Write 301 bytes [15:59:49]NVStorageSaveData done [15:59:49]OFDSenderStorePacket done [15:59:49]KKMCreateOFDPacket done [15:59:49]NVStorageSaveData kkm_last_timestamp [15:59:49]File name is /storage/kkm_last_timestamp [15:59:49]Write 4 bytes [15:59:49]NVStorageSaveData done [15:59:49]ExternCall_PrintAddStr [15:59:49]wPrintStart [15:59:49]Write to MH i2c: 01 00 00 FE 03 01 [15:59:49]Write i2c OK [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 [15:59:49]MH_I2C_Read... [15:59:49]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [15:59:49]RasterBufferAndPrint [15:59:49]line Счет N : (1)348032 [15:59:49]line ИНН: 02508201610067 [15:59:49]line Контрольно-Кассовый Чек [15:59:49]line ПРОДАЖА [15:59:49]line ТРК (МРК, ГНК) : 13 [15:59:49]line Товар: 2710124130 [15:59:49]line Аи-92-К-5 [15:59:49]line 7.800 * 64.80 [15:59:49]line = 505.44 [15:59:49]line НДС 12% НСП 1% [15:59:49]line > о реализуемом товаре [15:59:49]line ОКРУГЛЕНИЕ: -0.44 [15:59:49]line ИТОГО: 505.00 [15:59:49]line Внесено: 505.00 [15:59:49]line СДАЧА: 0.00 [15:59:49]line НСП 1% : 4.47 [15:59:49]line НДС 12% : 53.67 [15:59:49]line Наличными: 505.00 [15:59:49]line Безнал.: 0.00 [15:59:49]line Место: АЗС № 108 "Партнер Нефть" [15:59:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:59:49]line СНО: Общий режим [15:59:49]line Чек 187 15.04.2024 15:59 [15:59:49]line Смена: 117 ФФД: 1.0 [15:59:49]line ЗНМ: 0300000027 [15:59:49]line РНМ: 0000138879044617 [15:59:49]line Версия ККМ: 001 [15:59:49]line ФМ: 0000000000963154 [15:59:49]line ФД: 29593 [15:59:49]line ФПД: 6038218572977 [15:59:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T155948&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29593&fm=6038218572977&tin=02508201610067®Number=0000138879044617&sum=50500 [15:59:49]OFD Sender: Processing packet 29593 [packets to send 8, broken 7] [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00029593 [15:59:49]OFD Sender: To server: pG, [15:59:49]CommunicateWithHost lk.salyk.kg:30040 [15:59:49]ConnectInit lk.salyk.kg [15:59:49]written 0, free lines is 4095 [15:59:49]Connected sock=10 [15:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 99 07 01 29 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 78 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 14 00 00 00 00 07 04 06 00 44 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F4 4E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 73 00 00 35 04 06 00 05 7D E1 DF 84 B1 4A 74 E4 5C 34 3C D3 78 [15:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EA 20 47 00 5F 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 39 36 33 31 35 34 10 04 04 00 99 73 00 00 F4 03 04 00 95 F9 1C 66 B6 04 01 00 00 31 B0 91 0D 37 34 4B 6A [15:59:49]CommunicateWithHost err = 0 [15:59:49]CheckOFDResponse [15:59:49]1017 (14) - 77093643461234 [15:59:49]1041 (16) - 0000000000963154 [15:59:49]1040 (4) - 29593 [15:59:49]1012 (4) - 15.04.2024 09:55 [15:59:49]1206 (1) - 0 [15:59:49]OFD Sender: Remove packet 29593 [15:59:49]ProducePacketName [15:59:49]name=ofd_packets/00029593 [15:59:49]NVStorageDeleteData [15:59:50]Write to MH i2c: 01 00 00 28 04 2C [15:59:50]Write i2c OK [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: 01 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: 01 07 00 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 C5 0C 04 [15:59:50]RasterBufferAndPrint [15:59:50]line [15:59:50]line [15:59:50]line [15:59:50]line [15:59:50]line [15:59:50]written 0, free lines is 3274 [15:59:50]MH_Cut [15:59:50]Write to MH i2c: D1 01 00 2F 04 01 05 [15:59:50]Write i2c OK [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: D1 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: D1 01 00 [15:59:50]MH_I2C_Read... [15:59:50]Read from MH i2c: D1 01 00 2F 04 00 04 [15:59:50]Write to MH i2c: 01 00 00 30 04 34 [15:59:50]Write i2c OK [15:59:50]MH_I2C_Read... [15:59:50]OFD Sender: No OFD packet to send [15:59:50]*** Cut start [15:59:50]*** Partial cut [15:59:50]*** CUTSNS_PIN = 1 [15:59:50]*** CUTSNS_PIN = 0 [15:59:51]*** Brake cut motor [15:59:51]Read from MH i2c: 01 [15:59:51]MH_I2C_Read... [15:59:51]*** Stop cut motor [15:59:51]*** Cut end [15:59:51]Read from MH i2c: 01 07 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [15:59:51]process_action close_receipt done [15:59:51]requested_data is exist [15:59:51]produce_requested_data [15:59:51]requested_item fm.sn is exist - process it [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 11 00 00 [15:59:51]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 17 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [15:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:59:51]wFMCommunicate OK [15:59:51]requested_item fd.num is exist - process it [15:59:51]SAM_PROTO_GetFieldsCounters [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 13 00 00 [15:59:51]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 73 00 00 0E 04 04 00 75 00 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 A2 [15:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 73 00 00 0E 04 04 00 75 00 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 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetFieldsCounters done [15:59:51]requested_item shift.num is exist - process it [15:59:51]requested_item shift.opened is exist - process it [15:59:51]req_shift_opened [15:59:51]FM_GetShiftState [15:59:51]SAM_PROTO_GetShiftState [15:59:51]wFMCommunicate request_size=4 [15:59:51]MH_SAM_APDU [15:59:51]CAPDU: 80 13 01 00 [15:59:51]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [15:59:51]Write i2c OK [15:59:51]MH_I2C_Read... [15:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:51]Read from MH i2c: E2 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 [15:59:51]MH_I2C_Read... [15:59:51]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A8 [15:59:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [15:59:51]wFMCommunicate OK [15:59:51]SAM_PROTO_GetShiftState done [15:59:51]FM_GetShiftState done [15:59:51]req_shift_opened done [15:59:51]requested_item shift.open_date is exist - process it [15:59:51]req_shift_open_date [15:59:51]req_shift_open_date done [15:59:51]produce_requested_data done [15:59:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29593,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [15:59:51]process_action_free close_receipt [15:59:51]json_value_free [15:59:51]json_value_free done [15:59:51]process_json_proto returns [15:59:51]Send response to host [15:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29593,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [15:59:51]free response buf [15:59:51]execute_script done [15:59:51]execute_script returns [15:59:51]free content buf [15:59:51]Sock 7.Close socket [15:59:51]Sock 7.Thread stoped [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]accept exits with 9 [16:00:35]New connection [16:00:35]New thread 3066965348 created [16:00:35]Thread 3067108708 joined [16:00:35]Waiting for new connection... [16:00:35] Sock 9.Parse request [16:00:35]Sock 9.Check first char [16:00:35]Sock 9.First char is OK [16:00:35]request: POST /json_proto HTTP/1.0 [16:00:35]Method: POST [16:00:35]URL: /json_proto [16:00:35]Method is POST - this is cgi request [16:00:35]url: /json_proto [16:00:35]query_string will be loaded in cgi processing [16:00:35]execute_cgi json_proto POST (null) [16:00:35]execute_cgi path=json_proto method=POST [16:00:35]POST find Content-Length [16:00:35]Host: 172.17.33.3:8080 [16:00:35]Content-Length: 670 [16:00:35]Content-Type: application/json [16:00:35] [16:00:35]POST finish read [16:00:35]Found Content-Length = 670 [16:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.220, "sum" : 475.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:35]execute_script... [16:00: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)348033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.220, "sum" : 475.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:35]POST & json_proto [16:00:35]process_json_proto [16:00:35]json parsed OK: [16:00:35]protocol is kg_v1.0 [16:00:35]action value=close_receipt [16:00:35]process_action close_receipt [16:00:35]cmd_close_receipt [16:00:35]MH_GetDate [16:00:35]Write to MH i2c: F0 00 00 34 04 27 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 09 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 09 00 34 04 00 24 4F 1D 66 23 5B 8F 65 98 [16:00:35]GetLastDocTimeStamp 1713196788 [16:00:35]current date 1713196836 [16:00:35]FM_GetShiftState [16:00:35]SAM_PROTO_GetShiftState [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 13 01 00 [16:00:35]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0E 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AA [16:00:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:00:35]wFMCommunicate OK [16:00:35]SAM_PROTO_GetShiftState done [16:00:35]FM_GetShiftState done [16:00:35]opened in 1713140468 [16:00:35]opened+sec_in_day 1713226868 [16:00:35]quantity*price = 47507 [16:00:35]sum+1 = 47509 [16:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 475.00 Внесено: 475.00 СДАЧА: 0.00 НСП 1% : 4.20 НДС 12% : 50.45 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 188 15.04.2024 16:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29594 ФПД: 240256330944543 1/tax-web-control/client/api/v1/ticket?date=20240415T160036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29594&fm=240256330944543&tin=02508201610067®Number=0000138879044617&sum=47500 [16:00:36]StoreToDocumentArchive [16:00:36]shift 117 fd 29594 [16:00:36]save to /storage/0117/doc_00029594 [16:00:36]save last doc name /storage/0117/doc_00029594 to /storage/kkm_last_doc_name [16:00:36]save OK [16:00:36]Clear old archive folders... [16:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:00:36]tlvbuf is 01A60520 [16:00:36]SAM_PROTO_ClearQueue [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 09 00 00 [16:00:36]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_ClearQueue done [16:00:36]KKMCreateOFDPacket [16:00:36]OFDProtocolAddRootSTLVToBuf [16:00:36]FM_MakeSignedData [16:00:36]FM_MakeSignedData [16:00:36]SAM_PROTO_SignData [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 01 02 [16:00:36]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=255 [16:00:36]MH_SAM_APDU [16:00: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 94 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 24 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 73 00 00 35 04 06 00 [16:00:36]Write to MH i2c: E2 02 01 44 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 94 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 24 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 73 00 00 35 04 06 00 00 00 26 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=11 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 02 02 06 DA 83 09 42 D0 1F [16:00:36]Write to MH i2c: E2 0E 00 45 04 80 0D 02 02 06 00 DA 83 09 42 D0 1F 00 00 66 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 03 02 [16:00:36]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0B 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0B 00 46 04 00 F5 26 E8 C7 94 CB 40 82 90 00 B1 [16:00:36]RAPDU: F5 26 E8 C7 94 CB 40 82 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_SignData done [16:00:36]FM_MakeSignedData done [16:00:36]CreateOFDProtocolMessage [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 11 00 00 [16:00:36]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 47 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [16:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:00:36]wFMCommunicate OK [16:00:36]CreateOFDProtocolMessage done [16:00:36]OFDSenderStorePacket 29594 [16:00:36]StoreOFDPacket docnum=29594 [16:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FF B6 08 01 B0 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 94 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 24 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 73 00 00 35 04 06 00 DA 83 09 42 D0 1F F5 26 E8 C7 94 CB 40 82 [16:00:36]CheckFolder [16:00:36]dirname=/storage/ofd_packets [16:00:36]CheckFolder done [16:00:36]ProducePacketName [16:00:36]name=ofd_packets/00029594 [16:00:36]NVStorageSaveData ofd_packets/00029594 [16:00:36]File name is /storage/ofd_packets/00029594 [16:00:36]Write 302 bytes [16:00:36]NVStorageSaveData done [16:00:36]OFDSenderStorePacket done [16:00:36]KKMCreateOFDPacket done [16:00:36]NVStorageSaveData kkm_last_timestamp [16:00:36]File name is /storage/kkm_last_timestamp [16:00:36]Write 4 bytes [16:00:36]NVStorageSaveData done [16:00:36]ExternCall_PrintAddStr [16:00:36]wPrintStart [16:00:36]Write to MH i2c: 01 00 00 48 04 4C [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [16:00:36]RasterBufferAndPrint [16:00:36]line Счет N : (1)348033 [16:00:36]line ИНН: 02508201610067 [16:00:36]line Контрольно-Кассовый Чек [16:00:36]line ПРОДАЖА [16:00:36]line ТРК (МРК, ГНК) : 31 [16:00:36]line Товар: 2710124130 [16:00:36]line SUPER-92-К-5 [16:00:36]line 7.220 * 65.80 [16:00:36]line = 475.08 [16:00:36]line НДС 12% НСП 1% [16:00:36]line > о реализуемом товаре [16:00:36]line ОКРУГЛЕНИЕ: -0.08 [16:00:36]line ИТОГО: 475.00 [16:00:36]line Внесено: 475.00 [16:00:36]line СДАЧА: 0.00 [16:00:36]line НСП 1% : 4.20 [16:00:36]line НДС 12% : 50.45 [16:00:36]line Наличными: 475.00 [16:00:36]line Безнал.: 0.00 [16:00:36]line Место: АЗС № 108 "Партнер Нефть" [16:00:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:00:36]line СНО: Общий режим [16:00:36]line Чек 188 15.04.2024 16:00 [16:00:36]line Смена: 117 ФФД: 1.0 [16:00:36]line ЗНМ: 0300000027 [16:00:36]line РНМ: 0000138879044617 [16:00:36]line Версия ККМ: 001 [16:00:36]line ФМ: 0000000000963154 [16:00:36]line ФД: 29594 [16:00:36]line ФПД: 240256330944543 [16:00:37]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29594&fm=240256330944543&tin=02508201610067®Number=0000138879044617&sum=47500 [16:00:37]OFD Sender: Processing packet 29594 [packets to send 8, broken 7] [16:00:37]ProducePacketName [16:00:37]name=ofd_packets/00029594 [16:00:37]OFD Sender: To server: pG, [16:00:37]CommunicateWithHost lk.salyk.kg:30040 [16:00:37]ConnectInit lk.salyk.kg [16:00:37]written 0, free lines is 4095 [16:00:37]Connected sock=10 [16:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FF B6 08 01 B0 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 94 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 13 00 00 00 00 07 04 06 00 8C B9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 24 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 73 00 00 35 04 06 00 DA 83 09 42 D0 1F F5 26 E8 C7 94 CB 40 82 [16:00:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 69 06 47 00 17 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 39 36 33 31 35 34 10 04 04 00 9A 73 00 00 F4 03 04 00 C4 F9 1C 66 B6 04 01 00 00 DA FE C1 E0 A9 67 53 C2 [16:00:37]CommunicateWithHost err = 0 [16:00:37]CheckOFDResponse [16:00:37]1017 (14) - 77093643461234 [16:00:37]1041 (16) - 0000000000963154 [16:00:37]1040 (4) - 29594 [16:00:37]1012 (4) - 15.04.2024 09:56 [16:00:37]1206 (1) - 0 [16:00:37]OFD Sender: Remove packet 29594 [16:00:37]ProducePacketName [16:00:37]name=ofd_packets/00029594 [16:00:37]NVStorageDeleteData [16:00:37]Write to MH i2c: 01 00 00 72 04 76 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 DC 0C 65 [16:00:37]RasterBufferAndPrint [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]written 0, free lines is 3298 [16:00:37]MH_Cut [16:00:37]Write to MH i2c: D1 01 00 79 04 01 4F [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 01 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 01 00 79 04 00 4E [16:00:37]Write to MH i2c: 01 00 00 7A 04 7E [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]OFD Sender: No OFD packet to send [16:00:38]*** Cut start [16:00:38]*** Partial cut [16:00:38]*** CUTSNS_PIN = 1 [16:00:38]*** CUTSNS_PIN = 0 [16:00:38]*** Brake cut motor [16:00:39]Read from MH i2c: 01 [16:00:39]MH_I2C_Read... [16:00:39]*** Stop cut motor [16:00:39]*** Cut end [16:00:39]Read from MH i2c: 01 07 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [16:00:39]process_action close_receipt done [16:00:39]requested_data is exist [16:00:39]produce_requested_data [16:00:39]requested_item fm.sn is exist - process it [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 11 00 00 [16:00:39]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 17 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [16:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:00:39]wFMCommunicate OK [16:00:39]requested_item fd.num is exist - process it [16:00:39]SAM_PROTO_GetFieldsCounters [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 13 00 00 [16:00:39]Write to MH i2c: E2 08 00 7C 04 80 13 00 00 00 00 00 00 FC [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 62 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 62 00 7C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 73 00 00 0E 04 04 00 75 00 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 F0 [16:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 73 00 00 0E 04 04 00 75 00 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:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_GetFieldsCounters done [16:00:39]requested_item shift.num is exist - process it [16:00:39]requested_item shift.opened is exist - process it [16:00:39]req_shift_opened [16:00:39]FM_GetShiftState [16:00:39]SAM_PROTO_GetShiftState [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 13 01 00 [16:00:39]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F2 [16:00:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_GetShiftState done [16:00:39]FM_GetShiftState done [16:00:39]req_shift_opened done [16:00:39]requested_item shift.open_date is exist - process it [16:00:39]req_shift_open_date [16:00:39]req_shift_open_date done [16:00:39]produce_requested_data done [16:00:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29594,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:00:39]process_action_free close_receipt [16:00:39]json_value_free [16:00:39]json_value_free done [16:00:39]process_json_proto returns [16:00:39]Send response to host [16:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29594,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:00:39]free response buf [16:00:39]execute_script done [16:00:39]execute_script returns [16:00:39]free content buf [16:00:39]Sock 9.Close socket [16:00:39]Sock 9.Thread stoped [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:05]accept exits with 7 [16:02:05]New connection [16:02:05]New thread 3067108708 created [16:02:05]Thread 3066965348 joined [16:02:05]Waiting for new connection... [16:02:05] Sock 7.Parse request [16:02:05]Sock 7.Check first char [16:02:05]Sock 7.First char is OK [16:02:05]request: POST /json_proto HTTP/1.0 [16:02:05]Method: POST [16:02:05]URL: /json_proto [16:02:05]Method is POST - this is cgi request [16:02:05]url: /json_proto [16:02:05]query_string will be loaded in cgi processing [16:02:05]execute_cgi json_proto POST (null) [16:02:05]execute_cgi path=json_proto method=POST [16:02:05]POST find Content-Length [16:02:05]Host: 172.17.33.3:8080 [16:02:05]Content-Length: 670 [16:02:05]Content-Type: application/json [16:02:05] [16:02:05]POST finish read [16:02:05]Found Content-Length = 670 [16:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:02:05]execute_script... [16:02: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)348034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:02:05]POST & json_proto [16:02:05]process_json_proto [16:02:05]json parsed OK: [16:02:05]protocol is kg_v1.0 [16:02:05]action value=close_receipt [16:02:05]process_action close_receipt [16:02:05]cmd_close_receipt [16:02:05]MH_GetDate [16:02:05]Write to MH i2c: F0 00 00 7E 04 71 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: F0 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: F0 09 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: F0 09 00 7E 04 00 7E 4F 1D 66 23 5B 8F 65 3C [16:02:05]GetLastDocTimeStamp 1713196836 [16:02:05]current date 1713196926 [16:02:05]FM_GetShiftState [16:02:05]SAM_PROTO_GetShiftState [16:02:05]wFMCommunicate request_size=4 [16:02:05]MH_SAM_APDU [16:02:05]CAPDU: 80 13 01 00 [16:02:05]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:05]Read from MH i2c: E2 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 0E 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F4 [16:02:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:02:05]wFMCommunicate OK [16:02:05]SAM_PROTO_GetShiftState done [16:02:05]FM_GetShiftState done [16:02:05]opened in 1713140468 [16:02:05]opened+sec_in_day 1713226868 [16:02:05]quantity*price = 50008 [16:02:05]sum+1 = 50009 [16:02:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 189 15.04.2024 16:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29595 ФПД: 184743337064166 1/tax-web-control/client/api/v1/ticket?date=20240415T160206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29595&fm=184743337064166&tin=02508201610067®Number=0000138879044617&sum=50000 [16:02:06]StoreToDocumentArchive [16:02:06]shift 117 fd 29595 [16:02:06]save to /storage/0117/doc_00029595 [16:02:06]save last doc name /storage/0117/doc_00029595 to /storage/kkm_last_doc_name [16:02:06]save OK [16:02:06]Clear old archive folders... [16:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:02:06]tlvbuf is 01A5C3C0 [16:02:06]SAM_PROTO_ClearQueue [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 09 00 00 [16:02:06]Write to MH i2c: E2 08 00 8C 04 80 09 00 00 00 00 00 00 02 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [16:02:06]RAPDU: 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_ClearQueue done [16:02:06]KKMCreateOFDPacket [16:02:06]OFDProtocolAddRootSTLVToBuf [16:02:06]FM_MakeSignedData [16:02:06]FM_MakeSignedData [16:02:06]SAM_PROTO_SignData [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 0D 01 02 [16:02:06]Write to MH i2c: E2 08 00 8D 04 80 0D 01 02 00 00 00 00 0A [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [16:02:06]RAPDU: 90 00 [16:02:06]wFMCommunicate OK [16:02:06]wFMCommunicate request_size=255 [16:02:06]MH_SAM_APDU [16:02:06]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7E 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 73 00 00 35 04 06 00 [16:02:06]Write to MH i2c: E2 02 01 8E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7E 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 73 00 00 35 04 06 00 00 00 D4 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [16:02:06]RAPDU: 90 00 [16:02:06]wFMCommunicate OK [16:02:06]wFMCommunicate request_size=11 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 0D 02 02 06 A8 05 E8 FA F6 E6 [16:02:06]Write to MH i2c: E2 0E 00 8F 04 80 0D 02 02 06 00 A8 05 E8 FA F6 E6 00 00 84 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [16:02:06]RAPDU: 90 00 [16:02:06]wFMCommunicate OK [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 0D 03 02 [16:02:06]Write to MH i2c: E2 08 00 90 04 80 0D 03 02 00 00 00 00 0F [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0B 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0B 00 90 04 00 DF 7A 18 AA 75 8A A6 4E 90 00 1E [16:02:06]RAPDU: DF 7A 18 AA 75 8A A6 4E 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_SignData done [16:02:06]FM_MakeSignedData done [16:02:06]CreateOFDProtocolMessage [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 11 00 00 [16:02:06]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 17 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [16:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:02:06]wFMCommunicate OK [16:02:06]CreateOFDProtocolMessage done [16:02:06]OFDSenderStorePacket 29595 [16:02:06]StoreOFDPacket docnum=29595 [16:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 40 84 08 01 BE 6C 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7E 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 73 00 00 35 04 06 00 A8 05 E8 FA F6 E6 DF 7A 18 AA 75 8A A6 4E [16:02:06]CheckFolder [16:02:06]dirname=/storage/ofd_packets [16:02:06]CheckFolder done [16:02:06]ProducePacketName [16:02:06]name=ofd_packets/00029595 [16:02:06]NVStorageSaveData ofd_packets/00029595 [16:02:06]File name is /storage/ofd_packets/00029595 [16:02:06]Write 302 bytes [16:02:06]NVStorageSaveData done [16:02:06]OFDSenderStorePacket done [16:02:06]KKMCreateOFDPacket done [16:02:06]NVStorageSaveData kkm_last_timestamp [16:02:06]File name is /storage/kkm_last_timestamp [16:02:06]Write 4 bytes [16:02:06]NVStorageSaveData done [16:02:06]ExternCall_PrintAddStr [16:02:06]wPrintStart [16:02:06]Write to MH i2c: 01 00 00 92 04 96 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: 01 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: 01 07 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 FF 0F AB [16:02:06]RasterBufferAndPrint [16:02:06]line Счет N : (1)348034 [16:02:06]line ИНН: 02508201610067 [16:02:06]line Контрольно-Кассовый Чек [16:02:06]line ПРОДАЖА [16:02:06]line ТРК (МРК, ГНК) : 41 [16:02:06]line Товар: 2710124130 [16:02:06]line SUPER-92-К-5 [16:02:06]line 7.600 * 65.80 [16:02:06]line = 500.08 [16:02:06]line НДС 12% НСП 1% [16:02:06]line > о реализуемом товаре [16:02:06]line ОКРУГЛЕНИЕ: -0.08 [16:02:06]line ИТОГО: 500.00 [16:02:06]line Внесено: 500.00 [16:02:06]line СДАЧА: 0.00 [16:02:06]line НСП 1% : 4.42 [16:02:06]line НДС 12% : 53.11 [16:02:06]line Наличными: 500.00 [16:02:06]line Безнал.: 0.00 [16:02:06]line Место: АЗС № 108 "Партнер Нефть" [16:02:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:02:06]line СНО: Общий режим [16:02:06]line Чек 189 15.04.2024 16:02 [16:02:06]line Смена: 117 ФФД: 1.0 [16:02:06]line ЗНМ: 0300000027 [16:02:06]line РНМ: 0000138879044617 [16:02:06]line Версия ККМ: 001 [16:02:06]line ФМ: 0000000000963154 [16:02:06]line ФД: 29595 [16:02:06]line ФПД: 184743337064166 [16:02:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29595&fm=184743337064166&tin=02508201610067®Number=0000138879044617&sum=50000 [16:02:07]OFD Sender: Processing packet 29595 [packets to send 8, broken 7] [16:02:07]ProducePacketName [16:02:07]name=ofd_packets/00029595 [16:02:07]OFD Sender: To server: pG, [16:02:07]CommunicateWithHost lk.salyk.kg:30040 [16:02:07]ConnectInit lk.salyk.kg [16:02:07]written 0, free lines is 4095 [16:02:07]Connected sock=10 [16:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 40 84 08 01 BE 6C 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7E 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 73 00 00 35 04 06 00 A8 05 E8 FA F6 E6 DF 7A 18 AA 75 8A A6 4E [16:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 2D 47 00 F1 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 39 36 33 31 35 34 10 04 04 00 9B 73 00 00 F4 03 04 00 1E FA 1C 66 B6 04 01 00 00 80 31 A8 EB 9A 81 52 3F [16:02:07]CommunicateWithHost err = 0 [16:02:07]CheckOFDResponse [16:02:07]1017 (14) - 77093643461234 [16:02:07]1041 (16) - 0000000000963154 [16:02:07]1040 (4) - 29595 [16:02:07]1012 (4) - 15.04.2024 09:57 [16:02:07]1206 (1) - 0 [16:02:07]OFD Sender: Remove packet 29595 [16:02:07]ProducePacketName [16:02:07]name=ofd_packets/00029595 [16:02:07]NVStorageDeleteData [16:02:07]Write to MH i2c: 01 00 00 BC 04 C0 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 07 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 DE 0C B1 [16:02:07]RasterBufferAndPrint [16:02:07]line [16:02:07]line [16:02:07]line [16:02:07]line [16:02:07]line [16:02:07]written 0, free lines is 3300 [16:02:07]MH_Cut [16:02:07]Write to MH i2c: D1 01 00 C3 04 01 99 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: D1 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: D1 01 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: D1 01 00 C3 04 00 98 [16:02:07]Write to MH i2c: 01 00 00 C4 04 C8 [16:02:07]Write i2c OK [16:02:07]MH_I2C_Read... [16:02:07]OFD Sender: No OFD packet to send [16:02:08]*** Cut start [16:02:08]*** Partial cut [16:02:08]*** CUTSNS_PIN = 1 [16:02:08]*** CUTSNS_PIN = 0 [16:02:08]*** Brake cut motor [16:02:08]Read from MH i2c: 01 [16:02:08]MH_I2C_Read... [16:02:08]*** Stop cut motor [16:02:08]*** Cut end [16:02:08]Read from MH i2c: 01 07 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [16:02:08]process_action close_receipt done [16:02:08]requested_data is exist [16:02:08]produce_requested_data [16:02:08]requested_item fm.sn is exist - process it [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 11 00 00 [16:02:08]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:09]Read from MH i2c: E2 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 17 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [16:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:02:09]wFMCommunicate OK [16:02:09]requested_item fd.num is exist - process it [16:02:09]SAM_PROTO_GetFieldsCounters [16:02:09]wFMCommunicate request_size=4 [16:02:09]MH_SAM_APDU [16:02:09]CAPDU: 80 13 00 00 [16:02:09]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:09]Read from MH i2c: E2 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 62 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 62 00 C6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 73 00 00 0E 04 04 00 75 00 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 3E [16:02:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 73 00 00 0E 04 04 00 75 00 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:02:09]wFMCommunicate OK [16:02:09]SAM_PROTO_GetFieldsCounters done [16:02:09]requested_item shift.num is exist - process it [16:02:09]requested_item shift.opened is exist - process it [16:02:09]req_shift_opened [16:02:09]FM_GetShiftState [16:02:09]SAM_PROTO_GetShiftState [16:02:09]wFMCommunicate request_size=4 [16:02:09]MH_SAM_APDU [16:02:09]CAPDU: 80 13 01 00 [16:02:09]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:09]Read from MH i2c: E2 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3C [16:02:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:02:09]wFMCommunicate OK [16:02:09]SAM_PROTO_GetShiftState done [16:02:09]FM_GetShiftState done [16:02:09]req_shift_opened done [16:02:09]requested_item shift.open_date is exist - process it [16:02:09]req_shift_open_date [16:02:09]req_shift_open_date done [16:02:09]produce_requested_data done [16:02:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29595,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:02:09]process_action_free close_receipt [16:02:09]json_value_free [16:02:09]json_value_free done [16:02:09]process_json_proto returns [16:02:09]Send response to host [16:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29595,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:02:09]free response buf [16:02:09]execute_script done [16:02:09]execute_script returns [16:02:09]free content buf [16:02:09]Sock 7.Close socket [16:02:09]Sock 7.Thread stoped [16:02:09]accept exits with 9 [16:02:09]New connection [16:02:09]New thread 3066965348 created [16:02:09]Thread 3067108708 joined [16:02:09]Waiting for new connection... [16:02:09] Sock 9.Parse request [16:02:09]Sock 9.Check first char [16:02:09]Sock 9.First char is OK [16:02:09]request: POST /json_proto HTTP/1.0 [16:02:09]Method: POST [16:02:09]URL: /json_proto [16:02:09]Method is POST - this is cgi request [16:02:09]url: /json_proto [16:02:09]query_string will be loaded in cgi processing [16:02:09]execute_cgi json_proto POST (null) [16:02:09]execute_cgi path=json_proto method=POST [16:02:09]POST find Content-Length [16:02:09]Host: 172.17.33.3:8080 [16:02:09]Content-Length: 682 [16:02:09]Content-Type: application/json [16:02:09] [16:02:09]POST finish read [16:02:09]Found Content-Length = 682 [16:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:02:09]execute_script... [16:02: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)348035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:02:09]POST & json_proto [16:02:09]process_json_proto [16:02:09]json parsed OK: [16:02:09]protocol is kg_v1.0 [16:02:09]action value=close_receipt [16:02:09]process_action close_receipt [16:02:09]cmd_close_receipt [16:02:09]MH_GetDate [16:02:09]Write to MH i2c: F0 00 00 C8 04 BB [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 09 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: F0 09 00 C8 04 00 82 4F 1D 66 23 5B 8F 65 8A [16:02:09]GetLastDocTimeStamp 1713196926 [16:02:09]current date 1713196930 [16:02:09]FM_GetShiftState [16:02:09]SAM_PROTO_GetShiftState [16:02:09]wFMCommunicate request_size=4 [16:02:09]MH_SAM_APDU [16:02:09]CAPDU: 80 13 01 00 [16:02:09]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:09]Read from MH i2c: E2 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3E [16:02:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:02:09]wFMCommunicate OK [16:02:09]SAM_PROTO_GetShiftState done [16:02:09]FM_GetShiftState done [16:02:09]opened in 1713140468 [16:02:09]opened+sec_in_day 1713226868 [16:02:09]quantity*price = 100018 [16:02:09]sum+1 = 100020 [16:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 190 15.04.2024 16:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29596 ФПД: 203566413312602 1/tax-web-control/client/api/v1/ticket?date=20240415T160210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29596&fm=203566413312602&tin=02508201610067®Number=0000138879044617&sum=100000 [16:02:10]StoreToDocumentArchive [16:02:10]shift 117 fd 29596 [16:02:10]save to /storage/0117/doc_00029596 [16:02:10]save last doc name /storage/0117/doc_00029596 to /storage/kkm_last_doc_name [16:02:10]save OK [16:02:10]Clear old archive folders... [16:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:10]tlvbuf is 01A5D880 [16:02:10]SAM_PROTO_ClearQueue [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 09 00 00 [16:02:10]Write to MH i2c: E2 08 00 D6 04 80 09 00 00 00 00 00 00 4C [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 03 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [16:02:10]RAPDU: 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_ClearQueue done [16:02:10]KKMCreateOFDPacket [16:02:10]OFDProtocolAddRootSTLVToBuf [16:02:10]FM_MakeSignedData [16:02:10]FM_MakeSignedData [16:02:10]SAM_PROTO_SignData [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 0D 01 02 [16:02:10]Write to MH i2c: E2 08 00 D7 04 80 0D 01 02 00 00 00 00 54 [16:02:10]Write i2c OK [16:02:10]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 D7 04 00 90 00 4F [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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 82 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 73 00 00 35 04 06 00 B9 [16:02:11]Write to MH i2c: E2 02 01 D8 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 82 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 73 00 00 35 04 06 00 B9 00 00 D7 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 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 D8 04 00 90 00 50 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=10 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 02 02 05 24 7F C0 F2 5A [16:02:11]Write to MH i2c: E2 0D 00 D9 04 80 0D 02 02 05 00 24 7F C0 F2 5A 00 00 10 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 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 D9 04 00 90 00 51 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 03 02 [16:02:11]Write to MH i2c: E2 08 00 DA 04 80 0D 03 02 00 00 00 00 59 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 DA 04 00 4F 88 8A 55 29 62 53 F4 90 00 E2 [16:02:11]RAPDU: 4F 88 8A 55 29 62 53 F4 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_SignData done [16:02:11]FM_MakeSignedData done [16:02:11]CreateOFDProtocolMessage [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 11 00 00 [16:02:11]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [16:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:02:11]wFMCommunicate OK [16:02:11]CreateOFDProtocolMessage done [16:02:11]OFDSenderStorePacket 29596 [16:02:11]StoreOFDPacket docnum=29596 [16:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 0D 07 01 46 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 82 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 73 00 00 35 04 06 00 B9 24 7F C0 F2 5A 4F 88 8A 55 29 62 53 F4 [16:02:11]CheckFolder [16:02:11]dirname=/storage/ofd_packets [16:02:11]CheckFolder done [16:02:11]ProducePacketName [16:02:11]name=ofd_packets/00029596 [16:02:11]NVStorageSaveData ofd_packets/00029596 [16:02:11]File name is /storage/ofd_packets/00029596 [16:02:11]Write 301 bytes [16:02:11]NVStorageSaveData done [16:02:11]OFDSenderStorePacket done [16:02:11]KKMCreateOFDPacket done [16:02:11]NVStorageSaveData kkm_last_timestamp [16:02:11]File name is /storage/kkm_last_timestamp [16:02:11]Write 4 bytes [16:02:11]NVStorageSaveData done [16:02:11]ExternCall_PrintAddStr [16:02:11]wPrintStart [16:02:11]Write to MH i2c: 01 00 00 DC 04 E0 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [16:02:11]RasterBufferAndPrint [16:02:11]line Счет N : (1)348035 [16:02:11]line ИНН: 02508201610067 [16:02:11]line Контрольно-Кассовый Чек [16:02:11]line ПРОДАЖА [16:02:11]line ТРК (МРК, ГНК) : 33 [16:02:11]line Товар: 2710124500 [16:02:11]line Аи-95-К-5 [16:02:11]line 13.720 * 72.90 [16:02:11]line = 1000.19 [16:02:11]line НДС 12% НСП 1% [16:02:11]line > о реализуемом товаре [16:02:11]line ОКРУГЛЕНИЕ: -0.19 [16:02:11]line ИТОГО: 1000.00 [16:02:11]line Внесено: 1000.00 [16:02:11]line СДАЧА: 0.00 [16:02:11]line НСП 1% : 8.85 [16:02:11]line НДС 12% : 106.21 [16:02:11]line Наличными: 1000.00 [16:02:11]line Безнал.: 0.00 [16:02:11]line Место: АЗС № 108 "Партнер Нефть" [16:02:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:02:12]line СНО: Общий режим [16:02:12]line Чек 190 15.04.2024 16:02 [16:02:12]line Смена: 117 ФФД: 1.0 [16:02:12]line ЗНМ: 0300000027 [16:02:12]line РНМ: 0000138879044617 [16:02:12]line Версия ККМ: 001 [16:02:12]line ФМ: 0000000000963154 [16:02:12]line ФД: 29596 [16:02:12]line ФПД: 203566413312602 [16:02:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29596&fm=203566413312602&tin=02508201610067®Number=0000138879044617&sum=100000 [16:02:12]OFD Sender: Processing packet 29596 [packets to send 8, broken 7] [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00029596 [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 39 36 33 31 35 34 0F 01 00 00 46 0D 07 01 46 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 82 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 73 00 00 35 04 06 00 B9 24 7F C0 F2 5A 4F 88 8A 55 29 62 53 F4 [16:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 26 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 39 36 33 31 35 34 10 04 04 00 9C 73 00 00 F4 03 04 00 23 FA 1C 66 B6 04 01 00 00 EB 15 30 5E 72 E1 9C 84 [16:02:12]CommunicateWithHost err = 0 [16:02:12]CheckOFDResponse [16:02:12]1017 (14) - 77093643461234 [16:02:12]1041 (16) - 0000000000963154 [16:02:12]1040 (4) - 29596 [16:02:12]1012 (4) - 15.04.2024 09:57 [16:02:12]1206 (1) - 0 [16:02:12]OFD Sender: Remove packet 29596 [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00029596 [16:02:12]NVStorageDeleteData [16:02:12]Write to MH i2c: 01 00 00 06 05 0B [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 06 05 00 00 00 00 00 E6 0C 04 [16:02:12]RasterBufferAndPrint [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]written 0, free lines is 3314 [16:02:12]MH_Cut [16:02:12]Write to MH i2c: D1 01 00 0D 05 01 E4 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 0D 05 00 E3 [16:02:12]Write to MH i2c: 01 00 00 0E 05 13 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]OFD Sender: No OFD packet to send [16:02:13]*** Cut start [16:02:13]*** Partial cut [16:02:13]*** CUTSNS_PIN = 1 [16:02:13]*** CUTSNS_PIN = 0 [16:02:13]*** Brake cut motor [16:02:13]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 0E 05 00 00 00 00 00 FF 0F 28 [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 0F 05 80 11 00 00 00 00 00 00 8E [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 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [16:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 10 05 80 13 00 00 00 00 00 00 91 [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 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 73 00 00 0E 04 04 00 75 00 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 8D [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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 73 00 00 0E 04 04 00 75 00 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: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 11 05 80 13 01 00 00 00 00 00 93 [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 11 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 87 [16:02:14]RAPDU: 09 00 01 F4 72 1C 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":"0000000000963154","fd.num":29596,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [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":"0000000000963154","fd.num":29596,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [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 9.Close socket [16:02:14]Sock 9.Thread stoped [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]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:07]accept exits with 7 [16:04:07]New connection [16:04:07]New thread 3067108708 created [16:04:07]Thread 3066965348 joined [16:04:07]Waiting for new connection... [16:04:07] Sock 7.Parse request [16:04:07]Sock 7.Check first char [16:04:07]Sock 7.First char is OK [16:04:07]request: POST /json_proto HTTP/1.0 [16:04:07]Method: POST [16:04:07]URL: /json_proto [16:04:07]Method is POST - this is cgi request [16:04:07]url: /json_proto [16:04:07]query_string will be loaded in cgi processing [16:04:07]execute_cgi json_proto POST (null) [16:04:07]execute_cgi path=json_proto method=POST [16:04:07]POST find Content-Length [16:04:07]Host: 172.17.33.3:8080 [16:04:07]Content-Length: 677 [16:04:07]Content-Type: application/json [16:04:07] [16:04:07]POST finish read [16:04:07]Found Content-Length = 677 [16:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:04:07]execute_script... [16:04: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)348036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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:04:07]POST & json_proto [16:04:07]process_json_proto [16:04:07]json parsed OK: [16:04:07]protocol is kg_v1.0 [16:04:07]action value=close_receipt [16:04:07]process_action close_receipt [16:04:07]cmd_close_receipt [16:04:07]MH_GetDate [16:04:07]Write to MH i2c: F0 00 00 12 05 06 [16:04:07]Write i2c OK [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: F0 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: F0 09 00 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: F0 09 00 12 05 00 F8 4F 1D 66 23 5B 8F 65 4B [16:04:07]GetLastDocTimeStamp 1713196930 [16:04:07]current date 1713197048 [16:04:07]FM_GetShiftState [16:04:07]SAM_PROTO_GetShiftState [16:04:07]wFMCommunicate request_size=4 [16:04:07]MH_SAM_APDU [16:04:07]CAPDU: 80 13 01 00 [16:04:07]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [16:04:07]Write i2c OK [16:04:07]MH_I2C_Read... [16:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:07]Read from MH i2c: E2 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: E2 0E 00 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 89 [16:04:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:04:07]wFMCommunicate OK [16:04:07]SAM_PROTO_GetShiftState done [16:04:07]FM_GetShiftState done [16:04:07]opened in 1713140468 [16:04:07]opened+sec_in_day 1713226868 [16:04:07]quantity*price = 60004 [16:04:07]sum+1 = 60006 [16:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 191 15.04.2024 16:04 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29597 ФПД: 137034084961067 1/tax-web-control/client/api/v1/ticket?date=20240415T160408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29597&fm=137034084961067&tin=02508201610067®Number=0000138879044617&sum=60000 [16:04:09]StoreToDocumentArchive [16:04:09]shift 117 fd 29597 [16:04:09]save to /storage/0117/doc_00029597 [16:04:09]save last doc name /storage/0117/doc_00029597 to /storage/kkm_last_doc_name [16:04:09]save OK [16:04:09]Clear old archive folders... [16:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:09]tlvbuf is 01A582E0 [16:04:09]SAM_PROTO_ClearQueue [16:04:09]wFMCommunicate request_size=4 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 09 00 00 [16:04:09]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [16:04:09]RAPDU: 90 00 [16:04:09]wFMCommunicate OK [16:04:09]SAM_PROTO_ClearQueue done [16:04:09]KKMCreateOFDPacket [16:04:09]OFDProtocolAddRootSTLVToBuf [16:04:09]FM_MakeSignedData [16:04:09]FM_MakeSignedData [16:04:09]SAM_PROTO_SignData [16:04:09]wFMCommunicate request_size=4 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 0D 01 02 [16:04:09]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [16:04:09]RAPDU: 90 00 [16:04:09]wFMCommunicate OK [16:04:09]wFMCommunicate request_size=255 [16:04:09]MH_SAM_APDU [16:04: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 BF 00 00 00 F4 03 04 00 F8 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 73 00 00 35 04 06 00 7C [16:04:09]Write to MH i2c: E2 02 01 22 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 BF 00 00 00 F4 03 04 00 F8 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 73 00 00 35 04 06 00 7C 00 00 FD [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [16:04:09]RAPDU: 90 00 [16:04:09]wFMCommunicate OK [16:04:09]wFMCommunicate request_size=10 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 0D 02 02 05 A1 BB F4 CB 2B [16:04:09]Write to MH i2c: E2 0D 00 23 05 80 0D 02 02 05 00 A1 BB F4 CB 2B 00 00 F2 [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [16:04:09]RAPDU: 90 00 [16:04:09]wFMCommunicate OK [16:04:09]wFMCommunicate request_size=4 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 0D 03 02 [16:04:09]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 0B 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 0B 00 24 05 00 D2 12 0C 36 4D 56 07 28 90 00 9D [16:04:09]RAPDU: D2 12 0C 36 4D 56 07 28 90 00 [16:04:09]wFMCommunicate OK [16:04:09]SAM_PROTO_SignData done [16:04:09]FM_MakeSignedData done [16:04:09]CreateOFDProtocolMessage [16:04:09]wFMCommunicate request_size=4 [16:04:09]MH_SAM_APDU [16:04:09]CAPDU: 80 11 00 00 [16:04:09]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:09]Read from MH i2c: E2 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 17 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [16:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:04:09]wFMCommunicate OK [16:04:09]CreateOFDProtocolMessage done [16:04:09]OFDSenderStorePacket 29597 [16:04:09]StoreOFDPacket docnum=29597 [16:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 A9 07 01 07 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 BF 00 00 00 F4 03 04 00 F8 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 73 00 00 35 04 06 00 7C A1 BB F4 CB 2B D2 12 0C 36 4D 56 07 28 [16:04:09]CheckFolder [16:04:09]dirname=/storage/ofd_packets [16:04:09]CheckFolder done [16:04:09]ProducePacketName [16:04:09]name=ofd_packets/00029597 [16:04:09]NVStorageSaveData ofd_packets/00029597 [16:04:09]File name is /storage/ofd_packets/00029597 [16:04:09]Write 301 bytes [16:04:09]NVStorageSaveData done [16:04:09]OFDSenderStorePacket done [16:04:09]KKMCreateOFDPacket done [16:04:09]NVStorageSaveData kkm_last_timestamp [16:04:09]File name is /storage/kkm_last_timestamp [16:04:09]Write 4 bytes [16:04:09]NVStorageSaveData done [16:04:09]ExternCall_PrintAddStr [16:04:09]wPrintStart [16:04:09]Write to MH i2c: 01 00 00 26 05 2B [16:04:09]Write i2c OK [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: 01 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: 01 07 00 [16:04:09]MH_I2C_Read... [16:04:09]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [16:04:09]RasterBufferAndPrint [16:04:09]line Счет N : (1)348036 [16:04:09]line ИНН: 02508201610067 [16:04:09]line Контрольно-Кассовый Чек [16:04:09]line ПРОДАЖА [16:04:09]line ТРК (МРК, ГНК) : 42 [16:04:09]line Товар: 2710124130 [16:04:09]line Аи-92-К-5 [16:04:09]line 9.260 * 64.80 [16:04:09]line = 600.05 [16:04:09]line НДС 12% НСП 1% [16:04:09]line > о реализуемом товаре [16:04:09]line ОКРУГЛЕНИЕ: -0.05 [16:04:09]line ИТОГО: 600.00 [16:04:09]line Внесено: 600.00 [16:04:09]line СДАЧА: 0.00 [16:04:09]line НСП 1% : 5.31 [16:04:09]line НДС 12% : 63.72 [16:04:09]line Наличными: 600.00 [16:04:09]line Безнал.: 0.00 [16:04:09]line Место: АЗС № 108 "Партнер Нефть" [16:04:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:04:09]line СНО: Общий режим [16:04:09]line Чек 191 15.04.2024 16:04 [16:04:09]line Смена: 117 ФФД: 1.0 [16:04:09]line ЗНМ: 0300000027 [16:04:09]line РНМ: 0000138879044617 [16:04:09]line Версия ККМ: 001 [16:04:09]line ФМ: 0000000000963154 [16:04:09]line ФД: 29597 [16:04:09]line ФПД: 137034084961067 [16:04:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29597&fm=137034084961067&tin=02508201610067®Number=0000138879044617&sum=60000 [16:04:09]OFD Sender: Processing packet 29597 [packets to send 8, broken 7] [16:04:09]ProducePacketName [16:04:09]name=ofd_packets/00029597 [16:04:09]OFD Sender: To server: pG, [16:04:09]CommunicateWithHost lk.salyk.kg:30040 [16:04:09]ConnectInit lk.salyk.kg [16:04:09]written 0, free lines is 4095 [16:04:10]Connected sock=10 [16:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 A9 07 01 07 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 BF 00 00 00 F4 03 04 00 F8 4F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 73 00 00 35 04 06 00 7C A1 BB F4 CB 2B D2 12 0C 36 4D 56 07 28 [16:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C1 B3 47 00 9F 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 39 36 33 31 35 34 10 04 04 00 9D 73 00 00 F4 03 04 00 99 FA 1C 66 B6 04 01 00 00 21 A1 B4 0A 4A 53 31 CD [16:04:10]CommunicateWithHost err = 0 [16:04:10]CheckOFDResponse [16:04:10]1017 (14) - 77093643461234 [16:04:10]1041 (16) - 0000000000963154 [16:04:10]1040 (4) - 29597 [16:04:10]1012 (4) - 15.04.2024 09:59 [16:04:10]1206 (1) - 0 [16:04:10]OFD Sender: Remove packet 29597 [16:04:10]ProducePacketName [16:04:10]name=ofd_packets/00029597 [16:04:10]NVStorageDeleteData [16:04:10]Write to MH i2c: 01 00 00 50 05 55 [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: 01 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: 01 07 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 C9 0C 31 [16:04:10]RasterBufferAndPrint [16:04:10]line [16:04:10]line [16:04:10]line [16:04:10]line [16:04:10]line [16:04:10]written 0, free lines is 3280 [16:04:10]MH_Cut [16:04:10]Write to MH i2c: D1 01 00 57 05 01 2E [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: D1 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: D1 01 00 [16:04:10]MH_I2C_Read... [16:04:10]Read from MH i2c: D1 01 00 57 05 00 2D [16:04:10]Write to MH i2c: 01 00 00 58 05 5D [16:04:10]Write i2c OK [16:04:10]MH_I2C_Read... [16:04:10]OFD Sender: No OFD packet to send [16:04:11]*** Cut start [16:04:11]*** Partial cut [16:04:11]*** CUTSNS_PIN = 1 [16:04:11]*** CUTSNS_PIN = 0 [16:04:11]*** Brake cut motor [16:04:11]Read from MH i2c: 01 [16:04:11]MH_I2C_Read... [16:04:11]*** Stop cut motor [16:04:11]*** Cut end [16:04:11]Read from MH i2c: 01 07 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [16:04:11]process_action close_receipt done [16:04:11]requested_data is exist [16:04:11]produce_requested_data [16:04:11]requested_item fm.sn is exist - process it [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 11 00 00 [16:04:11]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:11]Read from MH i2c: E2 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 17 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [16:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:04:11]wFMCommunicate OK [16:04:11]requested_item fd.num is exist - process it [16:04:11]SAM_PROTO_GetFieldsCounters [16:04:11]wFMCommunicate request_size=4 [16:04:11]MH_SAM_APDU [16:04:11]CAPDU: 80 13 00 00 [16:04:11]Write to MH i2c: E2 08 00 5A 05 80 13 00 00 00 00 00 00 DB [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 62 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 62 00 5A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 73 00 00 0E 04 04 00 75 00 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 DB [16:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 73 00 00 0E 04 04 00 75 00 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:04:12]wFMCommunicate OK [16:04:12]SAM_PROTO_GetFieldsCounters done [16:04:12]requested_item shift.num is exist - process it [16:04:12]requested_item shift.opened is exist - process it [16:04:12]req_shift_opened [16:04:12]FM_GetShiftState [16:04:12]SAM_PROTO_GetShiftState [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 13 01 00 [16:04:12]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0E 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D1 [16:04:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:04:12]wFMCommunicate OK [16:04:12]SAM_PROTO_GetShiftState done [16:04:12]FM_GetShiftState done [16:04:12]req_shift_opened done [16:04:12]requested_item shift.open_date is exist - process it [16:04:12]req_shift_open_date [16:04:12]req_shift_open_date done [16:04:12]produce_requested_data done [16:04:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29597,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:04:12]process_action_free close_receipt [16:04:12]json_value_free [16:04:12]json_value_free done [16:04:12]process_json_proto returns [16:04:12]Send response to host [16:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29597,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:04:12]free response buf [16:04:12]execute_script done [16:04:12]execute_script returns [16:04:12]free content buf [16:04:12]Sock 7.Close socket [16:04:12]Sock 7.Thread stoped [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]accept exits with 9 [16:06:10]New connection [16:06:10]New thread 3066965348 created [16:06:10]Thread 3067108708 joined [16:06:10]Waiting for new connection... [16:06:10] Sock 9.Parse request [16:06:10]Sock 9.Check first char [16:06:10]Sock 9.First char is OK [16:06:10]request: POST /json_proto HTTP/1.0 [16:06:10]Method: POST [16:06:10]URL: /json_proto [16:06:10]Method is POST - this is cgi request [16:06:10]url: /json_proto [16:06:10]query_string will be loaded in cgi processing [16:06:10]execute_cgi json_proto POST (null) [16:06:10]execute_cgi path=json_proto method=POST [16:06:10]POST find Content-Length [16:06:10]Host: 172.17.33.3:8080 [16:06:10]Content-Length: 677 [16:06:10]Content-Type: application/json [16:06:10] [16:06:10]POST finish read [16:06:10]Found Content-Length = 677 [16:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.390, "sum" : 349.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 349.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]execute_script... [16:06: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)348037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.390, "sum" : 349.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 349.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]POST & json_proto [16:06:10]process_json_proto [16:06:10]json parsed OK: [16:06:10]protocol is kg_v1.0 [16:06:10]action value=close_receipt [16:06:10]process_action close_receipt [16:06:10]cmd_close_receipt [16:06:10]MH_GetDate [16:06:10]Write to MH i2c: F0 00 00 5C 05 50 [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 5C 05 00 73 50 1D 66 23 5B 8F 65 11 [16:06:10]GetLastDocTimeStamp 1713197048 [16:06:10]current date 1713197171 [16:06:10]FM_GetShiftState [16:06:10]SAM_PROTO_GetShiftState [16:06:10]wFMCommunicate request_size=4 [16:06:10]MH_SAM_APDU [16:06:10]CAPDU: 80 13 01 00 [16:06:10]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:10]Read from MH i2c: E2 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D3 [16:06:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:06:10]wFMCommunicate OK [16:06:10]SAM_PROTO_GetShiftState done [16:06:10]FM_GetShiftState done [16:06:10]opened in 1713140468 [16:06:10]opened+sec_in_day 1713226868 [16:06:10]quantity*price = 34927 [16:06:10]sum+1 = 34928 [16:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 349.00 Внесено: 349.00 СДАЧА: 0.00 НСП 1% : 3.09 НДС 12% : 37.09 Наличными: 349.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 192 15.04.2024 16:06 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29598 ФПД: 32798990110901 1/tax-web-control/client/api/v1/ticket?date=20240415T160611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29598&fm=32798990110901&tin=02508201610067®Number=0000138879044617&sum=34900 [16:06:11]StoreToDocumentArchive [16:06:11]shift 117 fd 29598 [16:06:11]save to /storage/0117/doc_00029598 [16:06:11]save last doc name /storage/0117/doc_00029598 to /storage/kkm_last_doc_name [16:06:11]save OK [16:06:11]Clear old archive folders... [16:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:11]tlvbuf is B6DCE760 [16:06:11]SAM_PROTO_ClearQueue [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 09 00 00 [16:06:11]Write to MH i2c: E2 08 00 6A 05 80 09 00 00 00 00 00 00 E1 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_ClearQueue done [16:06:11]KKMCreateOFDPacket [16:06:11]OFDProtocolAddRootSTLVToBuf [16:06:11]FM_MakeSignedData [16:06:11]FM_MakeSignedData [16:06:11]SAM_PROTO_SignData [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 01 02 [16:06:11]Write to MH i2c: E2 08 00 6B 05 80 0D 01 02 00 00 00 00 E9 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=255 [16:06:11]MH_SAM_APDU [16:06: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 0E 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6F 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 73 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 73 00 00 35 04 06 00 1D [16:06:11]Write to MH i2c: E2 02 01 6C 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 0E 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6F 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 73 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 73 00 00 35 04 06 00 1D 00 00 B5 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=10 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 05 D4 9C 27 90 B5 [16:06:11]Write to MH i2c: E2 0D 00 6D 05 80 0D 02 02 05 00 D4 9C 27 90 B5 00 00 D2 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 03 02 [16:06:11]Write to MH i2c: E2 08 00 6E 05 80 0D 03 02 00 00 00 00 EE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 6E 05 00 D3 B2 E0 1B F4 91 16 58 90 00 62 [16:06:11]RAPDU: D3 B2 E0 1B F4 91 16 58 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_SignData done [16:06:11]FM_MakeSignedData done [16:06:11]CreateOFDProtocolMessage [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 11 00 00 [16:06:11]Write to MH i2c: E2 08 00 6F 05 80 11 00 00 00 00 00 00 EE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 6F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [16:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:11]wFMCommunicate OK [16:06:11]CreateOFDProtocolMessage done [16:06:11]OFDSenderStorePacket 29598 [16:06:11]StoreOFDPacket docnum=29598 [16:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 2A 07 01 56 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 0E 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6F 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 73 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 73 00 00 35 04 06 00 1D D4 9C 27 90 B5 D3 B2 E0 1B F4 91 16 58 [16:06:11]CheckFolder [16:06:11]dirname=/storage/ofd_packets [16:06:11]CheckFolder done [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00029598 [16:06:11]NVStorageSaveData ofd_packets/00029598 [16:06:11]File name is /storage/ofd_packets/00029598 [16:06:11]Write 301 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFDSenderStorePacket done [16:06:11]KKMCreateOFDPacket done [16:06:11]NVStorageSaveData kkm_last_timestamp [16:06:11]File name is /storage/kkm_last_timestamp [16:06:11]Write 4 bytes [16:06:11]NVStorageSaveData done [16:06:11]ExternCall_PrintAddStr [16:06:11]wPrintStart [16:06:11]Write to MH i2c: 01 00 00 70 05 75 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [16:06:11]RasterBufferAndPrint [16:06:11]line Счет N : (1)348037 [16:06:11]line ИНН: 02508201610067 [16:06:11]line Контрольно-Кассовый Чек [16:06:11]line ПРОДАЖА [16:06:11]line ТРК (МРК, ГНК) : 32 [16:06:11]line Товар: 2710124130 [16:06:11]line Аи-92-К-5 [16:06:11]line 5.390 * 64.80 [16:06:11]line = 349.27 [16:06:11]line НДС 12% НСП 1% [16:06:11]line > о реализуемом товаре [16:06:11]line ОКРУГЛЕНИЕ: -0.27 [16:06:11]line ИТОГО: 349.00 [16:06:11]line Внесено: 349.00 [16:06:11]line СДАЧА: 0.00 [16:06:11]line НСП 1% : 3.09 [16:06:11]line НДС 12% : 37.09 [16:06:11]line Наличными: 349.00 [16:06:11]line Безнал.: 0.00 [16:06:11]line Место: АЗС № 108 "Партнер Нефть" [16:06:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:06:11]line СНО: Общий режим [16:06:11]line Чек 192 15.04.2024 16:06 [16:06:11]line Смена: 117 ФФД: 1.0 [16:06:12]line ЗНМ: 0300000027 [16:06:12]line РНМ: 0000138879044617 [16:06:12]line Версия ККМ: 001 [16:06:12]line ФМ: 0000000000963154 [16:06:12]line ФД: 29598 [16:06:12]line ФПД: 32798990110901 [16:06:12]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160611&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29598&fm=32798990110901&tin=02508201610067®Number=0000138879044617&sum=34900 [16:06:12]OFD Sender: Processing packet 29598 [packets to send 8, broken 7] [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00029598 [16:06:12]OFD Sender: To server: pG, [16:06:12]CommunicateWithHost lk.salyk.kg:30040 [16:06:12]ConnectInit lk.salyk.kg [16:06:12]written 0, free lines is 4095 [16:06:12]Connected sock=10 [16:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 2A 07 01 56 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 0E 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6F 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 73 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 73 00 00 35 04 06 00 1D D4 9C 27 90 B5 D3 B2 E0 1B F4 91 16 58 [16:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 58 49 47 00 55 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 39 36 33 31 35 34 10 04 04 00 9E 73 00 00 F4 03 04 00 13 FB 1C 66 B6 04 01 00 00 1B AC CD 09 6B 66 55 4C [16:06:12]CommunicateWithHost err = 0 [16:06:12]CheckOFDResponse [16:06:12]1017 (14) - 77093643461234 [16:06:12]1041 (16) - 0000000000963154 [16:06:12]1040 (4) - 29598 [16:06:12]1012 (4) - 15.04.2024 10:01 [16:06:12]1206 (1) - 0 [16:06:12]OFD Sender: Remove packet 29598 [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00029598 [16:06:12]NVStorageDeleteData [16:06:12]Write to MH i2c: 01 00 00 9A 05 9F [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 DC 0C 8E [16:06:12]RasterBufferAndPrint [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]written 0, free lines is 3297 [16:06:12]MH_Cut [16:06:12]Write to MH i2c: D1 01 00 A1 05 01 78 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 A1 05 00 77 [16:06:12]Write to MH i2c: 01 00 00 A2 05 A7 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:13]OFD Sender: No OFD packet to send [16:06:13]*** Cut start [16:06:13]*** Partial cut [16:06:13]*** CUTSNS_PIN = 1 [16:06:13]*** CUTSNS_PIN = 0 [16:06:13]*** Brake cut motor [16:06:14]Read from MH i2c: 01 [16:06:14]MH_I2C_Read... [16:06:14]*** Stop cut motor [16:06:14]*** Cut end [16:06:14]Read from MH i2c: 01 07 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [16:06:14]process_action close_receipt done [16:06:14]requested_data is exist [16:06:14]produce_requested_data [16:06:14]requested_item fm.sn is exist - process it [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 11 00 00 [16:06:14]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [16:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:14]wFMCommunicate OK [16:06:14]requested_item fd.num is exist - process it [16:06:14]SAM_PROTO_GetFieldsCounters [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 00 00 [16:06:14]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 A4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 73 00 00 0E 04 04 00 75 00 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 29 [16:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 73 00 00 0E 04 04 00 75 00 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:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetFieldsCounters done [16:06:14]requested_item shift.num is exist - process it [16:06:14]requested_item shift.opened is exist - process it [16:06:14]req_shift_opened [16:06:14]FM_GetShiftState [16:06:14]SAM_PROTO_GetShiftState [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 01 00 [16:06:14]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1B [16:06:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetShiftState done [16:06:14]FM_GetShiftState done [16:06:14]req_shift_opened done [16:06:14]requested_item shift.open_date is exist - process it [16:06:14]req_shift_open_date [16:06:14]req_shift_open_date done [16:06:14]produce_requested_data done [16:06:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29598,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:06:14]process_action_free close_receipt [16:06:14]json_value_free [16:06:14]json_value_free done [16:06:14]process_json_proto returns [16:06:14]Send response to host [16:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29598,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:06:14]free response buf [16:06:14]execute_script done [16:06:14]execute_script returns [16:06:14]free content buf [16:06:14]Sock 9.Close socket [16:06:14]Sock 9.Thread stoped [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:11]accept exits with 7 [16:08:11]New connection [16:08:11]New thread 3067108708 created [16:08:11]Thread 3066965348 joined [16:08:11]Waiting for new connection... [16:08:11] Sock 7.Parse request [16:08:11]Sock 7.Check first char [16:08:11]Sock 7.First char is OK [16:08:11]request: POST /json_proto HTTP/1.0 [16:08:11]Method: POST [16:08:11]URL: /json_proto [16:08:11]Method is POST - this is cgi request [16:08:11]url: /json_proto [16:08:11]query_string will be loaded in cgi processing [16:08:11]execute_cgi json_proto POST (null) [16:08:11]execute_cgi path=json_proto method=POST [16:08:11]POST find Content-Length [16:08:11]Host: 172.17.33.3:8080 [16:08:11]Content-Length: 812 [16:08:11]Content-Type: application/json [16:08:11] [16:08:11]POST finish read [16:08:11]Found Content-Length = 812 [16:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:11]execute_script... [16:08: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)348038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:11]POST & json_proto [16:08:11]process_json_proto [16:08:11]json parsed OK: [16:08:11]protocol is kg_v1.0 [16:08:11]action value=close_receipt [16:08:11]process_action close_receipt [16:08:11]cmd_close_receipt [16:08:11]MH_GetDate [16:08:11]Write to MH i2c: F0 00 00 A6 05 9A [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: F0 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: F0 09 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: F0 09 00 A6 05 00 EC 50 1D 66 23 5B 8F 65 D4 [16:08:11]GetLastDocTimeStamp 1713197171 [16:08:11]current date 1713197292 [16:08:11]FM_GetShiftState [16:08:11]SAM_PROTO_GetShiftState [16:08:11]wFMCommunicate request_size=4 [16:08:11]MH_SAM_APDU [16:08:11]CAPDU: 80 13 01 00 [16:08:11]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [16:08:11]Write i2c OK [16:08:11]MH_I2C_Read... [16:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:11]Read from MH i2c: E2 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0E 00 [16:08:11]MH_I2C_Read... [16:08:11]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1D [16:08:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:08:11]wFMCommunicate OK [16:08:11]SAM_PROTO_GetShiftState done [16:08:11]FM_GetShiftState done [16:08:11]opened in 1713140468 [16:08:11]opened+sec_in_day 1713226868 [16:08:11]quantity*price = 100016 [16:08:11]sum+1 = 100017 [16:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 193 15.04.2024 16:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29599 ФПД: 153921127519843 1/tax-web-control/client/api/v1/ticket?date=20240415T160812&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29599&fm=153921127519843&tin=02508201610067®Number=0000138879044617&sum=100016 [16:08:12]StoreToDocumentArchive [16:08:12]shift 117 fd 29599 [16:08:12]save to /storage/0117/doc_00029599 [16:08:12]save last doc name /storage/0117/doc_00029599 to /storage/kkm_last_doc_name [16:08:12]save OK [16:08:12]Clear old archive folders... [16:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:08:12]tlvbuf is 01A62330 [16:08:12]SAM_PROTO_ClearQueue [16:08:12]wFMCommunicate request_size=4 [16:08:12]MH_SAM_APDU [16:08:12]CAPDU: 80 09 00 00 [16:08:12]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 03 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [16:08:12]RAPDU: 90 00 [16:08:12]wFMCommunicate OK [16:08:12]SAM_PROTO_ClearQueue done [16:08:12]KKMCreateOFDPacket [16:08:12]OFDProtocolAddRootSTLVToBuf [16:08:12]FM_MakeSignedData [16:08:12]FM_MakeSignedData [16:08:12]SAM_PROTO_SignData [16:08:12]wFMCommunicate request_size=4 [16:08:12]MH_SAM_APDU [16:08:12]CAPDU: 80 0D 01 02 [16:08:12]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:12]Read from MH i2c: E2 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 03 00 [16:08:12]MH_I2C_Read... [16:08:12]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [16:08:12]RAPDU: 90 00 [16:08:12]wFMCommunicate OK [16:08:12]wFMCommunicate request_size=255 [16:08:12]MH_SAM_APDU [16:08: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EC 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 73 00 00 35 04 06 00 [16:08:12]Write to MH i2c: E2 02 01 B6 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EC 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 73 00 00 35 04 06 00 00 00 36 [16:08:12]Write i2c OK [16:08:12]MH_I2C_Read... [16:08:13]OFD Sender: No OFD packet to send [16:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:13]Read from MH i2c: E2 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 03 00 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [16:08:13]RAPDU: 90 00 [16:08:13]wFMCommunicate OK [16:08:13]wFMCommunicate request_size=11 [16:08:13]MH_SAM_APDU [16:08:13]CAPDU: 80 0D 02 02 06 8B FD 8E 21 16 63 [16:08:13]Write to MH i2c: E2 0E 00 B7 05 80 0D 02 02 06 00 8B FD 8E 21 16 63 00 00 F2 [16:08:13]Write i2c OK [16:08:13]MH_I2C_Read... [16:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:13]Read from MH i2c: E2 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 03 00 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [16:08:13]RAPDU: 90 00 [16:08:13]wFMCommunicate OK [16:08:13]wFMCommunicate request_size=4 [16:08:13]MH_SAM_APDU [16:08:13]CAPDU: 80 0D 03 02 [16:08:13]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [16:08:13]Write i2c OK [16:08:13]MH_I2C_Read... [16:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:13]Read from MH i2c: E2 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 0B 00 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 0B 00 B8 05 00 CB 09 83 84 E7 C4 0B 8D 90 00 57 [16:08:13]RAPDU: CB 09 83 84 E7 C4 0B 8D 90 00 [16:08:13]wFMCommunicate OK [16:08:13]SAM_PROTO_SignData done [16:08:13]FM_MakeSignedData done [16:08:13]CreateOFDProtocolMessage [16:08:13]wFMCommunicate request_size=4 [16:08:13]MH_SAM_APDU [16:08:13]CAPDU: 80 11 00 00 [16:08:13]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [16:08:13]Write i2c OK [16:08:13]MH_I2C_Read... [16:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:13]Read from MH i2c: E2 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 17 00 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [16:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:13]wFMCommunicate OK [16:08:13]CreateOFDProtocolMessage done [16:08:13]OFDSenderStorePacket 29599 [16:08:13]StoreOFDPacket docnum=29599 [16:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0E EE 08 01 A5 A1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EC 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 73 00 00 35 04 06 00 8B FD 8E 21 16 63 CB 09 83 84 E7 C4 0B 8D [16:08:13]CheckFolder [16:08:13]dirname=/storage/ofd_packets [16:08:13]CheckFolder done [16:08:13]ProducePacketName [16:08:13]name=ofd_packets/00029599 [16:08:13]NVStorageSaveData ofd_packets/00029599 [16:08:13]File name is /storage/ofd_packets/00029599 [16:08:13]Write 302 bytes [16:08:13]NVStorageSaveData done [16:08:13]OFDSenderStorePacket done [16:08:13]KKMCreateOFDPacket done [16:08:13]NVStorageSaveData kkm_last_timestamp [16:08:13]File name is /storage/kkm_last_timestamp [16:08:13]Write 4 bytes [16:08:13]NVStorageSaveData done [16:08:13]ExternCall_PrintAddStr [16:08:13]wPrintStart [16:08:13]Write to MH i2c: 01 00 00 BA 05 BF [16:08:13]Write i2c OK [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: 01 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: 01 07 00 [16:08:13]MH_I2C_Read... [16:08:13]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [16:08:13]RasterBufferAndPrint [16:08:13]line Счет N : (1)348038 [16:08:13]line ИНН: 02508201610067 [16:08:13]line Контрольно-Кассовый Чек [16:08:13]line ПРОДАЖА [16:08:13]line ТРК (МРК, ГНК) : 41 [16:08:13]line Товар: 2710124130 [16:08:13]line SUPER-92-К-5 [16:08:13]line 15.200 * 65.80 [16:08:13]line = 1000.16 [16:08:13]line НДС 12% НСП 1% [16:08:13]line > о реализуемом товаре [16:08:13]line ИТОГО: 1000.16 [16:08:13]line НСП 1% : 8.85 [16:08:13]line НДС 12% : 106.21 [16:08:13]line Наличными: 0.00 [16:08:13]line Безнал.: 1000.16 [16:08:13]line Место: АЗС № 108 "Партнер Нефть" [16:08:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:08:13]line СНО: Общий режим [16:08:13]line Чек 193 15.04.2024 16:08 [16:08:13]line Смена: 117 ФФД: 1.0 [16:08:13]line ЗНМ: 0300000027 [16:08:13]line РНМ: 0000138879044617 [16:08:13]line Версия ККМ: 001 [16:08:13]line Платежная система: Бакай Банк [16:08:13]line ФМ: 0000000000963154 [16:08:13]line ФД: 29599 [16:08:13]line ФПД: 153921127519843 [16:08:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160812&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29599&fm=153921127519843&tin=02508201610067®Number=0000138879044617&sum=100016 [16:08:13]OFD Sender: Processing packet 29599 [packets to send 8, broken 7] [16:08:13]ProducePacketName [16:08:13]name=ofd_packets/00029599 [16:08:13]OFD Sender: To server: pG, [16:08:13]CommunicateWithHost lk.salyk.kg:30040 [16:08:13]ConnectInit lk.salyk.kg [16:08:13]written 0, free lines is 4095 [16:08:13]Connected sock=10 [16:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0E EE 08 01 A5 A1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EC 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 73 00 00 35 04 06 00 8B FD 8E 21 16 63 CB 09 83 84 E7 C4 0B 8D [16:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 E5 47 00 43 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 73 00 00 F4 03 04 00 8D FB 1C 66 B6 04 01 00 00 9B 32 B8 5F 22 54 8B 19 [16:08:13]CommunicateWithHost err = 0 [16:08:13]CheckOFDResponse [16:08:13]1017 (14) - 77093643461234 [16:08:13]1041 (16) - 0000000000963154 [16:08:13]1040 (4) - 29599 [16:08:13]1012 (4) - 15.04.2024 10:03 [16:08:13]1206 (1) - 0 [16:08:13]OFD Sender: Remove packet 29599 [16:08:13]ProducePacketName [16:08:13]name=ofd_packets/00029599 [16:08:13]NVStorageDeleteData [16:08:14]Write to MH i2c: 01 00 00 E3 05 E8 [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: 01 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: 01 07 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 EF 0C EA [16:08:14]RasterBufferAndPrint [16:08:14]line [16:08:14]line [16:08:14]line [16:08:14]line [16:08:14]line [16:08:14]written 0, free lines is 3317 [16:08:14]MH_Cut [16:08:14]Write to MH i2c: D1 01 00 EA 05 01 C1 [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: D1 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: D1 01 00 [16:08:14]MH_I2C_Read... [16:08:14]Read from MH i2c: D1 01 00 EA 05 00 C0 [16:08:14]Write to MH i2c: 01 00 00 EB 05 F0 [16:08:14]Write i2c OK [16:08:14]MH_I2C_Read... [16:08:14]OFD Sender: No OFD packet to send [16:08:14]*** Cut start [16:08:14]*** Partial cut [16:08:14]*** CUTSNS_PIN = 1 [16:08:14]*** CUTSNS_PIN = 0 [16:08:15]*** Brake cut motor [16:08:15]Read from MH i2c: 01 [16:08:15]MH_I2C_Read... [16:08:15]*** Stop cut motor [16:08:15]*** Cut end [16:08:15]Read from MH i2c: 01 07 00 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [16:08:15]process_action close_receipt done [16:08:15]requested_data is exist [16:08:15]produce_requested_data [16:08:15]requested_item fm.sn is exist - process it [16:08:15]wFMCommunicate request_size=4 [16:08:15]MH_SAM_APDU [16:08:15]CAPDU: 80 11 00 00 [16:08:15]Write to MH i2c: E2 08 00 EC 05 80 11 00 00 00 00 00 00 6B [16:08:15]Write i2c OK [16:08:15]MH_I2C_Read... [16:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:15]Read from MH i2c: E2 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 17 00 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 17 00 EC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [16:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:15]wFMCommunicate OK [16:08:15]requested_item fd.num is exist - process it [16:08:15]SAM_PROTO_GetFieldsCounters [16:08:15]wFMCommunicate request_size=4 [16:08:15]MH_SAM_APDU [16:08:15]CAPDU: 80 13 00 00 [16:08:15]Write to MH i2c: E2 08 00 ED 05 80 13 00 00 00 00 00 00 6E [16:08:15]Write i2c OK [16:08:15]MH_I2C_Read... [16:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:15]Read from MH i2c: E2 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 62 00 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 62 00 ED 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 73 00 00 0E 04 04 00 75 00 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 76 [16:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 73 00 00 0E 04 04 00 75 00 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:08:15]wFMCommunicate OK [16:08:15]SAM_PROTO_GetFieldsCounters done [16:08:15]requested_item shift.num is exist - process it [16:08:15]requested_item shift.opened is exist - process it [16:08:15]req_shift_opened [16:08:15]FM_GetShiftState [16:08:15]SAM_PROTO_GetShiftState [16:08:15]wFMCommunicate request_size=4 [16:08:15]MH_SAM_APDU [16:08:15]CAPDU: 80 13 01 00 [16:08:15]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [16:08:15]Write i2c OK [16:08:15]MH_I2C_Read... [16:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:15]Read from MH i2c: E2 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 0E 00 [16:08:15]MH_I2C_Read... [16:08:15]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 64 [16:08:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:08:15]wFMCommunicate OK [16:08:15]SAM_PROTO_GetShiftState done [16:08:15]FM_GetShiftState done [16:08:15]req_shift_opened done [16:08:15]requested_item shift.open_date is exist - process it [16:08:15]req_shift_open_date [16:08:15]req_shift_open_date done [16:08:15]produce_requested_data done [16:08:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29599,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:08:15]process_action_free close_receipt [16:08:15]json_value_free [16:08:15]json_value_free done [16:08:15]process_json_proto returns [16:08:15]Send response to host [16:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29599,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:08:15]free response buf [16:08:15]execute_script done [16:08:15]execute_script returns [16:08:15]free content buf [16:08:15]Sock 7.Close socket [16:08:15]Sock 7.Thread stoped [16:08:18]accept exits with 9 [16:08:18]New connection [16:08:18]New thread 3066965348 created [16:08:18]Thread 3067108708 joined [16:08:18]Waiting for new connection... [16:08:18] Sock 9.Parse request [16:08:18]Sock 9.Check first char [16:08:18]Sock 9.First char is OK [16:08:18]request: POST /json_proto HTTP/1.0 [16:08:18]Method: POST [16:08:18]URL: /json_proto [16:08:18]Method is POST - this is cgi request [16:08:18]url: /json_proto [16:08:18]query_string will be loaded in cgi processing [16:08:18]execute_cgi json_proto POST (null) [16:08:18]execute_cgi path=json_proto method=POST [16:08:18]POST find Content-Length [16:08:18]Host: 172.17.33.3:8080 [16:08:18]Content-Length: 682 [16:08:18]Content-Type: application/json [16:08:18] [16:08:18]POST finish read [16:08:18]Found Content-Length = 682 [16:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:08:18]execute_script... [16:08: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)348039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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:08:18]POST & json_proto [16:08:18]process_json_proto [16:08:18]json parsed OK: [16:08:18]protocol is kg_v1.0 [16:08:18]action value=close_receipt [16:08:18]process_action close_receipt [16:08:18]cmd_close_receipt [16:08:18]MH_GetDate [16:08:18]Write to MH i2c: F0 00 00 EF 05 E3 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: F0 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: F0 09 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: F0 09 00 EF 05 00 F3 50 1D 66 23 5B 8F 65 24 [16:08:18]GetLastDocTimeStamp 1713197292 [16:08:18]current date 1713197299 [16:08:18]FM_GetShiftState [16:08:18]SAM_PROTO_GetShiftState [16:08:18]wFMCommunicate request_size=4 [16:08:18]MH_SAM_APDU [16:08:18]CAPDU: 80 13 01 00 [16:08:18]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [16:08:18]Write i2c OK [16:08:18]MH_I2C_Read... [16:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:18]Read from MH i2c: E2 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 0E 00 [16:08:18]MH_I2C_Read... [16:08:18]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [16:08:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:08:18]wFMCommunicate OK [16:08:18]SAM_PROTO_GetShiftState done [16:08:18]FM_GetShiftState done [16:08:18]opened in 1713140468 [16:08:18]opened+sec_in_day 1713226868 [16:08:18]quantity*price = 200037 [16:08:18]sum+1 = 200039 [16:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 194 15.04.2024 16:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29600 ФПД: 267214522084490 1/tax-web-control/client/api/v1/ticket?date=20240415T160819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29600&fm=267214522084490&tin=02508201610067®Number=0000138879044617&sum=200000 [16:08:19]StoreToDocumentArchive [16:08:19]shift 117 fd 29600 [16:08:19]save to /storage/0117/doc_00029600 [16:08:19]save last doc name /storage/0117/doc_00029600 to /storage/kkm_last_doc_name [16:08:19]save OK [16:08:19]Clear old archive folders... [16:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:19]tlvbuf is 01A62220 [16:08:19]SAM_PROTO_ClearQueue [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 09 00 00 [16:08:19]Write to MH i2c: E2 08 00 FD 05 80 09 00 00 00 00 00 00 74 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:19]Read from MH i2c: E2 03 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [16:08:19]RAPDU: 90 00 [16:08:19]wFMCommunicate OK [16:08:19]SAM_PROTO_ClearQueue done [16:08:19]KKMCreateOFDPacket [16:08:19]OFDProtocolAddRootSTLVToBuf [16:08:19]FM_MakeSignedData [16:08:19]FM_MakeSignedData [16:08:19]SAM_PROTO_SignData [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 0D 01 02 [16:08:19]Write to MH i2c: E2 08 00 FE 05 80 0D 01 02 00 00 00 00 7C [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [16:08:19]RAPDU: 90 00 [16:08:19]wFMCommunicate OK [16:08:19]wFMCommunicate request_size=255 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F3 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 73 00 00 35 04 06 00 F3 [16:08:19]Write to MH i2c: E2 02 01 FF 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F3 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 73 00 00 35 04 06 00 F3 00 00 2E [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]OFD Sender: No OFD packet to send [16:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [16:08:19]RAPDU: 90 00 [16:08:19]wFMCommunicate OK [16:08:19]wFMCommunicate request_size=10 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 0D 02 02 05 07 BA AA EC 8A [16:08:19]Write to MH i2c: E2 0D 00 00 06 80 0D 02 02 05 00 07 BA AA EC 8A 00 00 6B [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [16:08:19]RAPDU: 90 00 [16:08:19]wFMCommunicate OK [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 0D 03 02 [16:08:19]Write to MH i2c: E2 08 00 01 06 80 0D 03 02 00 00 00 00 82 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0B 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 0B 00 01 06 00 87 4E 70 4A 48 D5 65 6E 90 00 02 [16:08:19]RAPDU: 87 4E 70 4A 48 D5 65 6E 90 00 [16:08:19]wFMCommunicate OK [16:08:19]SAM_PROTO_SignData done [16:08:19]FM_MakeSignedData done [16:08:19]CreateOFDProtocolMessage [16:08:19]wFMCommunicate request_size=4 [16:08:19]MH_SAM_APDU [16:08:19]CAPDU: 80 11 00 00 [16:08:19]Write to MH i2c: E2 08 00 02 06 80 11 00 00 00 00 00 00 82 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 [16:08:19]MH_I2C_Read... [16:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:19]Read from MH i2c: E2 17 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: E2 17 00 02 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [16:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:19]wFMCommunicate OK [16:08:19]CreateOFDProtocolMessage done [16:08:19]OFDSenderStorePacket 29600 [16:08:19]StoreOFDPacket docnum=29600 [16:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D3 EF 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F3 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 73 00 00 35 04 06 00 F3 07 BA AA EC 8A 87 4E 70 4A 48 D5 65 6E [16:08:19]CheckFolder [16:08:19]dirname=/storage/ofd_packets [16:08:19]CheckFolder done [16:08:19]ProducePacketName [16:08:19]name=ofd_packets/00029600 [16:08:19]NVStorageSaveData ofd_packets/00029600 [16:08:19]File name is /storage/ofd_packets/00029600 [16:08:19]Write 301 bytes [16:08:19]NVStorageSaveData done [16:08:19]OFDSenderStorePacket done [16:08:19]KKMCreateOFDPacket done [16:08:19]NVStorageSaveData kkm_last_timestamp [16:08:19]File name is /storage/kkm_last_timestamp [16:08:19]Write 4 bytes [16:08:19]NVStorageSaveData done [16:08:19]ExternCall_PrintAddStr [16:08:19]wPrintStart [16:08:19]Write to MH i2c: 01 00 00 03 06 09 [16:08:19]Write i2c OK [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 07 00 [16:08:19]MH_I2C_Read... [16:08:19]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 FF 0F 1E [16:08:19]RasterBufferAndPrint [16:08:19]line Счет N : (1)348039 [16:08:19]line ИНН: 02508201610067 [16:08:19]line Контрольно-Кассовый Чек [16:08:19]line ПРОДАЖА [16:08:19]line ТРК (МРК, ГНК) : 33 [16:08:19]line Товар: 2710124500 [16:08:19]line Аи-95-К-5 [16:08:19]line 27.440 * 72.90 [16:08:19]line = 2000.38 [16:08:19]line НДС 12% НСП 1% [16:08:19]line > о реализуемом товаре [16:08:19]line ОКРУГЛЕНИЕ: -0.38 [16:08:19]line ИТОГО: 2000.00 [16:08:19]line Внесено: 2000.00 [16:08:19]line СДАЧА: 0.00 [16:08:19]line НСП 1% : 17.70 [16:08:19]line НДС 12% : 212.43 [16:08:19]line Наличными: 2000.00 [16:08:19]line Безнал.: 0.00 [16:08:19]line Место: АЗС № 108 "Партнер Нефть" [16:08:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:08:19]line СНО: Общий режим [16:08:19]line Чек 194 15.04.2024 16:08 [16:08:19]line Смена: 117 ФФД: 1.0 [16:08:19]line ЗНМ: 0300000027 [16:08:19]line РНМ: 0000138879044617 [16:08:19]line Версия ККМ: 001 [16:08:19]line ФМ: 0000000000963154 [16:08:19]line ФД: 29600 [16:08:19]line ФПД: 267214522084490 [16:08:19]line 1/tax-web-control/client/api/v1/ticket?date=20240415T160819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29600&fm=267214522084490&tin=02508201610067®Number=0000138879044617&sum=200000 [16:08:19]written 0, free lines is 4095 [16:08:20]OFD Sender: Processing packet 29600 [packets to send 8, broken 7] [16:08:20]ProducePacketName [16:08:20]name=ofd_packets/00029600 [16:08:20]OFD Sender: To server: pG, [16:08:20]CommunicateWithHost lk.salyk.kg:30040 [16:08:20]ConnectInit lk.salyk.kg [16:08:20]Connected sock=10 [16:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D3 EF 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F3 50 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 73 00 00 35 04 06 00 F3 07 BA AA EC 8A 87 4E 70 4A 48 D5 65 6E [16:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 58 46 47 00 FC 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 39 36 33 31 35 34 10 04 04 00 A0 73 00 00 F4 03 04 00 93 FB 1C 66 B6 04 01 00 00 E2 23 FB FD 40 8C 8A 2D [16:08:20]CommunicateWithHost err = 0 [16:08:20]CheckOFDResponse [16:08:20]1017 (14) - 77093643461234 [16:08:20]1041 (16) - 0000000000963154 [16:08:20]1040 (4) - 29600 [16:08:20]1012 (4) - 15.04.2024 10:04 [16:08:20]1206 (1) - 0 [16:08:20]OFD Sender: Remove packet 29600 [16:08:20]ProducePacketName [16:08:20]name=ofd_packets/00029600 [16:08:20]NVStorageDeleteData [16:08:20]Write to MH i2c: 01 00 00 2D 06 33 [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: 01 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: 01 07 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 D5 0C 1B [16:08:20]RasterBufferAndPrint [16:08:20]line [16:08:20]line [16:08:20]line [16:08:20]line [16:08:20]line [16:08:20]written 0, free lines is 3297 [16:08:20]MH_Cut [16:08:20]Write to MH i2c: D1 01 00 34 06 01 0C [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: D1 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: D1 01 00 [16:08:20]MH_I2C_Read... [16:08:20]Read from MH i2c: D1 01 00 34 06 00 0B [16:08:20]Write to MH i2c: 01 00 00 35 06 3B [16:08:20]Write i2c OK [16:08:20]MH_I2C_Read... [16:08:20]OFD Sender: No OFD packet to send [16:08:21]*** Cut start [16:08:21]*** Partial cut [16:08:21]*** CUTSNS_PIN = 1 [16:08:21]*** CUTSNS_PIN = 0 [16:08:21]*** Brake cut motor [16:08:21]Read from MH i2c: 01 [16:08:21]MH_I2C_Read... [16:08:21]*** Stop cut motor [16:08:21]*** Cut end [16:08:21]Read from MH i2c: 01 07 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 FF 0F 50 [16:08:21]process_action close_receipt done [16:08:21]requested_data is exist [16:08:21]produce_requested_data [16:08:21]requested_item fm.sn is exist - process it [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 11 00 00 [16:08:21]Write to MH i2c: E2 08 00 36 06 80 11 00 00 00 00 00 00 B6 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:21]Read from MH i2c: E2 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 [16:08:21]MH_I2C_Read... [16:08:21]Read from MH i2c: E2 17 00 36 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [16:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:08:21]wFMCommunicate OK [16:08:21]requested_item fd.num is exist - process it [16:08:21]SAM_PROTO_GetFieldsCounters [16:08:21]wFMCommunicate request_size=4 [16:08:21]MH_SAM_APDU [16:08:21]CAPDU: 80 13 00 00 [16:08:21]Write to MH i2c: E2 08 00 37 06 80 13 00 00 00 00 00 00 B9 [16:08:21]Write i2c OK [16:08:21]MH_I2C_Read... [16:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:22]Read from MH i2c: E2 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: E2 62 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: E2 62 00 37 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 73 00 00 0E 04 04 00 75 00 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 C5 [16:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 73 00 00 0E 04 04 00 75 00 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:08:22]wFMCommunicate OK [16:08:22]SAM_PROTO_GetFieldsCounters done [16:08:22]requested_item shift.num is exist - process it [16:08:22]requested_item shift.opened is exist - process it [16:08:22]req_shift_opened [16:08:22]FM_GetShiftState [16:08:22]SAM_PROTO_GetShiftState [16:08:22]wFMCommunicate request_size=4 [16:08:22]MH_SAM_APDU [16:08:22]CAPDU: 80 13 01 00 [16:08:22]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [16:08:22]Write i2c OK [16:08:22]MH_I2C_Read... [16:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:22]Read from MH i2c: E2 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: E2 0E 00 [16:08:22]MH_I2C_Read... [16:08:22]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AF [16:08:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:08:22]wFMCommunicate OK [16:08:22]SAM_PROTO_GetShiftState done [16:08:22]FM_GetShiftState done [16:08:22]req_shift_opened done [16:08:22]requested_item shift.open_date is exist - process it [16:08:22]req_shift_open_date [16:08:22]req_shift_open_date done [16:08:22]produce_requested_data done [16:08:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29600,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:08:22]process_action_free close_receipt [16:08:22]json_value_free [16:08:22]json_value_free done [16:08:22]process_json_proto returns [16:08:22]Send response to host [16:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29600,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:08:22]free response buf [16:08:22]execute_script done [16:08:22]execute_script returns [16:08:22]free content buf [16:08:22]Sock 9.Close socket [16:08:22]Sock 9.Thread stoped [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:00]accept exits with 7 [16:12:00]New connection [16:12:00]New thread 3067108708 created [16:12:00]Thread 3066965348 joined [16:12:00]Waiting for new connection... [16:12:00] Sock 7.Parse request [16:12:00]Sock 7.Check first char [16:12:00]Sock 7.First char is OK [16:12:00]request: POST /json_proto HTTP/1.0 [16:12:00]Method: POST [16:12:00]URL: /json_proto [16:12:00]Method is POST - this is cgi request [16:12:00]url: /json_proto [16:12:00]query_string will be loaded in cgi processing [16:12:00]execute_cgi json_proto POST (null) [16:12:00]execute_cgi path=json_proto method=POST [16:12:00]POST find Content-Length [16:12:00]Host: 172.17.33.3:8080 [16:12:00]Content-Length: 677 [16:12:00]Content-Type: application/json [16:12:00] [16:12:00]POST finish read [16:12:00]Found Content-Length = 677 [16:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:12:00]execute_script... [16:12: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)348040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:12:00]POST & json_proto [16:12:00]process_json_proto [16:12:00]json parsed OK: [16:12:00]protocol is kg_v1.0 [16:12:00]action value=close_receipt [16:12:00]process_action close_receipt [16:12:00]cmd_close_receipt [16:12:00]MH_GetDate [16:12:00]Write to MH i2c: F0 00 00 39 06 2E [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: F0 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: F0 09 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: F0 09 00 39 06 00 D1 51 1D 66 23 5B 8F 65 4E [16:12:00]GetLastDocTimeStamp 1713197299 [16:12:00]current date 1713197521 [16:12:00]FM_GetShiftState [16:12:00]SAM_PROTO_GetShiftState [16:12:00]wFMCommunicate request_size=4 [16:12:00]MH_SAM_APDU [16:12:00]CAPDU: 80 13 01 00 [16:12:00]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [16:12:00]Write i2c OK [16:12:00]MH_I2C_Read... [16:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:00]Read from MH i2c: E2 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 0E 00 [16:12:00]MH_I2C_Read... [16:12:00]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [16:12:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:12:00]wFMCommunicate OK [16:12:00]SAM_PROTO_GetShiftState done [16:12:00]FM_GetShiftState done [16:12:00]opened in 1713140468 [16:12:00]opened+sec_in_day 1713226868 [16:12:00]quantity*price = 40046 [16:12:00]sum+1 = 40047 [16:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 195 15.04.2024 16:12 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29601 ФПД: 155617261132773 1/tax-web-control/client/api/v1/ticket?date=20240415T161201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29601&fm=155617261132773&tin=02508201610067®Number=0000138879044617&sum=40000 [16:12:01]StoreToDocumentArchive [16:12:01]shift 117 fd 29601 [16:12:01]save to /storage/0117/doc_00029601 [16:12:01]save last doc name /storage/0117/doc_00029601 to /storage/kkm_last_doc_name [16:12:01]save OK [16:12:01]Clear old archive folders... [16:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:01]tlvbuf is 01A79EC0 [16:12:01]SAM_PROTO_ClearQueue [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 09 00 00 [16:12:01]Write to MH i2c: E2 08 00 47 06 80 09 00 00 00 00 00 00 BF [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]SAM_PROTO_ClearQueue done [16:12:01]KKMCreateOFDPacket [16:12:01]OFDProtocolAddRootSTLVToBuf [16:12:01]FM_MakeSignedData [16:12:01]FM_MakeSignedData [16:12:01]SAM_PROTO_SignData [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 01 02 [16:12:01]Write to MH i2c: E2 08 00 48 06 80 0D 01 02 00 00 00 00 C7 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=255 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 C3 00 00 00 F4 03 04 00 D1 51 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 73 00 00 35 04 06 00 8D [16:12:01]Write to MH i2c: E2 02 01 49 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 C3 00 00 00 F4 03 04 00 D1 51 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 73 00 00 35 04 06 00 8D 00 00 E3 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=10 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 02 02 05 88 77 92 1B E5 [16:12:01]Write to MH i2c: E2 0D 00 4A 06 80 0D 02 02 05 00 88 77 92 1B E5 00 00 65 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [16:12:01]RAPDU: 90 00 [16:12:01]wFMCommunicate OK [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 0D 03 02 [16:12:01]Write to MH i2c: E2 08 00 4B 06 80 0D 03 02 00 00 00 00 CC [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 0B 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 0B 00 4B 06 00 F9 B2 34 74 75 02 51 DE 90 00 C6 [16:12:01]RAPDU: F9 B2 34 74 75 02 51 DE 90 00 [16:12:01]wFMCommunicate OK [16:12:01]SAM_PROTO_SignData done [16:12:01]FM_MakeSignedData done [16:12:01]CreateOFDProtocolMessage [16:12:01]wFMCommunicate request_size=4 [16:12:01]MH_SAM_APDU [16:12:01]CAPDU: 80 11 00 00 [16:12:01]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:01]Read from MH i2c: E2 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 17 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [16:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:12:01]wFMCommunicate OK [16:12:01]CreateOFDProtocolMessage done [16:12:01]OFDSenderStorePacket 29601 [16:12:01]StoreOFDPacket docnum=29601 [16:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 AC 07 01 B1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 C3 00 00 00 F4 03 04 00 D1 51 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 73 00 00 35 04 06 00 8D 88 77 92 1B E5 F9 B2 34 74 75 02 51 DE [16:12:01]CheckFolder [16:12:01]dirname=/storage/ofd_packets [16:12:01]CheckFolder done [16:12:01]ProducePacketName [16:12:01]name=ofd_packets/00029601 [16:12:01]NVStorageSaveData ofd_packets/00029601 [16:12:01]File name is /storage/ofd_packets/00029601 [16:12:01]Write 301 bytes [16:12:01]NVStorageSaveData done [16:12:01]OFDSenderStorePacket done [16:12:01]KKMCreateOFDPacket done [16:12:01]NVStorageSaveData kkm_last_timestamp [16:12:01]File name is /storage/kkm_last_timestamp [16:12:01]Write 4 bytes [16:12:01]NVStorageSaveData done [16:12:01]ExternCall_PrintAddStr [16:12:01]wPrintStart [16:12:01]Write to MH i2c: 01 00 00 4D 06 53 [16:12:01]Write i2c OK [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 [16:12:01]MH_I2C_Read... [16:12:01]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 FF 0F 68 [16:12:01]RasterBufferAndPrint [16:12:01]line Счет N : (1)348040 [16:12:01]line ИНН: 02508201610067 [16:12:01]line Контрольно-Кассовый Чек [16:12:01]line ПРОДАЖА [16:12:01]line ТРК (МРК, ГНК) : 32 [16:12:01]line Товар: 2710124130 [16:12:01]line Аи-92-К-5 [16:12:01]line 6.180 * 64.80 [16:12:01]line = 400.46 [16:12:01]line НДС 12% НСП 1% [16:12:01]line > о реализуемом товаре [16:12:01]line ОКРУГЛЕНИЕ: -0.46 [16:12:01]line ИТОГО: 400.00 [16:12:01]line Внесено: 400.00 [16:12:01]line СДАЧА: 0.00 [16:12:01]line НСП 1% : 3.54 [16:12:01]line НДС 12% : 42.53 [16:12:01]line Наличными: 400.00 [16:12:01]line Безнал.: 0.00 [16:12:01]line Место: АЗС № 108 "Партнер Нефть" [16:12:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:12:01]line СНО: Общий режим [16:12:01]line Чек 195 15.04.2024 16:12 [16:12:01]line Смена: 117 ФФД: 1.0 [16:12:01]line ЗНМ: 0300000027 [16:12:01]line РНМ: 0000138879044617 [16:12:01]line Версия ККМ: 001 [16:12:01]line ФМ: 0000000000963154 [16:12:01]line ФД: 29601 [16:12:01]line ФПД: 155617261132773 [16:12:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T161201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29601&fm=155617261132773&tin=02508201610067®Number=0000138879044617&sum=40000 [16:12:02]OFD Sender: Processing packet 29601 [packets to send 8, broken 7] [16:12:02]ProducePacketName [16:12:02]name=ofd_packets/00029601 [16:12:02]OFD Sender: To server: pG, [16:12:02]CommunicateWithHost lk.salyk.kg:30040 [16:12:02]ConnectInit lk.salyk.kg [16:12:02]written 0, free lines is 4095 [16:12:02]Connected sock=10 [16:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 AC 07 01 B1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 C3 00 00 00 F4 03 04 00 D1 51 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 73 00 00 35 04 06 00 8D 88 77 92 1B E5 F9 B2 34 74 75 02 51 DE [16:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 6C 47 00 17 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 39 36 33 31 35 34 10 04 04 00 A1 73 00 00 F4 03 04 00 71 FC 1C 66 B6 04 01 00 00 61 8F 1C 41 02 AE 5D B0 [16:12:02]CommunicateWithHost err = 0 [16:12:02]CheckOFDResponse [16:12:02]1017 (14) - 77093643461234 [16:12:02]1041 (16) - 0000000000963154 [16:12:02]1040 (4) - 29601 [16:12:02]1012 (4) - 15.04.2024 10:07 [16:12:02]1206 (1) - 0 [16:12:02]OFD Sender: Remove packet 29601 [16:12:02]ProducePacketName [16:12:02]name=ofd_packets/00029601 [16:12:02]NVStorageDeleteData [16:12:02]Write to MH i2c: 01 00 00 77 06 7D [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 07 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 D9 0C 69 [16:12:02]RasterBufferAndPrint [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]line [16:12:02]written 0, free lines is 3296 [16:12:02]MH_Cut [16:12:02]Write to MH i2c: D1 01 00 7E 06 01 56 [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 01 00 [16:12:02]MH_I2C_Read... [16:12:02]Read from MH i2c: D1 01 00 7E 06 00 55 [16:12:02]Write to MH i2c: 01 00 00 7F 06 85 [16:12:02]Write i2c OK [16:12:02]MH_I2C_Read... [16:12:02]OFD Sender: No OFD packet to send [16:12:03]*** Cut start [16:12:03]*** Partial cut [16:12:03]*** CUTSNS_PIN = 1 [16:12:03]*** CUTSNS_PIN = 0 [16:12:03]*** Brake cut motor [16:12:04]Read from MH i2c: 01 [16:12:04]MH_I2C_Read... [16:12:04]*** Stop cut motor [16:12:04]*** Cut end [16:12:04]Read from MH i2c: 01 07 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [16:12:04]process_action close_receipt done [16:12:04]requested_data is exist [16:12:04]produce_requested_data [16:12:04]requested_item fm.sn is exist - process it [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 11 00 00 [16:12:04]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 17 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [16:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:12:04]wFMCommunicate OK [16:12:04]requested_item fd.num is exist - process it [16:12:04]SAM_PROTO_GetFieldsCounters [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 13 00 00 [16:12:04]Write to MH i2c: E2 08 00 81 06 80 13 00 00 00 00 00 00 03 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 62 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 62 00 81 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 73 00 00 0E 04 04 00 75 00 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 13 [16:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 73 00 00 0E 04 04 00 75 00 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:12:04]wFMCommunicate OK [16:12:04]SAM_PROTO_GetFieldsCounters done [16:12:04]requested_item shift.num is exist - process it [16:12:04]requested_item shift.opened is exist - process it [16:12:04]req_shift_opened [16:12:04]FM_GetShiftState [16:12:04]SAM_PROTO_GetShiftState [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 13 01 00 [16:12:04]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 0E 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F9 [16:12:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:12:04]wFMCommunicate OK [16:12:04]SAM_PROTO_GetShiftState done [16:12:04]FM_GetShiftState done [16:12:04]req_shift_opened done [16:12:04]requested_item shift.open_date is exist - process it [16:12:04]req_shift_open_date [16:12:04]req_shift_open_date done [16:12:04]produce_requested_data done [16:12:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29601,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:12:04]process_action_free close_receipt [16:12:04]json_value_free [16:12:04]json_value_free done [16:12:04]process_json_proto returns [16:12:04]Send response to host [16:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29601,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:12:04]free response buf [16:12:04]execute_script done [16:12:04]execute_script returns [16:12:04]free content buf [16:12:04]Sock 7.Close socket [16:12:04]Sock 7.Thread stoped [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:21]accept exits with 9 [16:18:21]New connection [16:18:21]New thread 3066965348 created [16:18:21]Thread 3067108708 joined [16:18:21]Waiting for new connection... [16:18:21] Sock 9.Parse request [16:18:21]Sock 9.Check first char [16:18:21]Sock 9.First char is OK [16:18:21]request: POST /json_proto HTTP/1.0 [16:18:21]Method: POST [16:18:21]URL: /json_proto [16:18:21]Method is POST - this is cgi request [16:18:21]url: /json_proto [16:18:21]query_string will be loaded in cgi processing [16:18:21]execute_cgi json_proto POST (null) [16:18:21]execute_cgi path=json_proto method=POST [16:18:21]POST find Content-Length [16:18:21]Host: 172.17.33.3:8080 [16:18:21]Content-Length: 678 [16:18:21]Content-Type: application/json [16:18:21] [16:18:21]POST finish read [16:18:21]Found Content-Length = 678 [16:18:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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:18:21]execute_script... [16:18: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)348041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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:18:21]POST & json_proto [16:18:21]process_json_proto [16:18:21]json parsed OK: [16:18:21]protocol is kg_v1.0 [16:18:21]action value=close_receipt [16:18:21]process_action close_receipt [16:18:21]cmd_close_receipt [16:18:21]MH_GetDate [16:18:21]Write to MH i2c: F0 00 00 83 06 78 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 09 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 09 00 83 06 00 4E 53 1D 66 23 5B 8F 65 17 [16:18:21]GetLastDocTimeStamp 1713197521 [16:18:21]current date 1713197902 [16:18:21]FM_GetShiftState [16:18:21]SAM_PROTO_GetShiftState [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 13 01 00 [16:18:21]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0E 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FB [16:18:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:18:21]wFMCommunicate OK [16:18:21]SAM_PROTO_GetShiftState done [16:18:21]FM_GetShiftState done [16:18:21]opened in 1713140468 [16:18:21]opened+sec_in_day 1713226868 [16:18:21]quantity*price = 70048 [16:18:21]sum+1 = 70050 [16:18:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 196 15.04.2024 16:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29602 ФПД: 266271947847262 1/tax-web-control/client/api/v1/ticket?date=20240415T161822&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29602&fm=266271947847262&tin=02508201610067®Number=0000138879044617&sum=70000 [16:18:22]StoreToDocumentArchive [16:18:22]shift 117 fd 29602 [16:18:22]save to /storage/0117/doc_00029602 [16:18:22]save last doc name /storage/0117/doc_00029602 to /storage/kkm_last_doc_name [16:18:22]save OK [16:18:22]Clear old archive folders... [16:18:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:22]tlvbuf is 019F83B0 [16:18:22]SAM_PROTO_ClearQueue [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 09 00 00 [16:18:22]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [16:18:22]RAPDU: 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_ClearQueue done [16:18:22]KKMCreateOFDPacket [16:18:22]OFDProtocolAddRootSTLVToBuf [16:18:22]FM_MakeSignedData [16:18:22]FM_MakeSignedData [16:18:22]SAM_PROTO_SignData [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 0D 01 02 [16:18:22]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [16:18:22]RAPDU: 90 00 [16:18:22]wFMCommunicate OK [16:18:22]wFMCommunicate request_size=255 [16:18:22]MH_SAM_APDU [16:18: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 C4 00 00 00 F4 03 04 00 4E 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 73 00 00 35 04 06 00 F2 [16:18:22]Write to MH i2c: E2 02 01 93 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 C4 00 00 00 F4 03 04 00 4E 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 73 00 00 35 04 06 00 F2 00 00 BA [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [16:18:22]RAPDU: 90 00 [16:18:22]wFMCommunicate OK [16:18:22]wFMCommunicate request_size=10 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 0D 02 02 05 2C 44 DD 76 5E [16:18:22]Write to MH i2c: E2 0D 00 94 06 80 0D 02 02 05 00 2C 44 DD 76 5E 00 00 3F [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [16:18:22]RAPDU: 90 00 [16:18:22]wFMCommunicate OK [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 0D 03 02 [16:18:22]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0B 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0B 00 95 06 00 7B 63 ED F1 56 7B 57 89 90 00 84 [16:18:22]RAPDU: 7B 63 ED F1 56 7B 57 89 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_SignData done [16:18:22]FM_MakeSignedData done [16:18:22]CreateOFDProtocolMessage [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 11 00 00 [16:18:22]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [16:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:18:22]wFMCommunicate OK [16:18:22]CreateOFDProtocolMessage done [16:18:22]OFDSenderStorePacket 29602 [16:18:22]StoreOFDPacket docnum=29602 [16:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE CC 07 01 CF C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 C4 00 00 00 F4 03 04 00 4E 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 73 00 00 35 04 06 00 F2 2C 44 DD 76 5E 7B 63 ED F1 56 7B 57 89 [16:18:22]CheckFolder [16:18:22]dirname=/storage/ofd_packets [16:18:22]CheckFolder done [16:18:22]ProducePacketName [16:18:22]name=ofd_packets/00029602 [16:18:22]NVStorageSaveData ofd_packets/00029602 [16:18:22]File name is /storage/ofd_packets/00029602 [16:18:22]Write 301 bytes [16:18:22]NVStorageSaveData done [16:18:22]OFDSenderStorePacket done [16:18:22]KKMCreateOFDPacket done [16:18:22]NVStorageSaveData kkm_last_timestamp [16:18:22]File name is /storage/kkm_last_timestamp [16:18:22]Write 4 bytes [16:18:22]NVStorageSaveData done [16:18:22]ExternCall_PrintAddStr [16:18:22]wPrintStart [16:18:22]Write to MH i2c: 01 00 00 97 06 9D [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 07 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [16:18:22]RasterBufferAndPrint [16:18:22]line Счет N : (1)348041 [16:18:22]line ИНН: 02508201610067 [16:18:22]line Контрольно-Кассовый Чек [16:18:22]line ПРОДАЖА [16:18:22]line ТРК (МРК, ГНК) : 32 [16:18:22]line Товар: 2710124130 [16:18:22]line Аи-92-К-5 [16:18:22]line 10.810 * 64.80 [16:18:22]line = 700.49 [16:18:22]line НДС 12% НСП 1% [16:18:22]line > о реализуемом товаре [16:18:22]line ОКРУГЛЕНИЕ: -0.49 [16:18:22]line ИТОГО: 700.00 [16:18:22]line Внесено: 700.00 [16:18:22]line СДАЧА: 0.00 [16:18:22]line НСП 1% : 6.20 [16:18:22]line НДС 12% : 74.39 [16:18:22]line Наличными: 700.00 [16:18:22]line Безнал.: 0.00 [16:18:22]line Место: АЗС № 108 "Партнер Нефть" [16:18:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:18:22]line СНО: Общий режим [16:18:22]line Чек 196 15.04.2024 16:18 [16:18:22]line Смена: 117 ФФД: 1.0 [16:18:23]line ЗНМ: 0300000027 [16:18:23]line РНМ: 0000138879044617 [16:18:23]line Версия ККМ: 001 [16:18:23]line ФМ: 0000000000963154 [16:18:23]line ФД: 29602 [16:18:23]line ФПД: 266271947847262 [16:18:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T161822&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29602&fm=266271947847262&tin=02508201610067®Number=0000138879044617&sum=70000 [16:18:23]OFD Sender: Processing packet 29602 [packets to send 8, broken 7] [16:18:23]ProducePacketName [16:18:23]name=ofd_packets/00029602 [16:18:23]OFD Sender: To server: pG, [16:18:23]CommunicateWithHost lk.salyk.kg:30040 [16:18:23]ConnectInit lk.salyk.kg [16:18:23]written 0, free lines is 4095 [16:18:23]Connected sock=10 [16:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE CC 07 01 CF C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 C4 00 00 00 F4 03 04 00 4E 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 73 00 00 35 04 06 00 F2 2C 44 DD 76 5E 7B 63 ED F1 56 7B 57 89 [16:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 15 47 00 86 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 39 36 33 31 35 34 10 04 04 00 A2 73 00 00 F4 03 04 00 EE FD 1C 66 B6 04 01 00 00 15 AE E4 FF 8D 6D 8A 1B [16:18:23]CommunicateWithHost err = 0 [16:18:23]CheckOFDResponse [16:18:23]1017 (14) - 77093643461234 [16:18:23]1041 (16) - 0000000000963154 [16:18:23]1040 (4) - 29602 [16:18:23]1012 (4) - 15.04.2024 10:14 [16:18:23]1206 (1) - 0 [16:18:23]OFD Sender: Remove packet 29602 [16:18:23]ProducePacketName [16:18:23]name=ofd_packets/00029602 [16:18:23]NVStorageDeleteData [16:18:23]Write to MH i2c: 01 00 00 C1 06 C7 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 07 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 D8 0C B2 [16:18:23]RasterBufferAndPrint [16:18:23]line [16:18:23]line [16:18:23]line [16:18:23]line [16:18:23]line [16:18:23]written 0, free lines is 3294 [16:18:23]MH_Cut [16:18:23]Write to MH i2c: D1 01 00 C8 06 01 A0 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: D1 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: D1 01 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: D1 01 00 C8 06 00 9F [16:18:23]Write to MH i2c: 01 00 00 C9 06 CF [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]OFD Sender: No OFD packet to send [16:18:24]*** Cut start [16:18:24]*** Partial cut [16:18:24]*** CUTSNS_PIN = 1 [16:18:24]*** CUTSNS_PIN = 0 [16:18:24]*** Brake cut motor [16:18:24]Read from MH i2c: 01 [16:18:24]MH_I2C_Read... [16:18:24]*** Stop cut motor [16:18:24]*** Cut end [16:18:24]Read from MH i2c: 01 07 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 FF 0F E4 [16:18:24]process_action close_receipt done [16:18:24]requested_data is exist [16:18:24]produce_requested_data [16:18:24]requested_item fm.sn is exist - process it [16:18:24]wFMCommunicate request_size=4 [16:18:24]MH_SAM_APDU [16:18:24]CAPDU: 80 11 00 00 [16:18:24]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 17 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [16:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:18:24]wFMCommunicate OK [16:18:24]requested_item fd.num is exist - process it [16:18:24]SAM_PROTO_GetFieldsCounters [16:18:24]wFMCommunicate request_size=4 [16:18:24]MH_SAM_APDU [16:18:24]CAPDU: 80 13 00 00 [16:18:24]Write to MH i2c: E2 08 00 CB 06 80 13 00 00 00 00 00 00 4D [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 62 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 62 00 CB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 73 00 00 0E 04 04 00 75 00 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 61 [16:18:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 73 00 00 0E 04 04 00 75 00 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:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_GetFieldsCounters done [16:18:25]requested_item shift.num is exist - process it [16:18:25]requested_item shift.opened is exist - process it [16:18:25]req_shift_opened [16:18:25]FM_GetShiftState [16:18:25]SAM_PROTO_GetShiftState [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 13 01 00 [16:18:25]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0E 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 43 [16:18:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_GetShiftState done [16:18:25]FM_GetShiftState done [16:18:25]req_shift_opened done [16:18:25]requested_item shift.open_date is exist - process it [16:18:25]req_shift_open_date [16:18:25]req_shift_open_date done [16:18:25]produce_requested_data done [16:18:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29602,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:18:25]process_action_free close_receipt [16:18:25]json_value_free [16:18:25]json_value_free done [16:18:25]process_json_proto returns [16:18:25]Send response to host [16:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29602,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:18:25]free response buf [16:18:25]execute_script done [16:18:25]execute_script returns [16:18:25]free content buf [16:18:25]Sock 9.Close socket [16:18:25]Sock 9.Thread stoped [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:44]accept exits with 7 [16:18:44]New connection [16:18:44]New thread 3067108708 created [16:18:44]Thread 3066965348 joined [16:18:44]Waiting for new connection... [16:18:44] Sock 7.Parse request [16:18:44]Sock 7.Check first char [16:18:44]Sock 7.First char is OK [16:18:44]request: POST /json_proto HTTP/1.0 [16:18:44]Method: POST [16:18:44]URL: /json_proto [16:18:44]Method is POST - this is cgi request [16:18:44]url: /json_proto [16:18:44]query_string will be loaded in cgi processing [16:18:44]execute_cgi json_proto POST (null) [16:18:44]execute_cgi path=json_proto method=POST [16:18:44]POST find Content-Length [16:18:44]Host: 172.17.33.3:8080 [16:18:44]Content-Length: 677 [16:18:44]Content-Type: application/json [16:18:44] [16:18:44]POST finish read [16:18:44]Found Content-Length = 677 [16:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:44]execute_script... [16:18: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)348043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:44]POST & json_proto [16:18:44]process_json_proto [16:18:44]json parsed OK: [16:18:44]protocol is kg_v1.0 [16:18:44]action value=close_receipt [16:18:44]process_action close_receipt [16:18:44]cmd_close_receipt [16:18:44]MH_GetDate [16:18:44]Write to MH i2c: F0 00 00 CD 06 C2 [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: F0 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: F0 09 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: F0 09 00 CD 06 00 65 53 1D 66 23 5B 8F 65 78 [16:18:44]GetLastDocTimeStamp 1713197902 [16:18:44]current date 1713197925 [16:18:44]FM_GetShiftState [16:18:44]SAM_PROTO_GetShiftState [16:18:44]wFMCommunicate request_size=4 [16:18:44]MH_SAM_APDU [16:18:44]CAPDU: 80 13 01 00 [16:18:44]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:44]Read from MH i2c: E2 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 0E 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 45 [16:18:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:18:44]wFMCommunicate OK [16:18:44]SAM_PROTO_GetShiftState done [16:18:44]FM_GetShiftState done [16:18:44]opened in 1713140468 [16:18:44]opened+sec_in_day 1713226868 [16:18:44]quantity*price = 10044 [16:18:44]sum+1 = 10045 [16:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.67 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 197 15.04.2024 16:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29603 ФПД: 72370965869349 1/tax-web-control/client/api/v1/ticket?date=20240415T161845&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29603&fm=72370965869349&tin=02508201610067®Number=0000138879044617&sum=10000 [16:18:45]StoreToDocumentArchive [16:18:45]shift 117 fd 29603 [16:18:45]save to /storage/0117/doc_00029603 [16:18:45]save last doc name /storage/0117/doc_00029603 to /storage/kkm_last_doc_name [16:18:45]save OK [16:18:45]Clear old archive folders... [16:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:45]tlvbuf is 019F82A0 [16:18:45]SAM_PROTO_ClearQueue [16:18:45]wFMCommunicate request_size=4 [16:18:45]MH_SAM_APDU [16:18:45]CAPDU: 80 09 00 00 [16:18:45]Write to MH i2c: E2 08 00 DB 06 80 09 00 00 00 00 00 00 53 [16:18:45]Write i2c OK [16:18:45]MH_I2C_Read... [16:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:45]Read from MH i2c: E2 [16:18:45]MH_I2C_Read... [16:18:45]Read from MH i2c: E2 03 00 [16:18:45]MH_I2C_Read... [16:18:45]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [16:18:45]RAPDU: 90 00 [16:18:45]wFMCommunicate OK [16:18:45]SAM_PROTO_ClearQueue done [16:18:45]KKMCreateOFDPacket [16:18:45]OFDProtocolAddRootSTLVToBuf [16:18:45]FM_MakeSignedData [16:18:45]FM_MakeSignedData [16:18:45]SAM_PROTO_SignData [16:18:45]wFMCommunicate request_size=4 [16:18:45]MH_SAM_APDU [16:18:45]CAPDU: 80 0D 01 02 [16:18:45]Write to MH i2c: E2 08 00 DC 06 80 0D 01 02 00 00 00 00 5B [16:18:45]Write i2c OK [16:18:45]MH_I2C_Read... [16:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:45]Read from MH i2c: E2 [16:18:45]MH_I2C_Read... [16:18:45]Read from MH i2c: E2 03 00 [16:18:45]MH_I2C_Read... [16:18:45]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [16:18:45]RAPDU: 90 00 [16:18:45]wFMCommunicate OK [16:18:45]wFMCommunicate request_size=255 [16:18:45]MH_SAM_APDU [16:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 65 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 73 00 00 35 04 06 00 41 [16:18:45]Write to MH i2c: E2 02 01 DD 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 65 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 73 00 00 35 04 06 00 41 00 00 24 [16:18:45]Write i2c OK [16:18:45]MH_I2C_Read... [16:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:46]Read from MH i2c: E2 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 03 00 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [16:18:46]RAPDU: 90 00 [16:18:46]wFMCommunicate OK [16:18:46]wFMCommunicate request_size=10 [16:18:46]MH_SAM_APDU [16:18:46]CAPDU: 80 0D 02 02 05 D2 2D B6 73 25 [16:18:46]Write to MH i2c: E2 0D 00 DE 06 80 0D 02 02 05 00 D2 2D B6 73 25 00 00 B5 [16:18:46]Write i2c OK [16:18:46]MH_I2C_Read... [16:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:46]Read from MH i2c: E2 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 03 00 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [16:18:46]RAPDU: 90 00 [16:18:46]wFMCommunicate OK [16:18:46]wFMCommunicate request_size=4 [16:18:46]MH_SAM_APDU [16:18:46]CAPDU: 80 0D 03 02 [16:18:46]Write to MH i2c: E2 08 00 DF 06 80 0D 03 02 00 00 00 00 60 [16:18:46]Write i2c OK [16:18:46]MH_I2C_Read... [16:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:46]Read from MH i2c: E2 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 0B 00 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 0B 00 DF 06 00 A3 65 A6 09 F4 46 0D 04 90 00 63 [16:18:46]RAPDU: A3 65 A6 09 F4 46 0D 04 90 00 [16:18:46]wFMCommunicate OK [16:18:46]SAM_PROTO_SignData done [16:18:46]FM_MakeSignedData done [16:18:46]CreateOFDProtocolMessage [16:18:46]wFMCommunicate request_size=4 [16:18:46]MH_SAM_APDU [16:18:46]CAPDU: 80 11 00 00 [16:18:46]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [16:18:46]Write i2c OK [16:18:46]MH_I2C_Read... [16:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:46]Read from MH i2c: E2 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 17 00 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [16:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:18:46]wFMCommunicate OK [16:18:46]CreateOFDProtocolMessage done [16:18:46]OFDSenderStorePacket 29603 [16:18:46]StoreOFDPacket docnum=29603 [16:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 35 18 07 01 DA 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 65 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 73 00 00 35 04 06 00 41 D2 2D B6 73 25 A3 65 A6 09 F4 46 0D 04 [16:18:46]CheckFolder [16:18:46]dirname=/storage/ofd_packets [16:18:46]CheckFolder done [16:18:46]ProducePacketName [16:18:46]name=ofd_packets/00029603 [16:18:46]NVStorageSaveData ofd_packets/00029603 [16:18:46]File name is /storage/ofd_packets/00029603 [16:18:46]Write 301 bytes [16:18:46]NVStorageSaveData done [16:18:46]OFDSenderStorePacket done [16:18:46]KKMCreateOFDPacket done [16:18:46]NVStorageSaveData kkm_last_timestamp [16:18:46]File name is /storage/kkm_last_timestamp [16:18:46]Write 4 bytes [16:18:46]NVStorageSaveData done [16:18:46]ExternCall_PrintAddStr [16:18:46]wPrintStart [16:18:46]Write to MH i2c: 01 00 00 E1 06 E7 [16:18:46]Write i2c OK [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: 01 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: 01 07 00 [16:18:46]MH_I2C_Read... [16:18:46]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [16:18:46]RasterBufferAndPrint [16:18:46]line Счет N : (1)348043 [16:18:46]line ИНН: 02508201610067 [16:18:46]line Контрольно-Кассовый Чек [16:18:46]line ПРОДАЖА [16:18:46]line ТРК (МРК, ГНК) : 32 [16:18:46]line Товар: 2710124130 [16:18:46]line Аи-92-К-5 [16:18:46]line 1.550 * 64.80 [16:18:46]line = 100.44 [16:18:46]line НДС 12% НСП 1% [16:18:46]line > о реализуемом товаре [16:18:46]line ОКРУГЛЕНИЕ: -0.44 [16:18:46]line ИТОГО: 100.00 [16:18:46]line Внесено: 100.00 [16:18:46]line СДАЧА: 0.00 [16:18:46]line НСП 1% : 0.89 [16:18:46]line НДС 12% : 10.67 [16:18:46]line Наличными: 100.00 [16:18:46]line Безнал.: 0.00 [16:18:46]line Место: АЗС № 108 "Партнер Нефть" [16:18:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:18:46]line СНО: Общий режим [16:18:46]line Чек 197 15.04.2024 16:18 [16:18:46]line Смена: 117 ФФД: 1.0 [16:18:46]line ЗНМ: 0300000027 [16:18:46]line РНМ: 0000138879044617 [16:18:46]line Версия ККМ: 001 [16:18:46]line ФМ: 0000000000963154 [16:18:46]line ФД: 29603 [16:18:46]line ФПД: 72370965869349 [16:18:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T161845&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29603&fm=72370965869349&tin=02508201610067®Number=0000138879044617&sum=10000 [16:18:46]OFD Sender: Processing packet 29603 [packets to send 8, broken 7] [16:18:46]ProducePacketName [16:18:46]name=ofd_packets/00029603 [16:18:46]OFD Sender: To server: pG, [16:18:46]CommunicateWithHost lk.salyk.kg:30040 [16:18:46]ConnectInit lk.salyk.kg [16:18:46]written 0, free lines is 4095 [16:18:46]Connected sock=10 [16:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 35 18 07 01 DA 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 65 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 73 00 00 35 04 06 00 41 D2 2D B6 73 25 A3 65 A6 09 F4 46 0D 04 [16:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 76 47 00 1C 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 39 36 33 31 35 34 10 04 04 00 A3 73 00 00 F4 03 04 00 06 FE 1C 66 B6 04 01 00 00 02 F7 5A EE 3C 22 6D 08 [16:18:46]CommunicateWithHost err = 0 [16:18:46]CheckOFDResponse [16:18:46]1017 (14) - 77093643461234 [16:18:46]1041 (16) - 0000000000963154 [16:18:46]1040 (4) - 29603 [16:18:46]1012 (4) - 15.04.2024 10:14 [16:18:46]1206 (1) - 0 [16:18:46]OFD Sender: Remove packet 29603 [16:18:46]ProducePacketName [16:18:46]name=ofd_packets/00029603 [16:18:46]NVStorageDeleteData [16:18:47]Write to MH i2c: 01 00 00 0B 07 12 [16:18:47]Write i2c OK [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: 01 [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: 01 07 00 [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 D5 0C FA [16:18:47]RasterBufferAndPrint [16:18:47]line [16:18:47]line [16:18:47]line [16:18:47]line [16:18:47]line [16:18:47]written 0, free lines is 3291 [16:18:47]MH_Cut [16:18:47]Write to MH i2c: D1 01 00 12 07 01 EB [16:18:47]Write i2c OK [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: D1 [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: D1 01 00 [16:18:47]MH_I2C_Read... [16:18:47]Read from MH i2c: D1 01 00 12 07 00 EA [16:18:47]Write to MH i2c: 01 00 00 13 07 1A [16:18:47]Write i2c OK [16:18:47]MH_I2C_Read... [16:18:47]OFD Sender: No OFD packet to send [16:18:47]*** Cut start [16:18:47]*** Partial cut [16:18:47]*** CUTSNS_PIN = 1 [16:18:47]*** CUTSNS_PIN = 0 [16:18:48]*** Brake cut motor [16:18:48]Read from MH i2c: 01 [16:18:48]MH_I2C_Read... [16:18:48]*** Stop cut motor [16:18:48]*** Cut end [16:18:48]Read from MH i2c: 01 07 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [16:18:48]process_action close_receipt done [16:18:48]requested_data is exist [16:18:48]produce_requested_data [16:18:48]requested_item fm.sn is exist - process it [16:18:48]wFMCommunicate request_size=4 [16:18:48]MH_SAM_APDU [16:18:48]CAPDU: 80 11 00 00 [16:18:48]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [16:18:48]Write i2c OK [16:18:48]MH_I2C_Read... [16:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:48]Read from MH i2c: E2 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 17 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [16:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:18:48]wFMCommunicate OK [16:18:48]requested_item fd.num is exist - process it [16:18:48]SAM_PROTO_GetFieldsCounters [16:18:48]wFMCommunicate request_size=4 [16:18:48]MH_SAM_APDU [16:18:48]CAPDU: 80 13 00 00 [16:18:48]Write to MH i2c: E2 08 00 15 07 80 13 00 00 00 00 00 00 98 [16:18:48]Write i2c OK [16:18:48]MH_I2C_Read... [16:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:48]Read from MH i2c: E2 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 62 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 62 00 15 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 73 00 00 0E 04 04 00 75 00 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 B0 [16:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 73 00 00 0E 04 04 00 75 00 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:18:48]wFMCommunicate OK [16:18:48]SAM_PROTO_GetFieldsCounters done [16:18:48]requested_item shift.num is exist - process it [16:18:48]requested_item shift.opened is exist - process it [16:18:48]req_shift_opened [16:18:48]FM_GetShiftState [16:18:48]SAM_PROTO_GetShiftState [16:18:48]wFMCommunicate request_size=4 [16:18:48]MH_SAM_APDU [16:18:48]CAPDU: 80 13 01 00 [16:18:48]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [16:18:48]Write i2c OK [16:18:48]MH_I2C_Read... [16:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:48]Read from MH i2c: E2 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 0E 00 [16:18:48]MH_I2C_Read... [16:18:48]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8E [16:18:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:18:48]wFMCommunicate OK [16:18:48]SAM_PROTO_GetShiftState done [16:18:48]FM_GetShiftState done [16:18:48]req_shift_opened done [16:18:48]requested_item shift.open_date is exist - process it [16:18:48]req_shift_open_date [16:18:48]req_shift_open_date done [16:18:48]produce_requested_data done [16:18:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29603,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:18:48]process_action_free close_receipt [16:18:48]json_value_free [16:18:48]json_value_free done [16:18:48]process_json_proto returns [16:18:48]Send response to host [16:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29603,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:18:48]free response buf [16:18:48]execute_script done [16:18:48]execute_script returns [16:18:48]free content buf [16:18:48]Sock 7.Close socket [16:18:48]Sock 7.Thread stoped [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:50]accept exits with 9 [16:19:50]New connection [16:19:50]New thread 3066965348 created [16:19:50]Thread 3067108708 joined [16:19:50]Waiting for new connection... [16:19:50] Sock 9.Parse request [16:19:50]Sock 9.Check first char [16:19:50]Sock 9.First char is OK [16:19:50]request: POST /json_proto HTTP/1.0 [16:19:50]Method: POST [16:19:50]URL: /json_proto [16:19:50]Method is POST - this is cgi request [16:19:50]url: /json_proto [16:19:50]query_string will be loaded in cgi processing [16:19:50]execute_cgi json_proto POST (null) [16:19:50]execute_cgi path=json_proto method=POST [16:19:50]POST find Content-Length [16:19:50]Host: 172.17.33.3:8080 [16:19:50]Content-Length: 805 [16:19:50]Content-Type: application/json [16:19:50] [16:19:50]POST finish read [16:19:50]Found Content-Length = 805 [16:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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: \u041E! \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" ] } } [16:19:50]execute_script... [16:19: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)348042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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: \u041E! \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" ] } } [16:19:50]POST & json_proto [16:19:50]process_json_proto [16:19:50]json parsed OK: [16:19:50]protocol is kg_v1.0 [16:19:50]action value=close_receipt [16:19:50]process_action close_receipt [16:19:50]cmd_close_receipt [16:19:50]MH_GetDate [16:19:50]Write to MH i2c: F0 00 00 17 07 0D [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: F0 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: F0 09 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: F0 09 00 17 07 00 A7 53 1D 66 23 5B 8F 65 05 [16:19:50]GetLastDocTimeStamp 1713197925 [16:19:50]current date 1713197991 [16:19:50]FM_GetShiftState [16:19:50]SAM_PROTO_GetShiftState [16:19:50]wFMCommunicate request_size=4 [16:19:50]MH_SAM_APDU [16:19:50]CAPDU: 80 13 01 00 [16:19:50]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [16:19:50]Write i2c OK [16:19:50]MH_I2C_Read... [16:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:50]Read from MH i2c: E2 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 0E 00 [16:19:50]MH_I2C_Read... [16:19:50]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 90 [16:19:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:19:50]wFMCommunicate OK [16:19:50]SAM_PROTO_GetShiftState done [16:19:50]FM_GetShiftState done [16:19:50]opened in 1713140468 [16:19:50]opened+sec_in_day 1713226868 [16:19:50]quantity*price = 300056 [16:19:50]sum+1 = 300057 [16:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 198 15.04.2024 16:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29604 ФПД: 3432960375 1/tax-web-control/client/api/v1/ticket?date=20240415T161951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29604&fm=3432960375&tin=02508201610067®Number=0000138879044617&sum=300056 [16:19:51]StoreToDocumentArchive [16:19:51]shift 117 fd 29604 [16:19:51]save to /storage/0117/doc_00029604 [16:19:51]save last doc name /storage/0117/doc_00029604 to /storage/kkm_last_doc_name [16:19:51]save OK [16:19:51]Clear old archive folders... [16:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:19:51]tlvbuf is 01A61D60 [16:19:51]SAM_PROTO_ClearQueue [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 09 00 00 [16:19:51]Write to MH i2c: E2 08 00 25 07 80 09 00 00 00 00 00 00 9E [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]SAM_PROTO_ClearQueue done [16:19:51]KKMCreateOFDPacket [16:19:51]OFDProtocolAddRootSTLVToBuf [16:19:51]FM_MakeSignedData [16:19:51]FM_MakeSignedData [16:19:51]SAM_PROTO_SignData [16:19:51]wFMCommunicate request_size=4 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 01 02 [16:19:51]Write to MH i2c: E2 08 00 26 07 80 0D 01 02 00 00 00 00 A6 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:51]Read from MH i2c: E2 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 [16:19:51]MH_I2C_Read... [16:19:51]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [16:19:51]RAPDU: 90 00 [16:19:51]wFMCommunicate OK [16:19:51]wFMCommunicate request_size=255 [16:19:51]MH_SAM_APDU [16:19:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 C6 00 00 00 F4 03 04 00 A7 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 73 00 00 35 04 06 00 00 00 CC 9E [16:19:51]Write to MH i2c: E2 02 01 27 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 C6 00 00 00 F4 03 04 00 A7 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 73 00 00 35 04 06 00 00 00 CC 9E 00 00 C4 [16:19:51]Write i2c OK [16:19:51]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:52]Read from MH i2c: E2 03 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [16:19:52]RAPDU: 90 00 [16:19:52]wFMCommunicate OK [16:19:52]wFMCommunicate request_size=7 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 0D 02 02 02 D1 77 [16:19:52]Write to MH i2c: E2 0A 00 28 07 80 0D 02 02 02 00 D1 77 00 00 F5 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [16:19:52]RAPDU: 90 00 [16:19:52]wFMCommunicate OK [16:19:52]wFMCommunicate request_size=4 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 0D 03 02 [16:19:52]Write to MH i2c: E2 08 00 29 07 80 0D 03 02 00 00 00 00 AB [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 0B 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 0B 00 29 07 00 37 CC D3 17 55 52 6E CA 90 00 78 [16:19:52]RAPDU: 37 CC D3 17 55 52 6E CA 90 00 [16:19:52]wFMCommunicate OK [16:19:52]SAM_PROTO_SignData done [16:19:52]FM_MakeSignedData done [16:19:52]CreateOFDProtocolMessage [16:19:52]wFMCommunicate request_size=4 [16:19:52]MH_SAM_APDU [16:19:52]CAPDU: 80 11 00 00 [16:19:52]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:52]Read from MH i2c: E2 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 17 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [16:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:19:52]wFMCommunicate OK [16:19:52]CreateOFDProtocolMessage done [16:19:52]OFDSenderStorePacket 29604 [16:19:52]StoreOFDPacket docnum=29604 [16:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F0 22 04 01 C7 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 C6 00 00 00 F4 03 04 00 A7 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 73 00 00 35 04 06 00 00 00 CC 9E D1 77 37 CC D3 17 55 52 6E CA [16:19:52]CheckFolder [16:19:52]dirname=/storage/ofd_packets [16:19:52]CheckFolder done [16:19:52]ProducePacketName [16:19:52]name=ofd_packets/00029604 [16:19:52]NVStorageSaveData ofd_packets/00029604 [16:19:52]File name is /storage/ofd_packets/00029604 [16:19:52]Write 298 bytes [16:19:52]NVStorageSaveData done [16:19:52]OFDSenderStorePacket done [16:19:52]KKMCreateOFDPacket done [16:19:52]NVStorageSaveData kkm_last_timestamp [16:19:52]File name is /storage/kkm_last_timestamp [16:19:52]Write 4 bytes [16:19:52]NVStorageSaveData done [16:19:52]ExternCall_PrintAddStr [16:19:52]wPrintStart [16:19:52]Write to MH i2c: 01 00 00 2B 07 32 [16:19:52]Write i2c OK [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 07 00 [16:19:52]MH_I2C_Read... [16:19:52]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 FF 0F 47 [16:19:52]RasterBufferAndPrint [16:19:52]line Счет N : (1)348042 [16:19:52]line ИНН: 02508201610067 [16:19:52]line Контрольно-Кассовый Чек [16:19:52]line ПРОДАЖА [16:19:52]line ТРК (МРК, ГНК) : 11 [16:19:52]line Товар: 2710194210 [16:19:52]line ДТ-К-5 [16:19:52]line 41.160 * 72.90 [16:19:52]line = 3000.56 [16:19:52]line НДС 12% НСП 1% [16:19:52]line > о реализуемом товаре [16:19:52]line ИТОГО: 3000.56 [16:19:52]line НСП 1% : 26.55 [16:19:52]line НДС 12% : 318.64 [16:19:52]line Наличными: 0.00 [16:19:52]line Безнал.: 3000.56 [16:19:52]line Место: АЗС № 108 "Партнер Нефть" [16:19:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:19:52]line СНО: Общий режим [16:19:52]line Чек 198 15.04.2024 16:19 [16:19:52]line Смена: 117 ФФД: 1.0 [16:19:52]line ЗНМ: 0300000027 [16:19:52]line РНМ: 0000138879044617 [16:19:52]line Версия ККМ: 001 [16:19:52]line Платежная система: О! деньги [16:19:52]line ФМ: 0000000000963154 [16:19:52]line ФД: 29604 [16:19:52]line ФПД: 3432960375 [16:19:52]line 1/tax-web-control/client/api/v1/ticket?date=20240415T161951&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29604&fm=3432960375&tin=02508201610067®Number=0000138879044617&sum=300056 [16:19:52]OFD Sender: Processing packet 29604 [packets to send 8, broken 7] [16:19:52]ProducePacketName [16:19:52]name=ofd_packets/00029604 [16:19:52]OFD Sender: To server: pG, [16:19:52]CommunicateWithHost lk.salyk.kg:30040 [16:19:52]ConnectInit lk.salyk.kg [16:19:52]written 0, free lines is 4095 [16:19:52]Connected sock=10 [16:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F0 22 04 01 C7 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 C6 00 00 00 F4 03 04 00 A7 53 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 73 00 00 35 04 06 00 00 00 CC 9E D1 77 37 CC D3 17 55 52 6E CA [16:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 BD 47 00 DC 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 39 36 33 31 35 34 10 04 04 00 A4 73 00 00 F4 03 04 00 48 FE 1C 66 B6 04 01 00 00 76 CE E7 3E AF 61 E9 31 [16:19:52]CommunicateWithHost err = 0 [16:19:52]CheckOFDResponse [16:19:52]1017 (14) - 77093643461234 [16:19:52]1041 (16) - 0000000000963154 [16:19:52]1040 (4) - 29604 [16:19:52]1012 (4) - 15.04.2024 10:15 [16:19:52]1206 (1) - 0 [16:19:52]OFD Sender: Remove packet 29604 [16:19:52]ProducePacketName [16:19:52]name=ofd_packets/00029604 [16:19:52]NVStorageDeleteData [16:19:53]Write to MH i2c: 01 00 00 54 07 5B [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 E0 0C 4E [16:19:53]RasterBufferAndPrint [16:19:53]line [16:19:53]line [16:19:53]line [16:19:53]line [16:19:53]line [16:19:53]written 0, free lines is 3302 [16:19:53]MH_Cut [16:19:53]Write to MH i2c: D1 01 00 5B 07 01 34 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: D1 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: D1 01 00 [16:19:53]MH_I2C_Read... [16:19:53]Read from MH i2c: D1 01 00 5B 07 00 33 [16:19:53]Write to MH i2c: 01 00 00 5C 07 63 [16:19:53]Write i2c OK [16:19:53]MH_I2C_Read... [16:19:53]OFD Sender: No OFD packet to send [16:19:53]*** Cut start [16:19:53]*** Partial cut [16:19:53]*** CUTSNS_PIN = 1 [16:19:53]*** CUTSNS_PIN = 0 [16:19:54]*** Brake cut motor [16:19:54]Read from MH i2c: 01 [16:19:54]MH_I2C_Read... [16:19:54]*** Stop cut motor [16:19:54]*** Cut end [16:19:54]Read from MH i2c: 01 07 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [16:19:54]process_action close_receipt done [16:19:54]requested_data is exist [16:19:54]produce_requested_data [16:19:54]requested_item fm.sn is exist - process it [16:19:54]wFMCommunicate request_size=4 [16:19:54]MH_SAM_APDU [16:19:54]CAPDU: 80 11 00 00 [16:19:54]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:54]Read from MH i2c: E2 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 17 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [16:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:19:54]wFMCommunicate OK [16:19:54]requested_item fd.num is exist - process it [16:19:54]SAM_PROTO_GetFieldsCounters [16:19:54]wFMCommunicate request_size=4 [16:19:54]MH_SAM_APDU [16:19:54]CAPDU: 80 13 00 00 [16:19:54]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:54]Read from MH i2c: E2 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 62 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 62 00 5E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 73 00 00 0E 04 04 00 75 00 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 FD [16:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 73 00 00 0E 04 04 00 75 00 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:19:54]wFMCommunicate OK [16:19:54]SAM_PROTO_GetFieldsCounters done [16:19:54]requested_item shift.num is exist - process it [16:19:54]requested_item shift.opened is exist - process it [16:19:54]req_shift_opened [16:19:54]FM_GetShiftState [16:19:54]SAM_PROTO_GetShiftState [16:19:54]wFMCommunicate request_size=4 [16:19:54]MH_SAM_APDU [16:19:54]CAPDU: 80 13 01 00 [16:19:54]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [16:19:54]Write i2c OK [16:19:54]MH_I2C_Read... [16:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:54]Read from MH i2c: E2 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 0E 00 [16:19:54]MH_I2C_Read... [16:19:54]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D7 [16:19:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:19:54]wFMCommunicate OK [16:19:54]SAM_PROTO_GetShiftState done [16:19:54]FM_GetShiftState done [16:19:54]req_shift_opened done [16:19:54]requested_item shift.open_date is exist - process it [16:19:54]req_shift_open_date [16:19:54]req_shift_open_date done [16:19:54]produce_requested_data done [16:19:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29604,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:19:54]process_action_free close_receipt [16:19:54]json_value_free [16:19:54]json_value_free done [16:19:54]process_json_proto returns [16:19:54]Send response to host [16:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29604,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:19:54]free response buf [16:19:54]execute_script done [16:19:54]execute_script returns [16:19:54]free content buf [16:19:54]Sock 9.Close socket [16:19:54]Sock 9.Thread stoped [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:25]accept exits with 7 [16:24:25]New connection [16:24:25]New thread 3067108708 created [16:24:25]Thread 3066965348 joined [16:24:25]Waiting for new connection... [16:24:25] Sock 7.Parse request [16:24:25]Sock 7.Check first char [16:24:25]Sock 7.First char is OK [16:24:25]request: POST /json_proto HTTP/1.0 [16:24:25]Method: POST [16:24:25]URL: /json_proto [16:24:25]Method is POST - this is cgi request [16:24:25]url: /json_proto [16:24:25]query_string will be loaded in cgi processing [16:24:25]execute_cgi json_proto POST (null) [16:24:25]execute_cgi path=json_proto method=POST [16:24:25]POST find Content-Length [16:24:25]Host: 172.17.33.3:8080 [16:24:25]Content-Length: 677 [16:24:25]Content-Type: application/json [16:24:25] [16:24:25]POST finish read [16:24:25]Found Content-Length = 677 [16:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:25]execute_script... [16:24: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)348044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:25]POST & json_proto [16:24:25]process_json_proto [16:24:25]json parsed OK: [16:24:25]protocol is kg_v1.0 [16:24:25]action value=close_receipt [16:24:25]process_action close_receipt [16:24:25]cmd_close_receipt [16:24:25]MH_GetDate [16:24:25]Write to MH i2c: F0 00 00 60 07 56 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: F0 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: F0 09 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: F0 09 00 60 07 00 BA 54 1D 66 23 5B 8F 65 62 [16:24:25]GetLastDocTimeStamp 1713197991 [16:24:25]current date 1713198266 [16:24:25]FM_GetShiftState [16:24:25]SAM_PROTO_GetShiftState [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 13 01 00 [16:24:25]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0E 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [16:24:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:24:25]wFMCommunicate OK [16:24:25]SAM_PROTO_GetShiftState done [16:24:25]FM_GetShiftState done [16:24:25]opened in 1713140468 [16:24:25]opened+sec_in_day 1713226868 [16:24:25]quantity*price = 50025 [16:24:25]sum+1 = 50027 [16:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 199 15.04.2024 16:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29605 ФПД: 267075259898635 1/tax-web-control/client/api/v1/ticket?date=20240415T162426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29605&fm=267075259898635&tin=02508201610067®Number=0000138879044617&sum=50000 [16:24:26]StoreToDocumentArchive [16:24:26]shift 117 fd 29605 [16:24:26]save to /storage/0117/doc_00029605 [16:24:26]save last doc name /storage/0117/doc_00029605 to /storage/kkm_last_doc_name [16:24:26]save OK [16:24:26]Clear old archive folders... [16:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:26]tlvbuf is 01A62440 [16:24:26]SAM_PROTO_ClearQueue [16:24:26]wFMCommunicate request_size=4 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 09 00 00 [16:24:26]Write to MH i2c: E2 08 00 6E 07 80 09 00 00 00 00 00 00 E7 [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [16:24:26]RAPDU: 90 00 [16:24:26]wFMCommunicate OK [16:24:26]SAM_PROTO_ClearQueue done [16:24:26]KKMCreateOFDPacket [16:24:26]OFDProtocolAddRootSTLVToBuf [16:24:26]FM_MakeSignedData [16:24:26]FM_MakeSignedData [16:24:26]SAM_PROTO_SignData [16:24:26]wFMCommunicate request_size=4 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 0D 01 02 [16:24:26]Write to MH i2c: E2 08 00 6F 07 80 0D 01 02 00 00 00 00 EF [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [16:24:26]RAPDU: 90 00 [16:24:26]wFMCommunicate OK [16:24:26]wFMCommunicate request_size=255 [16:24:26]MH_SAM_APDU [16:24: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BA 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 73 00 00 35 04 06 00 F2 [16:24:26]Write to MH i2c: E2 02 01 70 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BA 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 73 00 00 35 04 06 00 F2 00 00 7F [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [16:24:26]RAPDU: 90 00 [16:24:26]wFMCommunicate OK [16:24:26]wFMCommunicate request_size=10 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 0D 02 02 05 E7 4D FE 9B 0B [16:24:26]Write to MH i2c: E2 0D 00 71 07 80 0D 02 02 05 00 E7 4D FE 9B 0B 00 00 D4 [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [16:24:26]RAPDU: 90 00 [16:24:26]wFMCommunicate OK [16:24:26]wFMCommunicate request_size=4 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 0D 03 02 [16:24:26]Write to MH i2c: E2 08 00 72 07 80 0D 03 02 00 00 00 00 F4 [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 0B 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 0B 00 72 07 00 21 65 94 E2 B5 81 15 B4 90 00 F0 [16:24:26]RAPDU: 21 65 94 E2 B5 81 15 B4 90 00 [16:24:26]wFMCommunicate OK [16:24:26]SAM_PROTO_SignData done [16:24:26]FM_MakeSignedData done [16:24:26]CreateOFDProtocolMessage [16:24:26]wFMCommunicate request_size=4 [16:24:26]MH_SAM_APDU [16:24:26]CAPDU: 80 11 00 00 [16:24:26]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:26]Read from MH i2c: E2 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 17 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [16:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:24:26]wFMCommunicate OK [16:24:26]CreateOFDProtocolMessage done [16:24:26]OFDSenderStorePacket 29605 [16:24:26]StoreOFDPacket docnum=29605 [16:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8F 61 07 01 F2 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BA 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 73 00 00 35 04 06 00 F2 E7 4D FE 9B 0B 21 65 94 E2 B5 81 15 B4 [16:24:26]CheckFolder [16:24:26]dirname=/storage/ofd_packets [16:24:26]CheckFolder done [16:24:26]ProducePacketName [16:24:26]name=ofd_packets/00029605 [16:24:26]NVStorageSaveData ofd_packets/00029605 [16:24:26]File name is /storage/ofd_packets/00029605 [16:24:26]Write 301 bytes [16:24:26]NVStorageSaveData done [16:24:26]OFDSenderStorePacket done [16:24:26]KKMCreateOFDPacket done [16:24:26]NVStorageSaveData kkm_last_timestamp [16:24:26]File name is /storage/kkm_last_timestamp [16:24:26]Write 4 bytes [16:24:26]NVStorageSaveData done [16:24:26]ExternCall_PrintAddStr [16:24:26]wPrintStart [16:24:26]Write to MH i2c: 01 00 00 74 07 7B [16:24:26]Write i2c OK [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: 01 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: 01 07 00 [16:24:26]MH_I2C_Read... [16:24:26]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [16:24:26]RasterBufferAndPrint [16:24:26]line Счет N : (1)348044 [16:24:26]line ИНН: 02508201610067 [16:24:26]line Контрольно-Кассовый Чек [16:24:26]line ПРОДАЖА [16:24:26]line ТРК (МРК, ГНК) : 32 [16:24:26]line Товар: 2710124130 [16:24:26]line Аи-92-К-5 [16:24:26]line 7.720 * 64.80 [16:24:26]line = 500.26 [16:24:26]line НДС 12% НСП 1% [16:24:26]line > о реализуемом товаре [16:24:26]line ОКРУГЛЕНИЕ: -0.26 [16:24:26]line ИТОГО: 500.00 [16:24:26]line Внесено: 500.00 [16:24:26]line СДАЧА: 0.00 [16:24:26]line НСП 1% : 4.43 [16:24:26]line НДС 12% : 53.12 [16:24:26]line Наличными: 500.00 [16:24:26]line Безнал.: 0.00 [16:24:26]line Место: АЗС № 108 "Партнер Нефть" [16:24:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:24:26]line СНО: Общий режим [16:24:26]line Чек 199 15.04.2024 16:24 [16:24:26]line Смена: 117 ФФД: 1.0 [16:24:26]line ЗНМ: 0300000027 [16:24:26]line РНМ: 0000138879044617 [16:24:26]line Версия ККМ: 001 [16:24:26]line ФМ: 0000000000963154 [16:24:26]line ФД: 29605 [16:24:26]line ФПД: 267075259898635 [16:24:26]line 1/tax-web-control/client/api/v1/ticket?date=20240415T162426&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29605&fm=267075259898635&tin=02508201610067®Number=0000138879044617&sum=50000 [16:24:27]OFD Sender: Processing packet 29605 [packets to send 8, broken 7] [16:24:27]ProducePacketName [16:24:27]name=ofd_packets/00029605 [16:24:27]OFD Sender: To server: pG, [16:24:27]CommunicateWithHost lk.salyk.kg:30040 [16:24:27]ConnectInit lk.salyk.kg [16:24:27]written 0, free lines is 4095 [16:24:27]Connected sock=10 [16:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8F 61 07 01 F2 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 BA 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 73 00 00 35 04 06 00 F2 E7 4D FE 9B 0B 21 65 94 E2 B5 81 15 B4 [16:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 22 7D 47 00 A3 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 73 00 00 F4 03 04 00 5A FF 1C 66 B6 04 01 00 00 2B A0 0C 44 47 05 1C 0E [16:24:27]CommunicateWithHost err = 0 [16:24:27]CheckOFDResponse [16:24:27]1017 (14) - 77093643461234 [16:24:27]1041 (16) - 0000000000963154 [16:24:27]1040 (4) - 29605 [16:24:27]1012 (4) - 15.04.2024 10:20 [16:24:27]1206 (1) - 0 [16:24:27]OFD Sender: Remove packet 29605 [16:24:27]ProducePacketName [16:24:27]name=ofd_packets/00029605 [16:24:27]NVStorageDeleteData [16:24:27]Write to MH i2c: 01 00 00 9E 07 A5 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 D3 0C 8B [16:24:27]RasterBufferAndPrint [16:24:27]line [16:24:27]line [16:24:27]line [16:24:27]line [16:24:27]line [16:24:27]written 0, free lines is 3289 [16:24:27]MH_Cut [16:24:27]Write to MH i2c: D1 01 00 A5 07 01 7E [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: D1 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: D1 01 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: D1 01 00 A5 07 00 7D [16:24:27]Write to MH i2c: 01 00 00 A6 07 AD [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:28]OFD Sender: No OFD packet to send [16:24:28]*** Cut start [16:24:28]*** Partial cut [16:24:28]*** CUTSNS_PIN = 1 [16:24:28]*** CUTSNS_PIN = 0 [16:24:28]*** Brake cut motor [16:24:29]Read from MH i2c: 01 [16:24:29]MH_I2C_Read... [16:24:29]*** Stop cut motor [16:24:29]*** Cut end [16:24:29]Read from MH i2c: 01 07 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 FF 0F C2 [16:24:29]process_action close_receipt done [16:24:29]requested_data is exist [16:24:29]produce_requested_data [16:24:29]requested_item fm.sn is exist - process it [16:24:29]wFMCommunicate request_size=4 [16:24:29]MH_SAM_APDU [16:24:29]CAPDU: 80 11 00 00 [16:24:29]Write to MH i2c: E2 08 00 A7 07 80 11 00 00 00 00 00 00 28 [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:29]Read from MH i2c: E2 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 17 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 17 00 A7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [16:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:24:29]wFMCommunicate OK [16:24:29]requested_item fd.num is exist - process it [16:24:29]SAM_PROTO_GetFieldsCounters [16:24:29]wFMCommunicate request_size=4 [16:24:29]MH_SAM_APDU [16:24:29]CAPDU: 80 13 00 00 [16:24:29]Write to MH i2c: E2 08 00 A8 07 80 13 00 00 00 00 00 00 2B [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:29]Read from MH i2c: E2 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 62 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 62 00 A8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 73 00 00 0E 04 04 00 75 00 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 4B [16:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 73 00 00 0E 04 04 00 75 00 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:24:29]wFMCommunicate OK [16:24:29]SAM_PROTO_GetFieldsCounters done [16:24:29]requested_item shift.num is exist - process it [16:24:29]requested_item shift.opened is exist - process it [16:24:29]req_shift_opened [16:24:29]FM_GetShiftState [16:24:29]SAM_PROTO_GetShiftState [16:24:29]wFMCommunicate request_size=4 [16:24:29]MH_SAM_APDU [16:24:29]CAPDU: 80 13 01 00 [16:24:29]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:29]Read from MH i2c: E2 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [16:24:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:24:29]wFMCommunicate OK [16:24:29]SAM_PROTO_GetShiftState done [16:24:29]FM_GetShiftState done [16:24:29]req_shift_opened done [16:24:29]requested_item shift.open_date is exist - process it [16:24:29]req_shift_open_date [16:24:29]req_shift_open_date done [16:24:29]produce_requested_data done [16:24:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29605,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:24:29]process_action_free close_receipt [16:24:29]json_value_free [16:24:29]json_value_free done [16:24:29]process_json_proto returns [16:24:29]Send response to host [16:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29605,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:24:29]free response buf [16:24:29]execute_script done [16:24:29]execute_script returns [16:24:29]free content buf [16:24:29]Sock 7.Close socket [16:24:29]Sock 7.Thread stoped [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:26]accept exits with 9 [16:25:26]New connection [16:25:26]New thread 3066965348 created [16:25:26]Thread 3067108708 joined [16:25:26]Waiting for new connection... [16:25:26] Sock 9.Parse request [16:25:26]Sock 9.Check first char [16:25:26]Sock 9.First char is OK [16:25:26]request: POST /json_proto HTTP/1.0 [16:25:26]Method: POST [16:25:26]URL: /json_proto [16:25:26]Method is POST - this is cgi request [16:25:26]url: /json_proto [16:25:26]query_string will be loaded in cgi processing [16:25:26]execute_cgi json_proto POST (null) [16:25:26]execute_cgi path=json_proto method=POST [16:25:26]POST find Content-Length [16:25:26]Host: 172.17.33.3:8080 [16:25:26]Content-Length: 808 [16:25:26]Content-Type: application/json [16:25:26] [16:25:26]POST finish read [16:25:26]Found Content-Length = 808 [16:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:26]execute_script... [16:25: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)348045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:26]POST & json_proto [16:25:26]process_json_proto [16:25:26]json parsed OK: [16:25:26]protocol is kg_v1.0 [16:25:26]action value=close_receipt [16:25:26]process_action close_receipt [16:25:26]cmd_close_receipt [16:25:26]MH_GetDate [16:25:26]Write to MH i2c: F0 00 00 AA 07 A0 [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: F0 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: F0 09 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: F0 09 00 AA 07 00 F7 54 1D 66 23 5B 8F 65 E9 [16:25:26]GetLastDocTimeStamp 1713198266 [16:25:26]current date 1713198327 [16:25:26]FM_GetShiftState [16:25:26]SAM_PROTO_GetShiftState [16:25:26]wFMCommunicate request_size=4 [16:25:26]MH_SAM_APDU [16:25:26]CAPDU: 80 13 01 00 [16:25:26]Write to MH i2c: E2 08 00 AB 07 80 13 01 00 00 00 00 00 2F [16:25:26]Write i2c OK [16:25:26]MH_I2C_Read... [16:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:26]Read from MH i2c: E2 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 0E 00 [16:25:26]MH_I2C_Read... [16:25:26]Read from MH i2c: E2 0E 00 AB 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [16:25:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:25:26]wFMCommunicate OK [16:25:26]SAM_PROTO_GetShiftState done [16:25:26]FM_GetShiftState done [16:25:26]opened in 1713140468 [16:25:26]opened+sec_in_day 1713226868 [16:25:26]quantity*price = 150012 [16:25:26]sum+1 = 150013 [16:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 200 15.04.2024 16:25 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29606 ФПД: 263652076939777 1/tax-web-control/client/api/v1/ticket?date=20240415T162527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29606&fm=263652076939777&tin=02508201610067®Number=0000138879044617&sum=150012 [16:25:27]StoreToDocumentArchive [16:25:27]shift 117 fd 29606 [16:25:27]save to /storage/0117/doc_00029606 [16:25:27]save last doc name /storage/0117/doc_00029606 to /storage/kkm_last_doc_name [16:25:27]save OK [16:25:27]Clear old archive folders... [16:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:27]tlvbuf is B6F7E660 [16:25:27]SAM_PROTO_ClearQueue [16:25:27]wFMCommunicate request_size=4 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 09 00 00 [16:25:27]Write to MH i2c: E2 08 00 B8 07 80 09 00 00 00 00 00 00 31 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:27]Read from MH i2c: E2 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [16:25:27]RAPDU: 90 00 [16:25:27]wFMCommunicate OK [16:25:27]SAM_PROTO_ClearQueue done [16:25:27]KKMCreateOFDPacket [16:25:27]OFDProtocolAddRootSTLVToBuf [16:25:27]FM_MakeSignedData [16:25:27]FM_MakeSignedData [16:25:27]SAM_PROTO_SignData [16:25:27]wFMCommunicate request_size=4 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 0D 01 02 [16:25:27]Write to MH i2c: E2 08 00 B9 07 80 0D 01 02 00 00 00 00 39 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:27]Read from MH i2c: E2 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [16:25:27]RAPDU: 90 00 [16:25:27]wFMCommunicate OK [16:25:27]wFMCommunicate request_size=255 [16:25:27]MH_SAM_APDU [16:25: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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F7 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 73 00 00 35 04 06 00 EF [16:25:27]Write to MH i2c: E2 02 01 BA 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F7 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 73 00 00 35 04 06 00 EF 00 00 25 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:27]Read from MH i2c: E2 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [16:25:27]RAPDU: 90 00 [16:25:27]wFMCommunicate OK [16:25:27]wFMCommunicate request_size=10 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 0D 02 02 05 CA 48 63 EA 01 [16:25:27]Write to MH i2c: E2 0D 00 BB 07 80 0D 02 02 05 00 CA 48 63 EA 01 00 00 A6 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:27]Read from MH i2c: E2 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [16:25:27]RAPDU: 90 00 [16:25:27]wFMCommunicate OK [16:25:27]wFMCommunicate request_size=4 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 0D 03 02 [16:25:27]Write to MH i2c: E2 08 00 BC 07 80 0D 03 02 00 00 00 00 3E [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:27]Read from MH i2c: E2 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 0B 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: E2 0B 00 BC 07 00 5C 16 1B 89 CF 25 F2 F1 90 00 2C [16:25:27]RAPDU: 5C 16 1B 89 CF 25 F2 F1 90 00 [16:25:27]wFMCommunicate OK [16:25:27]SAM_PROTO_SignData done [16:25:27]FM_MakeSignedData done [16:25:27]CreateOFDProtocolMessage [16:25:27]wFMCommunicate request_size=4 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 11 00 00 [16:25:27]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 17 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [16:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:25:28]wFMCommunicate OK [16:25:28]CreateOFDProtocolMessage done [16:25:28]OFDSenderStorePacket 29606 [16:25:28]StoreOFDPacket docnum=29606 [16:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 92 07 01 A0 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F7 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 73 00 00 35 04 06 00 EF CA 48 63 EA 01 5C 16 1B 89 CF 25 F2 F1 [16:25:28]CheckFolder [16:25:28]dirname=/storage/ofd_packets [16:25:28]CheckFolder done [16:25:28]ProducePacketName [16:25:28]name=ofd_packets/00029606 [16:25:28]NVStorageSaveData ofd_packets/00029606 [16:25:28]File name is /storage/ofd_packets/00029606 [16:25:28]Write 301 bytes [16:25:28]NVStorageSaveData done [16:25:28]OFDSenderStorePacket done [16:25:28]KKMCreateOFDPacket done [16:25:28]NVStorageSaveData kkm_last_timestamp [16:25:28]File name is /storage/kkm_last_timestamp [16:25:28]Write 4 bytes [16:25:28]NVStorageSaveData done [16:25:28]ExternCall_PrintAddStr [16:25:28]wPrintStart [16:25:28]Write to MH i2c: 01 00 00 BE 07 C5 [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 FF 0F DA [16:25:28]RasterBufferAndPrint [16:25:28]line Счет N : (1)348045 [16:25:28]line ИНН: 02508201610067 [16:25:28]line Контрольно-Кассовый Чек [16:25:28]line ПРОДАЖА [16:25:28]line ТРК (МРК, ГНК) : 13 [16:25:28]line Товар: 2710124130 [16:25:28]line Аи-92-К-5 [16:25:28]line 23.150 * 64.80 [16:25:28]line = 1500.12 [16:25:28]line НДС 12% НСП 1% [16:25:28]line > о реализуемом товаре [16:25:28]line ИТОГО: 1500.12 [16:25:28]line НСП 1% : 13.27 [16:25:28]line НДС 12% : 159.30 [16:25:28]line Наличными: 0.00 [16:25:28]line Безнал.: 1500.12 [16:25:28]line Место: АЗС № 108 "Партнер Нефть" [16:25:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:25:28]line СНО: Общий режим [16:25:28]line Чек 200 15.04.2024 16:25 [16:25:28]line Смена: 117 ФФД: 1.0 [16:25:28]line ЗНМ: 0300000027 [16:25:28]line РНМ: 0000138879044617 [16:25:28]line Версия ККМ: 001 [16:25:28]line Платежная система: О! деньги [16:25:28]line ФМ: 0000000000963154 [16:25:28]line ФД: 29606 [16:25:28]line ФПД: 263652076939777 [16:25:28]line 1/tax-web-control/client/api/v1/ticket?date=20240415T162527&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29606&fm=263652076939777&tin=02508201610067®Number=0000138879044617&sum=150012 [16:25:28]OFD Sender: Processing packet 29606 [packets to send 8, broken 7] [16:25:28]ProducePacketName [16:25:28]name=ofd_packets/00029606 [16:25:28]OFD Sender: To server: pG, [16:25:28]CommunicateWithHost lk.salyk.kg:30040 [16:25:28]ConnectInit lk.salyk.kg [16:25:28]written 0, free lines is 4095 [16:25:28]Connected sock=10 [16:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 92 07 01 A0 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 F7 54 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 73 00 00 35 04 06 00 EF CA 48 63 EA 01 5C 16 1B 89 CF 25 F2 F1 [16:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E5 A4 47 00 26 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 39 36 33 31 35 34 10 04 04 00 A6 73 00 00 F4 03 04 00 97 FF 1C 66 B6 04 01 00 00 2C 02 A9 3D F4 2B 11 55 [16:25:28]CommunicateWithHost err = 0 [16:25:28]CheckOFDResponse [16:25:28]1017 (14) - 77093643461234 [16:25:28]1041 (16) - 0000000000963154 [16:25:28]1040 (4) - 29606 [16:25:28]1012 (4) - 15.04.2024 10:21 [16:25:28]1206 (1) - 0 [16:25:28]OFD Sender: Remove packet 29606 [16:25:28]ProducePacketName [16:25:28]name=ofd_packets/00029606 [16:25:28]NVStorageDeleteData [16:25:28]Write to MH i2c: 01 00 00 E7 07 EE [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 E5 0C E6 [16:25:28]RasterBufferAndPrint [16:25:28]line [16:25:28]line [16:25:28]line [16:25:28]line [16:25:28]line [16:25:28]written 0, free lines is 3307 [16:25:28]MH_Cut [16:25:28]Write to MH i2c: D1 01 00 EE 07 01 C7 [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: D1 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: D1 01 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: D1 01 00 EE 07 00 C6 [16:25:28]Write to MH i2c: 01 00 00 EF 07 F6 [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:29]OFD Sender: No OFD packet to send [16:25:29]*** Cut start [16:25:29]*** Partial cut [16:25:29]*** CUTSNS_PIN = 1 [16:25:29]*** CUTSNS_PIN = 0 [16:25:29]*** Brake cut motor [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]*** Stop cut motor [16:25:30]*** Cut end [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [16:25:30]process_action close_receipt done [16:25:30]requested_data is exist [16:25:30]produce_requested_data [16:25:30]requested_item fm.sn is exist - process it [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 11 00 00 [16:25:30]Write to MH i2c: E2 08 00 F0 07 80 11 00 00 00 00 00 00 71 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 F0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [16:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:25:30]wFMCommunicate OK [16:25:30]requested_item fd.num is exist - process it [16:25:30]SAM_PROTO_GetFieldsCounters [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 13 00 00 [16:25:30]Write to MH i2c: E2 08 00 F1 07 80 13 00 00 00 00 00 00 74 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 62 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 62 00 F1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 73 00 00 0E 04 04 00 75 00 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 98 [16:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 73 00 00 0E 04 04 00 75 00 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:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_GetFieldsCounters done [16:25:30]requested_item shift.num is exist - process it [16:25:30]requested_item shift.opened is exist - process it [16:25:30]req_shift_opened [16:25:30]FM_GetShiftState [16:25:30]SAM_PROTO_GetShiftState [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 13 01 00 [16:25:30]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6A [16:25:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_GetShiftState done [16:25:30]FM_GetShiftState done [16:25:30]req_shift_opened done [16:25:30]requested_item shift.open_date is exist - process it [16:25:30]req_shift_open_date [16:25:30]req_shift_open_date done [16:25:30]produce_requested_data done [16:25:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29606,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:25:30]process_action_free close_receipt [16:25:30]json_value_free [16:25:30]json_value_free done [16:25:30]process_json_proto returns [16:25:30]Send response to host [16:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29606,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:25:30]free response buf [16:25:30]execute_script done [16:25:30]execute_script returns [16:25:30]free content buf [16:25:30]Sock 9.Close socket [16:25:30]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [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:26]accept exits with 7 [16:31:26]New connection [16:31:26]New thread 3067108708 created [16:31:26]Thread 3066965348 joined [16:31:26]Waiting for new connection... [16:31:26] Sock 7.Parse request [16:31:26]Sock 7.Check first char [16:31:26]Sock 7.First char is OK [16:31:26]request: POST /json_proto HTTP/1.0 [16:31:26]Method: POST [16:31:26]URL: /json_proto [16:31:26]Method is POST - this is cgi request [16:31:26]url: /json_proto [16:31:26]query_string will be loaded in cgi processing [16:31:26]execute_cgi json_proto POST (null) [16:31:26]execute_cgi path=json_proto method=POST [16:31:26]POST find Content-Length [16:31:26]Host: 172.17.33.3:8080 [16:31:26]Content-Length: 1173 [16:31:26]Content-Type: application/json [16:31:26] [16:31:26]POST finish read [16:31:26]Found Content-Length = 1173 [16:31: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348046\u000A15.04.2024 16:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 8.990 x 33.40\u000A\u0418\u0422\u041E\u0413: 300.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A43177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:26]execute_script... [16:31: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348046\u000A15.04.2024 16:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 8.990 x 33.40\u000A\u0418\u0422\u041E\u0413: 300.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A43177\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:26]POST & json_proto [16:31:26]process_json_proto [16:31:26]json parsed OK: [16:31:26]protocol is kg_v1.0 [16:31:26]action value=print_text [16:31:26]process_action print_text [16:31:26]cmd_print_text [16:31:26]ExternCall_PrintAddStr [16:31:26]wPrintStart [16:31:26]Write to MH i2c: 01 00 00 F3 07 FA [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [16:31:26]RasterBufferAndPrint [16:31:26]line *****ТОВАРНЫЙ ЧЕК***** [16:31:26]line АЗС 108 [16:31:26]line Партнер нефть [16:31:26]line 02508201610067 [16:31:26]line Кассир : Джумагулова Н. [16:31:26]line Счет N : (1)348046 [16:31:26]line 15.04.2024 16:13 [16:31:26]line ПРОДАЖА [16:31:26]line ТРК (МРК, ГНК): 71 [16:31:26]line Вид ГСМ : 2711129700 [16:31:26]line ГАЗ-К-5 [16:31:26]line 8.990 x 33.40 [16:31:26]line ИТОГ: 300.27 [16:31:26]line Тип оплаты: Талоны: ТК ГПНА Online [16:31:26]line 43177 [16:31:26]line ______________________ [16:31:26]line (подпись) [16:31:26]written 0, free lines is 4095 [16:31:26]Write to MH i2c: 01 00 00 08 08 10 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 F2 0D 16 [16:31:26]RasterBufferAndPrint [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]written 0, free lines is 3571 [16:31:26]MH_Cut [16:31:26]Write to MH i2c: D1 01 00 0F 08 01 E9 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 0F 08 00 E8 [16:31:26]Write to MH i2c: 01 00 00 10 08 18 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:27]*** Cut start [16:31:27]*** Partial cut [16:31:27]*** CUTSNS_PIN = 1 [16:31:27]*** CUTSNS_PIN = 0 [16:31:27]*** Brake cut motor [16:31:27]Read from MH i2c: 01 [16:31:27]MH_I2C_Read... [16:31:27]*** Stop cut motor [16:31:27]*** Cut end [16:31:27]Read from MH i2c: 01 07 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: 01 07 00 10 08 00 00 00 00 00 FF 0F 2D [16:31:27]process_action print_text done [16:31:27]requested_data is exist [16:31:27]produce_requested_data [16:31:27]requested_item fm.sn is exist - process it [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 11 00 00 [16:31:27]Write to MH i2c: E2 08 00 11 08 80 11 00 00 00 00 00 00 93 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 17 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 17 00 11 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [16:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:31:27]wFMCommunicate OK [16:31:27]requested_item fd.num is exist - process it [16:31:27]SAM_PROTO_GetFieldsCounters [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 13 00 00 [16:31:27]Write to MH i2c: E2 08 00 12 08 80 13 00 00 00 00 00 00 96 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 62 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 62 00 12 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 73 00 00 0E 04 04 00 75 00 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 BA [16:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 73 00 00 0E 04 04 00 75 00 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:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_GetFieldsCounters done [16:31:28]requested_item shift.num is exist - process it [16:31:28]requested_item shift.opened is exist - process it [16:31:28]req_shift_opened [16:31:28]FM_GetShiftState [16:31:28]SAM_PROTO_GetShiftState [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 13 01 00 [16:31:28]Write to MH i2c: E2 08 00 13 08 80 13 01 00 00 00 00 00 98 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 13 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8C [16:31:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_GetShiftState done [16:31:28]FM_GetShiftState done [16:31:28]req_shift_opened done [16:31:28]requested_item shift.open_date is exist - process it [16:31:28]req_shift_open_date [16:31:28]req_shift_open_date done [16:31:28]produce_requested_data done [16:31:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29606,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:31:28]process_action_free print_text [16:31:28]json_value_free [16:31:28]json_value_free done [16:31:28]process_json_proto returns [16:31:28]Send response to host [16:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29606,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:31:28]free response buf [16:31:28]execute_script done [16:31:28]execute_script returns [16:31:28]free content buf [16:31:28]Sock 7.Close socket [16:31:28]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:51]accept exits with 9 [16:37:51]New connection [16:37:51]New thread 3066965348 created [16:37:51]Thread 3067108708 joined [16:37:51]Waiting for new connection... [16:37:51] Sock 9.Parse request [16:37:51]Sock 9.Check first char [16:37:51]Sock 9.First char is OK [16:37:51]request: POST /json_proto HTTP/1.0 [16:37:51]Method: POST [16:37:51]URL: /json_proto [16:37:51]Method is POST - this is cgi request [16:37:51]url: /json_proto [16:37:51]query_string will be loaded in cgi processing [16:37:51]execute_cgi json_proto POST (null) [16:37:51]execute_cgi path=json_proto method=POST [16:37:51]POST find Content-Length [16:37:51]Host: 172.17.33.3:8080 [16:37:51]Content-Length: 675 [16:37:51]Content-Type: application/json [16:37:51] [16:37:51]POST finish read [16:37:51]Found Content-Length = 675 [16:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 28.960, "sum" : 1905.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1905.00, "total" : 1905.00, "payments": [ { "type": 0, "sum" : 1905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:51]execute_script... [16:37: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)348047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 28.960, "sum" : 1905.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1905.00, "total" : 1905.00, "payments": [ { "type": 0, "sum" : 1905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:51]POST & json_proto [16:37:51]process_json_proto [16:37:51]json parsed OK: [16:37:51]protocol is kg_v1.0 [16:37:51]action value=close_receipt [16:37:51]process_action close_receipt [16:37:51]cmd_close_receipt [16:37:51]MH_GetDate [16:37:51]Write to MH i2c: F0 00 00 14 08 0B [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 09 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 09 00 14 08 00 E0 57 1D 66 23 5B 8F 65 40 [16:37:51]GetLastDocTimeStamp 1713198327 [16:37:51]current date 1713199072 [16:37:51]FM_GetShiftState [16:37:51]SAM_PROTO_GetShiftState [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 13 01 00 [16:37:51]Write to MH i2c: E2 08 00 15 08 80 13 01 00 00 00 00 00 9A [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 15 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8E [16:37:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:37:51]wFMCommunicate OK [16:37:51]SAM_PROTO_GetShiftState done [16:37:51]FM_GetShiftState done [16:37:51]opened in 1713140468 [16:37:51]opened+sec_in_day 1713226868 [16:37:51]quantity*price = 190556 [16:37:51]sum+1 = 190558 [16:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1905.00 Внесено: 1905.00 СДАЧА: 0.00 НСП 1% : 16.86 НДС 12% : 202.36 Наличными: 1905.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 201 15.04.2024 16:37 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29607 ФПД: 172825429072913 1/tax-web-control/client/api/v1/ticket?date=20240415T163752&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29607&fm=172825429072913&tin=02508201610067®Number=0000138879044617&sum=190500 [16:37:52]StoreToDocumentArchive [16:37:52]shift 117 fd 29607 [16:37:52]save to /storage/0117/doc_00029607 [16:37:52]save last doc name /storage/0117/doc_00029607 to /storage/kkm_last_doc_name [16:37:52]save OK [16:37:52]Clear old archive folders... [16:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:37:52]tlvbuf is B6F7E270 [16:37:52]SAM_PROTO_ClearQueue [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 09 00 00 [16:37:52]Write to MH i2c: E2 08 00 22 08 80 09 00 00 00 00 00 00 9C [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_ClearQueue done [16:37:52]KKMCreateOFDPacket [16:37:52]OFDProtocolAddRootSTLVToBuf [16:37:52]FM_MakeSignedData [16:37:52]FM_MakeSignedData [16:37:52]SAM_PROTO_SignData [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 01 02 [16:37:52]Write to MH i2c: E2 08 00 23 08 80 0D 01 02 00 00 00 00 A4 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [16:37:53]RAPDU: 90 00 [16:37:53]wFMCommunicate OK [16:37:53]wFMCommunicate request_size=255 [16:37:53]MH_SAM_APDU [16:37:53]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5D E8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 E8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 4F 00 00 00 00 07 04 06 00 24 E8 02 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 E0 57 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 73 00 00 35 04 06 00 [16:37:53]Write to MH i2c: E2 02 01 24 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5D E8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 E8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 4F 00 00 00 00 07 04 06 00 24 E8 02 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 E0 57 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 73 00 00 35 04 06 00 00 00 3F [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [16:37:53]RAPDU: 90 00 [16:37:53]wFMCommunicate OK [16:37:53]wFMCommunicate request_size=11 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 0D 02 02 06 9D 2F 0E 4E DC 11 [16:37:53]Write to MH i2c: E2 0E 00 25 08 80 0D 02 02 06 00 9D 2F 0E 4E DC 11 00 00 C8 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [16:37:53]RAPDU: 90 00 [16:37:53]wFMCommunicate OK [16:37:53]wFMCommunicate request_size=4 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 0D 03 02 [16:37:53]Write to MH i2c: E2 08 00 26 08 80 0D 03 02 00 00 00 00 A9 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 0B 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 0B 00 26 08 00 4D D0 B9 19 EA FD 4B E7 90 00 B2 [16:37:53]RAPDU: 4D D0 B9 19 EA FD 4B E7 90 00 [16:37:53]wFMCommunicate OK [16:37:53]SAM_PROTO_SignData done [16:37:53]FM_MakeSignedData done [16:37:53]CreateOFDProtocolMessage [16:37:53]wFMCommunicate request_size=4 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 11 00 00 [16:37:53]Write to MH i2c: E2 08 00 27 08 80 11 00 00 00 00 00 00 A9 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 17 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 17 00 27 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [16:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:37:53]wFMCommunicate OK [16:37:53]CreateOFDProtocolMessage done [16:37:53]OFDSenderStorePacket 29607 [16:37:53]StoreOFDPacket docnum=29607 [16:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 A0 08 01 EC D1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5D E8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 E8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 4F 00 00 00 00 07 04 06 00 24 E8 02 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 E0 57 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 73 00 00 35 04 06 00 9D 2F 0E 4E DC 11 4D D0 B9 19 EA FD 4B E7 [16:37:53]CheckFolder [16:37:53]dirname=/storage/ofd_packets [16:37:53]CheckFolder done [16:37:53]ProducePacketName [16:37:53]name=ofd_packets/00029607 [16:37:53]NVStorageSaveData ofd_packets/00029607 [16:37:53]File name is /storage/ofd_packets/00029607 [16:37:53]Write 302 bytes [16:37:53]NVStorageSaveData done [16:37:53]OFDSenderStorePacket done [16:37:53]KKMCreateOFDPacket done [16:37:53]NVStorageSaveData kkm_last_timestamp [16:37:53]File name is /storage/kkm_last_timestamp [16:37:53]Write 4 bytes [16:37:53]NVStorageSaveData done [16:37:53]ExternCall_PrintAddStr [16:37:53]wPrintStart [16:37:53]Write to MH i2c: 01 00 00 28 08 30 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 FF 0F 45 [16:37:53]RasterBufferAndPrint [16:37:53]line Счет N : (1)348047 [16:37:53]line ИНН: 02508201610067 [16:37:53]line Контрольно-Кассовый Чек [16:37:53]line ПРОДАЖА [16:37:53]line ТРК (МРК, ГНК) : 31 [16:37:53]line Товар: 2710124130 [16:37:53]line SUPER-92-К-5 [16:37:53]line 28.960 * 65.80 [16:37:53]line = 1905.57 [16:37:53]line НДС 12% НСП 1% [16:37:53]line > о реализуемом товаре [16:37:53]line ОКРУГЛЕНИЕ: -0.57 [16:37:53]line ИТОГО: 1905.00 [16:37:53]line Внесено: 1905.00 [16:37:53]line СДАЧА: 0.00 [16:37:53]line НСП 1% : 16.86 [16:37:53]line НДС 12% : 202.36 [16:37:53]line Наличными: 1905.00 [16:37:53]line Безнал.: 0.00 [16:37:53]line Место: АЗС № 108 "Партнер Нефть" [16:37:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:37:53]line СНО: Общий режим [16:37:53]line Чек 201 15.04.2024 16:37 [16:37:53]line Смена: 117 ФФД: 1.0 [16:37:53]line ЗНМ: 0300000027 [16:37:53]line РНМ: 0000138879044617 [16:37:53]line Версия ККМ: 001 [16:37:53]line ФМ: 0000000000963154 [16:37:53]line ФД: 29607 [16:37:53]line ФПД: 172825429072913 [16:37:53]line 1/tax-web-control/client/api/v1/ticket?date=20240415T163752&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29607&fm=172825429072913&tin=02508201610067®Number=0000138879044617&sum=190500 [16:37:53]OFD Sender: Processing packet 29607 [packets to send 8, broken 7] [16:37:53]ProducePacketName [16:37:53]name=ofd_packets/00029607 [16:37:53]OFD Sender: To server: pG, [16:37:53]CommunicateWithHost lk.salyk.kg:30040 [16:37:53]ConnectInit lk.salyk.kg [16:37:53]written 0, free lines is 4095 [16:37:53]Connected sock=10 [16:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 A0 08 01 EC D1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 71 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5D E8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 E8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 4F 00 00 00 00 07 04 06 00 24 E8 02 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 E0 57 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 73 00 00 35 04 06 00 9D 2F 0E 4E DC 11 4D D0 B9 19 EA FD 4B E7 [16:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 B6 47 00 37 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 39 36 33 31 35 34 10 04 04 00 A7 73 00 00 F4 03 04 00 81 02 1D 66 B6 04 01 00 00 86 27 E5 86 F1 8E F8 27 [16:37:54]CommunicateWithHost err = 0 [16:37:54]CheckOFDResponse [16:37:54]1017 (14) - 77093643461234 [16:37:54]1041 (16) - 0000000000963154 [16:37:54]1040 (4) - 29607 [16:37:54]1012 (4) - 15.04.2024 10:33 [16:37:54]1206 (1) - 0 [16:37:54]OFD Sender: Remove packet 29607 [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00029607 [16:37:54]NVStorageDeleteData [16:37:54]Write to MH i2c: 01 00 00 52 08 5A [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 D4 0C 41 [16:37:54]RasterBufferAndPrint [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]line [16:37:54]written 0, free lines is 3288 [16:37:54]MH_Cut [16:37:54]Write to MH i2c: D1 01 00 59 08 01 33 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 01 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: D1 01 00 59 08 00 32 [16:37:54]Write to MH i2c: 01 00 00 5A 08 62 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]OFD Sender: No OFD packet to send [16:37:55]*** Cut start [16:37:55]*** Partial cut [16:37:55]*** CUTSNS_PIN = 1 [16:37:55]*** CUTSNS_PIN = 0 [16:37:55]*** Brake cut motor [16:37:55]Read from MH i2c: 01 [16:37:55]MH_I2C_Read... [16:37:55]*** Stop cut motor [16:37:55]*** Cut end [16:37:55]Read from MH i2c: 01 07 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 5A 08 00 00 00 00 00 FF 0F 77 [16:37:55]process_action close_receipt done [16:37:55]requested_data is exist [16:37:55]produce_requested_data [16:37:55]requested_item fm.sn is exist - process it [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 11 00 00 [16:37:55]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [16:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:37:55]wFMCommunicate OK [16:37:55]requested_item fd.num is exist - process it [16:37:55]SAM_PROTO_GetFieldsCounters [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 13 00 00 [16:37:55]Write to MH i2c: E2 08 00 5C 08 80 13 00 00 00 00 00 00 E0 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 62 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 62 00 5C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 73 00 00 0E 04 04 00 75 00 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 08 [16:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:55]wFMCommunicate OK [16:37:55]SAM_PROTO_GetFieldsCounters done [16:37:55]requested_item shift.num is exist - process it [16:37:55]requested_item shift.opened is exist - process it [16:37:55]req_shift_opened [16:37:55]FM_GetShiftState [16:37:55]SAM_PROTO_GetShiftState [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 13 01 00 [16:37:55]Write to MH i2c: E2 08 00 5D 08 80 13 01 00 00 00 00 00 E2 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 0E 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 0E 00 5D 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D6 [16:37:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:37:55]wFMCommunicate OK [16:37:55]SAM_PROTO_GetShiftState done [16:37:55]FM_GetShiftState done [16:37:55]req_shift_opened done [16:37:55]requested_item shift.open_date is exist - process it [16:37:55]req_shift_open_date [16:37:55]req_shift_open_date done [16:37:55]produce_requested_data done [16:37:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29607,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:37:55]process_action_free close_receipt [16:37:55]json_value_free [16:37:55]json_value_free done [16:37:55]process_json_proto returns [16:37:55]Send response to host [16:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29607,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:37:55]free response buf [16:37:55]execute_script done [16:37:55]execute_script returns [16:37:55]free content buf [16:37:55]Sock 9.Close socket [16:37:55]Sock 9.Thread stoped [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:58]accept exits with 7 [16:43:58]New connection [16:43:58]New thread 3067108708 created [16:43:58]Thread 3066965348 joined [16:43:58]Waiting for new connection... [16:43:58] Sock 7.Parse request [16:43:58]Sock 7.Check first char [16:43:58]Sock 7.First char is OK [16:43:58]request: POST /json_proto HTTP/1.0 [16:43:58]Method: POST [16:43:58]URL: /json_proto [16:43:58]Method is POST - this is cgi request [16:43:58]url: /json_proto [16:43:58]query_string will be loaded in cgi processing [16:43:58]execute_cgi json_proto POST (null) [16:43:58]execute_cgi path=json_proto method=POST [16:43:58]POST find Content-Length [16:43:58]Host: 172.17.33.3:8080 [16:43:58]Content-Length: 805 [16:43:58]Content-Type: application/json [16:43:58] [16:43:58]POST finish read [16:43:58]Found Content-Length = 805 [16:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 74.090, "sum" : 5401.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5401.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:58]execute_script... [16:43: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)348049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 74.090, "sum" : 5401.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5401.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:58]POST & json_proto [16:43:58]process_json_proto [16:43:58]json parsed OK: [16:43:58]protocol is kg_v1.0 [16:43:58]action value=close_receipt [16:43:58]process_action close_receipt [16:43:58]cmd_close_receipt [16:43:58]MH_GetDate [16:43:58]Write to MH i2c: F0 00 00 5E 08 55 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 09 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 09 00 5E 08 00 4F 59 1D 66 23 5B 8F 65 FB [16:43:58]GetLastDocTimeStamp 1713199072 [16:43:58]current date 1713199439 [16:43:58]FM_GetShiftState [16:43:58]SAM_PROTO_GetShiftState [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 13 01 00 [16:43:58]Write to MH i2c: E2 08 00 5F 08 80 13 01 00 00 00 00 00 E4 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0E 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0E 00 5F 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D8 [16:43:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:43:58]wFMCommunicate OK [16:43:58]SAM_PROTO_GetShiftState done [16:43:58]FM_GetShiftState done [16:43:58]opened in 1713140468 [16:43:58]opened+sec_in_day 1713226868 [16:43:58]quantity*price = 540116 [16:43:58]sum+1 = 540117 [16:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5401.16 НСП 1% : 47.80 НДС 12% : 573.57 Наличными: 0.00 Безнал.: 5401.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 202 15.04.2024 16:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29608 ФПД: 62956708802812 1/tax-web-control/client/api/v1/ticket?date=20240415T164359&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29608&fm=62956708802812&tin=02508201610067®Number=0000138879044617&sum=540116 [16:43:59]StoreToDocumentArchive [16:43:59]shift 117 fd 29608 [16:43:59]save to /storage/0117/doc_00029608 [16:43:59]save last doc name /storage/0117/doc_00029608 to /storage/kkm_last_doc_name [16:43:59]save OK [16:43:59]Clear old archive folders... [16:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:59]tlvbuf is B6DCE1A0 [16:43:59]SAM_PROTO_ClearQueue [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 09 00 00 [16:43:59]Write to MH i2c: E2 08 00 6C 08 80 09 00 00 00 00 00 00 E6 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_ClearQueue done [16:43:59]KKMCreateOFDPacket [16:43:59]OFDProtocolAddRootSTLVToBuf [16:43:59]FM_MakeSignedData [16:43:59]FM_MakeSignedData [16:43:59]SAM_PROTO_SignData [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 01 02 [16:43:59]Write to MH i2c: E2 08 00 6D 08 80 0D 01 02 00 00 00 00 EE [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=255 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 21 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D E0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 3D 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 73 00 00 35 04 06 00 39 42 40 43 [16:43:59]Write to MH i2c: E2 02 01 6E 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 21 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D E0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 3D 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 73 00 00 35 04 06 00 39 42 40 43 00 00 03 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=7 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 02 02 02 B0 FC [16:43:59]Write to MH i2c: E2 0A 00 6F 08 80 0D 02 02 02 00 B0 FC 00 00 A1 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 03 02 [16:43:59]Write to MH i2c: E2 08 00 70 08 80 0D 03 02 00 00 00 00 F3 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0B 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0B 00 70 08 00 B6 53 71 92 E4 DB A1 5B 90 00 BB [16:43:59]RAPDU: B6 53 71 92 E4 DB A1 5B 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_SignData done [16:43:59]FM_MakeSignedData done [16:43:59]CreateOFDProtocolMessage [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 11 00 00 [16:43:59]Write to MH i2c: E2 08 00 71 08 80 11 00 00 00 00 00 00 F3 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 71 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [16:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:43:59]wFMCommunicate OK [16:43:59]CreateOFDProtocolMessage done [16:43:59]OFDSenderStorePacket 29608 [16:43:59]StoreOFDPacket docnum=29608 [16:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 57 04 01 08 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 21 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D E0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 3D 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 73 00 00 35 04 06 00 39 42 40 43 B0 FC B6 53 71 92 E4 DB A1 5B [16:43:59]CheckFolder [16:43:59]dirname=/storage/ofd_packets [16:43:59]CheckFolder done [16:43:59]ProducePacketName [16:43:59]name=ofd_packets/00029608 [16:43:59]NVStorageSaveData ofd_packets/00029608 [16:43:59]File name is /storage/ofd_packets/00029608 [16:43:59]Write 298 bytes [16:43:59]NVStorageSaveData done [16:43:59]OFDSenderStorePacket done [16:43:59]KKMCreateOFDPacket done [16:43:59]NVStorageSaveData kkm_last_timestamp [16:43:59]File name is /storage/kkm_last_timestamp [16:43:59]Write 4 bytes [16:43:59]NVStorageSaveData done [16:43:59]ExternCall_PrintAddStr [16:43:59]wPrintStart [16:43:59]Write to MH i2c: 01 00 00 72 08 7A [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 72 08 00 00 00 00 00 FF 0F 8F [16:43:59]RasterBufferAndPrint [16:43:59]line Счет N : (1)348049 [16:43:59]line ИНН: 02508201610067 [16:43:59]line Контрольно-Кассовый Чек [16:43:59]line ПРОДАЖА [16:43:59]line ТРК (МРК, ГНК) : 11 [16:43:59]line Товар: 2710194210 [16:43:59]line ДТ-К-5 [16:43:59]line 74.090 * 72.90 [16:43:59]line = 5401.16 [16:43:59]line НДС 12% НСП 1% [16:43:59]line > о реализуемом товаре [16:43:59]line ИТОГО: 5401.16 [16:43:59]line НСП 1% : 47.80 [16:43:59]line НДС 12% : 573.57 [16:43:59]line Наличными: 0.00 [16:43:59]line Безнал.: 5401.16 [16:43:59]line Место: АЗС № 108 "Партнер Нефть" [16:43:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:43:59]line СНО: Общий режим [16:43:59]line Чек 202 15.04.2024 16:43 [16:43:59]line Смена: 117 ФФД: 1.0 [16:43:59]line ЗНМ: 0300000027 [16:43:59]line РНМ: 0000138879044617 [16:43:59]line Версия ККМ: 001 [16:44:00]line Платежная система: О! деньги [16:44:00]line ФМ: 0000000000963154 [16:44:00]line ФД: 29608 [16:44:00]line ФПД: 62956708802812 [16:44:00]line 1/tax-web-control/client/api/v1/ticket?date=20240415T164359&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29608&fm=62956708802812&tin=02508201610067®Number=0000138879044617&sum=540116 [16:44:00]OFD Sender: Processing packet 29608 [packets to send 8, broken 7] [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00029608 [16:44:00]OFD Sender: To server: pG, [16:44:00]CommunicateWithHost lk.salyk.kg:30040 [16:44:00]ConnectInit lk.salyk.kg [16:44:00]written 0, free lines is 4095 [16:44:00]Connected sock=10 [16:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 57 04 01 08 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 21 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 3D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 3D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D E0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 3D 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 73 00 00 35 04 06 00 39 42 40 43 B0 FC B6 53 71 92 E4 DB A1 5B [16:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 8C 47 00 29 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 73 00 00 F4 03 04 00 EF 03 1D 66 B6 04 01 00 00 05 6C 11 0D 28 FC 25 4C [16:44:00]CommunicateWithHost err = 0 [16:44:00]CheckOFDResponse [16:44:00]1017 (14) - 77093643461234 [16:44:00]1041 (16) - 0000000000963154 [16:44:00]1040 (4) - 29608 [16:44:00]1012 (4) - 15.04.2024 10:39 [16:44:00]1206 (1) - 0 [16:44:00]OFD Sender: Remove packet 29608 [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00029608 [16:44:00]NVStorageDeleteData [16:44:00]Write to MH i2c: 01 00 00 9B 08 A3 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 E0 0C 96 [16:44:00]RasterBufferAndPrint [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]written 0, free lines is 3302 [16:44:00]MH_Cut [16:44:00]Write to MH i2c: D1 01 00 A2 08 01 7C [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 A2 08 00 7B [16:44:00]Write to MH i2c: 01 00 00 A3 08 AB [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]OFD Sender: No OFD packet to send [16:44:01]*** Cut start [16:44:01]*** Partial cut [16:44:01]*** CUTSNS_PIN = 1 [16:44:01]*** CUTSNS_PIN = 0 [16:44:01]*** Brake cut motor [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 A3 08 00 00 00 00 00 FF 0F C0 [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 A4 08 80 11 00 00 00 00 00 00 26 [16:44:01]Write i2c OK [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 [16:44:01]MH_I2C_Read... [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 A4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [16:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 A5 08 80 13 00 00 00 00 00 00 29 [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 A5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 73 00 00 0E 04 04 00 75 00 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 55 [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 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 73 00 00 0E 04 04 00 75 00 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 [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 A6 08 80 13 01 00 00 00 00 00 2B [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 A6 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1F [16:44:02]RAPDU: 09 00 01 F4 72 1C 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":"0000000000963154","fd.num":29608,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [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":"0000000000963154","fd.num":29608,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [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 7.Close socket [16:44:02]Sock 7.Thread stoped [16:44:02]accept exits with 9 [16:44:02]New connection [16:44:02]New thread 3066965348 created [16:44:02]Thread 3067108708 joined [16:44:02]Waiting for new connection... [16:44:02] Sock 9.Parse request [16:44:02]Sock 9.Check first char [16:44:02]Sock 9.First char is OK [16:44:02]request: POST /json_proto HTTP/1.0 [16:44:02]Method: POST [16:44:02]URL: /json_proto [16:44:02]Method is POST - this is cgi request [16:44:02]url: /json_proto [16:44:02]query_string will be loaded in cgi processing [16:44:02]execute_cgi json_proto POST (null) [16:44:02]execute_cgi path=json_proto method=POST [16:44:02]POST find Content-Length [16:44:02]Host: 172.17.33.3:8080 [16:44:02]Content-Length: 805 [16:44:02]Content-Type: application/json [16:44:02] [16:44:02]POST finish read [16:44:02]Found Content-Length = 805 [16:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:02]execute_script... [16:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:02]POST & json_proto [16:44:02]process_json_proto [16:44:02]json parsed OK: [16:44:02]protocol is kg_v1.0 [16:44:02]action value=close_receipt [16:44:02]process_action close_receipt [16:44:02]cmd_close_receipt [16:44:02]MH_GetDate [16:44:02]Write to MH i2c: F0 00 00 A7 08 9E [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 09 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: F0 09 00 A7 08 00 53 59 1D 66 23 5B 8F 65 48 [16:44:02]GetLastDocTimeStamp 1713199439 [16:44:02]current date 1713199443 [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 A8 08 80 13 01 00 00 00 00 00 2D [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 A8 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 21 [16:44:02]RAPDU: 09 00 01 F4 72 1C 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]opened in 1713140468 [16:44:02]opened+sec_in_day 1713226868 [16:44:02]quantity*price = 250047 [16:44:02]sum+1 = 250048 [16:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.47 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.47 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 203 15.04.2024 16:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29609 ФПД: 244848203372129 1/tax-web-control/client/api/v1/ticket?date=20240415T164403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29609&fm=244848203372129&tin=02508201610067®Number=0000138879044617&sum=250047 [16:44:03]StoreToDocumentArchive [16:44:03]shift 117 fd 29609 [16:44:03]save to /storage/0117/doc_00029609 [16:44:03]save last doc name /storage/0117/doc_00029609 to /storage/kkm_last_doc_name [16:44:03]save OK [16:44:03]Clear old archive folders... [16:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:03]tlvbuf is 01A70450 [16:44:03]SAM_PROTO_ClearQueue [16:44:03]wFMCommunicate request_size=4 [16:44:03]MH_SAM_APDU [16:44:03]CAPDU: 80 09 00 00 [16:44:03]Write to MH i2c: E2 08 00 B5 08 80 09 00 00 00 00 00 00 2F [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 B5 08 00 90 00 31 [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]SAM_PROTO_ClearQueue done [16:44:04]KKMCreateOFDPacket [16:44:04]OFDProtocolAddRootSTLVToBuf [16:44:04]FM_MakeSignedData [16:44:04]FM_MakeSignedData [16:44:04]SAM_PROTO_SignData [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 01 02 [16:44:04]Write to MH i2c: E2 08 00 B6 08 80 0D 01 02 00 00 00 00 37 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 B6 08 00 90 00 32 [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=255 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 53 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 73 00 00 35 04 06 00 DE B0 2A 2F [16:44:04]Write to MH i2c: E2 02 01 B7 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 53 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 73 00 00 35 04 06 00 DE B0 2A 2F 00 00 BE [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=7 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 02 02 02 96 61 [16:44:04]Write to MH i2c: E2 0A 00 B8 08 80 0D 02 02 02 00 96 61 00 00 35 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [16:44:04]RAPDU: 90 00 [16:44:04]wFMCommunicate OK [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 0D 03 02 [16:44:04]Write to MH i2c: E2 08 00 B9 08 80 0D 03 02 00 00 00 00 3C [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 0B 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 0B 00 B9 08 00 94 E8 4F 1C 5A 44 C5 0B 90 00 92 [16:44:04]RAPDU: 94 E8 4F 1C 5A 44 C5 0B 90 00 [16:44:04]wFMCommunicate OK [16:44:04]SAM_PROTO_SignData done [16:44:04]FM_MakeSignedData done [16:44:04]CreateOFDProtocolMessage [16:44:04]wFMCommunicate request_size=4 [16:44:04]MH_SAM_APDU [16:44:04]CAPDU: 80 11 00 00 [16:44:04]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:04]Read from MH i2c: E2 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 17 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: E2 17 00 BA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [16:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:44:04]wFMCommunicate OK [16:44:04]CreateOFDProtocolMessage done [16:44:04]OFDSenderStorePacket 29609 [16:44:04]StoreOFDPacket docnum=29609 [16:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E7 E4 04 01 D2 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 53 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 73 00 00 35 04 06 00 DE B0 2A 2F 96 61 94 E8 4F 1C 5A 44 C5 0B [16:44:04]CheckFolder [16:44:04]dirname=/storage/ofd_packets [16:44:04]CheckFolder done [16:44:04]ProducePacketName [16:44:04]name=ofd_packets/00029609 [16:44:04]NVStorageSaveData ofd_packets/00029609 [16:44:04]File name is /storage/ofd_packets/00029609 [16:44:04]Write 298 bytes [16:44:04]NVStorageSaveData done [16:44:04]OFDSenderStorePacket done [16:44:04]KKMCreateOFDPacket done [16:44:04]NVStorageSaveData kkm_last_timestamp [16:44:04]File name is /storage/kkm_last_timestamp [16:44:04]Write 4 bytes [16:44:04]NVStorageSaveData done [16:44:04]ExternCall_PrintAddStr [16:44:04]wPrintStart [16:44:04]Write to MH i2c: 01 00 00 BB 08 C3 [16:44:04]Write i2c OK [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 [16:44:04]MH_I2C_Read... [16:44:04]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [16:44:04]RasterBufferAndPrint [16:44:04]line Счет N : (1)348048 [16:44:04]line ИНН: 02508201610067 [16:44:04]line Контрольно-Кассовый Чек [16:44:04]line ПРОДАЖА [16:44:04]line ТРК (МРК, ГНК) : 51 [16:44:04]line Товар: 2710194210 [16:44:04]line ДТ-К-5 [16:44:04]line 34.300 * 72.90 [16:44:04]line = 2500.47 [16:44:04]line НДС 12% НСП 1% [16:44:04]line > о реализуемом товаре [16:44:04]line ИТОГО: 2500.47 [16:44:04]line НСП 1% : 22.13 [16:44:04]line НДС 12% : 265.54 [16:44:04]line Наличными: 0.00 [16:44:04]line Безнал.: 2500.47 [16:44:04]line Место: АЗС № 108 "Партнер Нефть" [16:44:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:44:04]line СНО: Общий режим [16:44:04]line Чек 203 15.04.2024 16:44 [16:44:04]line Смена: 117 ФФД: 1.0 [16:44:04]line ЗНМ: 0300000027 [16:44:04]line РНМ: 0000138879044617 [16:44:04]line Версия ККМ: 001 [16:44:04]line Платежная система: О! деньги [16:44:04]line ФМ: 0000000000963154 [16:44:04]line ФД: 29609 [16:44:04]line ФПД: 244848203372129 [16:44:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T164403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29609&fm=244848203372129&tin=02508201610067®Number=0000138879044617&sum=250047 [16:44:04]OFD Sender: Processing packet 29609 [packets to send 8, broken 7] [16:44:04]ProducePacketName [16:44:04]name=ofd_packets/00029609 [16:44:04]OFD Sender: To server: pG, [16:44:04]CommunicateWithHost lk.salyk.kg:30040 [16:44:04]ConnectInit lk.salyk.kg [16:44:04]written 0, free lines is 4095 [16:44:04]Connected sock=10 [16:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E7 E4 04 01 D2 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 53 59 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 73 00 00 35 04 06 00 DE B0 2A 2F 96 61 94 E8 4F 1C 5A 44 C5 0B [16:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 28 9C 47 00 97 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 73 00 00 F4 03 04 00 F4 03 1D 66 B6 04 01 00 00 E2 BB 6C F7 70 02 4A 24 [16:44:05]CommunicateWithHost err = 0 [16:44:05]CheckOFDResponse [16:44:05]1017 (14) - 77093643461234 [16:44:05]1041 (16) - 0000000000963154 [16:44:05]1040 (4) - 29609 [16:44:05]1012 (4) - 15.04.2024 10:39 [16:44:05]1206 (1) - 0 [16:44:05]OFD Sender: Remove packet 29609 [16:44:05]ProducePacketName [16:44:05]name=ofd_packets/00029609 [16:44:05]NVStorageDeleteData [16:44:05]Write to MH i2c: 01 00 00 E4 08 EC [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 07 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 EA 0C E9 [16:44:05]RasterBufferAndPrint [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]line [16:44:05]written 0, free lines is 3315 [16:44:05]MH_Cut [16:44:05]Write to MH i2c: D1 01 00 EB 08 01 C5 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 01 00 [16:44:05]MH_I2C_Read... [16:44:05]Read from MH i2c: D1 01 00 EB 08 00 C4 [16:44:05]Write to MH i2c: 01 00 00 EC 08 F4 [16:44:05]Write i2c OK [16:44:05]MH_I2C_Read... [16:44:05]OFD Sender: No OFD packet to send [16:44:06]*** Cut start [16:44:06]*** Partial cut [16:44:06]*** CUTSNS_PIN = 1 [16:44:06]*** CUTSNS_PIN = 0 [16:44:06]*** Brake cut motor [16:44:06]Read from MH i2c: 01 [16:44:06]MH_I2C_Read... [16:44:06]*** Stop cut motor [16:44:06]*** Cut end [16:44:06]Read from MH i2c: 01 07 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 FF 0F 09 [16:44:06]process_action close_receipt done [16:44:06]requested_data is exist [16:44:06]produce_requested_data [16:44:06]requested_item fm.sn is exist - process it [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 11 00 00 [16:44:06]Write to MH i2c: E2 08 00 ED 08 80 11 00 00 00 00 00 00 6F [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:06]Read from MH i2c: E2 17 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 17 00 ED 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [16:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:44:06]wFMCommunicate OK [16:44:06]requested_item fd.num is exist - process it [16:44:06]SAM_PROTO_GetFieldsCounters [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 00 00 [16:44:06]Write to MH i2c: E2 08 00 EE 08 80 13 00 00 00 00 00 00 72 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:06]Read from MH i2c: E2 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 [16:44:06]MH_I2C_Read... [16:44:06]Read from MH i2c: E2 62 00 EE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 73 00 00 0E 04 04 00 75 00 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 A2 [16:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 73 00 00 0E 04 04 00 75 00 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 [16:44:06]wFMCommunicate OK [16:44:06]SAM_PROTO_GetFieldsCounters done [16:44:06]requested_item shift.num is exist - process it [16:44:06]requested_item shift.opened is exist - process it [16:44:06]req_shift_opened [16:44:06]FM_GetShiftState [16:44:06]SAM_PROTO_GetShiftState [16:44:06]wFMCommunicate request_size=4 [16:44:06]MH_SAM_APDU [16:44:06]CAPDU: 80 13 01 00 [16:44:06]Write to MH i2c: E2 08 00 EF 08 80 13 01 00 00 00 00 00 74 [16:44:06]Write i2c OK [16:44:06]MH_I2C_Read... [16:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:07]Read from MH i2c: E2 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 0E 00 [16:44:07]MH_I2C_Read... [16:44:07]Read from MH i2c: E2 0E 00 EF 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 68 [16:44:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:44:07]wFMCommunicate OK [16:44:07]SAM_PROTO_GetShiftState done [16:44:07]FM_GetShiftState done [16:44:07]req_shift_opened done [16:44:07]requested_item shift.open_date is exist - process it [16:44:07]req_shift_open_date [16:44:07]req_shift_open_date done [16:44:07]produce_requested_data done [16:44:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29609,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:44:07]process_action_free close_receipt [16:44:07]json_value_free [16:44:07]json_value_free done [16:44:07]process_json_proto returns [16:44:07]Send response to host [16:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29609,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:44:07]free response buf [16:44:07]execute_script done [16:44:07]execute_script returns [16:44:07]free content buf [16:44:07]Sock 9.Close socket [16:44:07]Sock 9.Thread stoped [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [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:07]accept exits with 7 [16:49:07]New connection [16:49:07]New thread 3067108708 created [16:49:07]Thread 3066965348 joined [16:49:07]Waiting for new connection... [16:49:07] Sock 7.Parse request [16:49:07]Sock 7.Check first char [16:49:07]Sock 7.First char is OK [16:49:07]request: POST /json_proto HTTP/1.0 [16:49:07]Method: POST [16:49:07]URL: /json_proto [16:49:07]Method is POST - this is cgi request [16:49:07]url: /json_proto [16:49:07]query_string will be loaded in cgi processing [16:49:07]execute_cgi json_proto POST (null) [16:49:07]execute_cgi path=json_proto method=POST [16:49:07]POST find Content-Length [16:49:07]Host: 172.17.33.3:8080 [16:49:07]Content-Length: 685 [16:49:07]Content-Type: application/json [16:49:07] [16:49:07]POST finish read [16:49:07]Found Content-Length = 685 [16:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "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:49:07]execute_script... [16:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "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:49:07]POST & json_proto [16:49:07]process_json_proto [16:49:07]json parsed OK: [16:49:07]protocol is kg_v1.0 [16:49:07]action value=close_receipt [16:49:07]process_action close_receipt [16:49:07]cmd_close_receipt [16:49:07]MH_GetDate [16:49:07]Write to MH i2c: F0 00 00 F0 08 E7 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 [16:49:07]MH_I2C_Read... [16:49:07]Read from MH i2c: F0 09 00 F0 08 00 85 5A 1D 66 23 5B 8F 65 C4 [16:49:07]GetLastDocTimeStamp 1713199443 [16:49:07]current date 1713199749 [16:49:07]FM_GetShiftState [16:49:07]SAM_PROTO_GetShiftState [16:49:07]wFMCommunicate request_size=4 [16:49:07]MH_SAM_APDU [16:49:07]CAPDU: 80 13 01 00 [16:49:07]Write to MH i2c: E2 08 00 F1 08 80 13 01 00 00 00 00 00 76 [16:49:07]Write i2c OK [16:49:07]MH_I2C_Read... [16:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:08]Read from MH i2c: E2 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: E2 0E 00 F1 08 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6A [16:49:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:49:08]wFMCommunicate OK [16:49:08]SAM_PROTO_GetShiftState done [16:49:08]FM_GetShiftState done [16:49:08]opened in 1713140468 [16:49:08]opened+sec_in_day 1713226868 [16:49:08]quantity*price = 100033 [16:49:08]sum+1 = 100034 [16:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 204 15.04.2024 16:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29610 ФПД: 116955299393425 1/tax-web-control/client/api/v1/ticket?date=20240415T164909&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29610&fm=116955299393425&tin=02508201610067®Number=0000138879044617&sum=100000 [16:49:09]StoreToDocumentArchive [16:49:09]shift 117 fd 29610 [16:49:09]save to /storage/0117/doc_00029610 [16:49:09]save last doc name /storage/0117/doc_00029610 to /storage/kkm_last_doc_name [16:49:09]save OK [16:49:09]Clear old archive folders... [16:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:49:09]tlvbuf is 01A23230 [16:49:09]SAM_PROTO_ClearQueue [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 09 00 00 [16:49:09]Write to MH i2c: E2 08 00 FE 08 80 09 00 00 00 00 00 00 78 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 FE 08 00 90 00 7A [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_ClearQueue done [16:49:09]KKMCreateOFDPacket [16:49:09]OFDProtocolAddRootSTLVToBuf [16:49:09]FM_MakeSignedData [16:49:09]FM_MakeSignedData [16:49:09]SAM_PROTO_SignData [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 01 02 [16:49:09]Write to MH i2c: E2 08 00 FF 08 80 0D 01 02 00 00 00 00 80 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 FF 08 00 90 00 7B [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=255 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 85 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 73 00 00 35 04 06 00 6A 5E [16:49:09]Write to MH i2c: E2 02 01 00 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 85 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 73 00 00 35 04 06 00 6A 5E 00 00 21 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 00 09 00 90 00 7D [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=9 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 02 02 04 C7 13 2F 91 [16:49:09]Write to MH i2c: E2 0C 00 01 09 80 0D 02 02 04 00 C7 13 2F 91 00 00 26 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [16:49:09]RAPDU: 90 00 [16:49:09]wFMCommunicate OK [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 0D 03 02 [16:49:09]Write to MH i2c: E2 08 00 02 09 80 0D 03 02 00 00 00 00 86 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0B 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 0B 00 02 09 00 3C 83 6D 1D 0F F4 12 ED 90 00 D2 [16:49:09]RAPDU: 3C 83 6D 1D 0F F4 12 ED 90 00 [16:49:09]wFMCommunicate OK [16:49:09]SAM_PROTO_SignData done [16:49:09]FM_MakeSignedData done [16:49:09]CreateOFDProtocolMessage [16:49:09]wFMCommunicate request_size=4 [16:49:09]MH_SAM_APDU [16:49:09]CAPDU: 80 11 00 00 [16:49:09]Write to MH i2c: E2 08 00 03 09 80 11 00 00 00 00 00 00 86 [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:09]Read from MH i2c: E2 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 17 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: E2 17 00 03 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [16:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:49:09]wFMCommunicate OK [16:49:09]CreateOFDProtocolMessage done [16:49:09]OFDSenderStorePacket 29610 [16:49:09]StoreOFDPacket docnum=29610 [16:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 14 B3 06 01 23 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 85 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 73 00 00 35 04 06 00 6A 5E C7 13 2F 91 3C 83 6D 1D 0F F4 12 ED [16:49:09]CheckFolder [16:49:09]dirname=/storage/ofd_packets [16:49:09]CheckFolder done [16:49:09]ProducePacketName [16:49:09]name=ofd_packets/00029610 [16:49:09]NVStorageSaveData ofd_packets/00029610 [16:49:09]File name is /storage/ofd_packets/00029610 [16:49:09]Write 300 bytes [16:49:09]NVStorageSaveData done [16:49:09]OFDSenderStorePacket done [16:49:09]KKMCreateOFDPacket done [16:49:09]NVStorageSaveData kkm_last_timestamp [16:49:09]File name is /storage/kkm_last_timestamp [16:49:09]Write 4 bytes [16:49:09]NVStorageSaveData done [16:49:09]ExternCall_PrintAddStr [16:49:09]wPrintStart [16:49:09]Write to MH i2c: 01 00 00 04 09 0D [16:49:09]Write i2c OK [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 [16:49:09]MH_I2C_Read... [16:49:09]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 FF 0F 22 [16:49:09]RasterBufferAndPrint [16:49:09]line Счет N : (1)348050 [16:49:09]line ИНН: 02508201610067 [16:49:09]line Контрольно-Кассовый Чек [16:49:09]line ПРОДАЖА [16:49:09]line ТРК (МРК, ГНК) : 71 [16:49:09]line Товар: 2711129700 [16:49:09]line ГАЗ-К-5 [16:49:09]line 29.950 * 33.40 [16:49:09]line = 1000.33 [16:49:09]line НДС 12% НСП 1% [16:49:09]line > о реализуемом товаре [16:49:09]line ОКРУГЛЕНИЕ: -0.33 [16:49:09]line ИТОГО: 1000.00 [16:49:09]line Внесено: 1000.00 [16:49:09]line СДАЧА: 0.00 [16:49:09]line НСП 1% : 8.85 [16:49:09]line НДС 12% : 106.23 [16:49:09]line Наличными: 1000.00 [16:49:09]line Безнал.: 0.00 [16:49:09]line Место: АЗС № 108 "Партнер Нефть" [16:49:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:49:09]line СНО: Общий режим [16:49:09]line Чек 204 15.04.2024 16:49 [16:49:09]line Смена: 117 ФФД: 1.0 [16:49:09]line ЗНМ: 0300000027 [16:49:09]line РНМ: 0000138879044617 [16:49:09]line Версия ККМ: 001 [16:49:09]line ФМ: 0000000000963154 [16:49:09]line ФД: 29610 [16:49:09]line ФПД: 116955299393425 [16:49:10]line 1/tax-web-control/client/api/v1/ticket?date=20240415T164909&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29610&fm=116955299393425&tin=02508201610067®Number=0000138879044617&sum=100000 [16:49:10]OFD Sender: Processing packet 29610 [packets to send 8, broken 7] [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00029610 [16:49:10]OFD Sender: To server: pG, [16:49:10]CommunicateWithHost lk.salyk.kg:30040 [16:49:10]ConnectInit lk.salyk.kg [16:49:10]written 0, free lines is 4095 [16:49:10]Connected sock=10 [16:49:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 14 B3 06 01 23 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 85 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 73 00 00 35 04 06 00 6A 5E C7 13 2F 91 3C 83 6D 1D 0F F4 12 ED [16:49:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BF 49 47 00 AC 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 39 36 33 31 35 34 10 04 04 00 AA 73 00 00 F4 03 04 00 25 05 1D 66 B6 04 01 00 00 8D F9 02 8B 27 04 B2 E6 [16:49:10]CommunicateWithHost err = 0 [16:49:10]CheckOFDResponse [16:49:10]1017 (14) - 77093643461234 [16:49:10]1041 (16) - 0000000000963154 [16:49:10]1040 (4) - 29610 [16:49:10]1012 (4) - 15.04.2024 10:44 [16:49:10]1206 (1) - 0 [16:49:10]OFD Sender: Remove packet 29610 [16:49:10]ProducePacketName [16:49:10]name=ofd_packets/00029610 [16:49:10]NVStorageDeleteData [16:49:10]Write to MH i2c: 01 00 00 2E 09 37 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 CF 0C 19 [16:49:10]RasterBufferAndPrint [16:49:10]line [16:49:10]line [16:49:10]line [16:49:10]line [16:49:10]line [16:49:10]written 0, free lines is 3285 [16:49:10]MH_Cut [16:49:10]Write to MH i2c: D1 01 00 35 09 01 10 [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: D1 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: D1 01 00 [16:49:10]MH_I2C_Read... [16:49:10]Read from MH i2c: D1 01 00 35 09 00 0F [16:49:10]Write to MH i2c: 01 00 00 36 09 3F [16:49:10]Write i2c OK [16:49:10]MH_I2C_Read... [16:49:10]OFD Sender: No OFD packet to send [16:49:11]*** Cut start [16:49:11]*** Partial cut [16:49:11]*** CUTSNS_PIN = 1 [16:49:11]*** CUTSNS_PIN = 0 [16:49:11]*** Brake cut motor [16:49:11]Read from MH i2c: 01 [16:49:11]MH_I2C_Read... [16:49:11]*** Stop cut motor [16:49:11]*** Cut end [16:49:11]Read from MH i2c: 01 07 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [16:49:11]process_action close_receipt done [16:49:11]requested_data is exist [16:49:11]produce_requested_data [16:49:11]requested_item fm.sn is exist - process it [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 11 00 00 [16:49:11]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:11]Read from MH i2c: E2 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 [16:49:11]MH_I2C_Read... [16:49:11]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [16:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:49:11]wFMCommunicate OK [16:49:11]requested_item fd.num is exist - process it [16:49:11]SAM_PROTO_GetFieldsCounters [16:49:11]wFMCommunicate request_size=4 [16:49:11]MH_SAM_APDU [16:49:11]CAPDU: 80 13 00 00 [16:49:11]Write to MH i2c: E2 08 00 38 09 80 13 00 00 00 00 00 00 BD [16:49:11]Write i2c OK [16:49:11]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 62 00 38 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 73 00 00 0E 04 04 00 75 00 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 F1 [16:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 73 00 00 0E 04 04 00 75 00 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 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetFieldsCounters done [16:49:12]requested_item shift.num is exist - process it [16:49:12]requested_item shift.opened is exist - process it [16:49:12]req_shift_opened [16:49:12]FM_GetShiftState [16:49:12]SAM_PROTO_GetShiftState [16:49:12]wFMCommunicate request_size=4 [16:49:12]MH_SAM_APDU [16:49:12]CAPDU: 80 13 01 00 [16:49:12]Write to MH i2c: E2 08 00 39 09 80 13 01 00 00 00 00 00 BF [16:49:12]Write i2c OK [16:49:12]MH_I2C_Read... [16:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:12]Read from MH i2c: E2 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 [16:49:12]MH_I2C_Read... [16:49:12]Read from MH i2c: E2 0E 00 39 09 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B3 [16:49:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:49:12]wFMCommunicate OK [16:49:12]SAM_PROTO_GetShiftState done [16:49:12]FM_GetShiftState done [16:49:12]req_shift_opened done [16:49:12]requested_item shift.open_date is exist - process it [16:49:12]req_shift_open_date [16:49:12]req_shift_open_date done [16:49:12]produce_requested_data done [16:49:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29610,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:49:12]process_action_free close_receipt [16:49:12]json_value_free [16:49:12]json_value_free done [16:49:12]process_json_proto returns [16:49:12]Send response to host [16:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29610,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:49:12]free response buf [16:49:12]execute_script done [16:49:12]execute_script returns [16:49:12]free content buf [16:49:12]Sock 7.Close socket [16:49:12]Sock 7.Thread stoped [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:41]accept exits with 9 [16:50:41]New connection [16:50:41]New thread 3066965348 created [16:50:41]Thread 3067108708 joined [16:50:41]Waiting for new connection... [16:50:41] Sock 9.Parse request [16:50:41]Sock 9.Check first char [16:50:41]Sock 9.First char is OK [16:50:41]request: POST /json_proto HTTP/1.0 [16:50:41]Method: POST [16:50:41]URL: /json_proto [16:50:41]Method is POST - this is cgi request [16:50:41]url: /json_proto [16:50:41]query_string will be loaded in cgi processing [16:50:41]execute_cgi json_proto POST (null) [16:50:41]execute_cgi path=json_proto method=POST [16:50:41]POST find Content-Length [16:50:41]Host: 172.17.33.3:8080 [16:50:41]Content-Length: 844 [16:50:41]Content-Type: application/json [16:50:41] [16:50:41]POST finish read [16:50:41]Found Content-Length = 844 [16:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 11.380, "sum" : 380.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 380.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:41]execute_script... [16:50: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)348051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 11.380, "sum" : 380.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 380.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:41]POST & json_proto [16:50:41]process_json_proto [16:50:41]json parsed OK: [16:50:41]protocol is kg_v1.0 [16:50:41]action value=close_receipt [16:50:41]process_action close_receipt [16:50:41]cmd_close_receipt [16:50:41]MH_GetDate [16:50:41]Write to MH i2c: F0 00 00 3A 09 32 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: F0 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: F0 09 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: F0 09 00 3A 09 00 E2 5A 1D 66 23 5B 8F 65 6C [16:50:41]GetLastDocTimeStamp 1713199749 [16:50:41]current date 1713199842 [16:50:41]FM_GetShiftState [16:50:41]SAM_PROTO_GetShiftState [16:50:41]wFMCommunicate request_size=4 [16:50:41]MH_SAM_APDU [16:50:41]CAPDU: 80 13 01 00 [16:50:41]Write to MH i2c: E2 08 00 3B 09 80 13 01 00 00 00 00 00 C1 [16:50:41]Write i2c OK [16:50:41]MH_I2C_Read... [16:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:41]Read from MH i2c: E2 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 0E 00 [16:50:41]MH_I2C_Read... [16:50:41]Read from MH i2c: E2 0E 00 3B 09 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B5 [16:50:41]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:50:41]wFMCommunicate OK [16:50:41]SAM_PROTO_GetShiftState done [16:50:41]FM_GetShiftState done [16:50:41]opened in 1713140468 [16:50:41]opened+sec_in_day 1713226868 [16:50:41]quantity*price = 38009 [16:50:41]sum+1 = 38010 [16:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 380.09 НСП 1% : 3.36 НДС 12% : 40.36 Наличными: 0.00 Безнал.: 380.09 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 205 15.04.2024 16:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29611 ФПД: 180313665709466 1/tax-web-control/client/api/v1/ticket?date=20240415T165042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29611&fm=180313665709466&tin=02508201610067®Number=0000138879044617&sum=38009 [16:50:42]StoreToDocumentArchive [16:50:42]shift 117 fd 29611 [16:50:42]save to /storage/0117/doc_00029611 [16:50:42]save last doc name /storage/0117/doc_00029611 to /storage/kkm_last_doc_name [16:50:42]save OK [16:50:42]Clear old archive folders... [16:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:50:42]tlvbuf is 01A15BF0 [16:50:42]SAM_PROTO_ClearQueue [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 09 00 00 [16:50:42]Write to MH i2c: E2 08 00 48 09 80 09 00 00 00 00 00 00 C3 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [16:50:42]RAPDU: 90 00 [16:50:42]wFMCommunicate OK [16:50:42]SAM_PROTO_ClearQueue done [16:50:42]KKMCreateOFDPacket [16:50:42]OFDProtocolAddRootSTLVToBuf [16:50:42]FM_MakeSignedData [16:50:42]FM_MakeSignedData [16:50:42]SAM_PROTO_SignData [16:50:42]wFMCommunicate request_size=4 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 0D 01 02 [16:50:42]Write to MH i2c: E2 08 00 49 09 80 0D 01 02 00 00 00 00 CB [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:42]Read from MH i2c: E2 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 [16:50:42]MH_I2C_Read... [16:50:42]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [16:50:42]RAPDU: 90 00 [16:50:42]wFMCommunicate OK [16:50:42]wFMCommunicate request_size=255 [16:50:42]MH_SAM_APDU [16:50:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 E2 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 73 00 00 35 04 06 00 A3 FE [16:50:42]Write to MH i2c: E2 02 01 4A 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 E2 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 73 00 00 35 04 06 00 A3 FE 00 00 66 [16:50:42]Write i2c OK [16:50:42]MH_I2C_Read... [16:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:43]Read from MH i2c: E2 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [16:50:43]RAPDU: 90 00 [16:50:43]wFMCommunicate OK [16:50:43]wFMCommunicate request_size=9 [16:50:43]MH_SAM_APDU [16:50:43]CAPDU: 80 0D 02 02 04 8B FE 25 9A [16:50:43]Write to MH i2c: E2 0C 00 4B 09 80 0D 02 02 04 00 8B FE 25 9A 00 00 1E [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:43]Read from MH i2c: E2 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [16:50:43]RAPDU: 90 00 [16:50:43]wFMCommunicate OK [16:50:43]wFMCommunicate request_size=4 [16:50:43]MH_SAM_APDU [16:50:43]CAPDU: 80 0D 03 02 [16:50:43]Write to MH i2c: E2 08 00 4C 09 80 0D 03 02 00 00 00 00 D0 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:43]Read from MH i2c: E2 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 0B 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 0B 00 4C 09 00 BA 05 6D B8 D7 47 66 92 90 00 CB [16:50:43]RAPDU: BA 05 6D B8 D7 47 66 92 90 00 [16:50:43]wFMCommunicate OK [16:50:43]SAM_PROTO_SignData done [16:50:43]FM_MakeSignedData done [16:50:43]CreateOFDProtocolMessage [16:50:43]wFMCommunicate request_size=4 [16:50:43]MH_SAM_APDU [16:50:43]CAPDU: 80 11 00 00 [16:50:43]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:43]Read from MH i2c: E2 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 17 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [16:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:50:43]wFMCommunicate OK [16:50:43]CreateOFDProtocolMessage done [16:50:43]OFDSenderStorePacket 29611 [16:50:43]StoreOFDPacket docnum=29611 [16:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DC CA 06 01 1A B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 E2 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 73 00 00 35 04 06 00 A3 FE 8B FE 25 9A BA 05 6D B8 D7 47 66 92 [16:50:43]CheckFolder [16:50:43]dirname=/storage/ofd_packets [16:50:43]CheckFolder done [16:50:43]ProducePacketName [16:50:43]name=ofd_packets/00029611 [16:50:43]NVStorageSaveData ofd_packets/00029611 [16:50:43]File name is /storage/ofd_packets/00029611 [16:50:43]Write 300 bytes [16:50:43]NVStorageSaveData done [16:50:43]OFDSenderStorePacket done [16:50:43]KKMCreateOFDPacket done [16:50:43]NVStorageSaveData kkm_last_timestamp [16:50:43]File name is /storage/kkm_last_timestamp [16:50:43]Write 4 bytes [16:50:43]NVStorageSaveData done [16:50:43]ExternCall_PrintAddStr [16:50:43]wPrintStart [16:50:43]Write to MH i2c: 01 00 00 4E 09 57 [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 4E 09 00 00 00 00 00 FF 0F 6C [16:50:43]RasterBufferAndPrint [16:50:43]line Счет N : (1)348051 [16:50:43]line ИНН: 02508201610067 [16:50:43]line Контрольно-Кассовый Чек [16:50:43]line ПРОДАЖА [16:50:43]line ТРК (МРК, ГНК) : 71 [16:50:43]line Товар: 2711129700 [16:50:43]line ГАЗ-К-5 [16:50:43]line 11.380 * 33.40 [16:50:43]line = 380.09 [16:50:43]line НДС 12% НСП 1% [16:50:43]line > о реализуемом товаре [16:50:43]line ИТОГО: 380.09 [16:50:43]line НСП 1% : 3.36 [16:50:43]line НДС 12% : 40.36 [16:50:43]line Наличными: 0.00 [16:50:43]line Безнал.: 380.09 [16:50:43]line Место: АЗС № 108 "Партнер Нефть" [16:50:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:50:43]line СНО: Общий режим [16:50:43]line Чек 205 15.04.2024 16:50 [16:50:43]line Смена: 117 ФФД: 1.0 [16:50:43]line ЗНМ: 0300000027 [16:50:43]line РНМ: 0000138879044617 [16:50:43]line Версия ККМ: 001 [16:50:43]line Платежная система: АКБ Кыргызстан [16:50:43]line ФМ: 0000000000963154 [16:50:43]line ФД: 29611 [16:50:43]line ФПД: 180313665709466 [16:50:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T165042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29611&fm=180313665709466&tin=02508201610067®Number=0000138879044617&sum=38009 [16:50:43]OFD Sender: Processing packet 29611 [packets to send 8, broken 7] [16:50:43]ProducePacketName [16:50:43]name=ofd_packets/00029611 [16:50:43]OFD Sender: To server: pG, [16:50:43]CommunicateWithHost lk.salyk.kg:30040 [16:50:43]ConnectInit lk.salyk.kg [16:50:43]written 0, free lines is 4095 [16:50:43]Connected sock=10 [16:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DC CA 06 01 1A B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 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 C4 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 E2 5A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 73 00 00 35 04 06 00 A3 FE 8B FE 25 9A BA 05 6D B8 D7 47 66 92 [16:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 20 D5 47 00 1E 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 39 36 33 31 35 34 10 04 04 00 AB 73 00 00 F4 03 04 00 83 05 1D 66 B6 04 01 00 00 1A 0F 5C C2 D0 D5 9C F9 [16:50:43]CommunicateWithHost err = 0 [16:50:43]CheckOFDResponse [16:50:43]1017 (14) - 77093643461234 [16:50:43]1041 (16) - 0000000000963154 [16:50:43]1040 (4) - 29611 [16:50:43]1012 (4) - 15.04.2024 10:46 [16:50:43]1206 (1) - 0 [16:50:43]OFD Sender: Remove packet 29611 [16:50:43]ProducePacketName [16:50:43]name=ofd_packets/00029611 [16:50:43]NVStorageDeleteData [16:50:44]Write to MH i2c: 01 00 00 77 09 80 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 07 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 E1 0C 74 [16:50:44]RasterBufferAndPrint [16:50:44]line [16:50:44]line [16:50:44]line [16:50:44]line [16:50:44]line [16:50:44]written 0, free lines is 3303 [16:50:44]MH_Cut [16:50:44]Write to MH i2c: D1 01 00 7E 09 01 59 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: D1 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: D1 01 00 [16:50:44]MH_I2C_Read... [16:50:44]Read from MH i2c: D1 01 00 7E 09 00 58 [16:50:44]Write to MH i2c: 01 00 00 7F 09 88 [16:50:44]Write i2c OK [16:50:44]MH_I2C_Read... [16:50:44]OFD Sender: No OFD packet to send [16:50:44]*** Cut start [16:50:44]*** Partial cut [16:50:44]*** CUTSNS_PIN = 1 [16:50:44]*** CUTSNS_PIN = 0 [16:50:45]*** Brake cut motor [16:50:45]Read from MH i2c: 01 [16:50:45]MH_I2C_Read... [16:50:45]*** Stop cut motor [16:50:45]*** Cut end [16:50:45]Read from MH i2c: 01 07 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [16:50:45]process_action close_receipt done [16:50:45]requested_data is exist [16:50:45]produce_requested_data [16:50:45]requested_item fm.sn is exist - process it [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 11 00 00 [16:50:45]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 17 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [16:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:50:45]wFMCommunicate OK [16:50:45]requested_item fd.num is exist - process it [16:50:45]SAM_PROTO_GetFieldsCounters [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 13 00 00 [16:50:45]Write to MH i2c: E2 08 00 81 09 80 13 00 00 00 00 00 00 06 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 62 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 62 00 81 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 73 00 00 0E 04 04 00 75 00 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 3E [16:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 73 00 00 0E 04 04 00 75 00 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 [16:50:45]wFMCommunicate OK [16:50:45]SAM_PROTO_GetFieldsCounters done [16:50:45]requested_item shift.num is exist - process it [16:50:45]requested_item shift.opened is exist - process it [16:50:45]req_shift_opened [16:50:45]FM_GetShiftState [16:50:45]SAM_PROTO_GetShiftState [16:50:45]wFMCommunicate request_size=4 [16:50:45]MH_SAM_APDU [16:50:45]CAPDU: 80 13 01 00 [16:50:45]Write to MH i2c: E2 08 00 82 09 80 13 01 00 00 00 00 00 08 [16:50:45]Write i2c OK [16:50:45]MH_I2C_Read... [16:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:45]Read from MH i2c: E2 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 [16:50:45]MH_I2C_Read... [16:50:45]Read from MH i2c: E2 0E 00 82 09 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [16:50:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:50:45]wFMCommunicate OK [16:50:45]SAM_PROTO_GetShiftState done [16:50:45]FM_GetShiftState done [16:50:45]req_shift_opened done [16:50:45]requested_item shift.open_date is exist - process it [16:50:45]req_shift_open_date [16:50:45]req_shift_open_date done [16:50:45]produce_requested_data done [16:50:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29611,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:50:45]process_action_free close_receipt [16:50:45]json_value_free [16:50:45]json_value_free done [16:50:45]process_json_proto returns [16:50:45]Send response to host [16:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29611,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:50:45]free response buf [16:50:45]execute_script done [16:50:45]execute_script returns [16:50:45]free content buf [16:50:45]Sock 9.Close socket [16:50:45]Sock 9.Thread stoped [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 83 09 8C [16:51:41]*** FLAG_PRN_KEY set [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 83 09 00 08 00 00 00 FF 0F A9 [16:51:41]state=0 [16:51:41]Key pressed [16:51:41]Feed [16:51:41]Write to MH i2c: D8 00 00 84 09 64 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 84 09 00 65 [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 85 09 8E [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 85 09 00 48 00 00 00 3C 00 19 [16:51:41]state=2 [16:51:41]Key pressed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 86 09 8F [16:51:41]*** FLAG_PRN_KEY reset [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 86 09 00 00 00 00 00 FA 0F 9F [16:51:41]state=2 [16:51:41]Stop feed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 87 09 90 [16:51:41]*** FLAG_PRN_KEY set [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 87 09 00 08 00 00 00 FF 0F AD [16:51:41]state=0 [16:51:41]Key pressed [16:51:41]Feed [16:51:41]Write to MH i2c: D8 00 00 88 09 68 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 88 09 00 69 [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 89 09 92 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 89 09 00 48 00 00 00 3C 00 1D [16:51:41]state=2 [16:51:41]Key pressed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 8A 09 93 [16:51:41]*** FLAG_PRN_KEY reset [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 F5 0F 9E [16:51:41]state=2 [16:51:41]Stop feed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 8B 09 94 [16:51:41]*** FLAG_PRN_KEY set [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 8B 09 00 08 00 00 00 FF 0F B1 [16:51:41]state=0 [16:51:41]Key pressed [16:51:41]Feed [16:51:41]Write to MH i2c: D8 00 00 8C 09 6C [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 8C 09 00 6D [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 8D 09 96 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 8D 09 00 48 00 00 00 3C 00 21 [16:51:41]state=2 [16:51:41]Key pressed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 8E 09 97 [16:51:41]*** FLAG_PRN_KEY reset [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 F6 0F A3 [16:51:41]state=2 [16:51:41]Stop feed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 8F 09 98 [16:51:41]*** FLAG_PRN_KEY set [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 8F 09 00 08 00 00 00 FF 0F B5 [16:51:41]state=0 [16:51:41]Key pressed [16:51:41]Feed [16:51:41]Write to MH i2c: D8 00 00 90 09 70 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 90 09 00 71 [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 91 09 9A [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 91 09 00 48 00 00 00 3C 00 25 [16:51:41]state=2 [16:51:41]Key pressed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 92 09 9B [16:51:41]*** FLAG_PRN_KEY reset [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 F6 0F A7 [16:51:41]state=2 [16:51:41]Stop feed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 93 09 9C [16:51:41]*** FLAG_PRN_KEY set [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 93 09 00 08 00 00 00 FF 0F B9 [16:51:41]state=0 [16:51:41]Key pressed [16:51:41]Feed [16:51:41]Write to MH i2c: D8 00 00 94 09 74 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: D8 01 00 94 09 00 75 [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 95 09 9E [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 95 09 00 48 00 00 00 3C 00 29 [16:51:41]state=2 [16:51:41]Key pressed [16:51:41]int [16:51:41]Write to MH i2c: 01 00 00 96 09 9F [16:51:41]*** FLAG_PRN_KEY reset [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 F6 0F AB [16:51:41]state=2 [16:51:41]Stop feed [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [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:17]accept exits with 7 [16:53:17]New connection [16:53:17]New thread 3067108708 created [16:53:17]Thread 3066965348 joined [16:53:17]Waiting for new connection... [16:53:17] Sock 7.Parse request [16:53:17]Sock 7.Check first char [16:53:17]Sock 7.First char is OK [16:53:17]request: POST /json_proto HTTP/1.0 [16:53:17]Method: POST [16:53:17]URL: /json_proto [16:53:17]Method is POST - this is cgi request [16:53:17]url: /json_proto [16:53:17]query_string will be loaded in cgi processing [16:53:17]execute_cgi json_proto POST (null) [16:53:17]execute_cgi path=json_proto method=POST [16:53:17]POST find Content-Length [16:53:17]Host: 172.17.33.3:8080 [16:53:17]Content-Length: 1205 [16:53:17]Content-Type: application/json [16:53:17] [16:53:17]POST finish read [16:53:17]Found Content-Length = 1205 [16:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348052\u000A15.04.2024 16:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 10.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 334.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\u000A1783637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:17]execute_script... [16:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348052\u000A15.04.2024 16:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 10.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 334.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\u000A1783637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:17]POST & json_proto [16:53:17]process_json_proto [16:53:17]json parsed OK: [16:53:17]protocol is kg_v1.0 [16:53:17]action value=print_text [16:53:17]process_action print_text [16:53:17]cmd_print_text [16:53:17]ExternCall_PrintAddStr [16:53:17]wPrintStart [16:53:17]Write to MH i2c: 01 00 00 97 09 A0 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 97 09 00 00 00 00 00 FF 0F B5 [16:53:17]RasterBufferAndPrint [16:53:17]line *****ТОВАРНЫЙ ЧЕК***** [16:53:17]line АЗС 108 [16:53:17]line Партнер нефть [16:53:17]line 02508201610067 [16:53:17]line Кассир : Джумагулова Н. [16:53:17]line Счет N : (1)348052 [16:53:17]line 15.04.2024 16:34 [16:53:17]line ПРОДАЖА [16:53:17]line ТРК (МРК, ГНК): 71 [16:53:17]line Вид ГСМ : 2711129700 [16:53:17]line ГАЗ-К-5 [16:53:17]line 10.000 x 33.40 [16:53:17]line ИТОГ: 334.00 [16:53:17]line Тип оплаты: Талоны: Партнер нефть [16:53:17]line 1783637 [16:53:17]line ______________________ [16:53:17]line (подпись) [16:53:17]written 0, free lines is 4095 [16:53:17]Write to MH i2c: 01 00 00 AC 09 B5 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 F8 0D C1 [16:53:17]RasterBufferAndPrint [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]written 0, free lines is 3578 [16:53:17]MH_Cut [16:53:17]Write to MH i2c: D1 01 00 B3 09 01 8E [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: D1 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: D1 01 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: D1 01 00 B3 09 00 8D [16:53:17]Write to MH i2c: 01 00 00 B4 09 BD [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:18]*** Cut start [16:53:18]*** Partial cut [16:53:18]*** CUTSNS_PIN = 1 [16:53:18]*** CUTSNS_PIN = 0 [16:53:18]*** Brake cut motor [16:53:19]Read from MH i2c: 01 [16:53:19]MH_I2C_Read... [16:53:19]*** Stop cut motor [16:53:19]*** Cut end [16:53:19]Read from MH i2c: 01 07 00 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 FF 0F D2 [16:53:19]process_action print_text done [16:53:19]requested_data is exist [16:53:19]produce_requested_data [16:53:19]requested_item fm.sn is exist - process it [16:53:19]wFMCommunicate request_size=4 [16:53:19]MH_SAM_APDU [16:53:19]CAPDU: 80 11 00 00 [16:53:19]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [16:53:19]Write i2c OK [16:53:19]MH_I2C_Read... [16:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:19]Read from MH i2c: E2 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 17 00 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [16:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:53:19]wFMCommunicate OK [16:53:19]requested_item fd.num is exist - process it [16:53:19]SAM_PROTO_GetFieldsCounters [16:53:19]wFMCommunicate request_size=4 [16:53:19]MH_SAM_APDU [16:53:19]CAPDU: 80 13 00 00 [16:53:19]Write to MH i2c: E2 08 00 B6 09 80 13 00 00 00 00 00 00 3B [16:53:19]Write i2c OK [16:53:19]MH_I2C_Read... [16:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:19]Read from MH i2c: E2 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 62 00 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 62 00 B6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 73 00 00 0E 04 04 00 75 00 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 73 [16:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 73 00 00 0E 04 04 00 75 00 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 [16:53:19]wFMCommunicate OK [16:53:19]SAM_PROTO_GetFieldsCounters done [16:53:19]requested_item shift.num is exist - process it [16:53:19]requested_item shift.opened is exist - process it [16:53:19]req_shift_opened [16:53:19]FM_GetShiftState [16:53:19]SAM_PROTO_GetShiftState [16:53:19]wFMCommunicate request_size=4 [16:53:19]MH_SAM_APDU [16:53:19]CAPDU: 80 13 01 00 [16:53:19]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [16:53:19]Write i2c OK [16:53:19]MH_I2C_Read... [16:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:19]Read from MH i2c: E2 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 0E 00 [16:53:19]MH_I2C_Read... [16:53:19]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [16:53:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:53:19]wFMCommunicate OK [16:53:19]SAM_PROTO_GetShiftState done [16:53:19]FM_GetShiftState done [16:53:19]req_shift_opened done [16:53:19]requested_item shift.open_date is exist - process it [16:53:19]req_shift_open_date [16:53:19]req_shift_open_date done [16:53:19]produce_requested_data done [16:53:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29611,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:53:19]process_action_free print_text [16:53:19]json_value_free [16:53:19]json_value_free done [16:53:19]process_json_proto returns [16:53:19]Send response to host [16:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29611,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:53:19]free response buf [16:53:19]execute_script done [16:53:19]execute_script returns [16:53:19]free content buf [16:53:19]Sock 7.Close socket [16:53:19]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:50]accept exits with 9 [16:55:50]New connection [16:55:50]New thread 3066965348 created [16:55:50]Thread 3067108708 joined [16:55:50]Waiting for new connection... [16:55:50] Sock 9.Parse request [16:55:50]Sock 9.Check first char [16:55:50]Sock 9.First char is OK [16:55:50]request: POST /json_proto HTTP/1.0 [16:55:50]Method: POST [16:55:50]URL: /json_proto [16:55:50]Method is POST - this is cgi request [16:55:50]url: /json_proto [16:55:50]query_string will be loaded in cgi processing [16:55:50]execute_cgi json_proto POST (null) [16:55:50]execute_cgi path=json_proto method=POST [16:55:50]POST find Content-Length [16:55:50]Host: 172.17.33.3:8080 [16:55:50]Content-Length: 677 [16:55:50]Content-Type: application/json [16:55:50] [16:55:50]POST finish read [16:55:50]Found Content-Length = 677 [16:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:50]execute_script... [16:55: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)348053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:50]POST & json_proto [16:55:50]process_json_proto [16:55:50]json parsed OK: [16:55:50]protocol is kg_v1.0 [16:55:50]action value=close_receipt [16:55:50]process_action close_receipt [16:55:50]cmd_close_receipt [16:55:50]MH_GetDate [16:55:50]Write to MH i2c: F0 00 00 B8 09 B0 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 09 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: F0 09 00 B8 09 00 17 5C 1D 66 23 5B 8F 65 21 [16:55:50]GetLastDocTimeStamp 1713199842 [16:55:50]current date 1713200151 [16:55:50]FM_GetShiftState [16:55:50]SAM_PROTO_GetShiftState [16:55:50]wFMCommunicate request_size=4 [16:55:50]MH_SAM_APDU [16:55:50]CAPDU: 80 13 01 00 [16:55:50]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:50]Read from MH i2c: E2 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: E2 0E 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [16:55:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:55:50]wFMCommunicate OK [16:55:50]SAM_PROTO_GetShiftState done [16:55:50]FM_GetShiftState done [16:55:50]opened in 1713140468 [16:55:50]opened+sec_in_day 1713226868 [16:55:50]quantity*price = 30002 [16:55:50]sum+1 = 30003 [16:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 206 15.04.2024 16:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29612 ФПД: 214345031606917 1/tax-web-control/client/api/v1/ticket?date=20240415T165551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29612&fm=214345031606917&tin=02508201610067®Number=0000138879044617&sum=30000 [16:55:51]StoreToDocumentArchive [16:55:51]shift 117 fd 29612 [16:55:51]save to /storage/0117/doc_00029612 [16:55:51]save last doc name /storage/0117/doc_00029612 to /storage/kkm_last_doc_name [16:55:51]save OK [16:55:51]Clear old archive folders... [16:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:51]tlvbuf is 01A59500 [16:55:51]SAM_PROTO_ClearQueue [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 09 00 00 [16:55:51]Write to MH i2c: E2 08 00 C6 09 80 09 00 00 00 00 00 00 41 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [16:55:51]RAPDU: 90 00 [16:55:51]wFMCommunicate OK [16:55:51]SAM_PROTO_ClearQueue done [16:55:51]KKMCreateOFDPacket [16:55:51]OFDProtocolAddRootSTLVToBuf [16:55:51]FM_MakeSignedData [16:55:51]FM_MakeSignedData [16:55:51]SAM_PROTO_SignData [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 0D 01 02 [16:55:51]Write to MH i2c: E2 08 00 C7 09 80 0D 01 02 00 00 00 00 49 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [16:55:51]RAPDU: 90 00 [16:55:51]wFMCommunicate OK [16:55:51]wFMCommunicate request_size=255 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 17 5C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 73 00 00 35 04 06 00 C2 [16:55:51]Write to MH i2c: E2 02 01 C8 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 17 5C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 73 00 00 35 04 06 00 C2 00 00 94 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [16:55:52]RAPDU: 90 00 [16:55:52]wFMCommunicate OK [16:55:52]wFMCommunicate request_size=10 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 0D 02 02 05 F2 17 77 E2 85 [16:55:52]Write to MH i2c: E2 0D 00 C9 09 80 0D 02 02 05 00 F2 17 77 E2 85 00 00 3D [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [16:55:52]RAPDU: 90 00 [16:55:52]wFMCommunicate OK [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 0D 03 02 [16:55:52]Write to MH i2c: E2 08 00 CA 09 80 0D 03 02 00 00 00 00 4E [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0B 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 0B 00 CA 09 00 CF 05 A1 6B 72 F5 DA 77 90 00 E7 [16:55:52]RAPDU: CF 05 A1 6B 72 F5 DA 77 90 00 [16:55:52]wFMCommunicate OK [16:55:52]SAM_PROTO_SignData done [16:55:52]FM_MakeSignedData done [16:55:52]CreateOFDProtocolMessage [16:55:52]wFMCommunicate request_size=4 [16:55:52]MH_SAM_APDU [16:55:52]CAPDU: 80 11 00 00 [16:55:52]Write to MH i2c: E2 08 00 CB 09 80 11 00 00 00 00 00 00 4E [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:52]Read from MH i2c: E2 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: E2 17 00 CB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [16:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:55:52]wFMCommunicate OK [16:55:52]CreateOFDProtocolMessage done [16:55:52]OFDSenderStorePacket 29612 [16:55:52]StoreOFDPacket docnum=29612 [16:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 F5 07 01 33 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 17 5C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 73 00 00 35 04 06 00 C2 F2 17 77 E2 85 CF 05 A1 6B 72 F5 DA 77 [16:55:52]CheckFolder [16:55:52]dirname=/storage/ofd_packets [16:55:52]CheckFolder done [16:55:52]ProducePacketName [16:55:52]name=ofd_packets/00029612 [16:55:52]NVStorageSaveData ofd_packets/00029612 [16:55:52]File name is /storage/ofd_packets/00029612 [16:55:52]Write 301 bytes [16:55:52]NVStorageSaveData done [16:55:52]OFDSenderStorePacket done [16:55:52]KKMCreateOFDPacket done [16:55:52]NVStorageSaveData kkm_last_timestamp [16:55:52]File name is /storage/kkm_last_timestamp [16:55:52]Write 4 bytes [16:55:52]NVStorageSaveData done [16:55:52]ExternCall_PrintAddStr [16:55:52]wPrintStart [16:55:52]Write to MH i2c: 01 00 00 CC 09 D5 [16:55:52]Write i2c OK [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 [16:55:52]MH_I2C_Read... [16:55:52]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 FF 0F EA [16:55:52]RasterBufferAndPrint [16:55:52]line Счет N : (1)348053 [16:55:52]line ИНН: 02508201610067 [16:55:52]line Контрольно-Кассовый Чек [16:55:52]line ПРОДАЖА [16:55:52]line ТРК (МРК, ГНК) : 42 [16:55:52]line Товар: 2710124130 [16:55:52]line Аи-92-К-5 [16:55:52]line 4.630 * 64.80 [16:55:52]line = 300.02 [16:55:52]line НДС 12% НСП 1% [16:55:52]line > о реализуемом товаре [16:55:52]line ОКРУГЛЕНИЕ: -0.02 [16:55:52]line ИТОГО: 300.00 [16:55:52]line Внесено: 300.00 [16:55:52]line СДАЧА: 0.00 [16:55:52]line НСП 1% : 2.65 [16:55:52]line НДС 12% : 31.86 [16:55:52]line Наличными: 300.00 [16:55:52]line Безнал.: 0.00 [16:55:52]line Место: АЗС № 108 "Партнер Нефть" [16:55:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:55:52]line СНО: Общий режим [16:55:52]line Чек 206 15.04.2024 16:55 [16:55:52]line Смена: 117 ФФД: 1.0 [16:55:52]line ЗНМ: 0300000027 [16:55:52]line РНМ: 0000138879044617 [16:55:52]line Версия ККМ: 001 [16:55:52]line ФМ: 0000000000963154 [16:55:52]line ФД: 29612 [16:55:52]line ФПД: 214345031606917 [16:55:52]line 1/tax-web-control/client/api/v1/ticket?date=20240415T165551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29612&fm=214345031606917&tin=02508201610067®Number=0000138879044617&sum=30000 [16:55:52]OFD Sender: Processing packet 29612 [packets to send 8, broken 7] [16:55:52]ProducePacketName [16:55:52]name=ofd_packets/00029612 [16:55:52]OFD Sender: To server: pG, [16:55:52]CommunicateWithHost lk.salyk.kg:30040 [16:55:52]ConnectInit lk.salyk.kg [16:55:52]written 0, free lines is 4095 [16:55:52]Connected sock=10 [16:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 F5 07 01 33 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 17 5C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 73 00 00 35 04 06 00 C2 F2 17 77 E2 85 CF 05 A1 6B 72 F5 DA 77 [16:55:53]Write to MH i2c: 01 00 00 F6 09 FF [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 07 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: 01 07 00 F6 09 00 00 00 00 00 D3 0C E5 [16:55:53]RasterBufferAndPrint [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]line [16:55:53]written 0, free lines is 3289 [16:55:53]MH_Cut [16:55:53]Write to MH i2c: D1 01 00 FD 09 01 D8 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: D1 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: D1 01 00 [16:55:53]MH_I2C_Read... [16:55:53]Read from MH i2c: D1 01 00 FD 09 00 D7 [16:55:53]Write to MH i2c: 01 00 00 FE 09 07 [16:55:53]Write i2c OK [16:55:53]MH_I2C_Read... [16:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 48 8D 47 00 7E CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 73 00 00 F4 03 04 00 B8 06 1D 66 B6 04 01 00 00 4E 25 A1 10 85 0A 05 04 [16:55:53]CommunicateWithHost err = 0 [16:55:53]CheckOFDResponse [16:55:53]1017 (14) - 77093643461234 [16:55:53]1041 (16) - 0000000000963154 [16:55:53]1040 (4) - 29612 [16:55:53]1012 (4) - 15.04.2024 10:51 [16:55:53]1206 (1) - 0 [16:55:53]OFD Sender: Remove packet 29612 [16:55:53]ProducePacketName [16:55:53]name=ofd_packets/00029612 [16:55:53]NVStorageDeleteData [16:55:53]OFD Sender: No OFD packet to send [16:55:53]*** Cut start [16:55:53]*** Partial cut [16:55:53]*** CUTSNS_PIN = 1 [16:55:54]*** CUTSNS_PIN = 0 [16:55:54]*** Brake cut motor [16:55:54]Read from MH i2c: 01 [16:55:54]MH_I2C_Read... [16:55:54]*** Stop cut motor [16:55:54]*** Cut end [16:55:54]Read from MH i2c: 01 07 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: 01 07 00 FE 09 00 00 00 00 00 FF 0F 1C [16:55:54]process_action close_receipt done [16:55:54]requested_data is exist [16:55:54]produce_requested_data [16:55:54]requested_item fm.sn is exist - process it [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 11 00 00 [16:55:54]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [16:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:55:54]wFMCommunicate OK [16:55:54]requested_item fd.num is exist - process it [16:55:54]SAM_PROTO_GetFieldsCounters [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 13 00 00 [16:55:54]Write to MH i2c: E2 08 00 00 0A 80 13 00 00 00 00 00 00 86 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 62 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 62 00 00 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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 C2 [16:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_GetFieldsCounters done [16:55:54]requested_item shift.num is exist - process it [16:55:54]requested_item shift.opened is exist - process it [16:55:54]req_shift_opened [16:55:54]FM_GetShiftState [16:55:54]SAM_PROTO_GetShiftState [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 13 01 00 [16:55:54]Write to MH i2c: E2 08 00 01 0A 80 13 01 00 00 00 00 00 88 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0E 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0E 00 01 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7C [16:55:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_GetShiftState done [16:55:54]FM_GetShiftState done [16:55:54]req_shift_opened done [16:55:54]requested_item shift.open_date is exist - process it [16:55:54]req_shift_open_date [16:55:54]req_shift_open_date done [16:55:54]produce_requested_data done [16:55:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [16:55:54]process_action_free close_receipt [16:55:54]json_value_free [16:55:54]json_value_free done [16:55:54]process_json_proto returns [16:55:54]Send response to host [16:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [16:55:54]free response buf [16:55:54]execute_script done [16:55:54]execute_script returns [16:55:54]free content buf [16:55:54]Sock 9.Close socket [16:55:54]Sock 9.Thread stoped [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:24]accept exits with 7 [17:00:24]New connection [17:00:24]New thread 3067108708 created [17:00:24]Thread 3066965348 joined [17:00:24]Waiting for new connection... [17:00:24] Sock 7.Parse request [17:00:24]Sock 7.Check first char [17:00:24]Sock 7.First char is OK [17:00:24]request: POST /json_proto HTTP/1.0 [17:00:24]Method: POST [17:00:24]URL: /json_proto [17:00:24]Method is POST - this is cgi request [17:00:24]url: /json_proto [17:00:24]query_string will be loaded in cgi processing [17:00:24]execute_cgi json_proto POST (null) [17:00:24]execute_cgi path=json_proto method=POST [17:00:24]POST find Content-Length [17:00:24]Host: 172.17.33.3:8080 [17:00:24]Content-Length: 1210 [17:00:24]Content-Type: application/json [17:00:24] [17:00:24]POST finish read [17:00:24]Found Content-Length = 1210 [17:00: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348054\u000A15.04.2024 16:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 972.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\u000A3859034;3485026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:24]execute_script... [17:00: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348054\u000A15.04.2024 16:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 972.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\u000A3859034;3485026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:24]POST & json_proto [17:00:24]process_json_proto [17:00:24]json parsed OK: [17:00:24]protocol is kg_v1.0 [17:00:24]action value=print_text [17:00:24]process_action print_text [17:00:24]cmd_print_text [17:00:24]ExternCall_PrintAddStr [17:00:24]wPrintStart [17:00:24]Write to MH i2c: 01 00 00 02 0A 0C [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 07 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [17:00:24]RasterBufferAndPrint [17:00:24]line *****ТОВАРНЫЙ ЧЕК***** [17:00:24]line АЗС 108 [17:00:24]line Партнер нефть [17:00:24]line 02508201610067 [17:00:24]line Кассир : Джумагулова Н. [17:00:24]line Счет N : (1)348054 [17:00:24]line 15.04.2024 16:42 [17:00:24]line ПРОДАЖА [17:00:24]line ТРК (МРК, ГНК): 42 [17:00:24]line Вид ГСМ : 2710124130 [17:00:24]line Аи-92-К-5 [17:00:24]line 15.000 x 64.80 [17:00:24]line ИТОГ: 972.00 [17:00:24]line Тип оплаты: Талоны: Партнер нефть [17:00:24]line 3859034;3485026 [17:00:24]line ______________________ [17:00:24]line (подпись) [17:00:24]written 0, free lines is 4095 [17:00:24]Write to MH i2c: 01 00 00 17 0A 21 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 07 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FC 0D 31 [17:00:24]RasterBufferAndPrint [17:00:24]line [17:00:24]line [17:00:24]line [17:00:24]line [17:00:24]line [17:00:24]written 0, free lines is 3583 [17:00:24]MH_Cut [17:00:24]Write to MH i2c: D1 01 00 1E 0A 01 FA [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: D1 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: D1 01 00 [17:00:24]MH_I2C_Read... [17:00:24]Read from MH i2c: D1 01 00 1E 0A 00 F9 [17:00:24]Write to MH i2c: 01 00 00 1F 0A 29 [17:00:24]Write i2c OK [17:00:24]MH_I2C_Read... [17:00:25]*** Cut start [17:00:25]*** Partial cut [17:00:25]*** CUTSNS_PIN = 1 [17:00:25]*** CUTSNS_PIN = 0 [17:00:25]*** Brake cut motor [17:00:25]Read from MH i2c: 01 [17:00:25]MH_I2C_Read... [17:00:25]*** Stop cut motor [17:00:25]*** Cut end [17:00:25]Read from MH i2c: 01 07 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 FF 0F 3E [17:00:25]process_action print_text done [17:00:25]requested_data is exist [17:00:25]produce_requested_data [17:00:25]requested_item fm.sn is exist - process it [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 11 00 00 [17:00:25]Write to MH i2c: E2 08 00 20 0A 80 11 00 00 00 00 00 00 A4 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 17 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 17 00 20 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [17:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:00:25]wFMCommunicate OK [17:00:25]requested_item fd.num is exist - process it [17:00:25]SAM_PROTO_GetFieldsCounters [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 13 00 00 [17:00:25]Write to MH i2c: E2 08 00 21 0A 80 13 00 00 00 00 00 00 A7 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 62 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 62 00 21 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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 E3 [17:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_GetFieldsCounters done [17:00:25]requested_item shift.num is exist - process it [17:00:25]requested_item shift.opened is exist - process it [17:00:25]req_shift_opened [17:00:25]FM_GetShiftState [17:00:25]SAM_PROTO_GetShiftState [17:00:25]wFMCommunicate request_size=4 [17:00:25]MH_SAM_APDU [17:00:25]CAPDU: 80 13 01 00 [17:00:25]Write to MH i2c: E2 08 00 22 0A 80 13 01 00 00 00 00 00 A9 [17:00:25]Write i2c OK [17:00:25]MH_I2C_Read... [17:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:25]Read from MH i2c: E2 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 [17:00:25]MH_I2C_Read... [17:00:25]Read from MH i2c: E2 0E 00 22 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9D [17:00:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:00:25]wFMCommunicate OK [17:00:25]SAM_PROTO_GetShiftState done [17:00:25]FM_GetShiftState done [17:00:25]req_shift_opened done [17:00:25]requested_item shift.open_date is exist - process it [17:00:25]req_shift_open_date [17:00:25]req_shift_open_date done [17:00:25]produce_requested_data done [17:00:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:00:25]process_action_free print_text [17:00:25]json_value_free [17:00:25]json_value_free done [17:00:25]process_json_proto returns [17:00:25]Send response to host [17:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:00:25]free response buf [17:00:25]execute_script done [17:00:25]execute_script returns [17:00:25]free content buf [17:00:25]Sock 7.Close socket [17:00:25]Sock 7.Thread stoped [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:46]accept exits with 9 [17:03:46]New connection [17:03:46]New thread 3066965348 created [17:03:46]Thread 3067108708 joined [17:03:46]Waiting for new connection... [17:03:46] Sock 9.Parse request [17:03:46]Sock 9.Check first char [17:03:46]Sock 9.First char is OK [17:03:46]request: POST /json_proto HTTP/1.0 [17:03:46]Method: POST [17:03:46]URL: /json_proto [17:03:46]Method is POST - this is cgi request [17:03:46]url: /json_proto [17:03:46]query_string will be loaded in cgi processing [17:03:46]execute_cgi json_proto POST (null) [17:03:46]execute_cgi path=json_proto method=POST [17:03:46]POST find Content-Length [17:03:46]Host: 172.17.33.3:8080 [17:03:46]Content-Length: 1210 [17:03:46]Content-Type: application/json [17:03:46] [17:03:46]POST finish read [17:03:46]Found Content-Length = 1210 [17:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348055\u000A15.04.2024 16:45\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-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:46]execute_script... [17:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348055\u000A15.04.2024 16:45\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-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:46]POST & json_proto [17:03:46]process_json_proto [17:03:46]json parsed OK: [17:03:46]protocol is kg_v1.0 [17:03:46]action value=print_text [17:03:46]process_action print_text [17:03:46]cmd_print_text [17:03:46]ExternCall_PrintAddStr [17:03:46]wPrintStart [17:03:46]Write to MH i2c: 01 00 00 23 0A 2D [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [17:03:46]RasterBufferAndPrint [17:03:46]line *****ТОВАРНЫЙ ЧЕК***** [17:03:46]line АЗС 108 [17:03:46]line Партнер нефть [17:03:46]line 02508201610067 [17:03:46]line Кассир : Джумагулова Н. [17:03:46]line Счет N : (1)348055 [17:03:46]line 15.04.2024 16:45 [17:03:46]line ПРОДАЖА [17:03:46]line ТРК (МРК, ГНК): 21 [17:03:46]line Вид ГСМ : 2710194210 [17:03:46]line ДТ-К-5 [17:03:46]line 13.720 x 72.90 [17:03:46]line ИТОГ: 1000.19 [17:03:46]line Тип оплаты: Талоны: Топливная Карта [17:03:46]line 02136 [17:03:46]line ______________________ [17:03:46]line (подпись) [17:03:46]written 0, free lines is 4095 [17:03:46]Write to MH i2c: 01 00 00 38 0A 42 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 F4 0D 4A [17:03:46]RasterBufferAndPrint [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]line [17:03:46]written 0, free lines is 3574 [17:03:46]MH_Cut [17:03:46]Write to MH i2c: D1 01 00 3F 0A 01 1B [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 01 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: D1 01 00 3F 0A 00 1A [17:03:46]Write to MH i2c: 01 00 00 40 0A 4A [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:47]*** Cut start [17:03:47]*** Partial cut [17:03:47]*** CUTSNS_PIN = 1 [17:03:47]*** CUTSNS_PIN = 0 [17:03:47]*** Brake cut motor [17:03:47]Read from MH i2c: 01 [17:03:47]MH_I2C_Read... [17:03:47]*** Stop cut motor [17:03:47]*** Cut end [17:03:47]Read from MH i2c: 01 07 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [17:03:47]process_action print_text done [17:03:47]requested_data is exist [17:03:47]produce_requested_data [17:03:47]requested_item fm.sn is exist - process it [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 11 00 00 [17:03:47]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [17:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:03:47]wFMCommunicate OK [17:03:47]requested_item fd.num is exist - process it [17:03:47]SAM_PROTO_GetFieldsCounters [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 00 00 [17:03:47]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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 04 [17:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetFieldsCounters done [17:03:47]requested_item shift.num is exist - process it [17:03:47]requested_item shift.opened is exist - process it [17:03:47]req_shift_opened [17:03:47]FM_GetShiftState [17:03:47]SAM_PROTO_GetShiftState [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 13 01 00 [17:03:47]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:47]Read from MH i2c: E2 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [17:03:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:03:47]wFMCommunicate OK [17:03:47]SAM_PROTO_GetShiftState done [17:03:47]FM_GetShiftState done [17:03:47]req_shift_opened done [17:03:47]requested_item shift.open_date is exist - process it [17:03:47]req_shift_open_date [17:03:47]req_shift_open_date done [17:03:47]produce_requested_data done [17:03:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:03:47]process_action_free print_text [17:03:47]json_value_free [17:03:47]json_value_free done [17:03:47]process_json_proto returns [17:03:47]Send response to host [17:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:03:47]free response buf [17:03:47]execute_script done [17:03:47]execute_script returns [17:03:47]free content buf [17:03:47]Sock 9.Close socket [17:03:47]Sock 9.Thread stoped [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:38]accept exits with 7 [17:07:38]New connection [17:07:38]New thread 3067108708 created [17:07:38]Thread 3066965348 joined [17:07:38]Waiting for new connection... [17:07:38] Sock 7.Parse request [17:07:38]Sock 7.Check first char [17:07:38]Sock 7.First char is OK [17:07:38]request: POST /json_proto HTTP/1.0 [17:07:38]Method: POST [17:07:38]URL: /json_proto [17:07:38]Method is POST - this is cgi request [17:07:38]url: /json_proto [17:07:38]query_string will be loaded in cgi processing [17:07:38]execute_cgi json_proto POST (null) [17:07:38]execute_cgi path=json_proto method=POST [17:07:38]POST find Content-Length [17:07:38]Host: 172.17.33.3:8080 [17:07:38]Content-Length: 1210 [17:07:38]Content-Type: application/json [17:07:38] [17:07:38]POST finish read [17:07:38]Found Content-Length = 1210 [17:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348056\u000A15.04.2024 16:49\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-\u041A-5\u000A 49.970 x 72.90\u000A\u0418\u0422\u041E\u0413: 3642.81\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:38]execute_script... [17:07: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348056\u000A15.04.2024 16:49\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-\u041A-5\u000A 49.970 x 72.90\u000A\u0418\u0422\u041E\u0413: 3642.81\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:38]POST & json_proto [17:07:38]process_json_proto [17:07:38]json parsed OK: [17:07:38]protocol is kg_v1.0 [17:07:38]action value=print_text [17:07:38]process_action print_text [17:07:38]cmd_print_text [17:07:38]ExternCall_PrintAddStr [17:07:38]wPrintStart [17:07:38]Write to MH i2c: 01 00 00 44 0A 4E [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 07 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [17:07:38]RasterBufferAndPrint [17:07:38]line *****ТОВАРНЫЙ ЧЕК***** [17:07:38]line АЗС 108 [17:07:38]line Партнер нефть [17:07:38]line 02508201610067 [17:07:38]line Кассир : Джумагулова Н. [17:07:38]line Счет N : (1)348056 [17:07:38]line 15.04.2024 16:49 [17:07:38]line ПРОДАЖА [17:07:38]line ТРК (МРК, ГНК): 11 [17:07:38]line Вид ГСМ : 2710194210 [17:07:38]line ДТ-К-5 [17:07:38]line 49.970 x 72.90 [17:07:38]line ИТОГ: 3642.81 [17:07:38]line Тип оплаты: Талоны: Топливная Карта [17:07:38]line 02136 [17:07:38]line ______________________ [17:07:38]line (подпись) [17:07:38]written 0, free lines is 4095 [17:07:39]Write to MH i2c: 01 00 00 59 0A 63 [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: 01 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: 01 07 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 F4 0D 6B [17:07:39]RasterBufferAndPrint [17:07:39]line [17:07:39]line [17:07:39]line [17:07:39]line [17:07:39]line [17:07:39]written 0, free lines is 3574 [17:07:39]MH_Cut [17:07:39]Write to MH i2c: D1 01 00 60 0A 01 3C [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: D1 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: D1 01 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: D1 01 00 60 0A 00 3B [17:07:39]Write to MH i2c: 01 00 00 61 0A 6B [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]OFD Sender: No OFD packet to send [17:07:39]*** Cut start [17:07:39]*** Partial cut [17:07:39]*** CUTSNS_PIN = 1 [17:07:39]*** CUTSNS_PIN = 0 [17:07:40]*** Brake cut motor [17:07:40]Read from MH i2c: 01 [17:07:40]MH_I2C_Read... [17:07:40]*** Stop cut motor [17:07:40]*** Cut end [17:07:40]Read from MH i2c: 01 07 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 FF 0F 80 [17:07:40]process_action print_text done [17:07:40]requested_data is exist [17:07:40]produce_requested_data [17:07:40]requested_item fm.sn is exist - process it [17:07:40]wFMCommunicate request_size=4 [17:07:40]MH_SAM_APDU [17:07:40]CAPDU: 80 11 00 00 [17:07:40]Write to MH i2c: E2 08 00 62 0A 80 11 00 00 00 00 00 00 E6 [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:40]Read from MH i2c: E2 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 17 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 17 00 62 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [17:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:07:40]wFMCommunicate OK [17:07:40]requested_item fd.num is exist - process it [17:07:40]SAM_PROTO_GetFieldsCounters [17:07:40]wFMCommunicate request_size=4 [17:07:40]MH_SAM_APDU [17:07:40]CAPDU: 80 13 00 00 [17:07:40]Write to MH i2c: E2 08 00 63 0A 80 13 00 00 00 00 00 00 E9 [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:40]Read from MH i2c: E2 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 62 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 62 00 63 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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 25 [17:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 73 00 00 0E 04 04 00 75 00 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:07:40]wFMCommunicate OK [17:07:40]SAM_PROTO_GetFieldsCounters done [17:07:40]requested_item shift.num is exist - process it [17:07:40]requested_item shift.opened is exist - process it [17:07:40]req_shift_opened [17:07:40]FM_GetShiftState [17:07:40]SAM_PROTO_GetShiftState [17:07:40]wFMCommunicate request_size=4 [17:07:40]MH_SAM_APDU [17:07:40]CAPDU: 80 13 01 00 [17:07:40]Write to MH i2c: E2 08 00 64 0A 80 13 01 00 00 00 00 00 EB [17:07:40]Write i2c OK [17:07:40]MH_I2C_Read... [17:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:40]Read from MH i2c: E2 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 [17:07:40]MH_I2C_Read... [17:07:40]Read from MH i2c: E2 0E 00 64 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DF [17:07:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:07:40]wFMCommunicate OK [17:07:40]SAM_PROTO_GetShiftState done [17:07:40]FM_GetShiftState done [17:07:40]req_shift_opened done [17:07:40]requested_item shift.open_date is exist - process it [17:07:40]req_shift_open_date [17:07:40]req_shift_open_date done [17:07:40]produce_requested_data done [17:07:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:07:40]process_action_free print_text [17:07:40]json_value_free [17:07:40]json_value_free done [17:07:40]process_json_proto returns [17:07:40]Send response to host [17:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29612,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:07:40]free response buf [17:07:40]execute_script done [17:07:40]execute_script returns [17:07:40]free content buf [17:07:40]Sock 7.Close socket [17:07:40]Sock 7.Thread stoped [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:13]accept exits with 9 [17:09:13]New connection [17:09:13]New thread 3066965348 created [17:09:13]Thread 3067108708 joined [17:09:13]Waiting for new connection... [17:09:13] Sock 9.Parse request [17:09:13]Sock 9.Check first char [17:09:13]Sock 9.First char is OK [17:09:13]request: POST /json_proto HTTP/1.0 [17:09:13]Method: POST [17:09:13]URL: /json_proto [17:09:13]Method is POST - this is cgi request [17:09:13]url: /json_proto [17:09:13]query_string will be loaded in cgi processing [17:09:13]execute_cgi json_proto POST (null) [17:09:13]execute_cgi path=json_proto method=POST [17:09:13]POST find Content-Length [17:09:13]Host: 172.17.33.3:8080 [17:09:13]Content-Length: 675 [17:09:13]Content-Type: application/json [17:09:13] [17:09:13]POST finish read [17:09:13]Found Content-Length = 675 [17:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:13]execute_script... [17:09:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:13]POST & json_proto [17:09:13]process_json_proto [17:09:13]json parsed OK: [17:09:13]protocol is kg_v1.0 [17:09:13]action value=close_receipt [17:09:13]process_action close_receipt [17:09:13]cmd_close_receipt [17:09:13]MH_GetDate [17:09:13]Write to MH i2c: F0 00 00 65 0A 5E [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 09 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 09 00 65 0A 00 3A 5F 1D 66 23 5B 8F 65 F5 [17:09:13]GetLastDocTimeStamp 1713200151 [17:09:13]current date 1713200954 [17:09:13]FM_GetShiftState [17:09:13]SAM_PROTO_GetShiftState [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 01 00 [17:09:13]Write to MH i2c: E2 08 00 66 0A 80 13 01 00 00 00 00 00 ED [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 66 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [17:09:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetShiftState done [17:09:13]FM_GetShiftState done [17:09:13]opened in 1713140468 [17:09:13]opened+sec_in_day 1713226868 [17:09:13]quantity*price = 100016 [17:09:13]sum+1 = 100017 [17:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 207 15.04.2024 17:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29613 ФПД: 275582941496749 1/tax-web-control/client/api/v1/ticket?date=20240415T170914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29613&fm=275582941496749&tin=02508201610067®Number=0000138879044617&sum=100000 [17:09:14]StoreToDocumentArchive [17:09:14]shift 117 fd 29613 [17:09:14]save to /storage/0117/doc_00029613 [17:09:14]save last doc name /storage/0117/doc_00029613 to /storage/kkm_last_doc_name [17:09:14]save OK [17:09:14]Clear old archive folders... [17:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:09:14]tlvbuf is 01A93B80 [17:09:14]SAM_PROTO_ClearQueue [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 09 00 00 [17:09:14]Write to MH i2c: E2 08 00 73 0A 80 09 00 00 00 00 00 00 EF [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 73 0A 00 90 00 F1 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_ClearQueue done [17:09:14]KKMCreateOFDPacket [17:09:14]OFDProtocolAddRootSTLVToBuf [17:09:14]FM_MakeSignedData [17:09:14]FM_MakeSignedData [17:09:14]SAM_PROTO_SignData [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 0D 01 02 [17:09:14]Write to MH i2c: E2 08 00 74 0A 80 0D 01 02 00 00 00 00 F7 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]wFMCommunicate request_size=255 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 0D 02 02 FA 03 00 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 73 00 00 35 04 06 00 [17:09:14]Write to MH i2c: E2 02 01 75 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 73 00 00 35 04 06 00 00 00 53 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]wFMCommunicate request_size=11 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 0D 02 02 06 FA A4 27 55 85 AD [17:09:15]Write to MH i2c: E2 0E 00 76 0A 80 0D 02 02 06 00 FA A4 27 55 85 AD 00 00 52 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 0D 03 02 [17:09:15]Write to MH i2c: E2 08 00 77 0A 80 0D 03 02 00 00 00 00 FC [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0B 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0B 00 77 0A 00 D5 15 01 48 57 35 AD 83 90 00 EC [17:09:15]RAPDU: D5 15 01 48 57 35 AD 83 90 00 [17:09:15]wFMCommunicate OK [17:09:15]SAM_PROTO_SignData done [17:09:15]FM_MakeSignedData done [17:09:15]CreateOFDProtocolMessage [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 11 00 00 [17:09:15]Write to MH i2c: E2 08 00 78 0A 80 11 00 00 00 00 00 00 FC [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 17 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 17 00 78 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [17:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:15]wFMCommunicate OK [17:09:15]CreateOFDProtocolMessage done [17:09:15]OFDSenderStorePacket 29613 [17:09:15]StoreOFDPacket docnum=29613 [17:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4F 3A 08 01 03 19 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 73 00 00 35 04 06 00 FA A4 27 55 85 AD D5 15 01 48 57 35 AD 83 [17:09:15]CheckFolder [17:09:15]dirname=/storage/ofd_packets [17:09:15]CheckFolder done [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00029613 [17:09:15]NVStorageSaveData ofd_packets/00029613 [17:09:15]File name is /storage/ofd_packets/00029613 [17:09:15]Write 302 bytes [17:09:15]NVStorageSaveData done [17:09:15]OFDSenderStorePacket done [17:09:15]KKMCreateOFDPacket done [17:09:15]NVStorageSaveData kkm_last_timestamp [17:09:15]File name is /storage/kkm_last_timestamp [17:09:15]Write 4 bytes [17:09:15]NVStorageSaveData done [17:09:15]ExternCall_PrintAddStr [17:09:15]wPrintStart [17:09:15]Write to MH i2c: 01 00 00 79 0A 83 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [17:09:15]RasterBufferAndPrint [17:09:15]line Счет N : (1)348058 [17:09:15]line ИНН: 02508201610067 [17:09:15]line Контрольно-Кассовый Чек [17:09:15]line ПРОДАЖА [17:09:15]line ТРК (МРК, ГНК) : 22 [17:09:15]line Товар: 2710124130 [17:09:15]line SUPER-92-К-5 [17:09:15]line 15.200 * 65.80 [17:09:15]line = 1000.16 [17:09:15]line НДС 12% НСП 1% [17:09:15]line > о реализуемом товаре [17:09:15]line ОКРУГЛЕНИЕ: -0.16 [17:09:15]line ИТОГО: 1000.00 [17:09:15]line Внесено: 1000.00 [17:09:15]line СДАЧА: 0.00 [17:09:15]line НСП 1% : 8.85 [17:09:15]line НДС 12% : 106.21 [17:09:15]line Наличными: 1000.00 [17:09:15]line Безнал.: 0.00 [17:09:15]line Место: АЗС № 108 "Партнер Нефть" [17:09:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:09:15]line СНО: Общий режим [17:09:15]line Чек 207 15.04.2024 17:09 [17:09:15]line Смена: 117 ФФД: 1.0 [17:09:15]line ЗНМ: 0300000027 [17:09:15]line РНМ: 0000138879044617 [17:09:15]line Версия ККМ: 001 [17:09:15]line ФМ: 0000000000963154 [17:09:15]line ФД: 29613 [17:09:15]line ФПД: 275582941496749 [17:09:15]line 1/tax-web-control/client/api/v1/ticket?date=20240415T170914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29613&fm=275582941496749&tin=02508201610067®Number=0000138879044617&sum=100000 [17:09:15]OFD Sender: Processing packet 29613 [packets to send 8, broken 7] [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00029613 [17:09:15]OFD Sender: To server: pG, [17:09:15]CommunicateWithHost lk.salyk.kg:30040 [17:09:15]ConnectInit lk.salyk.kg [17:09:15]written 0, free lines is 4095 [17:09:15]Connected sock=10 [17:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4F 3A 08 01 03 19 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 3A 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 73 00 00 35 04 06 00 FA A4 27 55 85 AD D5 15 01 48 57 35 AD 83 [17:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EA BA 47 00 CD 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 39 36 33 31 35 34 10 04 04 00 AD 73 00 00 F4 03 04 00 DB 09 1D 66 B6 04 01 00 00 B2 69 CA 1D FC 19 31 26 [17:09:15]CommunicateWithHost err = 0 [17:09:15]CheckOFDResponse [17:09:15]1017 (14) - 77093643461234 [17:09:15]1041 (16) - 0000000000963154 [17:09:15]1040 (4) - 29613 [17:09:15]1012 (4) - 15.04.2024 11:04 [17:09:15]1206 (1) - 0 [17:09:15]OFD Sender: Remove packet 29613 [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00029613 [17:09:15]NVStorageDeleteData [17:09:15]Write to MH i2c: 01 00 00 A3 0A AD [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 C4 0C 84 [17:09:15]RasterBufferAndPrint [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]written 0, free lines is 3272 [17:09:15]MH_Cut [17:09:15]Write to MH i2c: D1 01 00 AA 0A 01 86 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 01 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 01 00 AA 0A 00 85 [17:09:15]Write to MH i2c: 01 00 00 AB 0A B5 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:16]OFD Sender: No OFD packet to send [17:09:16]*** Cut start [17:09:16]*** Partial cut [17:09:16]*** CUTSNS_PIN = 1 [17:09:16]*** CUTSNS_PIN = 0 [17:09:17]*** Brake cut motor [17:09:17]Read from MH i2c: 01 [17:09:17]MH_I2C_Read... [17:09:17]*** Stop cut motor [17:09:17]*** Cut end [17:09:17]Read from MH i2c: 01 07 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: 01 07 00 AB 0A 00 00 00 00 00 FF 0F CA [17:09:17]process_action close_receipt done [17:09:17]requested_data is exist [17:09:17]produce_requested_data [17:09:17]requested_item fm.sn is exist - process it [17:09:17]wFMCommunicate request_size=4 [17:09:17]MH_SAM_APDU [17:09:17]CAPDU: 80 11 00 00 [17:09:17]Write to MH i2c: E2 08 00 AC 0A 80 11 00 00 00 00 00 00 30 [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:17]Read from MH i2c: E2 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 17 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 17 00 AC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [17:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:17]wFMCommunicate OK [17:09:17]requested_item fd.num is exist - process it [17:09:17]SAM_PROTO_GetFieldsCounters [17:09:17]wFMCommunicate request_size=4 [17:09:17]MH_SAM_APDU [17:09:17]CAPDU: 80 13 00 00 [17:09:17]Write to MH i2c: E2 08 00 AD 0A 80 13 00 00 00 00 00 00 33 [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:17]Read from MH i2c: E2 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 62 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 62 00 AD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 73 00 00 0E 04 04 00 75 00 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 73 [17:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 73 00 00 0E 04 04 00 75 00 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:09:17]wFMCommunicate OK [17:09:17]SAM_PROTO_GetFieldsCounters done [17:09:17]requested_item shift.num is exist - process it [17:09:17]requested_item shift.opened is exist - process it [17:09:17]req_shift_opened [17:09:17]FM_GetShiftState [17:09:17]SAM_PROTO_GetShiftState [17:09:17]wFMCommunicate request_size=4 [17:09:17]MH_SAM_APDU [17:09:17]CAPDU: 80 13 01 00 [17:09:17]Write to MH i2c: E2 08 00 AE 0A 80 13 01 00 00 00 00 00 35 [17:09:17]Write i2c OK [17:09:17]MH_I2C_Read... [17:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:17]Read from MH i2c: E2 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 0E 00 [17:09:17]MH_I2C_Read... [17:09:17]Read from MH i2c: E2 0E 00 AE 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 29 [17:09:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:09:17]wFMCommunicate OK [17:09:17]SAM_PROTO_GetShiftState done [17:09:17]FM_GetShiftState done [17:09:17]req_shift_opened done [17:09:17]requested_item shift.open_date is exist - process it [17:09:17]req_shift_open_date [17:09:17]req_shift_open_date done [17:09:17]produce_requested_data done [17:09:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29613,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:09:17]process_action_free close_receipt [17:09:17]json_value_free [17:09:17]json_value_free done [17:09:17]process_json_proto returns [17:09:17]Send response to host [17:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29613,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:09:17]free response buf [17:09:17]execute_script done [17:09:17]execute_script returns [17:09:17]free content buf [17:09:17]Sock 9.Close socket [17:09:17]Sock 9.Thread stoped [17:09:18]accept exits with 7 [17:09:18]New connection [17:09:18]New thread 3067108708 created [17:09:18]Thread 3066965348 joined [17:09:18]Waiting for new connection... [17:09:18] Sock 7.Parse request [17:09:18]Sock 7.Check first char [17:09:18]Sock 7.First char is OK [17:09:18]request: POST /json_proto HTTP/1.0 [17:09:18]Method: POST [17:09:18]URL: /json_proto [17:09:18]Method is POST - this is cgi request [17:09:18]url: /json_proto [17:09:18]query_string will be loaded in cgi processing [17:09:18]execute_cgi json_proto POST (null) [17:09:18]execute_cgi path=json_proto method=POST [17:09:18]POST find Content-Length [17:09:18]Host: 172.17.33.3:8080 [17:09:18]Content-Length: 682 [17:09:18]Content-Type: application/json [17:09:18] [17:09:18]POST finish read [17:09:18]Found Content-Length = 682 [17:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 19.700, "sum" : 657.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 657.00, "payments": [ { "type": 0, "sum" : 657.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:18]execute_script... [17:09: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)348057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 19.700, "sum" : 657.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 657.00, "payments": [ { "type": 0, "sum" : 657.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:18]POST & json_proto [17:09:18]process_json_proto [17:09:18]json parsed OK: [17:09:18]protocol is kg_v1.0 [17:09:18]action value=close_receipt [17:09:18]process_action close_receipt [17:09:18]cmd_close_receipt [17:09:18]MH_GetDate [17:09:18]Write to MH i2c: F0 00 00 AF 0A A8 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 09 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 09 00 AF 0A 00 3F 5F 1D 66 23 5B 8F 65 44 [17:09:18]GetLastDocTimeStamp 1713200954 [17:09:18]current date 1713200959 [17:09:18]FM_GetShiftState [17:09:18]SAM_PROTO_GetShiftState [17:09:18]wFMCommunicate request_size=4 [17:09:18]MH_SAM_APDU [17:09:18]CAPDU: 80 13 01 00 [17:09:18]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:18] [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2B [17:09:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:09:18]wFMCommunicate OK [17:09:18]SAM_PROTO_GetShiftState done [17:09:18]FM_GetShiftState done [17:09:18]opened in 1713140468 [17:09:18]opened+sec_in_day 1713226868 [17:09:18]quantity*price = 65798 [17:09:18]sum+1 = 65799 [17:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 657.00 Внесено: 1000.00 СДАЧА: 343.00 НСП 1% : 5.82 НДС 12% : 69.87 Наличными: 657.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 208 15.04.2024 17:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29614 ФПД: 46085240830479 1/tax-web-control/client/api/v1/ticket?date=20240415T170919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29614&fm=46085240830479&tin=02508201610067®Number=0000138879044617&sum=65700 [17:09:19]StoreToDocumentArchive [17:09:19]shift 117 fd 29614 [17:09:19]save to /storage/0117/doc_00029614 [17:09:19]save last doc name /storage/0117/doc_00029614 to /storage/kkm_last_doc_name [17:09:19]save OK [17:09:19]Clear old archive folders... [17:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:09:19]tlvbuf is 01A70180 [17:09:19]SAM_PROTO_ClearQueue [17:09:19]wFMCommunicate request_size=4 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 09 00 00 [17:09:19]Write to MH i2c: E2 08 00 BD 0A 80 09 00 00 00 00 00 00 39 [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:19]Read from MH i2c: E2 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 03 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [17:09:19]RAPDU: 90 00 [17:09:19]wFMCommunicate OK [17:09:19]SAM_PROTO_ClearQueue done [17:09:19]KKMCreateOFDPacket [17:09:19]OFDProtocolAddRootSTLVToBuf [17:09:19]FM_MakeSignedData [17:09:19]FM_MakeSignedData [17:09:19]SAM_PROTO_SignData [17:09:19]wFMCommunicate request_size=4 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 0D 01 02 [17:09:19]Write to MH i2c: E2 08 00 BE 0A 80 0D 01 02 00 00 00 00 41 [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:19]Read from MH i2c: E2 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 03 00 [17:09:19]MH_I2C_Read... [17:09:19]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [17:09:19]RAPDU: 90 00 [17:09:19]wFMCommunicate OK [17:09:19]wFMCommunicate request_size=255 [17:09:19]MH_SAM_APDU [17:09:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 06 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1B 00 00 00 00 07 04 06 00 A4 00 01 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 3F 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 73 00 00 35 04 06 00 29 EA [17:09:19]Write to MH i2c: E2 02 01 BF 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 06 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1B 00 00 00 00 07 04 06 00 A4 00 01 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 3F 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 73 00 00 35 04 06 00 29 EA 00 00 0B [17:09:19]Write i2c OK [17:09:19]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]wFMCommunicate request_size=9 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 02 02 04 0E 68 BA 0F [17:09:20]Write to MH i2c: E2 0C 00 C0 0A 80 0D 02 02 04 00 0E 68 BA 0F 00 00 8B [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 03 02 [17:09:20]Write to MH i2c: E2 08 00 C1 0A 80 0D 03 02 00 00 00 00 46 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0B 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0B 00 C1 0A 00 68 2D E7 D0 8C D4 07 7B 90 00 75 [17:09:20]RAPDU: 68 2D E7 D0 8C D4 07 7B 90 00 [17:09:20]wFMCommunicate OK [17:09:20]SAM_PROTO_SignData done [17:09:20]FM_MakeSignedData done [17:09:20]CreateOFDProtocolMessage [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 11 00 00 [17:09:20]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 17 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [17:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:20]wFMCommunicate OK [17:09:20]CreateOFDProtocolMessage done [17:09:20]OFDSenderStorePacket 29614 [17:09:20]StoreOFDPacket docnum=29614 [17:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 04 A9 06 01 11 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 06 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1B 00 00 00 00 07 04 06 00 A4 00 01 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 3F 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 73 00 00 35 04 06 00 29 EA 0E 68 BA 0F 68 2D E7 D0 8C D4 07 7B [17:09:20]CheckFolder [17:09:20]dirname=/storage/ofd_packets [17:09:20]CheckFolder done [17:09:20]ProducePacketName [17:09:20]name=ofd_packets/00029614 [17:09:20]NVStorageSaveData ofd_packets/00029614 [17:09:20]File name is /storage/ofd_packets/00029614 [17:09:20]Write 300 bytes [17:09:20]NVStorageSaveData done [17:09:20]OFDSenderStorePacket done [17:09:20]KKMCreateOFDPacket done [17:09:20]NVStorageSaveData kkm_last_timestamp [17:09:20]File name is /storage/kkm_last_timestamp [17:09:20]Write 4 bytes [17:09:20]NVStorageSaveData done [17:09:20]ExternCall_PrintAddStr [17:09:20]wPrintStart [17:09:20]Write to MH i2c: 01 00 00 C3 0A CD [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 07 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FF 0F E2 [17:09:20]RasterBufferAndPrint [17:09:20]line Счет N : (1)348057 [17:09:20]line ИНН: 02508201610067 [17:09:20]line Контрольно-Кассовый Чек [17:09:20]line ПРОДАЖА [17:09:20]line ТРК (МРК, ГНК) : 71 [17:09:20]line Товар: 2711129700 [17:09:20]line ГАЗ-К-5 [17:09:20]line 19.700 * 33.40 [17:09:20]line = 657.98 [17:09:20]line НДС 12% НСП 1% [17:09:20]line > о реализуемом товаре [17:09:20]line ОКРУГЛЕНИЕ: -0.98 [17:09:20]line ИТОГО: 657.00 [17:09:20]line Внесено: 1000.00 [17:09:20]line СДАЧА: 343.00 [17:09:20]line НСП 1% : 5.82 [17:09:20]line НДС 12% : 69.87 [17:09:20]line Наличными: 657.00 [17:09:20]line Безнал.: 0.00 [17:09:20]line Место: АЗС № 108 "Партнер Нефть" [17:09:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:09:20]line СНО: Общий режим [17:09:20]line Чек 208 15.04.2024 17:09 [17:09:20]line Смена: 117 ФФД: 1.0 [17:09:20]line ЗНМ: 0300000027 [17:09:20]line РНМ: 0000138879044617 [17:09:20]line Версия ККМ: 001 [17:09:20]line ФМ: 0000000000963154 [17:09:20]line ФД: 29614 [17:09:20]line ФПД: 46085240830479 [17:09:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T170919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29614&fm=46085240830479&tin=02508201610067®Number=0000138879044617&sum=65700 [17:09:20]OFD Sender: Processing packet 29614 [packets to send 8, broken 7] [17:09:20]ProducePacketName [17:09:20]name=ofd_packets/00029614 [17:09:20]OFD Sender: To server: pG, [17:09:20]CommunicateWithHost lk.salyk.kg:30040 [17:09:20]ConnectInit lk.salyk.kg [17:09:20]written 0, free lines is 4095 [17:09:20]Connected sock=10 [17:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 04 A9 06 01 11 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 4C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 06 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1B 00 00 00 00 07 04 06 00 A4 00 01 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 3F 5F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 73 00 00 35 04 06 00 29 EA 0E 68 BA 0F 68 2D E7 D0 8C D4 07 7B [17:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 28 39 47 00 C0 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 73 00 00 F4 03 04 00 E0 09 1D 66 B6 04 01 00 00 09 CD C4 7F B4 FD 12 1D [17:09:20]CommunicateWithHost err = 0 [17:09:20]CheckOFDResponse [17:09:20]1017 (14) - 77093643461234 [17:09:20]1041 (16) - 0000000000963154 [17:09:20]1040 (4) - 29614 [17:09:20]1012 (4) - 15.04.2024 11:05 [17:09:20]1206 (1) - 0 [17:09:20]OFD Sender: Remove packet 29614 [17:09:20]ProducePacketName [17:09:20]name=ofd_packets/00029614 [17:09:21]NVStorageDeleteData [17:09:21]Write to MH i2c: 01 00 00 ED 0A F7 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 D8 0C E2 [17:09:21]RasterBufferAndPrint [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]written 0, free lines is 3298 [17:09:21]MH_Cut [17:09:21]Write to MH i2c: D1 01 00 F4 0A 01 D0 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 01 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 01 00 F4 0A 00 CF [17:09:21]Write to MH i2c: 01 00 00 F5 0A FF [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]OFD Sender: No OFD packet to send [17:09:21]*** Cut start [17:09:21]*** Partial cut [17:09:21]*** CUTSNS_PIN = 1 [17:09:22]*** CUTSNS_PIN = 0 [17:09:22]*** Brake cut motor [17:09:22]Read from MH i2c: 01 [17:09:22]MH_I2C_Read... [17:09:22]*** Stop cut motor [17:09:22]*** Cut end [17:09:22]Read from MH i2c: 01 07 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [17:09:22]process_action close_receipt done [17:09:22]requested_data is exist [17:09:22]produce_requested_data [17:09:22]requested_item fm.sn is exist - process it [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 11 00 00 [17:09:22]Write to MH i2c: E2 08 00 F6 0A 80 11 00 00 00 00 00 00 7A [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:22]Read from MH i2c: E2 17 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 17 00 F6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [17:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:22]wFMCommunicate OK [17:09:22]requested_item fd.num is exist - process it [17:09:22]SAM_PROTO_GetFieldsCounters [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 00 00 [17:09:22]Write to MH i2c: E2 08 00 F7 0A 80 13 00 00 00 00 00 00 7D [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 F7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 73 00 00 0E 04 04 00 75 00 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 C1 [17:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 73 00 00 0E 04 04 00 75 00 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:09:22]wFMCommunicate OK [17:09:22]SAM_PROTO_GetFieldsCounters done [17:09:22]requested_item shift.num is exist - process it [17:09:22]requested_item shift.opened is exist - process it [17:09:22]req_shift_opened [17:09:22]FM_GetShiftState [17:09:22]SAM_PROTO_GetShiftState [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 01 00 [17:09:22]Write to MH i2c: E2 08 00 F8 0A 80 13 01 00 00 00 00 00 7F [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 0E 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 0E 00 F8 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 73 [17:09:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:09:22]wFMCommunicate OK [17:09:22]SAM_PROTO_GetShiftState done [17:09:22]FM_GetShiftState done [17:09:22]req_shift_opened done [17:09:22]requested_item shift.open_date is exist - process it [17:09:22]req_shift_open_date [17:09:22]req_shift_open_date done [17:09:22]produce_requested_data done [17:09:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29614,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:09:22]process_action_free close_receipt [17:09:22]json_value_free [17:09:22]json_value_free done [17:09:22]process_json_proto returns [17:09:22]Send response to host [17:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29614,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:09:22]free response buf [17:09:22]execute_script done [17:09:22]execute_script returns [17:09:22]free content buf [17:09:22]Sock 7.Close socket [17:09:22]Sock 7.Thread stoped [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]accept exits with 9 [17:11:56]New connection [17:11:56]New thread 3066965348 created [17:11:56]Thread 3067108708 joined [17:11:56]Waiting for new connection... [17:11:56] Sock 9.Parse request [17:11:56]Sock 9.Check first char [17:11:56]Sock 9.First char is OK [17:11:56]request: POST /json_proto HTTP/1.0 [17:11:56]Method: POST [17:11:56]URL: /json_proto [17:11:56]Method is POST - this is cgi request [17:11:56]url: /json_proto [17:11:56]query_string will be loaded in cgi processing [17:11:56]execute_cgi json_proto POST (null) [17:11:56]execute_cgi path=json_proto method=POST [17:11:56]POST find Content-Length [17:11:56]Host: 172.17.33.3:8080 [17:11:56]Content-Length: 215 [17:11:56]Content-Type: application/json [17:11:56] [17:11:56]POST finish read [17:11:56]Found Content-Length = 215 [17:11:56]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" ] } } [17:11:56]execute_script... [17:11:56]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" ] } } [17:11:56]POST & json_proto [17:11:56]process_json_proto [17:11:56]json parsed OK: [17:11:56]protocol is kg_v1.0 [17:11:56]action value=get_value [17:11:56]process_action get_value [17:11:56]cmd_get_value [17:11:56]process_action get_value done [17:11:56]requested_data is exist [17:11:56]produce_requested_data [17:11:56]requested_item kkm.sn is exist - process it [17:11:56]requested_item kkm.ver is exist - process it [17:11:56]requested_item fm.sn is exist - process it [17:11:56]wFMCommunicate request_size=4 [17:11:56]MH_SAM_APDU [17:11:56]CAPDU: 80 11 00 00 [17:11:56]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [17:11:56]Write i2c OK [17:11:56]MH_I2C_Read... [17:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:56]Read from MH i2c: E2 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 17 00 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [17:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:11:56]wFMCommunicate OK [17:11:56]requested_item fd.num is exist - process it [17:11:56]SAM_PROTO_GetFieldsCounters [17:11:56]wFMCommunicate request_size=4 [17:11:56]MH_SAM_APDU [17:11:56]CAPDU: 80 13 00 00 [17:11:56]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [17:11:56]Write i2c OK [17:11:56]MH_I2C_Read... [17:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:56]Read from MH i2c: E2 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 62 00 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 62 00 FA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 73 00 00 0E 04 04 00 75 00 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 C4 [17:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 73 00 00 0E 04 04 00 75 00 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:11:56]wFMCommunicate OK [17:11:56]SAM_PROTO_GetFieldsCounters done [17:11:56]requested_item shift.num is exist - process it [17:11:56]requested_item shift.opened is exist - process it [17:11:56]req_shift_opened [17:11:56]FM_GetShiftState [17:11:56]SAM_PROTO_GetShiftState [17:11:56]wFMCommunicate request_size=4 [17:11:56]MH_SAM_APDU [17:11:56]CAPDU: 80 13 01 00 [17:11:56]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [17:11:56]Write i2c OK [17:11:56]MH_I2C_Read... [17:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:56]Read from MH i2c: E2 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 0E 00 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 76 [17:11:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:11:56]wFMCommunicate OK [17:11:56]SAM_PROTO_GetShiftState done [17:11:56]FM_GetShiftState done [17:11:56]req_shift_opened done [17:11:56]requested_item shift.open_date is exist - process it [17:11:56]req_shift_open_date [17:11:56]req_shift_open_date done [17:11:56]produce_requested_data done [17:11:56]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29614,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:11:56]process_action_free get_value [17:11:56]json_value_free [17:11:56]json_value_free done [17:11:56]process_json_proto returns [17:11:56]Send response to host [17:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29614,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:11:56]free response buf [17:11:56]execute_script done [17:11:56]execute_script returns [17:11:56]free content buf [17:11:56]Sock 9.Close socket [17:11:56]Sock 9.Thread stoped [17:11:56]accept exits with 7 [17:11:56]New connection [17:11:56]New thread 3067108708 created [17:11:56]Thread 3066965348 joined [17:11:56]Waiting for new connection... [17:11:56] Sock 7.Parse request [17:11:56]Sock 7.Check first char [17:11:56]Sock 7.First char is OK [17:11:56]request: POST /json_proto HTTP/1.0 [17:11:56]Method: POST [17:11:56]URL: /json_proto [17:11:56]Method is POST - this is cgi request [17:11:56]url: /json_proto [17:11:56]query_string will be loaded in cgi processing [17:11:56]execute_cgi json_proto POST (null) [17:11:56]execute_cgi path=json_proto method=POST [17:11:56]POST find Content-Length [17:11:56]Host: 172.17.33.3:8080 [17:11:56]Content-Length: 331 [17:11:56]Content-Type: application/json [17:11:56] [17:11:56]POST finish read [17:11:56]Found Content-Length = 331 [17:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:56]execute_script... [17:11:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:11:56]POST & json_proto [17:11:56]process_json_proto [17:11:56]json parsed OK: [17:11:56]protocol is kg_v1.0 [17:11:56]action value=get_value [17:11:56]process_action get_value [17:11:56]cmd_get_value [17:11:56]process_action get_value done [17:11:56]requested_data is exist [17:11:56]produce_requested_data [17:11:56]requested_item fm.sale.total is exist - process it [17:11:56]SAM_PROTO_GetFMData [17:11:56]wFMCommunicate request_size=4 [17:11:56]MH_SAM_APDU [17:11:56]CAPDU: 80 13 03 00 [17:11:56]Write to MH i2c: E2 08 00 FC 0A 80 13 03 00 00 00 00 00 85 [17:11:56]Write i2c OK [17:11:56]MH_I2C_Read... [17:11:56]OFD Sender: No OFD packet to send [17:11:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:11:56]Read from MH i2c: E2 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 FD 00 [17:11:56]MH_I2C_Read... [17:11:56]Read from MH i2c: E2 FD 00 FC 0A 00 C3 04 85 04 BF 04 6E 04 04 00 C4 72 00 00 69 04 A1 00 6F 04 04 00 5A 6F 00 00 B1 04 04 00 FF 0E 76 B5 70 04 04 00 10 E1 68 73 72 04 04 00 EF 2D 0D 42 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 D1 24 46 13 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 96 24 9B 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 9C 00 6F 04 04 00 6A 03 00 00 B1 04 04 00 44 04 00 0D 70 04 04 00 44 04 00 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 74 61 01 EF 03 09 00 F6 90 00 79 [17:11:56]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 C4 72 00 00 69 04 A1 00 6F 04 04 00 5A 6F 00 00 B1 04 04 00 FF 0E 76 B5 70 04 04 00 10 E1 68 73 72 04 04 00 EF 2D 0D 42 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 D1 24 46 13 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 96 24 9B 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 9C 00 6F 04 04 00 6A 03 00 00 B1 04 04 00 44 04 00 0D 70 04 04 00 44 04 00 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 74 61 01 EF 03 09 00 F6 90 00 [17:11:56]wFMCommunicate OK [17:11:56]wFMCommunicate request_size=4 [17:11:56]MH_SAM_APDU [17:11:56]CAPDU: 80 17 00 00 [17:11:56]Write to MH i2c: E2 08 00 FD 0A 80 17 00 00 00 00 00 00 87 [17:11:56]Write i2c OK [17:11:56]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 FD 0A 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 73 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CF [17:11:57]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 73 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 17 00 00 [17:11:57]Write to MH i2c: E2 08 00 FE 0A 80 17 00 00 00 00 00 00 88 [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 FE 0A 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [17:11:57]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 17 00 00 [17:11:57]Write to MH i2c: E2 08 00 FF 0A 80 17 00 00 00 00 00 00 89 [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 FD 00 FF 0A 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [17:11:57]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:11:57]wFMCommunicate OK [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 17 00 00 [17:11:57]Write to MH i2c: E2 08 00 00 0B 80 17 00 00 00 00 00 00 8B [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [17:11:57]Read from MH i2c: E2 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 E0 00 [17:11:57]MH_I2C_Read... [17:11:57]Read from MH i2c: E2 E0 00 00 0B 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [17:11:57]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:11:57]wFMCommunicate OK [17:11:57]SAM_PROTO_GetFMData done [17:11:57]requested_item fm.sale_refund.total is exist - process it [17:11:57]requested_item fm.buy.total is exist - process it [17:11:57]requested_item shift.sale.total is exist - process it [17:11:57]SAM_PROTO_GetShiftData [17:11:57]wFMCommunicate request_size=4 [17:11:57]MH_SAM_APDU [17:11:57]CAPDU: 80 13 02 00 [17:11:57]Write to MH i2c: E2 08 00 01 0B 80 13 02 00 00 00 00 00 8A [17:11:57]Write i2c OK [17:11:57]MH_I2C_Read... [17:11:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:11:58]Read from MH i2c: E2 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 01 0B 00 BA 04 AA 04 B6 04 6E 04 04 00 D0 00 00 00 69 04 9D 00 6F 04 04 00 CD 00 00 00 B1 04 04 00 B3 FA 57 01 70 04 03 00 EC C9 B2 72 04 03 00 C7 30 A5 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 1C 89 24 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 66 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 33 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 48 [17:11:58]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 D0 00 00 00 69 04 9D 00 6F 04 04 00 CD 00 00 00 B1 04 04 00 B3 FA 57 01 70 04 03 00 EC C9 B2 72 04 03 00 C7 30 A5 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 1C 89 24 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 66 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 64 08 70 04 03 00 70 64 08 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 33 E4 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:11:58]wFMCommunicate OK [17:11:58]wFMCommunicate request_size=4 [17:11:58]MH_SAM_APDU [17:11:58]CAPDU: 80 17 00 00 [17:11:58]Write to MH i2c: E2 08 00 02 0B 80 17 00 00 00 00 00 00 8D [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:58]Read from MH i2c: E2 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 02 0B 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 4E [17:11:58]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 04 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [17:11:58]wFMCommunicate OK [17:11:58]wFMCommunicate request_size=4 [17:11:58]MH_SAM_APDU [17:11:58]CAPDU: 80 17 00 00 [17:11:58]Write to MH i2c: E2 08 00 03 0B 80 17 00 00 00 00 00 00 8E [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:58]Read from MH i2c: E2 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 [17:11:58]MH_I2C_Read... [17:11:58]Read from MH i2c: E2 FD 00 03 0B 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 BA [17:11:58]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [17:11:58]wFMCommunicate OK [17:11:58]wFMCommunicate request_size=4 [17:11:58]MH_SAM_APDU [17:11:58]CAPDU: 80 17 00 00 [17:11:58]Write to MH i2c: E2 08 00 04 0B 80 17 00 00 00 00 00 00 8F [17:11:58]Write i2c OK [17:11:58]MH_I2C_Read... [17:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:11:59]Read from MH i2c: E2 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 FD 00 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 FD 00 04 0B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 07 [17:11:59]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [17:11:59]wFMCommunicate OK [17:11:59]wFMCommunicate request_size=4 [17:11:59]MH_SAM_APDU [17:11:59]CAPDU: 80 17 00 00 [17:11:59]Write to MH i2c: E2 08 00 05 0B 80 17 00 00 00 00 00 00 90 [17:11:59]Write i2c OK [17:11:59]MH_I2C_Read... [17:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:11:59]Read from MH i2c: E2 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 D7 00 [17:11:59]MH_I2C_Read... [17:11:59]Read from MH i2c: E2 D7 00 05 0B 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [17:11:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:11:59]wFMCommunicate OK [17:11:59]SAM_PROTO_GetShiftData done [17:11:59]requested_item shift.sale.total_cash is exist - process it [17:11:59]requested_item shift.sale_refund.total is exist - process it [17:11:59]requested_item shift.sale_refund.total_cash is exist - process it [17:11:59]requested_item shift.buy.total is exist - process it [17:11:59]requested_item shift.buy.total_cash is exist - process it [17:11:59]produce_requested_data done [17:11:59]produce_requested_data return {"fm.sale.total":30444131.83,"fm.sale_refund.total":2181049.00,"fm.buy.total":0.00,"shift.sale.total":225430.27,"shift.sale.total_cash":117171.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:11:59]process_action_free get_value [17:11:59]json_value_free [17:11:59]json_value_free done [17:11:59]process_json_proto returns [17:11:59]Send response to host [17:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30444131.83,"fm.sale_refund.total":2181049.00,"fm.buy.total":0.00,"shift.sale.total":225430.27,"shift.sale.total_cash":117171.00,"shift.sale_refund.total":5500.00,"shift.sale_refund.total_cash":5500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:11:59]free response buf [17:11:59]execute_script done [17:11:59]execute_script returns [17:11:59]free content buf [17:11:59]Sock 7.Close socket [17:11:59]Sock 7.Thread stoped [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:09]accept exits with 9 [17:15:09]New connection [17:15:09]New thread 3066965348 created [17:15:09]Thread 3067108708 joined [17:15:09]Waiting for new connection... [17:15:09] Sock 9.Parse request [17:15:09]Sock 9.Check first char [17:15:09]Sock 9.First char is OK [17:15:09]request: POST /json_proto HTTP/1.0 [17:15:09]Method: POST [17:15:09]URL: /json_proto [17:15:09]Method is POST - this is cgi request [17:15:09]url: /json_proto [17:15:09]query_string will be loaded in cgi processing [17:15:09]execute_cgi json_proto POST (null) [17:15:09]execute_cgi path=json_proto method=POST [17:15:09]POST find Content-Length [17:15:09]Host: 172.17.33.3:8080 [17:15:09]Content-Length: 677 [17:15:09]Content-Type: application/json [17:15:09] [17:15:09]POST finish read [17:15:09]Found Content-Length = 677 [17:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:09]execute_script... [17:15:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:09]POST & json_proto [17:15:09]process_json_proto [17:15:09]json parsed OK: [17:15:09]protocol is kg_v1.0 [17:15:09]action value=close_receipt [17:15:09]process_action close_receipt [17:15:09]cmd_close_receipt [17:15:09]MH_GetDate [17:15:09]Write to MH i2c: F0 00 00 06 0B 00 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: F0 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: F0 09 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: F0 09 00 06 0B 00 9E 60 1D 66 23 5B 8F 65 FC [17:15:09]GetLastDocTimeStamp 1713200959 [17:15:09]current date 1713201310 [17:15:09]FM_GetShiftState [17:15:09]SAM_PROTO_GetShiftState [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 13 01 00 [17:15:09]Write to MH i2c: E2 08 00 07 0B 80 13 01 00 00 00 00 00 8F [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 0E 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 0E 00 07 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 83 [17:15:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:15:09]wFMCommunicate OK [17:15:09]SAM_PROTO_GetShiftState done [17:15:09]FM_GetShiftState done [17:15:09]opened in 1713140468 [17:15:09]opened+sec_in_day 1713226868 [17:15:09]quantity*price = 40046 [17:15:09]sum+1 = 40047 [17:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 209 15.04.2024 17:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29615 ФПД: 202317743056634 1/tax-web-control/client/api/v1/ticket?date=20240415T171510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29615&fm=202317743056634&tin=02508201610067®Number=0000138879044617&sum=40000 [17:15:10]StoreToDocumentArchive [17:15:10]shift 117 fd 29615 [17:15:10]save to /storage/0117/doc_00029615 [17:15:10]save last doc name /storage/0117/doc_00029615 to /storage/kkm_last_doc_name [17:15:10]save OK [17:15:10]Clear old archive folders... [17:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:10]tlvbuf is 01A93550 [17:15:10]SAM_PROTO_ClearQueue [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 09 00 00 [17:15:10]Write to MH i2c: E2 08 00 14 0B 80 09 00 00 00 00 00 00 91 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]SAM_PROTO_ClearQueue done [17:15:10]KKMCreateOFDPacket [17:15:10]OFDProtocolAddRootSTLVToBuf [17:15:10]FM_MakeSignedData [17:15:10]FM_MakeSignedData [17:15:10]SAM_PROTO_SignData [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 0D 01 02 [17:15:10]Write to MH i2c: E2 08 00 15 0B 80 0D 01 02 00 00 00 00 99 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]wFMCommunicate request_size=255 [17:15:10]MH_SAM_APDU [17:15: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 D1 00 00 00 F4 03 04 00 9E 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 73 00 00 35 04 06 00 B8 [17:15:10]Write to MH i2c: E2 02 01 16 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 D1 00 00 00 F4 03 04 00 9E 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 73 00 00 35 04 06 00 B8 00 00 D8 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 16 0B 00 90 00 95 [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]wFMCommunicate request_size=10 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 02 02 05 01 C5 34 E6 FA [17:15:11]Write to MH i2c: E2 0D 00 17 0B 80 0D 02 02 05 00 01 C5 34 E6 FA 00 00 80 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [17:15:11]RAPDU: 90 00 [17:15:11]wFMCommunicate OK [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 0D 03 02 [17:15:11]Write to MH i2c: E2 08 00 18 0B 80 0D 03 02 00 00 00 00 9E [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0B 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0B 00 18 0B 00 BC D2 94 0B A8 B6 39 65 90 00 C8 [17:15:11]RAPDU: BC D2 94 0B A8 B6 39 65 90 00 [17:15:11]wFMCommunicate OK [17:15:11]SAM_PROTO_SignData done [17:15:11]FM_MakeSignedData done [17:15:11]CreateOFDProtocolMessage [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 11 00 00 [17:15:11]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 17 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [17:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:15:11]wFMCommunicate OK [17:15:11]CreateOFDProtocolMessage done [17:15:11]OFDSenderStorePacket 29615 [17:15:11]StoreOFDPacket docnum=29615 [17:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC F4 07 01 CC 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 D1 00 00 00 F4 03 04 00 9E 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 73 00 00 35 04 06 00 B8 01 C5 34 E6 FA BC D2 94 0B A8 B6 39 65 [17:15:11]CheckFolder [17:15:11]dirname=/storage/ofd_packets [17:15:11]CheckFolder done [17:15:11]ProducePacketName [17:15:11]name=ofd_packets/00029615 [17:15:11]NVStorageSaveData ofd_packets/00029615 [17:15:11]File name is /storage/ofd_packets/00029615 [17:15:11]Write 301 bytes [17:15:11]NVStorageSaveData done [17:15:11]OFDSenderStorePacket done [17:15:11]KKMCreateOFDPacket done [17:15:11]NVStorageSaveData kkm_last_timestamp [17:15:11]File name is /storage/kkm_last_timestamp [17:15:11]Write 4 bytes [17:15:11]NVStorageSaveData done [17:15:11]ExternCall_PrintAddStr [17:15:11]wPrintStart [17:15:11]Write to MH i2c: 01 00 00 1A 0B 25 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [17:15:11]RasterBufferAndPrint [17:15:11]line Счет N : (1)348059 [17:15:11]line ИНН: 02508201610067 [17:15:11]line Контрольно-Кассовый Чек [17:15:11]line ПРОДАЖА [17:15:11]line ТРК (МРК, ГНК) : 23 [17:15:11]line Товар: 2710124130 [17:15:11]line Аи-92-К-5 [17:15:11]line 6.180 * 64.80 [17:15:11]line = 400.46 [17:15:11]line НДС 12% НСП 1% [17:15:11]line > о реализуемом товаре [17:15:11]line ОКРУГЛЕНИЕ: -0.46 [17:15:11]line ИТОГО: 400.00 [17:15:11]line Внесено: 400.00 [17:15:11]line СДАЧА: 0.00 [17:15:11]line НСП 1% : 3.54 [17:15:11]line НДС 12% : 42.53 [17:15:11]line Наличными: 400.00 [17:15:11]line Безнал.: 0.00 [17:15:11]line Место: АЗС № 108 "Партнер Нефть" [17:15:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:15:11]line СНО: Общий режим [17:15:11]line Чек 209 15.04.2024 17:15 [17:15:11]line Смена: 117 ФФД: 1.0 [17:15:11]line ЗНМ: 0300000027 [17:15:11]line РНМ: 0000138879044617 [17:15:11]line Версия ККМ: 001 [17:15:11]line ФМ: 0000000000963154 [17:15:11]line ФД: 29615 [17:15:11]line ФПД: 202317743056634 [17:15:11]line 1/tax-web-control/client/api/v1/ticket?date=20240415T171510&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29615&fm=202317743056634&tin=02508201610067®Number=0000138879044617&sum=40000 [17:15:11]OFD Sender: Processing packet 29615 [packets to send 8, broken 7] [17:15:11]ProducePacketName [17:15:11]name=ofd_packets/00029615 [17:15:11]OFD Sender: To server: pG, [17:15:11]CommunicateWithHost lk.salyk.kg:30040 [17:15:11]ConnectInit lk.salyk.kg [17:15:11]written 0, free lines is 4095 [17:15:11]Connected sock=10 [17:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 DC F4 07 01 CC 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 D1 00 00 00 F4 03 04 00 9E 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 73 00 00 35 04 06 00 B8 01 C5 34 E6 FA BC D2 94 0B A8 B6 39 65 [17:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6D 16 47 00 9F 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 39 36 33 31 35 34 10 04 04 00 AF 73 00 00 F4 03 04 00 3F 0B 1D 66 B6 04 01 00 00 5C CC 16 B1 E1 35 26 E5 [17:15:11]CommunicateWithHost err = 0 [17:15:11]CheckOFDResponse [17:15:11]1017 (14) - 77093643461234 [17:15:11]1041 (16) - 0000000000963154 [17:15:11]1040 (4) - 29615 [17:15:11]1012 (4) - 15.04.2024 11:10 [17:15:11]1206 (1) - 0 [17:15:11]OFD Sender: Remove packet 29615 [17:15:11]ProducePacketName [17:15:11]name=ofd_packets/00029615 [17:15:11]NVStorageDeleteData [17:15:12]Write to MH i2c: 01 00 00 44 0B 4F [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 07 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 D0 0C 32 [17:15:12]RasterBufferAndPrint [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]line [17:15:12]written 0, free lines is 3287 [17:15:12]MH_Cut [17:15:12]Write to MH i2c: D1 01 00 4B 0B 01 28 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: D1 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: D1 01 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: D1 01 00 4B 0B 00 27 [17:15:12]Write to MH i2c: 01 00 00 4C 0B 57 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]OFD Sender: No OFD packet to send [17:15:12]*** Cut start [17:15:12]*** Partial cut [17:15:12]*** CUTSNS_PIN = 1 [17:15:13]*** CUTSNS_PIN = 0 [17:15:13]*** Brake cut motor [17:15:13]Read from MH i2c: 01 [17:15:13]MH_I2C_Read... [17:15:13]*** Stop cut motor [17:15:13]*** Cut end [17:15:13]Read from MH i2c: 01 07 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: 01 07 00 4C 0B 00 00 00 00 00 FF 0F 6C [17:15:13]process_action close_receipt done [17:15:13]requested_data is exist [17:15:13]produce_requested_data [17:15:13]requested_item fm.sn is exist - process it [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 11 00 00 [17:15:13]Write to MH i2c: E2 08 00 4D 0B 80 11 00 00 00 00 00 00 D2 [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 17 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 17 00 4D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [17:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:15:13]wFMCommunicate OK [17:15:13]requested_item fd.num is exist - process it [17:15:13]SAM_PROTO_GetFieldsCounters [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 13 00 00 [17:15:13]Write to MH i2c: E2 08 00 4E 0B 80 13 00 00 00 00 00 00 D5 [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 62 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 62 00 4E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 73 00 00 0E 04 04 00 75 00 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 1D [17:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 73 00 00 0E 04 04 00 75 00 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:15:13]wFMCommunicate OK [17:15:13]SAM_PROTO_GetFieldsCounters done [17:15:13]requested_item shift.num is exist - process it [17:15:13]requested_item shift.opened is exist - process it [17:15:13]req_shift_opened [17:15:13]FM_GetShiftState [17:15:13]SAM_PROTO_GetShiftState [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 13 01 00 [17:15:13]Write to MH i2c: E2 08 00 4F 0B 80 13 01 00 00 00 00 00 D7 [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 4F 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CB [17:15:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:15:13]wFMCommunicate OK [17:15:13]SAM_PROTO_GetShiftState done [17:15:13]FM_GetShiftState done [17:15:13]req_shift_opened done [17:15:13]requested_item shift.open_date is exist - process it [17:15:13]req_shift_open_date [17:15:13]req_shift_open_date done [17:15:13]produce_requested_data done [17:15:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29615,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:15:13]process_action_free close_receipt [17:15:13]json_value_free [17:15:13]json_value_free done [17:15:13]process_json_proto returns [17:15:13]Send response to host [17:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29615,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:15:13]free response buf [17:15:13]execute_script done [17:15:13]execute_script returns [17:15:13]free content buf [17:15:13]Sock 9.Close socket [17:15:13]Sock 9.Thread stoped [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:30]accept exits with 7 [17:16:30]New connection [17:16:30]New thread 3067108708 created [17:16:30]Thread 3066965348 joined [17:16:30]Waiting for new connection... [17:16:30] Sock 7.Parse request [17:16:30]Sock 7.Check first char [17:16:30]Sock 7.First char is OK [17:16:30]request: POST /json_proto HTTP/1.0 [17:16:30]Method: POST [17:16:30]URL: /json_proto [17:16:30]Method is POST - this is cgi request [17:16:30]url: /json_proto [17:16:30]query_string will be loaded in cgi processing [17:16:30]execute_cgi json_proto POST (null) [17:16:30]execute_cgi path=json_proto method=POST [17:16:30]POST find Content-Length [17:16:30]Host: 172.17.33.3:8080 [17:16:30]Content-Length: 682 [17:16:30]Content-Type: application/json [17:16:30] [17:16:30]POST finish read [17:16:30]Found Content-Length = 682 [17:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.730, "sum" : 1343.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1343.00, "total" : 1343.00, "payments": [ { "type": 0, "sum" : 1343.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:30]execute_script... [17:16: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)348060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.730, "sum" : 1343.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1343.00, "total" : 1343.00, "payments": [ { "type": 0, "sum" : 1343.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:30]POST & json_proto [17:16:30]process_json_proto [17:16:30]json parsed OK: [17:16:30]protocol is kg_v1.0 [17:16:30]action value=close_receipt [17:16:30]process_action close_receipt [17:16:30]cmd_close_receipt [17:16:30]MH_GetDate [17:16:30]Write to MH i2c: F0 00 00 50 0B 4A [17:16:30]Write i2c OK [17:16:30]MH_I2C_Read... [17:16:30]Read from MH i2c: F0 [17:16:30]MH_I2C_Read... [17:16:30]Read from MH i2c: F0 09 00 [17:16:30]MH_I2C_Read... [17:16:30]Read from MH i2c: F0 09 00 50 0B 00 EF 60 1D 66 23 5B 8F 65 97 [17:16:30]GetLastDocTimeStamp 1713201310 [17:16:30]current date 1713201391 [17:16:30]FM_GetShiftState [17:16:30]SAM_PROTO_GetShiftState [17:16:30]wFMCommunicate request_size=4 [17:16:30]MH_SAM_APDU [17:16:30]CAPDU: 80 13 01 00 [17:16:30]Write to MH i2c: E2 08 00 51 0B 80 13 01 00 00 00 00 00 D9 [17:16:30]Write i2c OK [17:16:30]MH_I2C_Read... [17:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:30]Read from MH i2c: E2 [17:16:30]MH_I2C_Read... [17:16:30]Read from MH i2c: E2 0E 00 [17:16:30]MH_I2C_Read... [17:16:30]Read from MH i2c: E2 0E 00 51 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CD [17:16:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:16:30]wFMCommunicate OK [17:16:30]SAM_PROTO_GetShiftState done [17:16:30]FM_GetShiftState done [17:16:30]opened in 1713140468 [17:16:30]opened+sec_in_day 1713226868 [17:16:30]quantity*price = 134330 [17:16:30]sum+1 = 134331 [17:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1343.00 Внесено: 1343.00 СДАЧА: 0.00 НСП 1% : 11.89 НДС 12% : 142.65 Наличными: 1343.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 210 15.04.2024 17:16 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29616 ФПД: 118757935337508 1/tax-web-control/client/api/v1/ticket?date=20240415T171631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29616&fm=118757935337508&tin=02508201610067®Number=0000138879044617&sum=134300 [17:16:31]StoreToDocumentArchive [17:16:31]shift 117 fd 29616 [17:16:31]save to /storage/0117/doc_00029616 [17:16:31]save last doc name /storage/0117/doc_00029616 to /storage/kkm_last_doc_name [17:16:31]save OK [17:16:31]Clear old archive folders... [17:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:31]tlvbuf is 01A94C90 [17:16:31]SAM_PROTO_ClearQueue [17:16:31]wFMCommunicate request_size=4 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 09 00 00 [17:16:31]Write to MH i2c: E2 08 00 5E 0B 80 09 00 00 00 00 00 00 DB [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [17:16:31]RAPDU: 90 00 [17:16:31]wFMCommunicate OK [17:16:31]SAM_PROTO_ClearQueue done [17:16:31]KKMCreateOFDPacket [17:16:31]OFDProtocolAddRootSTLVToBuf [17:16:31]FM_MakeSignedData [17:16:31]FM_MakeSignedData [17:16:31]SAM_PROTO_SignData [17:16:31]wFMCommunicate request_size=4 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 0D 01 02 [17:16:31]Write to MH i2c: E2 08 00 5F 0B 80 0D 01 02 00 00 00 00 E3 [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [17:16:31]RAPDU: 90 00 [17:16:31]wFMCommunicate OK [17:16:31]wFMCommunicate request_size=255 [17:16:31]MH_SAM_APDU [17:16: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 FA 50 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 37 00 00 00 00 07 04 06 00 9C 0C 02 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 EF 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 73 00 00 35 04 06 00 6C [17:16:31]Write to MH i2c: E2 02 01 60 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 FA 50 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 37 00 00 00 00 07 04 06 00 9C 0C 02 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 EF 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 73 00 00 35 04 06 00 6C 00 00 1A [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [17:16:31]RAPDU: 90 00 [17:16:31]wFMCommunicate OK [17:16:31]wFMCommunicate request_size=10 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 0D 02 02 05 02 7C 8C D0 24 [17:16:31]Write to MH i2c: E2 0D 00 61 0B 80 0D 02 02 05 00 02 7C 8C D0 24 00 00 EE [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [17:16:31]RAPDU: 90 00 [17:16:31]wFMCommunicate OK [17:16:31]wFMCommunicate request_size=4 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 0D 03 02 [17:16:31]Write to MH i2c: E2 08 00 62 0B 80 0D 03 02 00 00 00 00 E8 [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 0B 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 0B 00 62 0B 00 AE 2B E3 0B 69 7A 77 05 90 00 0F [17:16:31]RAPDU: AE 2B E3 0B 69 7A 77 05 90 00 [17:16:31]wFMCommunicate OK [17:16:31]SAM_PROTO_SignData done [17:16:31]FM_MakeSignedData done [17:16:31]CreateOFDProtocolMessage [17:16:31]wFMCommunicate request_size=4 [17:16:31]MH_SAM_APDU [17:16:31]CAPDU: 80 11 00 00 [17:16:31]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:31]Read from MH i2c: E2 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 17 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [17:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:31]wFMCommunicate OK [17:16:31]CreateOFDProtocolMessage done [17:16:31]OFDSenderStorePacket 29616 [17:16:31]StoreOFDPacket docnum=29616 [17:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A A7 07 01 F8 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 37 00 00 00 00 07 04 06 00 9C 0C 02 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 EF 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 73 00 00 35 04 06 00 6C 02 7C 8C D0 24 AE 2B E3 0B 69 7A 77 05 [17:16:31]CheckFolder [17:16:31]dirname=/storage/ofd_packets [17:16:31]CheckFolder done [17:16:31]ProducePacketName [17:16:31]name=ofd_packets/00029616 [17:16:31]NVStorageSaveData ofd_packets/00029616 [17:16:31]File name is /storage/ofd_packets/00029616 [17:16:31]Write 301 bytes [17:16:31]NVStorageSaveData done [17:16:31]OFDSenderStorePacket done [17:16:31]KKMCreateOFDPacket done [17:16:31]NVStorageSaveData kkm_last_timestamp [17:16:31]File name is /storage/kkm_last_timestamp [17:16:31]Write 4 bytes [17:16:31]NVStorageSaveData done [17:16:31]ExternCall_PrintAddStr [17:16:31]wPrintStart [17:16:31]Write to MH i2c: 01 00 00 64 0B 6F [17:16:31]Write i2c OK [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: 01 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: 01 07 00 [17:16:31]MH_I2C_Read... [17:16:31]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 FF 0F 84 [17:16:31]RasterBufferAndPrint [17:16:31]line Счет N : (1)348060 [17:16:31]line ИНН: 02508201610067 [17:16:31]line Контрольно-Кассовый Чек [17:16:31]line ПРОДАЖА [17:16:31]line ТРК (МРК, ГНК) : 32 [17:16:31]line Товар: 2710124130 [17:16:31]line Аи-92-К-5 [17:16:31]line 20.730 * 64.80 [17:16:31]line = 1343.30 [17:16:31]line НДС 12% НСП 1% [17:16:31]line > о реализуемом товаре [17:16:31]line ОКРУГЛЕНИЕ: -0.30 [17:16:31]line ИТОГО: 1343.00 [17:16:31]line Внесено: 1343.00 [17:16:31]line СДАЧА: 0.00 [17:16:31]line НСП 1% : 11.89 [17:16:31]line НДС 12% : 142.65 [17:16:31]line Наличными: 1343.00 [17:16:31]line Безнал.: 0.00 [17:16:31]line Место: АЗС № 108 "Партнер Нефть" [17:16:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:16:31]line СНО: Общий режим [17:16:31]line Чек 210 15.04.2024 17:16 [17:16:31]line Смена: 117 ФФД: 1.0 [17:16:31]line ЗНМ: 0300000027 [17:16:31]line РНМ: 0000138879044617 [17:16:31]line Версия ККМ: 001 [17:16:31]line ФМ: 0000000000963154 [17:16:31]line ФД: 29616 [17:16:31]line ФПД: 118757935337508 [17:16:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T171631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29616&fm=118757935337508&tin=02508201610067®Number=0000138879044617&sum=134300 [17:16:32]OFD Sender: Processing packet 29616 [packets to send 8, broken 7] [17:16:32]ProducePacketName [17:16:32]name=ofd_packets/00029616 [17:16:32]OFD Sender: To server: pG, [17:16:32]CommunicateWithHost lk.salyk.kg:30040 [17:16:32]ConnectInit lk.salyk.kg [17:16:32]written 0, free lines is 4095 [17:16:32]Connected sock=10 [17:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A A7 07 01 F8 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 0C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 0C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 37 00 00 00 00 07 04 06 00 9C 0C 02 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 EF 60 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 73 00 00 35 04 06 00 6C 02 7C 8C D0 24 AE 2B E3 0B 69 7A 77 05 [17:16:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 9D 47 00 54 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 73 00 00 F4 03 04 00 8F 0B 1D 66 B6 04 01 00 00 CF CC BB 5E 63 09 74 34 [17:16:32]CommunicateWithHost err = 0 [17:16:32]CheckOFDResponse [17:16:32]1017 (14) - 77093643461234 [17:16:32]1041 (16) - 0000000000963154 [17:16:32]1040 (4) - 29616 [17:16:32]1012 (4) - 15.04.2024 11:12 [17:16:32]1206 (1) - 0 [17:16:32]OFD Sender: Remove packet 29616 [17:16:32]ProducePacketName [17:16:32]name=ofd_packets/00029616 [17:16:32]NVStorageDeleteData [17:16:32]Write to MH i2c: 01 00 00 8E 0B 99 [17:16:32]Write i2c OK [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: 01 [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: 01 07 00 [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: 01 07 00 8E 0B 00 00 00 00 00 D4 0C 80 [17:16:32]RasterBufferAndPrint [17:16:32]line [17:16:32]line [17:16:32]line [17:16:32]line [17:16:32]line [17:16:32]written 0, free lines is 3290 [17:16:32]MH_Cut [17:16:32]Write to MH i2c: D1 01 00 95 0B 01 72 [17:16:32]Write i2c OK [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: D1 [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: D1 01 00 [17:16:32]MH_I2C_Read... [17:16:32]Read from MH i2c: D1 01 00 95 0B 00 71 [17:16:32]Write to MH i2c: 01 00 00 96 0B A1 [17:16:32]Write i2c OK [17:16:32]MH_I2C_Read... [17:16:32]OFD Sender: No OFD packet to send [17:16:33]*** Cut start [17:16:33]*** Partial cut [17:16:33]*** CUTSNS_PIN = 1 [17:16:33]*** CUTSNS_PIN = 0 [17:16:33]*** Brake cut motor [17:16:34]Read from MH i2c: 01 [17:16:34]MH_I2C_Read... [17:16:34]*** Stop cut motor [17:16:34]*** Cut end [17:16:34]Read from MH i2c: 01 07 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 07 00 96 0B 00 00 00 00 00 FF 0F B6 [17:16:34]process_action close_receipt done [17:16:34]requested_data is exist [17:16:34]produce_requested_data [17:16:34]requested_item fm.sn is exist - process it [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 11 00 00 [17:16:34]Write to MH i2c: E2 08 00 97 0B 80 11 00 00 00 00 00 00 1C [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 17 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 17 00 97 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [17:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:34]wFMCommunicate OK [17:16:34]requested_item fd.num is exist - process it [17:16:34]SAM_PROTO_GetFieldsCounters [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 13 00 00 [17:16:34]Write to MH i2c: E2 08 00 98 0B 80 13 00 00 00 00 00 00 1F [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 62 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 62 00 98 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 73 00 00 0E 04 04 00 75 00 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 6B [17:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 73 00 00 0E 04 04 00 75 00 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:16:34]wFMCommunicate OK [17:16:34]SAM_PROTO_GetFieldsCounters done [17:16:34]requested_item shift.num is exist - process it [17:16:34]requested_item shift.opened is exist - process it [17:16:34]req_shift_opened [17:16:34]FM_GetShiftState [17:16:34]SAM_PROTO_GetShiftState [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 13 01 00 [17:16:34]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 0E 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 15 [17:16:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:16:34]wFMCommunicate OK [17:16:34]SAM_PROTO_GetShiftState done [17:16:34]FM_GetShiftState done [17:16:34]req_shift_opened done [17:16:34]requested_item shift.open_date is exist - process it [17:16:34]req_shift_open_date [17:16:34]req_shift_open_date done [17:16:34]produce_requested_data done [17:16:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29616,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:16:34]process_action_free close_receipt [17:16:34]json_value_free [17:16:34]json_value_free done [17:16:34]process_json_proto returns [17:16:34]Send response to host [17:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29616,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:16:34]free response buf [17:16:34]execute_script done [17:16:34]execute_script returns [17:16:34]free content buf [17:16:34]Sock 7.Close socket [17:16:34]Sock 7.Thread stoped [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:49]accept exits with 9 [17:17:49]New connection [17:17:49]New thread 3066965348 created [17:17:49]Thread 3067108708 joined [17:17:49]Waiting for new connection... [17:17:49] Sock 9.Parse request [17:17:49]Sock 9.Check first char [17:17:49]Sock 9.First char is OK [17:17:49]request: POST /json_proto HTTP/1.0 [17:17:49]Method: POST [17:17:49]URL: /json_proto [17:17:49]Method is POST - this is cgi request [17:17:49]url: /json_proto [17:17:49]query_string will be loaded in cgi processing [17:17:49]execute_cgi json_proto POST (null) [17:17:49]execute_cgi path=json_proto method=POST [17:17:49]POST find Content-Length [17:17:49]Host: 172.17.33.3:8080 [17:17:49]Content-Length: 1209 [17:17:49]Content-Type: application/json [17:17:49] [17:17:49]POST finish read [17:17:49]Found Content-Length = 1209 [17:17:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348061\u000A15.04.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:49]execute_script... [17:17:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348061\u000A15.04.2024 16:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:49]POST & json_proto [17:17:49]process_json_proto [17:17:49]json parsed OK: [17:17:49]protocol is kg_v1.0 [17:17:49]action value=print_text [17:17:49]process_action print_text [17:17:49]cmd_print_text [17:17:49]ExternCall_PrintAddStr [17:17:49]wPrintStart [17:17:49]Write to MH i2c: 01 00 00 9A 0B A5 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0F BA [17:17:49]RasterBufferAndPrint [17:17:49]line *****ТОВАРНЫЙ ЧЕК***** [17:17:49]line АЗС 108 [17:17:49]line Партнер нефть [17:17:49]line 02508201610067 [17:17:49]line Кассир : Джумагулова Н. [17:17:49]line Счет N : (1)348061 [17:17:49]line 15.04.2024 16:59 [17:17:49]line ПРОДАЖА [17:17:49]line ТРК (МРК, ГНК): 61 [17:17:49]line Вид ГСМ : 2710194210 [17:17:49]line ДТ-К-5 [17:17:49]line 10.980 x 72.90 [17:17:49]line ИТОГ: 800.44 [17:17:49]line Тип оплаты: Талоны: Топливная Карта [17:17:49]line 02136 [17:17:49]line ______________________ [17:17:49]line (подпись) [17:17:49]written 0, free lines is 4095 [17:17:49]Write to MH i2c: 01 00 00 AF 0B BA [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 F4 0D C2 [17:17:49]RasterBufferAndPrint [17:17:49]line [17:17:49]line [17:17:49]line [17:17:49]line [17:17:49]line [17:17:49]written 0, free lines is 3574 [17:17:49]MH_Cut [17:17:49]Write to MH i2c: D1 01 00 B6 0B 01 93 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: D1 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: D1 01 00 [17:17:49]MH_I2C_Read... [17:17:49]Read from MH i2c: D1 01 00 B6 0B 00 92 [17:17:49]Write to MH i2c: 01 00 00 B7 0B C2 [17:17:49]Write i2c OK [17:17:49]MH_I2C_Read... [17:17:50]*** Cut start [17:17:50]*** Partial cut [17:17:50]*** CUTSNS_PIN = 1 [17:17:50]*** CUTSNS_PIN = 0 [17:17:50]*** Brake cut motor [17:17:50]Read from MH i2c: 01 [17:17:50]MH_I2C_Read... [17:17:50]*** Stop cut motor [17:17:50]*** Cut end [17:17:50]Read from MH i2c: 01 07 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [17:17:50]process_action print_text done [17:17:50]requested_data is exist [17:17:50]produce_requested_data [17:17:50]requested_item fm.sn is exist - process it [17:17:50]wFMCommunicate request_size=4 [17:17:50]MH_SAM_APDU [17:17:50]CAPDU: 80 11 00 00 [17:17:50]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:50]Read from MH i2c: E2 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: E2 17 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [17:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:17:50]wFMCommunicate OK [17:17:50]requested_item fd.num is exist - process it [17:17:50]SAM_PROTO_GetFieldsCounters [17:17:50]wFMCommunicate request_size=4 [17:17:50]MH_SAM_APDU [17:17:50]CAPDU: 80 13 00 00 [17:17:50]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 73 00 00 0E 04 04 00 75 00 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 8C [17:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 73 00 00 0E 04 04 00 75 00 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:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetFieldsCounters done [17:17:51]requested_item shift.num is exist - process it [17:17:51]requested_item shift.opened is exist - process it [17:17:51]req_shift_opened [17:17:51]FM_GetShiftState [17:17:51]SAM_PROTO_GetShiftState [17:17:51]wFMCommunicate request_size=4 [17:17:51]MH_SAM_APDU [17:17:51]CAPDU: 80 13 01 00 [17:17:51]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [17:17:51]Write i2c OK [17:17:51]MH_I2C_Read... [17:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:51]Read from MH i2c: E2 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 0E 00 [17:17:51]MH_I2C_Read... [17:17:51]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 36 [17:17:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:17:51]wFMCommunicate OK [17:17:51]SAM_PROTO_GetShiftState done [17:17:51]FM_GetShiftState done [17:17:51]req_shift_opened done [17:17:51]requested_item shift.open_date is exist - process it [17:17:51]req_shift_open_date [17:17:51]req_shift_open_date done [17:17:51]produce_requested_data done [17:17:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29616,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:17:51]process_action_free print_text [17:17:51]json_value_free [17:17:51]json_value_free done [17:17:51]process_json_proto returns [17:17:51]Send response to host [17:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29616,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:17:51]free response buf [17:17:51]execute_script done [17:17:51]execute_script returns [17:17:51]free content buf [17:17:51]Sock 9.Close socket [17:17:51]Sock 9.Thread stoped [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:17:58]accept exits with 7 [17:17:58]New connection [17:17:58]New thread 3067108708 created [17:17:58]Thread 3066965348 joined [17:17:58]Waiting for new connection... [17:17:58] Sock 7.Parse request [17:17:58]Sock 7.Check first char [17:17:58]Sock 7.First char is OK [17:17:58]request: POST /json_proto HTTP/1.0 [17:17:58]Method: POST [17:17:58]URL: /json_proto [17:17:58]Method is POST - this is cgi request [17:17:58]url: /json_proto [17:17:58]query_string will be loaded in cgi processing [17:17:58]execute_cgi json_proto POST (null) [17:17:58]execute_cgi path=json_proto method=POST [17:17:58]POST find Content-Length [17:17:58]Host: 172.17.33.3:8080 [17:17:58]Content-Length: 674 [17:17:58]Content-Type: application/json [17:17:58] [17:17:58]POST finish read [17:17:58]Found Content-Length = 674 [17:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:58]execute_script... [17:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:58]POST & json_proto [17:17:58]process_json_proto [17:17:58]json parsed OK: [17:17:58]protocol is kg_v1.0 [17:17:58]action value=close_receipt [17:17:58]process_action close_receipt [17:17:58]cmd_close_receipt [17:17:58]MH_GetDate [17:17:58]Write to MH i2c: F0 00 00 BB 0B B5 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: F0 09 00 BB 0B 00 47 61 1D 66 23 5B 8F 65 5B [17:17:58]GetLastDocTimeStamp 1713201391 [17:17:58]current date 1713201479 [17:17:58]FM_GetShiftState [17:17:58]SAM_PROTO_GetShiftState [17:17:58]wFMCommunicate request_size=4 [17:17:58]MH_SAM_APDU [17:17:58]CAPDU: 80 13 01 00 [17:17:58]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [17:17:58]Write i2c OK [17:17:58]MH_I2C_Read... [17:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:58]Read from MH i2c: E2 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 [17:17:58]MH_I2C_Read... [17:17:58]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 38 [17:17:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:17:58]wFMCommunicate OK [17:17:58]SAM_PROTO_GetShiftState done [17:17:58]FM_GetShiftState done [17:17:58]opened in 1713140468 [17:17:58]opened+sec_in_day 1713226868 [17:17:58]quantity*price = 30034 [17:17:58]sum+1 = 30036 [17:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 211 15.04.2024 17:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29617 ФПД: 6181717461463 1/tax-web-control/client/api/v1/ticket?date=20240415T171800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29617&fm=6181717461463&tin=02508201610067®Number=0000138879044617&sum=30000 [17:17:59]StoreToDocumentArchive [17:17:59]shift 117 fd 29617 [17:17:59]save to /storage/0117/doc_00029617 [17:17:59]save last doc name /storage/0117/doc_00029617 to /storage/kkm_last_doc_name [17:17:59]save OK [17:17:59]Clear old archive folders... [17:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:17:59]tlvbuf is B6F7E930 [17:17:59]SAM_PROTO_ClearQueue [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 09 00 00 [17:17:59]Write to MH i2c: E2 08 00 C9 0B 80 09 00 00 00 00 00 00 46 [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]SAM_PROTO_ClearQueue done [17:17:59]KKMCreateOFDPacket [17:17:59]OFDProtocolAddRootSTLVToBuf [17:17:59]FM_MakeSignedData [17:17:59]FM_MakeSignedData [17:17:59]SAM_PROTO_SignData [17:17:59]wFMCommunicate request_size=4 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 0D 01 02 [17:17:59]Write to MH i2c: E2 08 00 CA 0B 80 0D 01 02 00 00 00 00 4E [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:59]Read from MH i2c: E2 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 [17:17:59]MH_I2C_Read... [17:17:59]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [17:17:59]RAPDU: 90 00 [17:17:59]wFMCommunicate OK [17:17:59]wFMCommunicate request_size=255 [17:17:59]MH_SAM_APDU [17:17:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 48 61 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 73 00 00 35 04 06 00 05 9F 4B 12 [17:17:59]Write to MH i2c: E2 02 01 CB 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 48 61 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 73 00 00 35 04 06 00 05 9F 4B 12 00 00 BE [17:17:59]Write i2c OK [17:17:59]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=7 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 02 02 02 C9 D7 [17:18:00]Write to MH i2c: E2 0A 00 CC 0B 80 0D 02 02 02 00 C9 D7 00 00 F5 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [17:18:00]RAPDU: 90 00 [17:18:00]wFMCommunicate OK [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 0D 03 02 [17:18:00]Write to MH i2c: E2 08 00 CD 0B 80 0D 03 02 00 00 00 00 53 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0B 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 0B 00 CD 0B 00 7E FD 5E 0C 56 EA DD 7C 90 00 D2 [17:18:00]RAPDU: 7E FD 5E 0C 56 EA DD 7C 90 00 [17:18:00]wFMCommunicate OK [17:18:00]SAM_PROTO_SignData done [17:18:00]FM_MakeSignedData done [17:18:00]CreateOFDProtocolMessage [17:18:00]wFMCommunicate request_size=4 [17:18:00]MH_SAM_APDU [17:18:00]CAPDU: 80 11 00 00 [17:18:00]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:00]Read from MH i2c: E2 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [17:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:18:00]wFMCommunicate OK [17:18:00]CreateOFDProtocolMessage done [17:18:00]OFDSenderStorePacket 29617 [17:18:00]StoreOFDPacket docnum=29617 [17:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E5 43 04 01 2A CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 48 61 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 73 00 00 35 04 06 00 05 9F 4B 12 C9 D7 7E FD 5E 0C 56 EA DD 7C [17:18:00]CheckFolder [17:18:00]dirname=/storage/ofd_packets [17:18:00]CheckFolder done [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00029617 [17:18:00]NVStorageSaveData ofd_packets/00029617 [17:18:00]File name is /storage/ofd_packets/00029617 [17:18:00]Write 298 bytes [17:18:00]NVStorageSaveData done [17:18:00]OFDSenderStorePacket done [17:18:00]KKMCreateOFDPacket done [17:18:00]NVStorageSaveData kkm_last_timestamp [17:18:00]File name is /storage/kkm_last_timestamp [17:18:00]Write 4 bytes [17:18:00]NVStorageSaveData done [17:18:00]ExternCall_PrintAddStr [17:18:00]wPrintStart [17:18:00]Write to MH i2c: 01 00 00 CF 0B DA [17:18:00]Write i2c OK [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 [17:18:00]MH_I2C_Read... [17:18:00]Read from MH i2c: 01 07 00 CF 0B 00 00 00 00 00 FF 0F EF [17:18:00]RasterBufferAndPrint [17:18:00]line Счет N : (1)348062 [17:18:00]line ИНН: 02508201610067 [17:18:00]line Контрольно-Кассовый Чек [17:18:00]line ПРОДАЖА [17:18:00]line ТРК (МРК, ГНК) : 21 [17:18:00]line Товар: 2710194210 [17:18:00]line ДТ-К-5 [17:18:00]line 4.120 * 72.90 [17:18:00]line = 300.35 [17:18:00]line НДС 12% НСП 1% [17:18:00]line > о реализуемом товаре [17:18:00]line ОКРУГЛЕНИЕ: -0.35 [17:18:00]line ИТОГО: 300.00 [17:18:00]line Внесено: 300.00 [17:18:00]line СДАЧА: 0.00 [17:18:00]line НСП 1% : 2.66 [17:18:00]line НДС 12% : 31.90 [17:18:00]line Наличными: 300.00 [17:18:00]line Безнал.: 0.00 [17:18:00]line Место: АЗС № 108 "Партнер Нефть" [17:18:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:18:00]line СНО: Общий режим [17:18:00]line Чек 211 15.04.2024 17:18 [17:18:00]line Смена: 117 ФФД: 1.0 [17:18:00]line ЗНМ: 0300000027 [17:18:00]line РНМ: 0000138879044617 [17:18:00]line Версия ККМ: 001 [17:18:00]line ФМ: 0000000000963154 [17:18:00]line ФД: 29617 [17:18:00]line ФПД: 6181717461463 [17:18:00]line 1/tax-web-control/client/api/v1/ticket?date=20240415T171800&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29617&fm=6181717461463&tin=02508201610067®Number=0000138879044617&sum=30000 [17:18:00]OFD Sender: Processing packet 29617 [packets to send 8, broken 7] [17:18:00]ProducePacketName [17:18:00]name=ofd_packets/00029617 [17:18:00]OFD Sender: To server: pG, [17:18:00]CommunicateWithHost lk.salyk.kg:30040 [17:18:00]ConnectInit lk.salyk.kg [17:18:00]written 0, free lines is 4095 [17:18:00]Connected sock=10 [17:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E5 43 04 01 2A CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 48 61 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 73 00 00 35 04 06 00 05 9F 4B 12 C9 D7 7E FD 5E 0C 56 EA DD 7C [17:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3B 43 47 00 F9 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 39 36 33 31 35 34 10 04 04 00 B1 73 00 00 F4 03 04 00 E8 0B 1D 66 B6 04 01 00 00 5C 26 16 14 0B D0 81 CA [17:18:01]CommunicateWithHost err = 0 [17:18:01]CheckOFDResponse [17:18:01]1017 (14) - 77093643461234 [17:18:01]1041 (16) - 0000000000963154 [17:18:01]1040 (4) - 29617 [17:18:01]1012 (4) - 15.04.2024 11:13 [17:18:01]1206 (1) - 0 [17:18:01]OFD Sender: Remove packet 29617 [17:18:01]ProducePacketName [17:18:01]name=ofd_packets/00029617 [17:18:01]NVStorageDeleteData [17:18:01]Write to MH i2c: 01 00 00 F9 0B 04 [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 07 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 D5 0C EC [17:18:01]RasterBufferAndPrint [17:18:01]line [17:18:01]line [17:18:01]line [17:18:01]line [17:18:01]line [17:18:01]written 0, free lines is 3292 [17:18:01]MH_Cut [17:18:01]Write to MH i2c: D1 01 00 00 0C 01 DE [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 01 00 [17:18:01]MH_I2C_Read... [17:18:01]Read from MH i2c: D1 01 00 00 0C 00 DD [17:18:01]Write to MH i2c: 01 00 00 01 0C 0D [17:18:01]Write i2c OK [17:18:01]MH_I2C_Read... [17:18:01]OFD Sender: No OFD packet to send [17:18:01]*** Cut start [17:18:01]*** Partial cut [17:18:01]*** CUTSNS_PIN = 1 [17:18:01]*** CUTSNS_PIN = 0 [17:18:02]*** Brake cut motor [17:18:02]Read from MH i2c: 01 [17:18:02]MH_I2C_Read... [17:18:02]*** Stop cut motor [17:18:02]*** Cut end [17:18:02]Read from MH i2c: 01 07 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [17:18:02]process_action close_receipt done [17:18:02]requested_data is exist [17:18:02]produce_requested_data [17:18:02]requested_item fm.sn is exist - process it [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 11 00 00 [17:18:02]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [17:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:18:02]wFMCommunicate OK [17:18:02]requested_item fd.num is exist - process it [17:18:02]SAM_PROTO_GetFieldsCounters [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 13 00 00 [17:18:02]Write to MH i2c: E2 08 00 03 0C 80 13 00 00 00 00 00 00 8B [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 62 00 03 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 73 00 00 0E 04 04 00 75 00 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 DB [17:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 73 00 00 0E 04 04 00 75 00 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:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetFieldsCounters done [17:18:02]requested_item shift.num is exist - process it [17:18:02]requested_item shift.opened is exist - process it [17:18:02]req_shift_opened [17:18:02]FM_GetShiftState [17:18:02]SAM_PROTO_GetShiftState [17:18:02]wFMCommunicate request_size=4 [17:18:02]MH_SAM_APDU [17:18:02]CAPDU: 80 13 01 00 [17:18:02]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [17:18:02]Write i2c OK [17:18:02]MH_I2C_Read... [17:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:02]Read from MH i2c: E2 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 [17:18:02]MH_I2C_Read... [17:18:02]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 81 [17:18:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:18:02]wFMCommunicate OK [17:18:02]SAM_PROTO_GetShiftState done [17:18:02]FM_GetShiftState done [17:18:02]req_shift_opened done [17:18:02]requested_item shift.open_date is exist - process it [17:18:02]req_shift_open_date [17:18:02]req_shift_open_date done [17:18:02]produce_requested_data done [17:18:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29617,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:18:02]process_action_free close_receipt [17:18:02]json_value_free [17:18:02]json_value_free done [17:18:02]process_json_proto returns [17:18:02]Send response to host [17:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29617,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:18:02]free response buf [17:18:02]execute_script done [17:18:02]execute_script returns [17:18:02]free content buf [17:18:02]Sock 7.Close socket [17:18:02]Sock 7.Thread stoped [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:15]int [17:20:15]Write to MH i2c: 01 00 00 05 0C 11 [17:20:15]*** FLAG_PRN_KEY set [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 07 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 07 00 05 0C 00 08 00 00 00 FF 0F 2E [17:20:15]state=0 [17:20:15]Key pressed [17:20:15]Feed [17:20:15]Write to MH i2c: D8 00 00 06 0C E9 [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: D8 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: D8 01 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: D8 01 00 06 0C 00 EA [17:20:15]int [17:20:15]Write to MH i2c: 01 00 00 07 0C 13 [17:20:15]Write i2c OK [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 07 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 07 00 07 0C 00 48 00 00 00 3C 00 9E [17:20:15]state=2 [17:20:15]Key pressed [17:20:16]int [17:20:16]Write to MH i2c: 01 00 00 08 0C 14 [17:20:16]*** FLAG_PRN_KEY reset [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [17:20:16]state=2 [17:20:16]Stop feed [17:20:16]OFD Sender: No OFD packet to send [17:20:16]int [17:20:16]Write to MH i2c: 01 00 00 09 0C 15 [17:20:16]*** FLAG_PRN_KEY set [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 09 0C 00 08 00 00 00 FF 0F 32 [17:20:16]state=0 [17:20:16]Key pressed [17:20:16]Feed [17:20:16]Write to MH i2c: D8 00 00 0A 0C ED [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D8 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D8 01 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: D8 01 00 0A 0C 00 EE [17:20:16]int [17:20:16]Write to MH i2c: 01 00 00 0B 0C 17 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 0B 0C 00 48 00 00 00 3C 00 A2 [17:20:16]state=2 [17:20:16]Key pressed [17:20:16]int [17:20:16]Write to MH i2c: 01 00 00 0C 0C 18 [17:20:16]*** FLAG_PRN_KEY reset [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 F6 0F 24 [17:20:16]state=2 [17:20:16]Stop feed [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]accept exits with 9 [17:24:11]New connection [17:24:11]New thread 3066965348 created [17:24:11]Thread 3067108708 joined [17:24:11]Waiting for new connection... [17:24:11] Sock 9.Parse request [17:24:11]Sock 9.Check first char [17:24:11]Sock 9.First char is OK [17:24:11]request: POST /json_proto HTTP/1.0 [17:24:11]Method: POST [17:24:11]URL: /json_proto [17:24:11]Method is POST - this is cgi request [17:24:11]url: /json_proto [17:24:11]query_string will be loaded in cgi processing [17:24:11]execute_cgi json_proto POST (null) [17:24:11]execute_cgi path=json_proto method=POST [17:24:11]POST find Content-Length [17:24:11]Host: 172.17.33.3:8080 [17:24:11]Content-Length: 642 [17:24:11]Content-Type: application/json [17:24:11] [17:24:11]POST finish read [17:24:11]Found Content-Length = 642 [17:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]execute_script... [17:24: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)348063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]POST & json_proto [17:24:11]process_json_proto [17:24:11]json parsed OK: [17:24:11]protocol is kg_v1.0 [17:24:11]action value=close_receipt [17:24:11]process_action close_receipt [17:24:11]cmd_close_receipt [17:24:11]MH_GetDate [17:24:11]Write to MH i2c: F0 00 00 0D 0C 08 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 0D 0C 00 BC 62 1D 66 23 5B 8F 65 24 [17:24:11]GetLastDocTimeStamp 1713201480 [17:24:11]current date 1713201852 [17:24:11]FM_GetShiftState [17:24:11]SAM_PROTO_GetShiftState [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 13 01 00 [17:24:11]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8B [17:24:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_GetShiftState done [17:24:11]FM_GetShiftState done [17:24:11]opened in 1713140468 [17:24:11]opened+sec_in_day 1713226868 [17:24:11]quantity*price = 129600 [17:24:11]sum+1 = 129601 [17:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1296.00 НСП 1% : 11.47 НДС 12% : 137.63 Наличными: 1296.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 212 15.04.2024 17:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29618 ФПД: 26807165958078 1/tax-web-control/client/api/v1/ticket?date=20240415T172412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29618&fm=26807165958078&tin=02508201610067®Number=0000138879044617&sum=129600 [17:24:12]StoreToDocumentArchive [17:24:12]shift 117 fd 29618 [17:24:12]save to /storage/0117/doc_00029618 [17:24:12]save last doc name /storage/0117/doc_00029618 to /storage/kkm_last_doc_name [17:24:12]save OK [17:24:12]Clear old archive folders... [17:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:12]tlvbuf is B6ECE870 [17:24:12]SAM_PROTO_ClearQueue [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 09 00 00 [17:24:12]Write to MH i2c: E2 08 00 1B 0C 80 09 00 00 00 00 00 00 99 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_ClearQueue done [17:24:12]KKMCreateOFDPacket [17:24:12]OFDProtocolAddRootSTLVToBuf [17:24:12]FM_MakeSignedData [17:24:12]FM_MakeSignedData [17:24:12]SAM_PROTO_SignData [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 01 02 [17:24:12]Write to MH i2c: E2 08 00 1C 0C 80 0D 01 02 00 00 00 00 A1 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=255 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 BC 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 73 00 00 35 04 06 00 18 [17:24:12]Write to MH i2c: E2 02 01 1D 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 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 BC 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 73 00 00 35 04 06 00 18 00 00 EE [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=10 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 05 61 87 9A B7 BE [17:24:12]Write to MH i2c: E2 0D 00 1E 0C 80 0D 02 02 05 00 61 87 9A B7 BE 00 00 A5 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 03 02 [17:24:12]Write to MH i2c: E2 08 00 1F 0C 80 0D 03 02 00 00 00 00 A6 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 1F 0C 00 3D F2 2F F1 98 AB 01 1A 90 00 54 [17:24:12]RAPDU: 3D F2 2F F1 98 AB 01 1A 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_SignData done [17:24:12]FM_MakeSignedData done [17:24:12]CreateOFDProtocolMessage [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 11 00 00 [17:24:12]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [17:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:24:12]wFMCommunicate OK [17:24:12]CreateOFDProtocolMessage done [17:24:12]OFDSenderStorePacket 29618 [17:24:12]StoreOFDPacket docnum=29618 [17:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 8D 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 BC 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 73 00 00 35 04 06 00 18 61 87 9A B7 BE 3D F2 2F F1 98 AB 01 1A [17:24:12]CheckFolder [17:24:12]dirname=/storage/ofd_packets [17:24:12]CheckFolder done [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00029618 [17:24:12]NVStorageSaveData ofd_packets/00029618 [17:24:12]File name is /storage/ofd_packets/00029618 [17:24:12]Write 301 bytes [17:24:12]NVStorageSaveData done [17:24:12]OFDSenderStorePacket done [17:24:12]KKMCreateOFDPacket done [17:24:12]NVStorageSaveData kkm_last_timestamp [17:24:12]File name is /storage/kkm_last_timestamp [17:24:12]Write 4 bytes [17:24:12]NVStorageSaveData done [17:24:12]ExternCall_PrintAddStr [17:24:12]wPrintStart [17:24:12]Write to MH i2c: 01 00 00 21 0C 2D [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [17:24:12]RasterBufferAndPrint [17:24:12]line Счет N : (1)348063 [17:24:12]line ИНН: 02508201610067 [17:24:12]line Контрольно-Кассовый Чек [17:24:12]line ПРОДАЖА [17:24:12]line ТРК (МРК, ГНК) : 42 [17:24:12]line Товар: 2710124130 [17:24:12]line Аи-92-К-5 [17:24:12]line 20.000 * 64.80 [17:24:12]line = 1296.00 [17:24:12]line НДС 12% НСП 1% [17:24:12]line > о реализуемом товаре [17:24:12]line ИТОГО: 1296.00 [17:24:12]line НСП 1% : 11.47 [17:24:12]line НДС 12% : 137.63 [17:24:12]line Наличными: 1296.00 [17:24:12]line Безнал.: 0.00 [17:24:12]line Место: АЗС № 108 "Партнер Нефть" [17:24:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:24:12]line СНО: Общий режим [17:24:12]line Чек 212 15.04.2024 17:24 [17:24:12]line Смена: 117 ФФД: 1.0 [17:24:12]line ЗНМ: 0300000027 [17:24:12]line РНМ: 0000138879044617 [17:24:12]line Версия ККМ: 001 [17:24:12]line ФМ: 0000000000963154 [17:24:12]line ФД: 29618 [17:24:12]line ФПД: 26807165958078 [17:24:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29618&fm=26807165958078&tin=02508201610067®Number=0000138879044617&sum=129600 [17:24:13]OFD Sender: Processing packet 29618 [packets to send 8, broken 7] [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00029618 [17:24:13]OFD Sender: To server: pG, [17:24:13]CommunicateWithHost lk.salyk.kg:30040 [17:24:13]ConnectInit lk.salyk.kg [17:24:13]written 0, free lines is 4095 [17:24:13]Connected sock=10 [17:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 27 8D 07 01 83 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 BC 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 73 00 00 35 04 06 00 18 61 87 9A B7 BE 3D F2 2F F1 98 AB 01 1A [17:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 37 97 47 00 F5 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 39 36 33 31 35 34 10 04 04 00 B2 73 00 00 F4 03 04 00 5C 0D 1D 66 B6 04 01 00 00 70 87 DD 7D 7A AE 77 8A [17:24:13]CommunicateWithHost err = 0 [17:24:13]CheckOFDResponse [17:24:13]1017 (14) - 77093643461234 [17:24:13]1041 (16) - 0000000000963154 [17:24:13]1040 (4) - 29618 [17:24:13]1012 (4) - 15.04.2024 11:19 [17:24:13]1206 (1) - 0 [17:24:13]OFD Sender: Remove packet 29618 [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00029618 [17:24:13]NVStorageDeleteData [17:24:13]Write to MH i2c: 01 00 00 48 0C 54 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 13 0D 7B [17:24:13]RasterBufferAndPrint [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]written 0, free lines is 3353 [17:24:13]MH_Cut [17:24:13]Write to MH i2c: D1 01 00 4F 0C 01 2D [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 4F 0C 00 2C [17:24:13]Write to MH i2c: 01 00 00 50 0C 5C [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:14]OFD Sender: No OFD packet to send [17:24:14]*** Cut start [17:24:14]*** Partial cut [17:24:14]*** CUTSNS_PIN = 1 [17:24:14]*** CUTSNS_PIN = 0 [17:24:14]*** Brake cut motor [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]*** Stop cut motor [17:24:15]*** Cut end [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [17:24:15]process_action close_receipt done [17:24:15]requested_data is exist [17:24:15]produce_requested_data [17:24:15]requested_item fm.sn is exist - process it [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 11 00 00 [17:24:15]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [17:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:24:15]wFMCommunicate OK [17:24:15]requested_item fd.num is exist - process it [17:24:15]SAM_PROTO_GetFieldsCounters [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 00 00 [17:24:15]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 52 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 73 00 00 0E 04 04 00 75 00 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 2E [17:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 73 00 00 0E 04 04 00 75 00 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:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetFieldsCounters done [17:24:15]requested_item shift.num is exist - process it [17:24:15]requested_item shift.opened is exist - process it [17:24:15]req_shift_opened [17:24:15]FM_GetShiftState [17:24:15]SAM_PROTO_GetShiftState [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 01 00 [17:24:15]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D0 [17:24:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetShiftState done [17:24:15]FM_GetShiftState done [17:24:15]req_shift_opened done [17:24:15]requested_item shift.open_date is exist - process it [17:24:15]req_shift_open_date [17:24:15]req_shift_open_date done [17:24:15]produce_requested_data done [17:24:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29618,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:24:15]process_action_free close_receipt [17:24:15]json_value_free [17:24:15]json_value_free done [17:24:15]process_json_proto returns [17:24:15]Send response to host [17:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29618,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:24:15]free response buf [17:24:15]execute_script done [17:24:15]execute_script returns [17:24:15]free content buf [17:24:15]Sock 9.Close socket [17:24:15]Sock 9.Thread stoped [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:25]accept exits with 7 [17:24:25]New connection [17:24:25]New thread 3067108708 created [17:24:25]Thread 3066965348 joined [17:24:25]Waiting for new connection... [17:24:25] Sock 7.Parse request [17:24:25]Sock 7.Check first char [17:24:25]Sock 7.First char is OK [17:24:25]request: POST /json_proto HTTP/1.0 [17:24:25]Method: POST [17:24:25]URL: /json_proto [17:24:25]Method is POST - this is cgi request [17:24:25]url: /json_proto [17:24:25]query_string will be loaded in cgi processing [17:24:25]execute_cgi json_proto POST (null) [17:24:25]execute_cgi path=json_proto method=POST [17:24:25]POST find Content-Length [17:24:25]Host: 172.17.33.3:8080 [17:24:25]Content-Length: 682 [17:24:25]Content-Type: application/json [17:24:25] [17:24:25]POST finish read [17:24:25]Found Content-Length = 682 [17:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:24:25]execute_script... [17:24: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)348064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:24:25]POST & json_proto [17:24:25]process_json_proto [17:24:25]json parsed OK: [17:24:25]protocol is kg_v1.0 [17:24:25]action value=close_receipt [17:24:25]process_action close_receipt [17:24:25]cmd_close_receipt [17:24:25]MH_GetDate [17:24:25]Write to MH i2c: F0 00 00 54 0C 4F [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: F0 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: F0 09 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: F0 09 00 54 0C 00 CA 62 1D 66 23 5B 8F 65 79 [17:24:25]GetLastDocTimeStamp 1713201852 [17:24:25]current date 1713201866 [17:24:25]FM_GetShiftState [17:24:25]SAM_PROTO_GetShiftState [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 13 01 00 [17:24:25]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0E 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D2 [17:24:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:24:25]wFMCommunicate OK [17:24:25]SAM_PROTO_GetShiftState done [17:24:25]FM_GetShiftState done [17:24:25]opened in 1713140468 [17:24:25]opened+sec_in_day 1713226868 [17:24:25]quantity*price = 100018 [17:24:25]sum+1 = 100020 [17:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 213 15.04.2024 17:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29619 ФПД: 112016995039269 1/tax-web-control/client/api/v1/ticket?date=20240415T172427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29619&fm=112016995039269&tin=02508201610067®Number=0000138879044617&sum=100000 [17:24:26]StoreToDocumentArchive [17:24:26]shift 117 fd 29619 [17:24:26]save to /storage/0117/doc_00029619 [17:24:26]save last doc name /storage/0117/doc_00029619 to /storage/kkm_last_doc_name [17:24:26]save OK [17:24:26]Clear old archive folders... [17:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:26]tlvbuf is 01A5C470 [17:24:26]SAM_PROTO_ClearQueue [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 09 00 00 [17:24:26]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]SAM_PROTO_ClearQueue done [17:24:26]KKMCreateOFDPacket [17:24:26]OFDProtocolAddRootSTLVToBuf [17:24:26]FM_MakeSignedData [17:24:26]FM_MakeSignedData [17:24:26]SAM_PROTO_SignData [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 0D 01 02 [17:24:26]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [17:24:26]RAPDU: 90 00 [17:24:26]wFMCommunicate OK [17:24:26]wFMCommunicate request_size=255 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 73 00 00 35 04 06 00 65 [17:24:27]Write to MH i2c: E2 02 01 64 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 73 00 00 35 04 06 00 65 00 00 A1 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [17:24:27]RAPDU: 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=10 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 0D 02 02 05 E0 FD 32 B8 25 [17:24:27]Write to MH i2c: E2 0D 00 65 0C 80 0D 02 02 05 00 E0 FD 32 B8 25 00 00 E1 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [17:24:27]RAPDU: 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 0D 03 02 [17:24:27]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0B 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0B 00 66 0C 00 66 66 DF 31 66 41 EC 23 90 00 80 [17:24:27]RAPDU: 66 66 DF 31 66 41 EC 23 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_SignData done [17:24:27]FM_MakeSignedData done [17:24:27]CreateOFDProtocolMessage [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 11 00 00 [17:24:27]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [17:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:24:27]wFMCommunicate OK [17:24:27]CreateOFDProtocolMessage done [17:24:27]OFDSenderStorePacket 29619 [17:24:27]StoreOFDPacket docnum=29619 [17:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 72 D4 07 01 A3 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 73 00 00 35 04 06 00 65 E0 FD 32 B8 25 66 66 DF 31 66 41 EC 23 [17:24:27]CheckFolder [17:24:27]dirname=/storage/ofd_packets [17:24:27]CheckFolder done [17:24:27]ProducePacketName [17:24:27]name=ofd_packets/00029619 [17:24:27]NVStorageSaveData ofd_packets/00029619 [17:24:27]File name is /storage/ofd_packets/00029619 [17:24:27]Write 301 bytes [17:24:27]NVStorageSaveData done [17:24:27]OFDSenderStorePacket done [17:24:27]KKMCreateOFDPacket done [17:24:27]NVStorageSaveData kkm_last_timestamp [17:24:27]File name is /storage/kkm_last_timestamp [17:24:27]Write 4 bytes [17:24:27]NVStorageSaveData done [17:24:27]ExternCall_PrintAddStr [17:24:27]wPrintStart [17:24:27]Write to MH i2c: 01 00 00 68 0C 74 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [17:24:27]RasterBufferAndPrint [17:24:27]line Счет N : (1)348064 [17:24:27]line ИНН: 02508201610067 [17:24:27]line Контрольно-Кассовый Чек [17:24:27]line ПРОДАЖА [17:24:27]line ТРК (МРК, ГНК) : 33 [17:24:27]line Товар: 2710124500 [17:24:27]line Аи-95-К-5 [17:24:27]line 13.720 * 72.90 [17:24:27]line = 1000.19 [17:24:27]line НДС 12% НСП 1% [17:24:27]line > о реализуемом товаре [17:24:27]line ОКРУГЛЕНИЕ: -0.19 [17:24:27]line ИТОГО: 1000.00 [17:24:27]line Внесено: 1000.00 [17:24:27]line СДАЧА: 0.00 [17:24:27]line НСП 1% : 8.85 [17:24:27]line НДС 12% : 106.21 [17:24:27]line Наличными: 1000.00 [17:24:27]line Безнал.: 0.00 [17:24:27]line Место: АЗС № 108 "Партнер Нефть" [17:24:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:24:27]line СНО: Общий режим [17:24:27]line Чек 213 15.04.2024 17:24 [17:24:27]line Смена: 117 ФФД: 1.0 [17:24:27]line ЗНМ: 0300000027 [17:24:27]line РНМ: 0000138879044617 [17:24:27]line Версия ККМ: 001 [17:24:27]line ФМ: 0000000000963154 [17:24:27]line ФД: 29619 [17:24:27]line ФПД: 112016995039269 [17:24:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29619&fm=112016995039269&tin=02508201610067®Number=0000138879044617&sum=100000 [17:24:27]OFD Sender: Processing packet 29619 [packets to send 8, broken 7] [17:24:27]ProducePacketName [17:24:27]name=ofd_packets/00029619 [17:24:27]OFD Sender: To server: pG, [17:24:27]CommunicateWithHost lk.salyk.kg:30040 [17:24:27]ConnectInit lk.salyk.kg [17:24:27]written 0, free lines is 4095 [17:24:27]Connected sock=11 [17:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 72 D4 07 01 A3 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CB 62 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 73 00 00 35 04 06 00 65 E0 FD 32 B8 25 66 66 DF 31 66 41 EC 23 [17:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 C8 47 00 37 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 39 36 33 31 35 34 10 04 04 00 B3 73 00 00 F4 03 04 00 6B 0D 1D 66 B6 04 01 00 00 2F 56 EF 4E 51 17 98 9A [17:24:28]CommunicateWithHost err = 0 [17:24:28]CheckOFDResponse [17:24:28]1017 (14) - 77093643461234 [17:24:28]1041 (16) - 0000000000963154 [17:24:28]1040 (4) - 29619 [17:24:28]1012 (4) - 15.04.2024 11:20 [17:24:28]1206 (1) - 0 [17:24:28]OFD Sender: Remove packet 29619 [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00029619 [17:24:28]NVStorageDeleteData [17:24:28]Write to MH i2c: 01 00 00 92 0C 9E [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 CA 0C 7B [17:24:28]RasterBufferAndPrint [17:24:28]line [17:24:28]line [17:24:28]line [17:24:28]line [17:24:28]line [17:24:28]written 0, free lines is 3278 [17:24:28]MH_Cut [17:24:28]Write to MH i2c: D1 01 00 99 0C 01 77 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: D1 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: D1 01 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: D1 01 00 99 0C 00 76 [17:24:28]Write to MH i2c: 01 00 00 9A 0C A6 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]OFD Sender: No OFD packet to send [17:24:29]*** Cut start [17:24:29]*** Partial cut [17:24:29]*** CUTSNS_PIN = 1 [17:24:29]*** CUTSNS_PIN = 0 [17:24:29]*** Brake cut motor [17:24:29]Read from MH i2c: 01 [17:24:29]MH_I2C_Read... [17:24:29]*** Stop cut motor [17:24:29]*** Cut end [17:24:29]Read from MH i2c: 01 07 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [17:24:29]process_action close_receipt done [17:24:29]requested_data is exist [17:24:29]produce_requested_data [17:24:29]requested_item fm.sn is exist - process it [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 11 00 00 [17:24:29]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 17 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [17:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:24:29]wFMCommunicate OK [17:24:29]requested_item fd.num is exist - process it [17:24:29]SAM_PROTO_GetFieldsCounters [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 13 00 00 [17:24:29]Write to MH i2c: E2 08 00 9C 0C 80 13 00 00 00 00 00 00 24 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 62 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 62 00 9C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 73 00 00 0E 04 04 00 75 00 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 7C [17:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 73 00 00 0E 04 04 00 75 00 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:24:29]wFMCommunicate OK [17:24:29]SAM_PROTO_GetFieldsCounters done [17:24:29]requested_item shift.num is exist - process it [17:24:29]requested_item shift.opened is exist - process it [17:24:29]req_shift_opened [17:24:29]FM_GetShiftState [17:24:29]SAM_PROTO_GetShiftState [17:24:29]wFMCommunicate request_size=4 [17:24:29]MH_SAM_APDU [17:24:29]CAPDU: 80 13 01 00 [17:24:29]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:29]Read from MH i2c: E2 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 0E 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1A [17:24:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:24:29]wFMCommunicate OK [17:24:29]SAM_PROTO_GetShiftState done [17:24:29]FM_GetShiftState done [17:24:29]req_shift_opened done [17:24:29]requested_item shift.open_date is exist - process it [17:24:29]req_shift_open_date [17:24:29]req_shift_open_date done [17:24:29]produce_requested_data done [17:24:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29619,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:24:29]process_action_free close_receipt [17:24:29]json_value_free [17:24:29]json_value_free done [17:24:29]process_json_proto returns [17:24:29]Send response to host [17:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29619,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:24:29]free response buf [17:24:29]execute_script done [17:24:29]execute_script returns [17:24:29]free content buf [17:24:29]Sock 7.Close socket [17:24:29]Sock 7.Thread stoped [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:35]accept exits with 9 [17:26:35]New connection [17:26:35]New thread 3066965348 created [17:26:35]Thread 3067108708 joined [17:26:35]Waiting for new connection... [17:26:35] Sock 9.Parse request [17:26:35]Sock 9.Check first char [17:26:35]Sock 9.First char is OK [17:26:35]request: POST /json_proto HTTP/1.0 [17:26:35]Method: POST [17:26:35]URL: /json_proto [17:26:35]Method is POST - this is cgi request [17:26:35]url: /json_proto [17:26:35]query_string will be loaded in cgi processing [17:26:35]execute_cgi json_proto POST (null) [17:26:35]execute_cgi path=json_proto method=POST [17:26:35]POST find Content-Length [17:26:35]Host: 172.17.33.3:8080 [17:26:35]Content-Length: 682 [17:26:35]Content-Type: application/json [17:26:35] [17:26:35]POST finish read [17:26:35]Found Content-Length = 682 [17:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.63, "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" ] } } [17:26:35]execute_script... [17: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)348066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.63, "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" ] } } [17:26:35]POST & json_proto [17:26:35]process_json_proto [17:26:35]json parsed OK: [17:26:35]protocol is kg_v1.0 [17:26:35]action value=close_receipt [17:26:35]process_action close_receipt [17:26:35]cmd_close_receipt [17:26:35]MH_GetDate [17:26:35]Write to MH i2c: F0 00 00 9E 0C 99 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 09 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: F0 09 00 9E 0C 00 4D 63 1D 66 23 5B 8F 65 47 [17:26:35]GetLastDocTimeStamp 1713201867 [17:26:35]current date 1713201997 [17:26:35]FM_GetShiftState [17:26:35]SAM_PROTO_GetShiftState [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 01 00 [17:26:35]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1C [17:26:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetShiftState done [17:26:35]FM_GetShiftState done [17:26:35]opened in 1713140468 [17:26:35]opened+sec_in_day 1713226868 [17:26:35]quantity*price = 250063 [17:26:35]sum+1 = 250064 [17:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 214 15.04.2024 17:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29620 ФПД: 12370164372182 1/tax-web-control/client/api/v1/ticket?date=20240415T172637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29620&fm=12370164372182&tin=02508201610067®Number=0000138879044617&sum=250000 [17:26:37]StoreToDocumentArchive [17:26:37]shift 117 fd 29620 [17:26:37]save to /storage/0117/doc_00029620 [17:26:37]save last doc name /storage/0117/doc_00029620 to /storage/kkm_last_doc_name [17:26:37]save OK [17:26:37]Clear old archive folders... [17:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:37]tlvbuf is 01A789C0 [17:26:37]SAM_PROTO_ClearQueue [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 09 00 00 [17:26:37]Write to MH i2c: E2 08 00 AC 0C 80 09 00 00 00 00 00 00 2A [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_ClearQueue done [17:26:37]KKMCreateOFDPacket [17:26:37]OFDProtocolAddRootSTLVToBuf [17:26:37]FM_MakeSignedData [17:26:37]FM_MakeSignedData [17:26:37]SAM_PROTO_SignData [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 01 02 [17:26:37]Write to MH i2c: E2 08 00 AD 0C 80 0D 01 02 00 00 00 00 32 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=255 [17:26:37]MH_SAM_APDU [17:26: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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4D 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 73 00 00 35 04 06 00 0B [17:26:37]Write to MH i2c: E2 02 01 AE 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4D 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 73 00 00 35 04 06 00 0B 00 00 FD [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=10 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 02 02 05 40 27 40 D2 D6 [17:26:37]Write to MH i2c: E2 0D 00 AF 0C 80 0D 02 02 05 00 40 27 40 D2 D6 00 00 8E [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [17:26:37]RAPDU: 90 00 [17:26:37]wFMCommunicate OK [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 0D 03 02 [17:26:37]Write to MH i2c: E2 08 00 B0 0C 80 0D 03 02 00 00 00 00 37 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0B 00 B0 0C 00 EF 9B D0 E4 D2 A3 51 ED 90 00 29 [17:26:37]RAPDU: EF 9B D0 E4 D2 A3 51 ED 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_SignData done [17:26:37]FM_MakeSignedData done [17:26:37]CreateOFDProtocolMessage [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 11 00 00 [17:26:37]Write to MH i2c: E2 08 00 B1 0C 80 11 00 00 00 00 00 00 37 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 B1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [17:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:37]wFMCommunicate OK [17:26:37]CreateOFDProtocolMessage done [17:26:37]OFDSenderStorePacket 29620 [17:26:37]StoreOFDPacket docnum=29620 [17:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB A7 07 01 9F 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4D 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 73 00 00 35 04 06 00 0B 40 27 40 D2 D6 EF 9B D0 E4 D2 A3 51 ED [17:26:37]CheckFolder [17:26:37]dirname=/storage/ofd_packets [17:26:37]CheckFolder done [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00029620 [17:26:37]NVStorageSaveData ofd_packets/00029620 [17:26:37]File name is /storage/ofd_packets/00029620 [17:26:37]Write 301 bytes [17:26:37]NVStorageSaveData done [17:26:37]OFDSenderStorePacket done [17:26:37]KKMCreateOFDPacket done [17:26:37]NVStorageSaveData kkm_last_timestamp [17:26:37]File name is /storage/kkm_last_timestamp [17:26:37]Write 4 bytes [17:26:37]NVStorageSaveData done [17:26:37]ExternCall_PrintAddStr [17:26:37]wPrintStart [17:26:37]Write to MH i2c: 01 00 00 B2 0C BE [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [17:26:37]RasterBufferAndPrint [17:26:37]line Счет N : (1)348066 [17:26:37]line ИНН: 02508201610067 [17:26:37]line Контрольно-Кассовый Чек [17:26:37]line ПРОДАЖА [17:26:37]line ТРК (МРК, ГНК) : 32 [17:26:37]line Товар: 2710124130 [17:26:37]line Аи-92-К-5 [17:26:37]line 38.590 * 64.80 [17:26:37]line = 2500.63 [17:26:37]line НДС 12% НСП 1% [17:26:37]line > о реализуемом товаре [17:26:37]line ОКРУГЛЕНИЕ: -0.63 [17:26:37]line ИТОГО: 2500.00 [17:26:37]line Внесено: 2500.00 [17:26:37]line СДАЧА: 0.00 [17:26:37]line НСП 1% : 22.13 [17:26:37]line НДС 12% : 265.55 [17:26:37]line Наличными: 2500.00 [17:26:37]line Безнал.: 0.00 [17:26:37]line Место: АЗС № 108 "Партнер Нефть" [17:26:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:26:37]line СНО: Общий режим [17:26:37]line Чек 214 15.04.2024 17:26 [17:26:37]line Смена: 117 ФФД: 1.0 [17:26:37]line ЗНМ: 0300000027 [17:26:37]line РНМ: 0000138879044617 [17:26:37]line Версия ККМ: 001 [17:26:37]line ФМ: 0000000000963154 [17:26:37]line ФД: 29620 [17:26:37]line ФПД: 12370164372182 [17:26:37]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172637&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29620&fm=12370164372182&tin=02508201610067®Number=0000138879044617&sum=250000 [17:26:37]OFD Sender: Processing packet 29620 [packets to send 8, broken 7] [17:26:37]ProducePacketName [17:26:37]name=ofd_packets/00029620 [17:26:37]OFD Sender: To server: pG, [17:26:37]CommunicateWithHost lk.salyk.kg:30040 [17:26:37]ConnectInit lk.salyk.kg [17:26:37]written 0, free lines is 4095 [17:26:38]Connected sock=10 [17:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB A7 07 01 9F 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4D 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 73 00 00 35 04 06 00 0B 40 27 40 D2 D6 EF 9B D0 E4 D2 A3 51 ED [17:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 66 47 00 B2 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 39 36 33 31 35 34 10 04 04 00 B4 73 00 00 F4 03 04 00 ED 0D 1D 66 B6 04 01 00 00 E4 97 C4 96 2E 7A E0 89 [17:26:38]CommunicateWithHost err = 0 [17:26:38]CheckOFDResponse [17:26:38]1017 (14) - 77093643461234 [17:26:38]1041 (16) - 0000000000963154 [17:26:38]1040 (4) - 29620 [17:26:38]1012 (4) - 15.04.2024 11:22 [17:26:38]1206 (1) - 0 [17:26:38]OFD Sender: Remove packet 29620 [17:26:38]ProducePacketName [17:26:38]name=ofd_packets/00029620 [17:26:38]NVStorageDeleteData [17:26:38]Write to MH i2c: 01 00 00 DC 0C E8 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 DE 0C D9 [17:26:38]RasterBufferAndPrint [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]line [17:26:38]written 0, free lines is 3300 [17:26:38]MH_Cut [17:26:38]Write to MH i2c: D1 01 00 E3 0C 01 C1 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 [17:26:38]MH_I2C_Read... [17:26:38]Read from MH i2c: D1 01 00 E3 0C 00 C0 [17:26:38]Write to MH i2c: 01 00 00 E4 0C F0 [17:26:38]Write i2c OK [17:26:38]MH_I2C_Read... [17:26:38]OFD Sender: No OFD packet to send [17:26:39]*** Cut start [17:26:39]*** Partial cut [17:26:39]*** CUTSNS_PIN = 1 [17:26:39]*** CUTSNS_PIN = 0 [17:26:39]*** Brake cut motor [17:26:39]Read from MH i2c: 01 [17:26:39]MH_I2C_Read... [17:26:39]*** Stop cut motor [17:26:39]*** Cut end [17:26:39]Read from MH i2c: 01 07 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 FF 0F 05 [17:26:39]process_action close_receipt done [17:26:39]requested_data is exist [17:26:39]produce_requested_data [17:26:39]requested_item fm.sn is exist - process it [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 11 00 00 [17:26:39]Write to MH i2c: E2 08 00 E5 0C 80 11 00 00 00 00 00 00 6B [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:39]Read from MH i2c: E2 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 [17:26:39]MH_I2C_Read... [17:26:39]Read from MH i2c: E2 17 00 E5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [17:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:39]wFMCommunicate OK [17:26:39]requested_item fd.num is exist - process it [17:26:39]SAM_PROTO_GetFieldsCounters [17:26:39]wFMCommunicate request_size=4 [17:26:39]MH_SAM_APDU [17:26:39]CAPDU: 80 13 00 00 [17:26:39]Write to MH i2c: E2 08 00 E6 0C 80 13 00 00 00 00 00 00 6E [17:26:39]Write i2c OK [17:26:39]MH_I2C_Read... [17:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:40]Read from MH i2c: E2 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 62 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 62 00 E6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 73 00 00 0E 04 04 00 75 00 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 CA [17:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 73 00 00 0E 04 04 00 75 00 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:26:40]wFMCommunicate OK [17:26:40]SAM_PROTO_GetFieldsCounters done [17:26:40]requested_item shift.num is exist - process it [17:26:40]requested_item shift.opened is exist - process it [17:26:40]req_shift_opened [17:26:40]FM_GetShiftState [17:26:40]SAM_PROTO_GetShiftState [17:26:40]wFMCommunicate request_size=4 [17:26:40]MH_SAM_APDU [17:26:40]CAPDU: 80 13 01 00 [17:26:40]Write to MH i2c: E2 08 00 E7 0C 80 13 01 00 00 00 00 00 70 [17:26:40]Write i2c OK [17:26:40]MH_I2C_Read... [17:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:40]Read from MH i2c: E2 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 0E 00 [17:26:40]MH_I2C_Read... [17:26:40]Read from MH i2c: E2 0E 00 E7 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 64 [17:26:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:26:40]wFMCommunicate OK [17:26:40]SAM_PROTO_GetShiftState done [17:26:40]FM_GetShiftState done [17:26:40]req_shift_opened done [17:26:40]requested_item shift.open_date is exist - process it [17:26:40]req_shift_open_date [17:26:40]req_shift_open_date done [17:26:40]produce_requested_data done [17:26:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29620,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:26:40]process_action_free close_receipt [17:26:40]json_value_free [17:26:40]json_value_free done [17:26:40]process_json_proto returns [17:26:40]Send response to host [17:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29620,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:26:40]free response buf [17:26:40]execute_script done [17:26:40]execute_script returns [17:26:40]free content buf [17:26:40]Sock 9.Close socket [17:26:40]Sock 9.Thread stoped [17:26:43]OFD Sender: No OFD packet to send [17:26:44]accept exits with 7 [17:26:44]New connection [17:26:44]New thread 3067108708 created [17:26:44]Thread 3066965348 joined [17:26:44]Waiting for new connection... [17:26:44] Sock 7.Parse request [17:26:44]Sock 7.Check first char [17:26:44]Sock 7.First char is OK [17:26:44]request: POST /json_proto HTTP/1.0 [17:26:44]Method: POST [17:26:44]URL: /json_proto [17:26:44]Method is POST - this is cgi request [17:26:44]url: /json_proto [17:26:44]query_string will be loaded in cgi processing [17:26:44]execute_cgi json_proto POST (null) [17:26:44]execute_cgi path=json_proto method=POST [17:26:44]POST find Content-Length [17:26:44]Host: 172.17.33.3:8080 [17:26:44]Content-Length: 738 [17:26:44]Content-Type: application/json [17:26:44] [17:26:44]POST finish read [17:26:44]Found Content-Length = 738 [17:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29620, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.63, "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" ] } } [17:26:44]execute_script... [17:26:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29620, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.63, "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" ] } } [17:26:44]POST & json_proto [17:26:44]process_json_proto [17:26:44]json parsed OK: [17:26:44]protocol is kg_v1.0 [17:26:44]action value=close_receipt [17:26:44]process_action close_receipt [17:26:44]cmd_close_receipt [17:26:44]MH_GetDate [17:26:44]Write to MH i2c: F0 00 00 E8 0C E3 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 09 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 09 00 E8 0C 00 55 63 1D 66 23 5B 8F 65 99 [17:26:44]GetLastDocTimeStamp 1713201997 [17:26:44]current date 1713202005 [17:26:44]FM_GetShiftState [17:26:44]SAM_PROTO_GetShiftState [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 13 01 00 [17:26:44]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0E 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 66 [17:26:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:26:44]wFMCommunicate OK [17:26:44]SAM_PROTO_GetShiftState done [17:26:44]FM_GetShiftState done [17:26:44]opened in 1713140468 [17:26:44]opened+sec_in_day 1713226868 [17:26:44]quantity*price = 250063 [17:26:44]sum+1 = 250064 [17:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 215 15.04.2024 17:26 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29620 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29621 ФПД: 234111473811555 1/tax-web-control/client/api/v1/ticket?date=20240415T172645&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29621&fm=234111473811555&tin=02508201610067®Number=0000138879044617&sum=250000 [17:26:45]StoreToDocumentArchive [17:26:45]shift 117 fd 29621 [17:26:45]save to /storage/0117/doc_00029621 [17:26:45]save last doc name /storage/0117/doc_00029621 to /storage/kkm_last_doc_name [17:26:45]save OK [17:26:45]Clear old archive folders... [17:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:26:45]tlvbuf is 01A26FD0 [17:26:45]SAM_PROTO_ClearQueue [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 09 00 00 [17:26:45]Write to MH i2c: E2 08 00 F8 0C 80 09 00 00 00 00 00 00 76 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_ClearQueue done [17:26:45]KKMCreateOFDPacket [17:26:45]OFDProtocolAddRootSTLVToBuf [17:26:45]FM_MakeSignedData [17:26:45]FM_MakeSignedData [17:26:45]SAM_PROTO_SignData [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 01 02 [17:26:45]Write to MH i2c: E2 08 00 F9 0C 80 0D 01 02 00 00 00 00 7E [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]wFMCommunicate request_size=255 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 55 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 B4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [17:26:45]Write to MH i2c: E2 02 01 FA 0C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 55 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 B4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 A9 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=38 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 73 00 00 35 04 06 00 D4 EC 53 3C 00 63 [17:26:46]Write to MH i2c: E2 29 00 FB 0C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 73 00 00 35 04 06 00 D4 EC 53 3C 00 63 00 00 E0 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 03 02 [17:26:46]Write to MH i2c: E2 08 00 FC 0C 80 0D 03 02 00 00 00 00 83 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0B 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0B 00 FC 0C 00 89 37 41 E1 11 CB E9 24 90 00 4F [17:26:46]RAPDU: 89 37 41 E1 11 CB E9 24 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_SignData done [17:26:46]FM_MakeSignedData done [17:26:46]CreateOFDProtocolMessage [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 11 00 00 [17:26:46]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [17:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:46]wFMCommunicate OK [17:26:46]CreateOFDProtocolMessage done [17:26:46]OFDSenderStorePacket 29621 [17:26:46]StoreOFDPacket docnum=29621 [17:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 7F 46 23 01 EA CA 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 55 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 B4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 73 00 00 35 04 06 00 D4 EC 53 3C 00 63 89 37 41 E1 11 CB E9 24 [17:26:46]CheckFolder [17:26:46]dirname=/storage/ofd_packets [17:26:46]CheckFolder done [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00029621 [17:26:46]NVStorageSaveData ofd_packets/00029621 [17:26:46]File name is /storage/ofd_packets/00029621 [17:26:46]Write 329 bytes [17:26:46]NVStorageSaveData done [17:26:46]OFDSenderStorePacket done [17:26:46]KKMCreateOFDPacket done [17:26:46]NVStorageSaveData kkm_last_timestamp [17:26:46]File name is /storage/kkm_last_timestamp [17:26:46]Write 4 bytes [17:26:46]NVStorageSaveData done [17:26:46]ExternCall_PrintAddStr [17:26:46]wPrintStart [17:26:46]Write to MH i2c: 01 00 00 FE 0C 0A [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [17:26:46]RasterBufferAndPrint [17:26:46]line Счет N : (1)348066 [17:26:46]line ИНН: 02508201610067 [17:26:46]line Контрольно-Кассовый Чек [17:26:46]line ВОЗВРАТ ПРОДАЖИ [17:26:46]line ТРК (МРК, ГНК) : 32 [17:26:46]line Товар: 2710124130 [17:26:46]line Аи-92-К-5 [17:26:46]line 38.590 * 64.80 [17:26:46]line = 2500.63 [17:26:46]line НДС 12% НСП 1% [17:26:46]line > о реализуемом товаре [17:26:46]line ОКРУГЛЕНИЕ: -0.63 [17:26:46]line ИТОГО: 2500.00 [17:26:46]line НСП 1% : 22.13 [17:26:46]line НДС 12% : 265.55 [17:26:46]line Наличными: 2500.00 [17:26:46]line Безнал.: 0.00 [17:26:46]line Место: АЗС № 108 "Партнер Нефть" [17:26:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:26:46]line СНО: Общий режим [17:26:46]line Чек 215 15.04.2024 17:26 [17:26:46]line Смена: 117 ФФД: 1.0 [17:26:46]line ЗНМ: 0300000027 [17:26:46]line РНМ: 0000138879044617 [17:26:46]line Версия ККМ: 001 [17:26:46]line ФД осн.: 29620 [17:26:46]line ФМ осн.: 0000000000963154 [17:26:46]line ФМ: 0000000000963154 [17:26:46]line ФД: 29621 [17:26:46]line ФПД: 234111473811555 [17:26:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172645&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29621&fm=234111473811555&tin=02508201610067®Number=0000138879044617&sum=250000 [17:26:46]written 0, free lines is 4095 [17:26:46]OFD Sender: Processing packet 29621 [packets to send 8, broken 7] [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00029621 [17:26:46]OFD Sender: To server: pG, [17:26:46]CommunicateWithHost lk.salyk.kg:30040 [17:26:46]ConnectInit lk.salyk.kg [17:26:46]Connected sock=10 [17:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 7F 46 23 01 EA CA 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 55 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 B4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 73 00 00 35 04 06 00 D4 EC 53 3C 00 63 89 37 41 E1 11 CB E9 24 [17:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CF 87 47 00 EA 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 39 36 33 31 35 34 10 04 04 00 B5 73 00 00 F4 03 04 00 F6 0D 1D 66 B6 04 01 00 00 0F CA BD AD 29 9C 22 15 [17:26:46]CommunicateWithHost err = 0 [17:26:46]CheckOFDResponse [17:26:46]1017 (14) - 77093643461234 [17:26:46]1041 (16) - 0000000000963154 [17:26:46]1040 (4) - 29621 [17:26:46]1012 (4) - 15.04.2024 11:22 [17:26:46]1206 (1) - 0 [17:26:46]OFD Sender: Remove packet 29621 [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00029621 [17:26:46]NVStorageDeleteData [17:26:46]Write to MH i2c: 01 00 00 28 0D 35 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 E4 0C 2C [17:26:46]RasterBufferAndPrint [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]written 0, free lines is 3310 [17:26:46]MH_Cut [17:26:46]Write to MH i2c: D1 01 00 2F 0D 01 0E [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 01 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 01 00 2F 0D 00 0D [17:26:46]Write to MH i2c: 01 00 00 30 0D 3D [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:47]OFD Sender: No OFD packet to send [17:26:47]*** Cut start [17:26:47]*** Partial cut [17:26:47]*** CUTSNS_PIN = 1 [17:26:47]*** CUTSNS_PIN = 0 [17:26:47]*** Brake cut motor [17:26:48]Read from MH i2c: 01 [17:26:48]MH_I2C_Read... [17:26:48]*** Stop cut motor [17:26:48]*** Cut end [17:26:48]Read from MH i2c: 01 07 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [17:26:48]process_action close_receipt done [17:26:48]requested_data is exist [17:26:48]produce_requested_data [17:26:48]requested_item fm.sn is exist - process it [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 11 00 00 [17:26:48]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [17:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:26:48]wFMCommunicate OK [17:26:48]requested_item fd.num is exist - process it [17:26:48]SAM_PROTO_GetFieldsCounters [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 13 00 00 [17:26:48]Write to MH i2c: E2 08 00 32 0D 80 13 00 00 00 00 00 00 BB [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:48]Read from MH i2c: E2 62 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 62 00 32 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 73 00 00 0E 04 04 00 75 00 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 1B [17:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 73 00 00 0E 04 04 00 75 00 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:26:48]wFMCommunicate OK [17:26:48]SAM_PROTO_GetFieldsCounters done [17:26:48]requested_item shift.num is exist - process it [17:26:48]requested_item shift.opened is exist - process it [17:26:48]req_shift_opened [17:26:48]FM_GetShiftState [17:26:48]SAM_PROTO_GetShiftState [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 13 01 00 [17:26:48]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 0E 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [17:26:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:26:48]wFMCommunicate OK [17:26:48]SAM_PROTO_GetShiftState done [17:26:48]FM_GetShiftState done [17:26:48]req_shift_opened done [17:26:48]requested_item shift.open_date is exist - process it [17:26:48]req_shift_open_date [17:26:48]req_shift_open_date done [17:26:48]produce_requested_data done [17:26:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29621,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:26:48]process_action_free close_receipt [17:26:48]json_value_free [17:26:48]json_value_free done [17:26:48]process_json_proto returns [17:26:48]Send response to host [17:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29621,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:26:48]free response buf [17:26:48]execute_script done [17:26:48]execute_script returns [17:26:48]free content buf [17:26:48]Sock 7.Close socket [17:26:48]Sock 7.Thread stoped [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:52]accept exits with 9 [17:27:52]New connection [17:27:52]New thread 3066965348 created [17:27:52]Thread 3067108708 joined [17:27:52]Waiting for new connection... [17:27:52] Sock 9.Parse request [17:27:52]Sock 9.Check first char [17:27:52]Sock 9.First char is OK [17:27:52]request: POST /json_proto HTTP/1.0 [17:27:52]Method: POST [17:27:52]URL: /json_proto [17:27:52]Method is POST - this is cgi request [17:27:52]url: /json_proto [17:27:52]query_string will be loaded in cgi processing [17:27:52]execute_cgi json_proto POST (null) [17:27:52]execute_cgi path=json_proto method=POST [17:27:52]POST find Content-Length [17:27:52]Host: 172.17.33.3:8080 [17:27:52]Content-Length: 808 [17:27:52]Content-Type: application/json [17:27:52] [17:27:52]POST finish read [17:27:52]Found Content-Length = 808 [17:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]execute_script... [17:27:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 38.590, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]POST & json_proto [17:27:52]process_json_proto [17:27:52]json parsed OK: [17:27:52]protocol is kg_v1.0 [17:27:52]action value=close_receipt [17:27:52]process_action close_receipt [17:27:52]cmd_close_receipt [17:27:52]MH_GetDate [17:27:52]Write to MH i2c: F0 00 00 34 0D 30 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 34 0D 00 9A 63 1D 66 23 5B 8F 65 2B [17:27:52]GetLastDocTimeStamp 1713202005 [17:27:52]current date 1713202074 [17:27:52]FM_GetShiftState [17:27:52]SAM_PROTO_GetShiftState [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 13 01 00 [17:27:52]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 0E 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B3 [17:27:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:27:53]wFMCommunicate OK [17:27:53]SAM_PROTO_GetShiftState done [17:27:53]FM_GetShiftState done [17:27:53]opened in 1713140468 [17:27:53]opened+sec_in_day 1713226868 [17:27:53]quantity*price = 250063 [17:27:53]sum+1 = 250064 [17:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.63 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.63 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 216 15.04.2024 17:27 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29622 ФПД: 8229777192602 1/tax-web-control/client/api/v1/ticket?date=20240415T172754&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29622&fm=8229777192602&tin=02508201610067®Number=0000138879044617&sum=250063 [17:27:54]StoreToDocumentArchive [17:27:54]shift 117 fd 29622 [17:27:54]save to /storage/0117/doc_00029622 [17:27:54]save last doc name /storage/0117/doc_00029622 to /storage/kkm_last_doc_name [17:27:54]save OK [17:27:54]Clear old archive folders... [17:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:54]tlvbuf is 01A79440 [17:27:54]SAM_PROTO_ClearQueue [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 09 00 00 [17:27:54]Write to MH i2c: E2 08 00 42 0D 80 09 00 00 00 00 00 00 C1 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_ClearQueue done [17:27:54]KKMCreateOFDPacket [17:27:54]OFDProtocolAddRootSTLVToBuf [17:27:54]FM_MakeSignedData [17:27:54]FM_MakeSignedData [17:27:54]SAM_PROTO_SignData [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 01 02 [17:27:54]Write to MH i2c: E2 08 00 43 0D 80 0D 01 02 00 00 00 00 C9 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]wFMCommunicate request_size=255 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9A 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 73 00 00 35 04 06 00 07 [17:27:54]Write to MH i2c: E2 02 01 44 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 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9A 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 73 00 00 35 04 06 00 07 00 00 5F [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]wFMCommunicate request_size=10 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 02 02 05 7C 24 F2 36 9A [17:27:54]Write to MH i2c: E2 0D 00 45 0D 80 0D 02 02 05 00 7C 24 F2 36 9A 00 00 38 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [17:27:54]RAPDU: 90 00 [17:27:54]wFMCommunicate OK [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 0D 03 02 [17:27:54]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0B 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0B 00 46 0D 00 00 78 EF E2 5D AC 72 77 90 00 0A [17:27:54]RAPDU: 00 78 EF E2 5D AC 72 77 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_SignData done [17:27:54]FM_MakeSignedData done [17:27:54]CreateOFDProtocolMessage [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 11 00 00 [17:27:54]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [17:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:54]wFMCommunicate OK [17:27:54]CreateOFDProtocolMessage done [17:27:54]OFDSenderStorePacket 29622 [17:27:54]StoreOFDPacket docnum=29622 [17:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 BE 07 01 F6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9A 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 73 00 00 35 04 06 00 07 7C 24 F2 36 9A 00 78 EF E2 5D AC 72 77 [17:27:54]CheckFolder [17:27:54]dirname=/storage/ofd_packets [17:27:54]CheckFolder done [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00029622 [17:27:54]NVStorageSaveData ofd_packets/00029622 [17:27:54]File name is /storage/ofd_packets/00029622 [17:27:54]Write 301 bytes [17:27:54]NVStorageSaveData done [17:27:54]OFDSenderStorePacket done [17:27:54]KKMCreateOFDPacket done [17:27:54]NVStorageSaveData kkm_last_timestamp [17:27:54]File name is /storage/kkm_last_timestamp [17:27:54]Write 4 bytes [17:27:54]NVStorageSaveData done [17:27:54]ExternCall_PrintAddStr [17:27:54]wPrintStart [17:27:54]Write to MH i2c: 01 00 00 48 0D 55 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [17:27:54]RasterBufferAndPrint [17:27:54]line Счет N : (1)348065 [17:27:54]line ИНН: 02508201610067 [17:27:54]line Контрольно-Кассовый Чек [17:27:54]line ПРОДАЖА [17:27:54]line ТРК (МРК, ГНК) : 13 [17:27:54]line Товар: 2710124130 [17:27:54]line Аи-92-К-5 [17:27:54]line 38.590 * 64.80 [17:27:54]line = 2500.63 [17:27:54]line НДС 12% НСП 1% [17:27:54]line > о реализуемом товаре [17:27:54]line ИТОГО: 2500.63 [17:27:54]line НСП 1% : 22.13 [17:27:54]line НДС 12% : 265.55 [17:27:54]line Наличными: 0.00 [17:27:54]line Безнал.: 2500.63 [17:27:54]line Место: АЗС № 108 "Партнер Нефть" [17:27:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:27:54]line СНО: Общий режим [17:27:54]line Чек 216 15.04.2024 17:27 [17:27:54]line Смена: 117 ФФД: 1.0 [17:27:54]line ЗНМ: 0300000027 [17:27:54]line РНМ: 0000138879044617 [17:27:54]line Версия ККМ: 001 [17:27:54]line Платежная система: О! деньги [17:27:54]line ФМ: 0000000000963154 [17:27:54]line ФД: 29622 [17:27:54]line ФПД: 8229777192602 [17:27:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172754&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29622&fm=8229777192602&tin=02508201610067®Number=0000138879044617&sum=250063 [17:27:55]OFD Sender: Processing packet 29622 [packets to send 8, broken 7] [17:27:55]ProducePacketName [17:27:55]name=ofd_packets/00029622 [17:27:55]OFD Sender: To server: pG, [17:27:55]CommunicateWithHost lk.salyk.kg:30040 [17:27:55]ConnectInit lk.salyk.kg [17:27:55]written 0, free lines is 4095 [17:27:55]Connected sock=10 [17:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C9 BE 07 01 F6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 96 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 CF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9A 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 73 00 00 35 04 06 00 07 7C 24 F2 36 9A 00 78 EF E2 5D AC 72 77 [17:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 B0 47 00 18 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 39 36 33 31 35 34 10 04 04 00 B6 73 00 00 F4 03 04 00 3A 0E 1D 66 B6 04 01 00 00 AD 70 DB 51 51 F6 18 DD [17:27:55]CommunicateWithHost err = 0 [17:27:55]CheckOFDResponse [17:27:55]1017 (14) - 77093643461234 [17:27:55]1041 (16) - 0000000000963154 [17:27:55]1040 (4) - 29622 [17:27:55]1012 (4) - 15.04.2024 11:23 [17:27:55]1206 (1) - 0 [17:27:55]OFD Sender: Remove packet 29622 [17:27:55]ProducePacketName [17:27:55]name=ofd_packets/00029622 [17:27:55]NVStorageDeleteData [17:27:55]Write to MH i2c: 01 00 00 71 0D 7E [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 07 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 07 00 71 0D 00 00 00 00 00 F9 0C 8A [17:27:55]RasterBufferAndPrint [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]line [17:27:55]written 0, free lines is 3328 [17:27:55]MH_Cut [17:27:55]Write to MH i2c: D1 01 00 78 0D 01 57 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 01 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: D1 01 00 78 0D 00 56 [17:27:55]Write to MH i2c: 01 00 00 79 0D 86 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]OFD Sender: No OFD packet to send [17:27:56]*** Cut start [17:27:56]*** Partial cut [17:27:56]*** CUTSNS_PIN = 1 [17:27:56]*** CUTSNS_PIN = 0 [17:27:56]*** Brake cut motor [17:27:56]Read from MH i2c: 01 [17:27:56]MH_I2C_Read... [17:27:56]*** Stop cut motor [17:27:56]*** Cut end [17:27:56]Read from MH i2c: 01 07 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [17:27:56]process_action close_receipt done [17:27:56]requested_data is exist [17:27:56]produce_requested_data [17:27:56]requested_item fm.sn is exist - process it [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 11 00 00 [17:27:56]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 50 [17:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:56]wFMCommunicate OK [17:27:56]requested_item fd.num is exist - process it [17:27:56]SAM_PROTO_GetFieldsCounters [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 00 00 [17:27:56]Write to MH i2c: E2 08 00 7B 0D 80 13 00 00 00 00 00 00 04 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 62 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 62 00 7B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 73 00 00 0E 04 04 00 75 00 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 68 [17:27:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 73 00 00 0E 04 04 00 75 00 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:27:57]wFMCommunicate OK [17:27:57]SAM_PROTO_GetFieldsCounters done [17:27:57]requested_item shift.num is exist - process it [17:27:57]requested_item shift.opened is exist - process it [17:27:57]req_shift_opened [17:27:57]FM_GetShiftState [17:27:57]SAM_PROTO_GetShiftState [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 13 01 00 [17:27:57]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0E 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FA [17:27:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:27:57]wFMCommunicate OK [17:27:57]SAM_PROTO_GetShiftState done [17:27:57]FM_GetShiftState done [17:27:57]req_shift_opened done [17:27:57]requested_item shift.open_date is exist - process it [17:27:57]req_shift_open_date [17:27:57]req_shift_open_date done [17:27:57]produce_requested_data done [17:27:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29622,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:27:57]process_action_free close_receipt [17:27:57]json_value_free [17:27:57]json_value_free done [17:27:57]process_json_proto returns [17:27:57]Send response to host [17:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29622,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:27:57]free response buf [17:27:57]execute_script done [17:27:57]execute_script returns [17:27:57]free content buf [17:27:57]Sock 9.Close socket [17:27:57]Sock 9.Thread stoped [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:09]accept exits with 7 [17:28:09]New connection [17:28:09]New thread 3067108708 created [17:28:09]Thread 3066965348 joined [17:28:09]Waiting for new connection... [17:28:09] Sock 7.Parse request [17:28:09]Sock 7.Check first char [17:28:09]Sock 7.First char is OK [17:28:09]request: POST /json_proto HTTP/1.0 [17:28:09]Method: POST [17:28:09]URL: /json_proto [17:28:09]Method is POST - this is cgi request [17:28:09]url: /json_proto [17:28:09]query_string will be loaded in cgi processing [17:28:09]execute_cgi json_proto POST (null) [17:28:09]execute_cgi path=json_proto method=POST [17:28:09]POST find Content-Length [17:28:09]Host: 172.17.33.3:8080 [17:28:09]Content-Length: 678 [17:28:09]Content-Type: application/json [17:28:09] [17:28:09]POST finish read [17:28:09]Found Content-Length = 678 [17:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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:28:09]execute_script... [17:28: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)348067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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:28:09]POST & json_proto [17:28:09]process_json_proto [17:28:09]json parsed OK: [17:28:09]protocol is kg_v1.0 [17:28:09]action value=close_receipt [17:28:09]process_action close_receipt [17:28:09]cmd_close_receipt [17:28:09]MH_GetDate [17:28:09]Write to MH i2c: F0 00 00 7D 0D 79 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 09 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 09 00 7D 0D 00 AA 63 1D 66 23 5B 8F 65 84 [17:28:09]GetLastDocTimeStamp 1713202074 [17:28:09]current date 1713202090 [17:28:09]FM_GetShiftState [17:28:09]SAM_PROTO_GetShiftState [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 13 01 00 [17:28:09]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [17:28:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_GetShiftState done [17:28:09]FM_GetShiftState done [17:28:09]opened in 1713140468 [17:28:09]opened+sec_in_day 1713226868 [17:28:09]quantity*price = 65059 [17:28:09]sum+1 = 65060 [17:28:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 217 15.04.2024 17:28 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29623 ФПД: 54391230368463 1/tax-web-control/client/api/v1/ticket?date=20240415T172810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29623&fm=54391230368463&tin=02508201610067®Number=0000138879044617&sum=65000 [17:28:10]StoreToDocumentArchive [17:28:10]shift 117 fd 29623 [17:28:10]save to /storage/0117/doc_00029623 [17:28:10]save last doc name /storage/0117/doc_00029623 to /storage/kkm_last_doc_name [17:28:10]save OK [17:28:10]Clear old archive folders... [17:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:10]tlvbuf is 01A79050 [17:28:10]SAM_PROTO_ClearQueue [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 09 00 00 [17:28:10]Write to MH i2c: E2 08 00 8B 0D 80 09 00 00 00 00 00 00 0A [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]SAM_PROTO_ClearQueue done [17:28:10]KKMCreateOFDPacket [17:28:10]OFDProtocolAddRootSTLVToBuf [17:28:10]FM_MakeSignedData [17:28:10]FM_MakeSignedData [17:28:10]SAM_PROTO_SignData [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 01 02 [17:28:10]Write to MH i2c: E2 08 00 8C 0D 80 0D 01 02 00 00 00 00 12 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=255 [17:28:10]MH_SAM_APDU [17:28: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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 73 00 00 35 04 06 00 31 [17:28:10]Write to MH i2c: E2 02 01 8D 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 73 00 00 35 04 06 00 31 00 00 7E [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]OFD Sender: No OFD packet to send [17:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=10 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 02 02 05 77 F1 F7 0A CF [17:28:10]Write to MH i2c: E2 0D 00 8E 0D 80 0D 02 02 05 00 77 F1 F7 0A CF 00 00 57 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 03 02 [17:28:10]Write to MH i2c: E2 08 00 8F 0D 80 0D 03 02 00 00 00 00 17 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 8F 0D 00 19 44 6F 25 37 79 47 8A 90 00 8A [17:28:11]RAPDU: 19 44 6F 25 37 79 47 8A 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_SignData done [17:28:11]FM_MakeSignedData done [17:28:11]CreateOFDProtocolMessage [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 11 00 00 [17:28:11]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [17:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:28:11]wFMCommunicate OK [17:28:11]CreateOFDProtocolMessage done [17:28:11]OFDSenderStorePacket 29623 [17:28:11]StoreOFDPacket docnum=29623 [17:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 E8 07 01 05 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 73 00 00 35 04 06 00 31 77 F1 F7 0A CF 19 44 6F 25 37 79 47 8A [17:28:11]CheckFolder [17:28:11]dirname=/storage/ofd_packets [17:28:11]CheckFolder done [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00029623 [17:28:11]NVStorageSaveData ofd_packets/00029623 [17:28:11]File name is /storage/ofd_packets/00029623 [17:28:11]Write 301 bytes [17:28:11]NVStorageSaveData done [17:28:11]OFDSenderStorePacket done [17:28:11]KKMCreateOFDPacket done [17:28:11]NVStorageSaveData kkm_last_timestamp [17:28:11]File name is /storage/kkm_last_timestamp [17:28:11]Write 4 bytes [17:28:11]NVStorageSaveData done [17:28:11]ExternCall_PrintAddStr [17:28:11]wPrintStart [17:28:11]Write to MH i2c: 01 00 00 91 0D 9E [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 FF 0F B3 [17:28:11]RasterBufferAndPrint [17:28:11]line Счет N : (1)348067 [17:28:11]line ИНН: 02508201610067 [17:28:11]line Контрольно-Кассовый Чек [17:28:11]line ПРОДАЖА [17:28:11]line ТРК (МРК, ГНК) : 23 [17:28:11]line Товар: 2710124130 [17:28:11]line Аи-92-К-5 [17:28:11]line 10.040 * 64.80 [17:28:11]line = 650.59 [17:28:11]line НДС 12% НСП 1% [17:28:11]line > о реализуемом товаре [17:28:11]line ОКРУГЛЕНИЕ: -0.59 [17:28:11]line ИТОГО: 650.00 [17:28:11]line Внесено: 650.00 [17:28:11]line СДАЧА: 0.00 [17:28:11]line НСП 1% : 5.76 [17:28:11]line НДС 12% : 69.09 [17:28:11]line Наличными: 650.00 [17:28:11]line Безнал.: 0.00 [17:28:11]line Место: АЗС № 108 "Партнер Нефть" [17:28:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:28:11]line СНО: Общий режим [17:28:11]line Чек 217 15.04.2024 17:28 [17:28:11]line Смена: 117 ФФД: 1.0 [17:28:11]line ЗНМ: 0300000027 [17:28:11]line РНМ: 0000138879044617 [17:28:11]line Версия ККМ: 001 [17:28:11]line ФМ: 0000000000963154 [17:28:11]line ФД: 29623 [17:28:11]line ФПД: 54391230368463 [17:28:11]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29623&fm=54391230368463&tin=02508201610067®Number=0000138879044617&sum=65000 [17:28:11]OFD Sender: Processing packet 29623 [packets to send 8, broken 7] [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00029623 [17:28:11]OFD Sender: To server: pG, [17:28:11]CommunicateWithHost lk.salyk.kg:30040 [17:28:11]ConnectInit lk.salyk.kg [17:28:11]written 0, free lines is 4095 [17:28:11]Connected sock=10 [17:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 E8 07 01 05 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 AA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 73 00 00 35 04 06 00 31 77 F1 F7 0A CF 19 44 6F 25 37 79 47 8A [17:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 42 ED 47 00 5C 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 39 36 33 31 35 34 10 04 04 00 B7 73 00 00 F4 03 04 00 4B 0E 1D 66 B6 04 01 00 00 6C 71 EC B9 19 88 EF 82 [17:28:11]CommunicateWithHost err = 0 [17:28:11]CheckOFDResponse [17:28:11]1017 (14) - 77093643461234 [17:28:11]1041 (16) - 0000000000963154 [17:28:11]1040 (4) - 29623 [17:28:11]1012 (4) - 15.04.2024 11:23 [17:28:11]1206 (1) - 0 [17:28:11]OFD Sender: Remove packet 29623 [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00029623 [17:28:11]NVStorageDeleteData [17:28:11]Write to MH i2c: 01 00 00 BB 0D C8 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 E6 0C C1 [17:28:11]RasterBufferAndPrint [17:28:11]line [17:28:11]line [17:28:11]line [17:28:11]line [17:28:11]line [17:28:11]written 0, free lines is 3309 [17:28:11]MH_Cut [17:28:11]Write to MH i2c: D1 01 00 C2 0D 01 A1 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: D1 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: D1 01 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: D1 01 00 C2 0D 00 A0 [17:28:11]Write to MH i2c: 01 00 00 C3 0D D0 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:12]OFD Sender: No OFD packet to send [17:28:12]*** Cut start [17:28:12]*** Partial cut [17:28:12]*** CUTSNS_PIN = 1 [17:28:12]*** CUTSNS_PIN = 0 [17:28:12]*** Brake cut motor [17:28:13]Read from MH i2c: 01 [17:28:13]MH_I2C_Read... [17:28:13]*** Stop cut motor [17:28:13]*** Cut end [17:28:13]Read from MH i2c: 01 07 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [17:28:13]process_action close_receipt done [17:28:13]requested_data is exist [17:28:13]produce_requested_data [17:28:13]requested_item fm.sn is exist - process it [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 11 00 00 [17:28:13]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 17 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [17:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:28:13]wFMCommunicate OK [17:28:13]requested_item fd.num is exist - process it [17:28:13]SAM_PROTO_GetFieldsCounters [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 00 00 [17:28:13]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 62 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 62 00 C5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 73 00 00 0E 04 04 00 75 00 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 B6 [17:28:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 73 00 00 0E 04 04 00 75 00 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:28:13]wFMCommunicate OK [17:28:13]SAM_PROTO_GetFieldsCounters done [17:28:13]requested_item shift.num is exist - process it [17:28:13]requested_item shift.opened is exist - process it [17:28:13]req_shift_opened [17:28:13]FM_GetShiftState [17:28:13]SAM_PROTO_GetShiftState [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 01 00 [17:28:13]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 44 [17:28:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:28:13]wFMCommunicate OK [17:28:13]SAM_PROTO_GetShiftState done [17:28:13]FM_GetShiftState done [17:28:13]req_shift_opened done [17:28:13]requested_item shift.open_date is exist - process it [17:28:13]req_shift_open_date [17:28:13]req_shift_open_date done [17:28:13]produce_requested_data done [17:28:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29623,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:28:13]process_action_free close_receipt [17:28:13]json_value_free [17:28:13]json_value_free done [17:28:13]process_json_proto returns [17:28:13]Send response to host [17:28:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29623,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:28:13]free response buf [17:28:13]execute_script done [17:28:13]execute_script returns [17:28:13]free content buf [17:28:13]Sock 7.Close socket [17:28:13]Sock 7.Thread stoped [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:28]accept exits with 9 [17:29:28]New connection [17:29:28]New thread 3066965348 created [17:29:28]Thread 3067108708 joined [17:29:28]Waiting for new connection... [17:29:28] Sock 9.Parse request [17:29:28]Sock 9.Check first char [17:29:28]Sock 9.First char is OK [17:29:28]request: POST /json_proto HTTP/1.0 [17:29:28]Method: POST [17:29:28]URL: /json_proto [17:29:28]Method is POST - this is cgi request [17:29:28]url: /json_proto [17:29:28]query_string will be loaded in cgi processing [17:29:28]execute_cgi json_proto POST (null) [17:29:28]execute_cgi path=json_proto method=POST [17:29:28]POST find Content-Length [17:29:28]Host: 172.17.33.3:8080 [17:29:28]Content-Length: 677 [17:29:28]Content-Type: application/json [17:29:28] [17:29:28]POST finish read [17:29:28]Found Content-Length = 677 [17:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:28]execute_script... [17:29: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)348068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:28]POST & json_proto [17:29:28]process_json_proto [17:29:28]json parsed OK: [17:29:28]protocol is kg_v1.0 [17:29:28]action value=close_receipt [17:29:28]process_action close_receipt [17:29:28]cmd_close_receipt [17:29:28]MH_GetDate [17:29:28]Write to MH i2c: F0 00 00 C7 0D C3 [17:29:28]Write i2c OK [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: F0 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: F0 09 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: F0 09 00 C7 0D 00 FA 63 1D 66 23 5B 8F 65 1E [17:29:28]GetLastDocTimeStamp 1713202090 [17:29:28]current date 1713202170 [17:29:28]FM_GetShiftState [17:29:28]SAM_PROTO_GetShiftState [17:29:28]wFMCommunicate request_size=4 [17:29:28]MH_SAM_APDU [17:29:28]CAPDU: 80 13 01 00 [17:29:28]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [17:29:28]Write i2c OK [17:29:28]MH_I2C_Read... [17:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:28]Read from MH i2c: E2 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 0E 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 46 [17:29:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:29:28]wFMCommunicate OK [17:29:28]SAM_PROTO_GetShiftState done [17:29:28]FM_GetShiftState done [17:29:28]opened in 1713140468 [17:29:28]opened+sec_in_day 1713226868 [17:29:28]quantity*price = 60004 [17:29:28]sum+1 = 60006 [17:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 218 15.04.2024 17:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29624 ФПД: 171977778598088 1/tax-web-control/client/api/v1/ticket?date=20240415T172930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29624&fm=171977778598088&tin=02508201610067®Number=0000138879044617&sum=60000 [17:29:29]StoreToDocumentArchive [17:29:29]shift 117 fd 29624 [17:29:29]save to /storage/0117/doc_00029624 [17:29:29]save last doc name /storage/0117/doc_00029624 to /storage/kkm_last_doc_name [17:29:29]save OK [17:29:29]Clear old archive folders... [17:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:29]tlvbuf is 01A1B150 [17:29:29]SAM_PROTO_ClearQueue [17:29:29]wFMCommunicate request_size=4 [17:29:29]MH_SAM_APDU [17:29:29]CAPDU: 80 09 00 00 [17:29:29]Write to MH i2c: E2 08 00 D5 0D 80 09 00 00 00 00 00 00 54 [17:29:29]Write i2c OK [17:29:29]MH_I2C_Read... [17:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:29]Read from MH i2c: E2 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 03 00 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [17:29:29]RAPDU: 90 00 [17:29:29]wFMCommunicate OK [17:29:29]SAM_PROTO_ClearQueue done [17:29:29]KKMCreateOFDPacket [17:29:29]OFDProtocolAddRootSTLVToBuf [17:29:29]FM_MakeSignedData [17:29:29]FM_MakeSignedData [17:29:29]SAM_PROTO_SignData [17:29:29]wFMCommunicate request_size=4 [17:29:29]MH_SAM_APDU [17:29:29]CAPDU: 80 0D 01 02 [17:29:29]Write to MH i2c: E2 08 00 D6 0D 80 0D 01 02 00 00 00 00 5C [17:29:29]Write i2c OK [17:29:29]MH_I2C_Read... [17:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:29]Read from MH i2c: E2 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 03 00 [17:29:29]MH_I2C_Read... [17:29:29]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [17:29:29]RAPDU: 90 00 [17:29:29]wFMCommunicate OK [17:29:29]wFMCommunicate request_size=255 [17:29:29]MH_SAM_APDU [17:29: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 DA 00 00 00 F4 03 04 00 FA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 73 00 00 35 04 06 00 9C [17:29:30]Write to MH i2c: E2 02 01 D7 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 DA 00 00 00 F4 03 04 00 FA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 73 00 00 35 04 06 00 9C 00 00 26 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]wFMCommunicate request_size=10 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 02 02 05 69 B2 67 10 C8 [17:29:30]Write to MH i2c: E2 0D 00 D8 0D 80 0D 02 02 05 00 69 B2 67 10 C8 00 00 C3 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [17:29:30]RAPDU: 90 00 [17:29:30]wFMCommunicate OK [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 0D 03 02 [17:29:30]Write to MH i2c: E2 08 00 D9 0D 80 0D 03 02 00 00 00 00 61 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 0B 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 0B 00 D9 0D 00 21 E6 D7 E3 D8 93 95 90 90 00 B3 [17:29:30]RAPDU: 21 E6 D7 E3 D8 93 95 90 90 00 [17:29:30]wFMCommunicate OK [17:29:30]SAM_PROTO_SignData done [17:29:30]FM_MakeSignedData done [17:29:30]CreateOFDProtocolMessage [17:29:30]wFMCommunicate request_size=4 [17:29:30]MH_SAM_APDU [17:29:30]CAPDU: 80 11 00 00 [17:29:30]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:30]Read from MH i2c: E2 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 17 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [17:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:29:30]wFMCommunicate OK [17:29:30]CreateOFDProtocolMessage done [17:29:30]OFDSenderStorePacket 29624 [17:29:30]StoreOFDPacket docnum=29624 [17:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 94 07 01 B8 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 DA 00 00 00 F4 03 04 00 FA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 73 00 00 35 04 06 00 9C 69 B2 67 10 C8 21 E6 D7 E3 D8 93 95 90 [17:29:30]CheckFolder [17:29:30]dirname=/storage/ofd_packets [17:29:30]CheckFolder done [17:29:30]ProducePacketName [17:29:30]name=ofd_packets/00029624 [17:29:30]NVStorageSaveData ofd_packets/00029624 [17:29:30]File name is /storage/ofd_packets/00029624 [17:29:30]Write 301 bytes [17:29:30]NVStorageSaveData done [17:29:30]OFDSenderStorePacket done [17:29:30]KKMCreateOFDPacket done [17:29:30]NVStorageSaveData kkm_last_timestamp [17:29:30]File name is /storage/kkm_last_timestamp [17:29:30]Write 4 bytes [17:29:30]NVStorageSaveData done [17:29:30]ExternCall_PrintAddStr [17:29:30]wPrintStart [17:29:30]Write to MH i2c: 01 00 00 DB 0D E8 [17:29:30]Write i2c OK [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 07 00 [17:29:30]MH_I2C_Read... [17:29:30]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [17:29:30]RasterBufferAndPrint [17:29:30]line Счет N : (1)348068 [17:29:30]line ИНН: 02508201610067 [17:29:30]line Контрольно-Кассовый Чек [17:29:30]line ПРОДАЖА [17:29:30]line ТРК (МРК, ГНК) : 13 [17:29:30]line Товар: 2710124130 [17:29:30]line Аи-92-К-5 [17:29:30]line 9.260 * 64.80 [17:29:30]line = 600.05 [17:29:30]line НДС 12% НСП 1% [17:29:30]line > о реализуемом товаре [17:29:30]line ОКРУГЛЕНИЕ: -0.05 [17:29:30]line ИТОГО: 600.00 [17:29:30]line Внесено: 600.00 [17:29:30]line СДАЧА: 0.00 [17:29:30]line НСП 1% : 5.31 [17:29:30]line НДС 12% : 63.72 [17:29:30]line Наличными: 600.00 [17:29:30]line Безнал.: 0.00 [17:29:30]line Место: АЗС № 108 "Партнер Нефть" [17:29:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:29:30]line СНО: Общий режим [17:29:30]line Чек 218 15.04.2024 17:29 [17:29:30]line Смена: 117 ФФД: 1.0 [17:29:30]line ЗНМ: 0300000027 [17:29:30]line РНМ: 0000138879044617 [17:29:30]line Версия ККМ: 001 [17:29:30]line ФМ: 0000000000963154 [17:29:30]line ФД: 29624 [17:29:30]line ФПД: 171977778598088 [17:29:30]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29624&fm=171977778598088&tin=02508201610067®Number=0000138879044617&sum=60000 [17:29:30]OFD Sender: Processing packet 29624 [packets to send 8, broken 7] [17:29:30]ProducePacketName [17:29:30]name=ofd_packets/00029624 [17:29:30]OFD Sender: To server: pG, [17:29:30]CommunicateWithHost lk.salyk.kg:30040 [17:29:30]ConnectInit lk.salyk.kg [17:29:30]written 0, free lines is 4095 [17:29:30]Connected sock=10 [17:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 94 07 01 B8 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 DA 00 00 00 F4 03 04 00 FA 63 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 73 00 00 35 04 06 00 9C 69 B2 67 10 C8 21 E6 D7 E3 D8 93 95 90 [17:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E 5A 47 00 07 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 39 36 33 31 35 34 10 04 04 00 B8 73 00 00 F4 03 04 00 9A 0E 1D 66 B6 04 01 00 00 AF 00 E5 25 93 CA 0E 6D [17:29:31]CommunicateWithHost err = 0 [17:29:31]CheckOFDResponse [17:29:31]1017 (14) - 77093643461234 [17:29:31]1041 (16) - 0000000000963154 [17:29:31]1040 (4) - 29624 [17:29:31]1012 (4) - 15.04.2024 11:25 [17:29:31]1206 (1) - 0 [17:29:31]OFD Sender: Remove packet 29624 [17:29:31]ProducePacketName [17:29:31]name=ofd_packets/00029624 [17:29:31]NVStorageDeleteData [17:29:31]Write to MH i2c: 01 00 00 05 0E 13 [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 07 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 DB 0C 01 [17:29:31]RasterBufferAndPrint [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]line [17:29:31]written 0, free lines is 3298 [17:29:31]MH_Cut [17:29:31]Write to MH i2c: D1 01 00 0C 0E 01 EC [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: D1 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: D1 01 00 [17:29:31]MH_I2C_Read... [17:29:31]Read from MH i2c: D1 01 00 0C 0E 00 EB [17:29:31]Write to MH i2c: 01 00 00 0D 0E 1B [17:29:31]Write i2c OK [17:29:31]MH_I2C_Read... [17:29:31]OFD Sender: No OFD packet to send [17:29:31]*** Cut start [17:29:31]*** Partial cut [17:29:31]*** CUTSNS_PIN = 1 [17:29:32]*** CUTSNS_PIN = 0 [17:29:32]*** Brake cut motor [17:29:32]Read from MH i2c: 01 [17:29:32]MH_I2C_Read... [17:29:32]*** Stop cut motor [17:29:32]*** Cut end [17:29:32]Read from MH i2c: 01 07 00 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [17:29:32]process_action close_receipt done [17:29:32]requested_data is exist [17:29:32]produce_requested_data [17:29:32]requested_item fm.sn is exist - process it [17:29:32]wFMCommunicate request_size=4 [17:29:32]MH_SAM_APDU [17:29:32]CAPDU: 80 11 00 00 [17:29:32]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [17:29:32]Write i2c OK [17:29:32]MH_I2C_Read... [17:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:32]Read from MH i2c: E2 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 17 00 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [17:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:29:32]wFMCommunicate OK [17:29:32]requested_item fd.num is exist - process it [17:29:32]SAM_PROTO_GetFieldsCounters [17:29:32]wFMCommunicate request_size=4 [17:29:32]MH_SAM_APDU [17:29:32]CAPDU: 80 13 00 00 [17:29:32]Write to MH i2c: E2 08 00 0F 0E 80 13 00 00 00 00 00 00 99 [17:29:32]Write i2c OK [17:29:32]MH_I2C_Read... [17:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:32]Read from MH i2c: E2 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 62 00 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 62 00 0F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 73 00 00 0E 04 04 00 75 00 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 05 [17:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 73 00 00 0E 04 04 00 75 00 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:29:32]wFMCommunicate OK [17:29:32]SAM_PROTO_GetFieldsCounters done [17:29:32]requested_item shift.num is exist - process it [17:29:32]requested_item shift.opened is exist - process it [17:29:32]req_shift_opened [17:29:32]FM_GetShiftState [17:29:32]SAM_PROTO_GetShiftState [17:29:32]wFMCommunicate request_size=4 [17:29:32]MH_SAM_APDU [17:29:32]CAPDU: 80 13 01 00 [17:29:32]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [17:29:32]Write i2c OK [17:29:32]MH_I2C_Read... [17:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:32]Read from MH i2c: E2 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 0E 00 [17:29:32]MH_I2C_Read... [17:29:32]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8F [17:29:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:29:32]wFMCommunicate OK [17:29:32]SAM_PROTO_GetShiftState done [17:29:32]FM_GetShiftState done [17:29:32]req_shift_opened done [17:29:32]requested_item shift.open_date is exist - process it [17:29:32]req_shift_open_date [17:29:32]req_shift_open_date done [17:29:32]produce_requested_data done [17:29:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29624,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:29:32]process_action_free close_receipt [17:29:32]json_value_free [17:29:32]json_value_free done [17:29:32]process_json_proto returns [17:29:32]Send response to host [17:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29624,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:29:32]free response buf [17:29:32]execute_script done [17:29:32]execute_script returns [17:29:32]free content buf [17:29:32]Sock 9.Close socket [17:29:32]Sock 9.Thread stoped [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:47]accept exits with 7 [17:29:47]New connection [17:29:47]New thread 3067108708 created [17:29:47]Thread 3066965348 joined [17:29:47]Waiting for new connection... [17:29:47] Sock 7.Parse request [17:29:47]Sock 7.Check first char [17:29:47]Sock 7.First char is OK [17:29:47]request: POST /json_proto HTTP/1.0 [17:29:47]Method: POST [17:29:47]URL: /json_proto [17:29:47]Method is POST - this is cgi request [17:29:47]url: /json_proto [17:29:47]query_string will be loaded in cgi processing [17:29:47]execute_cgi json_proto POST (null) [17:29:47]execute_cgi path=json_proto method=POST [17:29:47]POST find Content-Length [17:29:47]Host: 172.17.33.3:8080 [17:29:47]Content-Length: 670 [17:29:47]Content-Type: application/json [17:29:47] [17:29:47]POST finish read [17:29:47]Found Content-Length = 670 [17:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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:29:47]execute_script... [17: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)348069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "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:29:47]POST & json_proto [17:29:47]process_json_proto [17:29:47]json parsed OK: [17:29:47]protocol is kg_v1.0 [17:29:47]action value=close_receipt [17:29:47]process_action close_receipt [17:29:47]cmd_close_receipt [17:29:47]MH_GetDate [17:29:47]Write to MH i2c: F0 00 00 11 0E 0E [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: F0 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: F0 09 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: F0 09 00 11 0E 00 0D 64 1D 66 23 5B 8F 65 7D [17:29:47]GetLastDocTimeStamp 1713202170 [17:29:47]current date 1713202189 [17:29:47]FM_GetShiftState [17:29:47]SAM_PROTO_GetShiftState [17:29:47]wFMCommunicate request_size=4 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 13 01 00 [17:29:47]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 0E 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 91 [17:29:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:29:47]wFMCommunicate OK [17:29:47]SAM_PROTO_GetShiftState done [17:29:47]FM_GetShiftState done [17:29:47]opened in 1713140468 [17:29:47]opened+sec_in_day 1713226868 [17:29:47]quantity*price = 65010 [17:29:47]sum+1 = 65011 [17:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 219 15.04.2024 17:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29625 ФПД: 279443940024594 1/tax-web-control/client/api/v1/ticket?date=20240415T172949&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29625&fm=279443940024594&tin=02508201610067®Number=0000138879044617&sum=65000 [17:29:49]StoreToDocumentArchive [17:29:49]shift 117 fd 29625 [17:29:49]save to /storage/0117/doc_00029625 [17:29:49]save last doc name /storage/0117/doc_00029625 to /storage/kkm_last_doc_name [17:29:49]save OK [17:29:49]Clear old archive folders... [17:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:29:49]tlvbuf is 01A5BEB0 [17:29:49]SAM_PROTO_ClearQueue [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 09 00 00 [17:29:49]Write to MH i2c: E2 08 00 1F 0E 80 09 00 00 00 00 00 00 9F [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]SAM_PROTO_ClearQueue done [17:29:49]KKMCreateOFDPacket [17:29:49]OFDProtocolAddRootSTLVToBuf [17:29:49]FM_MakeSignedData [17:29:49]FM_MakeSignedData [17:29:49]SAM_PROTO_SignData [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 0D 01 02 [17:29:49]Write to MH i2c: E2 08 00 20 0E 80 0D 01 02 00 00 00 00 A7 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]wFMCommunicate request_size=255 [17:29:49]MH_SAM_APDU [17: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 DB 00 00 00 F4 03 04 00 0D 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 73 00 00 35 04 06 00 [17:29:49]Write to MH i2c: E2 02 01 21 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 DB 00 00 00 F4 03 04 00 0D 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 73 00 00 35 04 06 00 00 00 7F [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]wFMCommunicate request_size=11 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 0D 02 02 06 FE 27 1C C7 A1 12 [17:29:49]Write to MH i2c: E2 0E 00 22 0E 80 0D 02 02 06 00 FE 27 1C C7 A1 12 00 00 71 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 0D 03 02 [17:29:49]Write to MH i2c: E2 08 00 23 0E 80 0D 03 02 00 00 00 00 AC [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 0B 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 0B 00 23 0E 00 16 75 65 9A B9 FA DD FB 90 00 C2 [17:29:49]RAPDU: 16 75 65 9A B9 FA DD FB 90 00 [17:29:49]wFMCommunicate OK [17:29:49]SAM_PROTO_SignData done [17:29:49]FM_MakeSignedData done [17:29:49]CreateOFDProtocolMessage [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 11 00 00 [17:29:49]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 17 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [17:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:29:49]wFMCommunicate OK [17:29:49]CreateOFDProtocolMessage done [17:29:49]OFDSenderStorePacket 29625 [17:29:49]StoreOFDPacket docnum=29625 [17:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 CE 08 01 33 B0 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 DB 00 00 00 F4 03 04 00 0D 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 73 00 00 35 04 06 00 FE 27 1C C7 A1 12 16 75 65 9A B9 FA DD FB [17:29:49]CheckFolder [17:29:49]dirname=/storage/ofd_packets [17:29:49]CheckFolder done [17:29:49]ProducePacketName [17:29:49]name=ofd_packets/00029625 [17:29:49]NVStorageSaveData ofd_packets/00029625 [17:29:49]File name is /storage/ofd_packets/00029625 [17:29:49]Write 302 bytes [17:29:49]NVStorageSaveData done [17:29:49]OFDSenderStorePacket done [17:29:49]KKMCreateOFDPacket done [17:29:49]NVStorageSaveData kkm_last_timestamp [17:29:49]File name is /storage/kkm_last_timestamp [17:29:49]Write 4 bytes [17:29:49]NVStorageSaveData done [17:29:49]ExternCall_PrintAddStr [17:29:49]wPrintStart [17:29:49]Write to MH i2c: 01 00 00 25 0E 33 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: 01 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: 01 07 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FF 0F 48 [17:29:49]RasterBufferAndPrint [17:29:49]line Счет N : (1)348069 [17:29:49]line ИНН: 02508201610067 [17:29:49]line Контрольно-Кассовый Чек [17:29:49]line ПРОДАЖА [17:29:49]line ТРК (МРК, ГНК) : 31 [17:29:49]line Товар: 2710124130 [17:29:49]line SUPER-92-К-5 [17:29:49]line 9.880 * 65.80 [17:29:49]line = 650.10 [17:29:49]line НДС 12% НСП 1% [17:29:49]line > о реализуемом товаре [17:29:49]line ОКРУГЛЕНИЕ: -0.10 [17:29:49]line ИТОГО: 650.00 [17:29:49]line Внесено: 650.00 [17:29:49]line СДАЧА: 0.00 [17:29:49]line НСП 1% : 5.75 [17:29:49]line НДС 12% : 69.04 [17:29:49]line Наличными: 650.00 [17:29:49]line Безнал.: 0.00 [17:29:49]line Место: АЗС № 108 "Партнер Нефть" [17:29:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:29:49]line СНО: Общий режим [17:29:49]line Чек 219 15.04.2024 17:29 [17:29:49]line Смена: 117 ФФД: 1.0 [17:29:49]line ЗНМ: 0300000027 [17:29:49]line РНМ: 0000138879044617 [17:29:49]line Версия ККМ: 001 [17:29:49]line ФМ: 0000000000963154 [17:29:49]line ФД: 29625 [17:29:49]line ФПД: 279443940024594 [17:29:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T172949&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29625&fm=279443940024594&tin=02508201610067®Number=0000138879044617&sum=65000 [17:29:49]OFD Sender: Processing packet 29625 [packets to send 8, broken 7] [17:29:49]ProducePacketName [17:29:49]name=ofd_packets/00029625 [17:29:49]OFD Sender: To server: pG, [17:29:49]CommunicateWithHost lk.salyk.kg:30040 [17:29:49]ConnectInit lk.salyk.kg [17:29:49]written 0, free lines is 4095 [17:29:49]Connected sock=10 [17:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 CE 08 01 33 B0 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 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 DB 00 00 00 F4 03 04 00 0D 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 73 00 00 35 04 06 00 FE 27 1C C7 A1 12 16 75 65 9A B9 FA DD FB [17:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC 07 47 00 DF 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 39 36 33 31 35 34 10 04 04 00 B9 73 00 00 F4 03 04 00 AD 0E 1D 66 B6 04 01 00 00 19 AD A6 25 28 45 CB 0D [17:29:50]CommunicateWithHost err = 0 [17:29:50]CheckOFDResponse [17:29:50]1017 (14) - 77093643461234 [17:29:50]1041 (16) - 0000000000963154 [17:29:50]1040 (4) - 29625 [17:29:50]1012 (4) - 15.04.2024 11:25 [17:29:50]1206 (1) - 0 [17:29:50]OFD Sender: Remove packet 29625 [17:29:50]ProducePacketName [17:29:50]name=ofd_packets/00029625 [17:29:50]NVStorageDeleteData [17:29:50]Write to MH i2c: 01 00 00 4F 0E 5D [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 D5 0C 45 [17:29:50]RasterBufferAndPrint [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]written 0, free lines is 3292 [17:29:50]MH_Cut [17:29:50]Write to MH i2c: D1 01 00 56 0E 01 36 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 01 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 01 00 56 0E 00 35 [17:29:50]Write to MH i2c: 01 00 00 57 0E 65 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]OFD Sender: No OFD packet to send [17:29:51]*** Cut start [17:29:51]*** Partial cut [17:29:51]*** CUTSNS_PIN = 1 [17:29:51]*** CUTSNS_PIN = 0 [17:29:51]*** Brake cut motor [17:29:51]Read from MH i2c: 01 [17:29:51]MH_I2C_Read... [17:29:51]*** Stop cut motor [17:29:51]*** Cut end [17:29:51]Read from MH i2c: 01 07 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [17:29:51]process_action close_receipt done [17:29:51]requested_data is exist [17:29:51]produce_requested_data [17:29:51]requested_item fm.sn is exist - process it [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 11 00 00 [17:29:51]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 17 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [17:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:29:51]wFMCommunicate OK [17:29:51]requested_item fd.num is exist - process it [17:29:51]SAM_PROTO_GetFieldsCounters [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 13 00 00 [17:29:51]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 62 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 62 00 59 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 73 00 00 0E 04 04 00 75 00 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 53 [17:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 73 00 00 0E 04 04 00 75 00 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 [17:29:51]wFMCommunicate OK [17:29:51]SAM_PROTO_GetFieldsCounters done [17:29:51]requested_item shift.num is exist - process it [17:29:51]requested_item shift.opened is exist - process it [17:29:51]req_shift_opened [17:29:51]FM_GetShiftState [17:29:51]SAM_PROTO_GetShiftState [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 13 01 00 [17:29:51]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 0E 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [17:29:51]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:29:51]wFMCommunicate OK [17:29:51]SAM_PROTO_GetShiftState done [17:29:51]FM_GetShiftState done [17:29:51]req_shift_opened done [17:29:51]requested_item shift.open_date is exist - process it [17:29:51]req_shift_open_date [17:29:51]req_shift_open_date done [17:29:51]produce_requested_data done [17:29:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29625,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:29:51]process_action_free close_receipt [17:29:51]json_value_free [17:29:51]json_value_free done [17:29:51]process_json_proto returns [17:29:51]Send response to host [17:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29625,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:29:51]free response buf [17:29:51]execute_script done [17:29:51]execute_script returns [17:29:51]free content buf [17:29:51]Sock 7.Close socket [17:29:51]Sock 7.Thread stoped [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:18]accept exits with 9 [17:30:18]New connection [17:30:18]New thread 3066965348 created [17:30:18]Thread 3067108708 joined [17:30:18]Waiting for new connection... [17:30:18] Sock 9.Parse request [17:30:18]Sock 9.Check first char [17:30:18]Sock 9.First char is OK [17:30:18]request: POST /json_proto HTTP/1.0 [17:30:18]Method: POST [17:30:18]URL: /json_proto [17:30:18]Method is POST - this is cgi request [17:30:18]url: /json_proto [17:30:18]query_string will be loaded in cgi processing [17:30:18]execute_cgi json_proto POST (null) [17:30:18]execute_cgi path=json_proto method=POST [17:30:18]POST find Content-Length [17:30:18]Host: 172.17.33.3:8080 [17:30:18]Content-Length: 670 [17:30:18]Content-Type: application/json [17:30:18] [17:30:18]POST finish read [17:30:18]Found Content-Length = 670 [17:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:18]execute_script... [17: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)348071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:18]POST & json_proto [17:30:18]process_json_proto [17:30:18]json parsed OK: [17:30:18]protocol is kg_v1.0 [17:30:18]action value=close_receipt [17:30:18]process_action close_receipt [17:30:18]cmd_close_receipt [17:30:18]MH_GetDate [17:30:18]Write to MH i2c: F0 00 00 5B 0E 58 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 09 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 09 00 5B 0E 00 2C 64 1D 66 23 5B 8F 65 E6 [17:30:18]GetLastDocTimeStamp 1713202189 [17:30:18]current date 1713202220 [17:30:18]FM_GetShiftState [17:30:18]SAM_PROTO_GetShiftState [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 13 01 00 [17:30:18]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0E 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DB [17:30:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:30:18]wFMCommunicate OK [17:30:18]SAM_PROTO_GetShiftState done [17:30:18]FM_GetShiftState done [17:30:18]opened in 1713140468 [17:30:18]opened+sec_in_day 1713226868 [17:30:18]quantity*price = 20003 [17:30:18]sum+1 = 20004 [17:30:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 220 15.04.2024 17:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29626 ФПД: 153223575952375 1/tax-web-control/client/api/v1/ticket?date=20240415T173020&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29626&fm=153223575952375&tin=02508201610067®Number=0000138879044617&sum=20000 [17:30:20]StoreToDocumentArchive [17:30:20]shift 117 fd 29626 [17:30:20]save to /storage/0117/doc_00029626 [17:30:20]save last doc name /storage/0117/doc_00029626 to /storage/kkm_last_doc_name [17:30:20]save OK [17:30:20]Clear old archive folders... [17:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:30:20]tlvbuf is 01A75900 [17:30:20]SAM_PROTO_ClearQueue [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 09 00 00 [17:30:20]Write to MH i2c: E2 08 00 69 0E 80 09 00 00 00 00 00 00 E9 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [17:30:20]RAPDU: 90 00 [17:30:20]wFMCommunicate OK [17:30:20]SAM_PROTO_ClearQueue done [17:30:20]KKMCreateOFDPacket [17:30:20]OFDProtocolAddRootSTLVToBuf [17:30:20]FM_MakeSignedData [17:30:20]FM_MakeSignedData [17:30:20]SAM_PROTO_SignData [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 0D 01 02 [17:30:20]Write to MH i2c: E2 08 00 6A 0E 80 0D 01 02 00 00 00 00 F1 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [17:30:20]RAPDU: 90 00 [17:30:20]wFMCommunicate OK [17:30:20]wFMCommunicate request_size=255 [17:30:20]MH_SAM_APDU [17:30: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2C 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 73 00 00 35 04 06 00 [17:30:20]Write to MH i2c: E2 02 01 6B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2C 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 73 00 00 35 04 06 00 00 00 5D [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [17:30:20]RAPDU: 90 00 [17:30:20]wFMCommunicate OK [17:30:20]wFMCommunicate request_size=11 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 0D 02 02 06 8B 5B 24 D0 DB F7 [17:30:20]Write to MH i2c: E2 0E 00 6C 0E 80 0D 02 02 06 00 8B 5B 24 D0 DB F7 00 00 AC [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [17:30:20]RAPDU: 90 00 [17:30:20]wFMCommunicate OK [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 0D 03 02 [17:30:20]Write to MH i2c: E2 08 00 6D 0E 80 0D 03 02 00 00 00 00 F6 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 0B 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 0B 00 6D 0E 00 F0 C6 7B F9 A6 EB 6D C1 90 00 E0 [17:30:20]RAPDU: F0 C6 7B F9 A6 EB 6D C1 90 00 [17:30:20]wFMCommunicate OK [17:30:20]SAM_PROTO_SignData done [17:30:20]FM_MakeSignedData done [17:30:20]CreateOFDProtocolMessage [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 11 00 00 [17:30:20]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 17 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [17:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:20]wFMCommunicate OK [17:30:20]CreateOFDProtocolMessage done [17:30:20]OFDSenderStorePacket 29626 [17:30:20]StoreOFDPacket docnum=29626 [17:30:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0D 9F 08 01 EA 44 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2C 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 73 00 00 35 04 06 00 8B 5B 24 D0 DB F7 F0 C6 7B F9 A6 EB 6D C1 [17:30:20]CheckFolder [17:30:20]dirname=/storage/ofd_packets [17:30:20]CheckFolder done [17:30:20]ProducePacketName [17:30:20]name=ofd_packets/00029626 [17:30:20]NVStorageSaveData ofd_packets/00029626 [17:30:20]File name is /storage/ofd_packets/00029626 [17:30:20]Write 302 bytes [17:30:20]NVStorageSaveData done [17:30:20]OFDSenderStorePacket done [17:30:20]KKMCreateOFDPacket done [17:30:20]NVStorageSaveData kkm_last_timestamp [17:30:20]File name is /storage/kkm_last_timestamp [17:30:20]Write 4 bytes [17:30:20]NVStorageSaveData done [17:30:20]ExternCall_PrintAddStr [17:30:20]wPrintStart [17:30:20]Write to MH i2c: 01 00 00 6F 0E 7D [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [17:30:20]RasterBufferAndPrint [17:30:20]line Счет N : (1)348071 [17:30:20]line ИНН: 02508201610067 [17:30:20]line Контрольно-Кассовый Чек [17:30:20]line ПРОДАЖА [17:30:20]line ТРК (МРК, ГНК) : 22 [17:30:20]line Товар: 2710124130 [17:30:20]line SUPER-92-К-5 [17:30:20]line 3.040 * 65.80 [17:30:20]line = 200.03 [17:30:20]line НДС 12% НСП 1% [17:30:20]line > о реализуемом товаре [17:30:20]line ОКРУГЛЕНИЕ: -0.03 [17:30:20]line ИТОГО: 200.00 [17:30:20]line Внесено: 200.00 [17:30:20]line СДАЧА: 0.00 [17:30:20]line НСП 1% : 1.77 [17:30:20]line НДС 12% : 21.24 [17:30:20]line Наличными: 200.00 [17:30:20]line Безнал.: 0.00 [17:30:20]line Место: АЗС № 108 "Партнер Нефть" [17:30:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:30:20]line СНО: Общий режим [17:30:20]line Чек 220 15.04.2024 17:30 [17:30:20]line Смена: 117 ФФД: 1.0 [17:30:20]line ЗНМ: 0300000027 [17:30:20]line РНМ: 0000138879044617 [17:30:20]line Версия ККМ: 001 [17:30:20]line ФМ: 0000000000963154 [17:30:20]line ФД: 29626 [17:30:20]line ФПД: 153223575952375 [17:30:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T173020&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29626&fm=153223575952375&tin=02508201610067®Number=0000138879044617&sum=20000 [17:30:20]OFD Sender: Processing packet 29626 [packets to send 8, broken 7] [17:30:20]ProducePacketName [17:30:20]name=ofd_packets/00029626 [17:30:20]OFD Sender: To server: pG, [17:30:20]CommunicateWithHost lk.salyk.kg:30040 [17:30:20]ConnectInit lk.salyk.kg [17:30:20]written 0, free lines is 4095 [17:30:21]Connected sock=10 [17:30:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0D 9F 08 01 EA 44 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 2C 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 73 00 00 35 04 06 00 8B 5B 24 D0 DB F7 F0 C6 7B F9 A6 EB 6D C1 [17:30:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C C5 47 00 BF 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 39 36 33 31 35 34 10 04 04 00 BA 73 00 00 F4 03 04 00 CC 0E 1D 66 B6 04 01 00 00 AB 41 68 73 53 A5 87 5D [17:30:21]CommunicateWithHost err = 0 [17:30:21]CheckOFDResponse [17:30:21]1017 (14) - 77093643461234 [17:30:21]1041 (16) - 0000000000963154 [17:30:21]1040 (4) - 29626 [17:30:21]1012 (4) - 15.04.2024 11:26 [17:30:21]1206 (1) - 0 [17:30:21]OFD Sender: Remove packet 29626 [17:30:21]ProducePacketName [17:30:21]name=ofd_packets/00029626 [17:30:21]NVStorageDeleteData [17:30:21]Write to MH i2c: 01 00 00 99 0E A7 [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: 01 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: 01 07 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 CB 0C 85 [17:30:21]RasterBufferAndPrint [17:30:21]line [17:30:21]line [17:30:21]line [17:30:21]line [17:30:21]line [17:30:21]written 0, free lines is 3283 [17:30:21]MH_Cut [17:30:21]Write to MH i2c: D1 01 00 A0 0E 01 80 [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: D1 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: D1 01 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: D1 01 00 A0 0E 00 7F [17:30:21]Write to MH i2c: 01 00 00 A1 0E AF [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]OFD Sender: No OFD packet to send [17:30:22]*** Cut start [17:30:22]*** Partial cut [17:30:22]*** CUTSNS_PIN = 1 [17:30:22]*** CUTSNS_PIN = 0 [17:30:22]*** Brake cut motor [17:30:22]Read from MH i2c: 01 [17:30:22]MH_I2C_Read... [17:30:22]*** Stop cut motor [17:30:22]*** Cut end [17:30:22]Read from MH i2c: 01 07 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 FF 0F C4 [17:30:22]process_action close_receipt done [17:30:22]requested_data is exist [17:30:22]produce_requested_data [17:30:22]requested_item fm.sn is exist - process it [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 11 00 00 [17:30:22]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:22]Read from MH i2c: E2 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 17 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [17:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:22]wFMCommunicate OK [17:30:22]requested_item fd.num is exist - process it [17:30:22]SAM_PROTO_GetFieldsCounters [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 13 00 00 [17:30:22]Write to MH i2c: E2 08 00 A3 0E 80 13 00 00 00 00 00 00 2D [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:22]Read from MH i2c: E2 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 62 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 62 00 A3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 73 00 00 0E 04 04 00 75 00 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 A1 [17:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 73 00 00 0E 04 04 00 75 00 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 [17:30:22]wFMCommunicate OK [17:30:22]SAM_PROTO_GetFieldsCounters done [17:30:22]requested_item shift.num is exist - process it [17:30:22]requested_item shift.opened is exist - process it [17:30:22]req_shift_opened [17:30:22]FM_GetShiftState [17:30:22]SAM_PROTO_GetShiftState [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 13 01 00 [17:30:22]Write to MH i2c: E2 08 00 A4 0E 80 13 01 00 00 00 00 00 2F [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0E 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0E 00 A4 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [17:30:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:30:23]wFMCommunicate OK [17:30:23]SAM_PROTO_GetShiftState done [17:30:23]FM_GetShiftState done [17:30:23]req_shift_opened done [17:30:23]requested_item shift.open_date is exist - process it [17:30:23]req_shift_open_date [17:30:23]req_shift_open_date done [17:30:23]produce_requested_data done [17:30:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29626,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:30:23]process_action_free close_receipt [17:30:23]json_value_free [17:30:23]json_value_free done [17:30:23]process_json_proto returns [17:30:23]Send response to host [17:30:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29626,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:30:23]free response buf [17:30:23]execute_script done [17:30:23]execute_script returns [17:30:23]free content buf [17:30:23]Sock 9.Close socket [17:30:23]Sock 9.Thread stoped [17:30:26]OFD Sender: No OFD packet to send [17:30:28]accept exits with 7 [17:30:28]New connection [17:30:28]New thread 3067108708 created [17:30:28]Thread 3066965348 joined [17:30:28]Waiting for new connection... [17:30:28] Sock 7.Parse request [17:30:28]Sock 7.Check first char [17:30:28]Sock 7.First char is OK [17:30:28]request: POST /json_proto HTTP/1.0 [17:30:28]Method: POST [17:30:28]URL: /json_proto [17:30:28]Method is POST - this is cgi request [17:30:28]url: /json_proto [17:30:28]query_string will be loaded in cgi processing [17:30:28]execute_cgi json_proto POST (null) [17:30:28]execute_cgi path=json_proto method=POST [17:30:28]POST find Content-Length [17:30:28]Host: 172.17.33.3:8080 [17:30:28]Content-Length: 677 [17:30:28]Content-Type: application/json [17:30:28] [17:30:28]POST finish read [17:30:28]Found Content-Length = 677 [17:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.880, "sum" : 640.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:28]execute_script... [17:30: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)348070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.880, "sum" : 640.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:28]POST & json_proto [17:30:28]process_json_proto [17:30:28]json parsed OK: [17:30:28]protocol is kg_v1.0 [17:30:28]action value=close_receipt [17:30:28]process_action close_receipt [17:30:28]cmd_close_receipt [17:30:28]MH_GetDate [17:30:28]Write to MH i2c: F0 00 00 A5 0E A2 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: F0 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: F0 09 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: F0 09 00 A5 0E 00 35 64 1D 66 23 5B 8F 65 39 [17:30:28]GetLastDocTimeStamp 1713202220 [17:30:28]current date 1713202229 [17:30:28]FM_GetShiftState [17:30:28]SAM_PROTO_GetShiftState [17:30:28]wFMCommunicate request_size=4 [17:30:28]MH_SAM_APDU [17:30:28]CAPDU: 80 13 01 00 [17:30:28]Write to MH i2c: E2 08 00 A6 0E 80 13 01 00 00 00 00 00 31 [17:30:28]Write i2c OK [17:30:28]MH_I2C_Read... [17:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:28]Read from MH i2c: E2 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 0E 00 [17:30:28]MH_I2C_Read... [17:30:28]Read from MH i2c: E2 0E 00 A6 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 25 [17:30:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:30:28]wFMCommunicate OK [17:30:28]SAM_PROTO_GetShiftState done [17:30:28]FM_GetShiftState done [17:30:28]opened in 1713140468 [17:30:28]opened+sec_in_day 1713226868 [17:30:28]quantity*price = 64022 [17:30:28]sum+1 = 64023 [17:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 221 15.04.2024 17:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29627 ФПД: 173871001864317 1/tax-web-control/client/api/v1/ticket?date=20240415T173029&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29627&fm=173871001864317&tin=02508201610067®Number=0000138879044617&sum=64000 [17:30:29]StoreToDocumentArchive [17:30:29]shift 117 fd 29627 [17:30:29]save to /storage/0117/doc_00029627 [17:30:29]save last doc name /storage/0117/doc_00029627 to /storage/kkm_last_doc_name [17:30:29]save OK [17:30:29]Clear old archive folders... [17:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:29]tlvbuf is 01A757F0 [17:30:29]SAM_PROTO_ClearQueue [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 09 00 00 [17:30:29]Write to MH i2c: E2 08 00 B3 0E 80 09 00 00 00 00 00 00 33 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [17:30:29]RAPDU: 90 00 [17:30:29]wFMCommunicate OK [17:30:29]SAM_PROTO_ClearQueue done [17:30:29]KKMCreateOFDPacket [17:30:29]OFDProtocolAddRootSTLVToBuf [17:30:29]FM_MakeSignedData [17:30:29]FM_MakeSignedData [17:30:29]SAM_PROTO_SignData [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 0D 01 02 [17:30:29]Write to MH i2c: E2 08 00 B4 0E 80 0D 01 02 00 00 00 00 3B [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [17:30:29]RAPDU: 90 00 [17:30:29]wFMCommunicate OK [17:30:29]wFMCommunicate request_size=255 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 16 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 35 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 73 00 00 35 04 06 00 9E [17:30:29]Write to MH i2c: E2 02 01 B5 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 16 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 35 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 73 00 00 35 04 06 00 9E 00 00 A9 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [17:30:29]RAPDU: 90 00 [17:30:29]wFMCommunicate OK [17:30:29]wFMCommunicate request_size=10 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 0D 02 02 05 22 7F 4D 88 7D [17:30:29]Write to MH i2c: E2 0D 00 B6 0E 80 0D 02 02 05 00 22 7F 4D 88 7D 00 00 3B [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [17:30:29]RAPDU: 90 00 [17:30:29]wFMCommunicate OK [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 0D 03 02 [17:30:29]Write to MH i2c: E2 08 00 B7 0E 80 0D 03 02 00 00 00 00 40 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0B 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0B 00 B7 0E 00 93 48 D5 72 50 15 AB FC 90 00 6F [17:30:29]RAPDU: 93 48 D5 72 50 15 AB FC 90 00 [17:30:29]wFMCommunicate OK [17:30:29]SAM_PROTO_SignData done [17:30:29]FM_MakeSignedData done [17:30:29]CreateOFDProtocolMessage [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 11 00 00 [17:30:29]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 17 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [17:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:29]wFMCommunicate OK [17:30:29]CreateOFDProtocolMessage done [17:30:29]OFDSenderStorePacket 29627 [17:30:29]StoreOFDPacket docnum=29627 [17:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 F6 07 01 8C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 19 00 00 00 00 13 04 06 00 16 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 35 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 73 00 00 35 04 06 00 9E 22 7F 4D 88 7D 93 48 D5 72 50 15 AB FC [17:30:29]CheckFolder [17:30:29]dirname=/storage/ofd_packets [17:30:29]CheckFolder done [17:30:29]ProducePacketName [17:30:29]name=ofd_packets/00029627 [17:30:29]NVStorageSaveData ofd_packets/00029627 [17:30:29]File name is /storage/ofd_packets/00029627 [17:30:29]Write 301 bytes [17:30:29]NVStorageSaveData done [17:30:29]OFDSenderStorePacket done [17:30:29]KKMCreateOFDPacket done [17:30:29]NVStorageSaveData kkm_last_timestamp [17:30:29]File name is /storage/kkm_last_timestamp [17:30:29]Write 4 bytes [17:30:29]NVStorageSaveData done [17:30:29]ExternCall_PrintAddStr [17:30:29]wPrintStart [17:30:29]Write to MH i2c: 01 00 00 B9 0E C7 [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: 01 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: 01 07 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 FF 0F DC [17:30:29]RasterBufferAndPrint [17:30:29]line Счет N : (1)348070 [17:30:29]line ИНН: 02508201610067 [17:30:29]line Контрольно-Кассовый Чек [17:30:29]line ПРОДАЖА [17:30:29]line ТРК (МРК, ГНК) : 42 [17:30:29]line Товар: 2710124130 [17:30:29]line Аи-92-К-5 [17:30:29]line 9.880 * 64.80 [17:30:29]line = 640.22 [17:30:29]line НДС 12% НСП 1% [17:30:29]line > о реализуемом товаре [17:30:29]line ОКРУГЛЕНИЕ: -0.22 [17:30:29]line ИТОГО: 640.00 [17:30:29]line Внесено: 640.00 [17:30:29]line СДАЧА: 0.00 [17:30:29]line НСП 1% : 5.67 [17:30:29]line НДС 12% : 67.99 [17:30:29]line Наличными: 640.00 [17:30:29]line Безнал.: 0.00 [17:30:29]line Место: АЗС № 108 "Партнер Нефть" [17:30:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:30:29]line СНО: Общий режим [17:30:29]line Чек 221 15.04.2024 17:30 [17:30:29]line Смена: 117 ФФД: 1.0 [17:30:29]line ЗНМ: 0300000027 [17:30:29]line РНМ: 0000138879044617 [17:30:29]line Версия ККМ: 001 [17:30:29]line ФМ: 0000000000963154 [17:30:29]line ФД: 29627 [17:30:29]line ФПД: 173871001864317 [17:30:29]line 1/tax-web-control/client/api/v1/ticket?date=20240415T173029&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29627&fm=173871001864317&tin=02508201610067®Number=0000138879044617&sum=64000 [17:30:29]written 0, free lines is 4095 [17:30:29]OFD Sender: Processing packet 29627 [packets to send 8, broken 7] [17:30:29]ProducePacketName [17:30:29]name=ofd_packets/00029627 [17:30:29]OFD Sender: To server: pG, [17:30:29]CommunicateWithHost lk.salyk.kg:30040 [17:30:29]ConnectInit lk.salyk.kg [17:30:30]Connected sock=10 [17:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 F6 07 01 8C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 19 00 00 00 00 13 04 06 00 16 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 35 64 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 73 00 00 35 04 06 00 9E 22 7F 4D 88 7D 93 48 D5 72 50 15 AB FC [17:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 6A 47 00 C4 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 39 36 33 31 35 34 10 04 04 00 BB 73 00 00 F4 03 04 00 D5 0E 1D 66 B6 04 01 00 00 A1 B1 19 D0 77 CF 24 75 [17:30:30]CommunicateWithHost err = 0 [17:30:30]CheckOFDResponse [17:30:30]1017 (14) - 77093643461234 [17:30:30]1041 (16) - 0000000000963154 [17:30:30]1040 (4) - 29627 [17:30:30]1012 (4) - 15.04.2024 11:26 [17:30:30]1206 (1) - 0 [17:30:30]OFD Sender: Remove packet 29627 [17:30:30]ProducePacketName [17:30:30]name=ofd_packets/00029627 [17:30:30]NVStorageDeleteData [17:30:30]Write to MH i2c: 01 00 00 E3 0E F1 [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 07 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 CF 0C D3 [17:30:30]RasterBufferAndPrint [17:30:30]line [17:30:30]line [17:30:30]line [17:30:30]line [17:30:30]line [17:30:30]written 0, free lines is 3289 [17:30:30]MH_Cut [17:30:30]Write to MH i2c: D1 01 00 EA 0E 01 CA [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: D1 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: D1 01 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: D1 01 00 EA 0E 00 C9 [17:30:30]Write to MH i2c: 01 00 00 EB 0E F9 [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]OFD Sender: No OFD packet to send [17:30:31]*** Cut start [17:30:31]*** Partial cut [17:30:31]*** CUTSNS_PIN = 1 [17:30:31]*** CUTSNS_PIN = 0 [17:30:31]*** Brake cut motor [17:30:31]Read from MH i2c: 01 [17:30:31]MH_I2C_Read... [17:30:31]*** Stop cut motor [17:30:31]*** Cut end [17:30:31]Read from MH i2c: 01 07 00 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 FF 0F 0E [17:30:31]process_action close_receipt done [17:30:31]requested_data is exist [17:30:31]produce_requested_data [17:30:31]requested_item fm.sn is exist - process it [17:30:31]wFMCommunicate request_size=4 [17:30:31]MH_SAM_APDU [17:30:31]CAPDU: 80 11 00 00 [17:30:31]Write to MH i2c: E2 08 00 EC 0E 80 11 00 00 00 00 00 00 74 [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: E2 [17:30:31]MH_I2C_Read... [17:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:31]Read from MH i2c: E2 17 00 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: E2 17 00 EC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C3 [17:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:31]wFMCommunicate OK [17:30:31]requested_item fd.num is exist - process it [17:30:31]SAM_PROTO_GetFieldsCounters [17:30:31]wFMCommunicate request_size=4 [17:30:31]MH_SAM_APDU [17:30:31]CAPDU: 80 13 00 00 [17:30:31]Write to MH i2c: E2 08 00 ED 0E 80 13 00 00 00 00 00 00 77 [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:31]Read from MH i2c: E2 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: E2 62 00 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: E2 62 00 ED 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 EF [17:30:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 [17:30:31]wFMCommunicate OK [17:30:31]SAM_PROTO_GetFieldsCounters done [17:30:31]requested_item shift.num is exist - process it [17:30:31]requested_item shift.opened is exist - process it [17:30:31]req_shift_opened [17:30:31]FM_GetShiftState [17:30:31]SAM_PROTO_GetShiftState [17:30:31]wFMCommunicate request_size=4 [17:30:31]MH_SAM_APDU [17:30:31]CAPDU: 80 13 01 00 [17:30:31]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:31]Read from MH i2c: E2 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: E2 0E 00 [17:30:31]MH_I2C_Read... [17:30:32]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 6D [17:30:32]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:30:32]wFMCommunicate OK [17:30:32]SAM_PROTO_GetShiftState done [17:30:32]FM_GetShiftState done [17:30:32]req_shift_opened done [17:30:32]requested_item shift.open_date is exist - process it [17:30:32]req_shift_open_date [17:30:32]req_shift_open_date done [17:30:32]produce_requested_data done [17:30:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:30:32]process_action_free close_receipt [17:30:32]json_value_free [17:30:32]json_value_free done [17:30:32]process_json_proto returns [17:30:32]Send response to host [17:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:30:32]free response buf [17:30:32]execute_script done [17:30:32]execute_script returns [17:30:32]free content buf [17:30:32]Sock 7.Close socket [17:30:32]Sock 7.Thread stoped [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:51]accept exits with 9 [17:34:51]New connection [17:34:51]New thread 3066965348 created [17:34:51]Thread 3067108708 joined [17:34:51]Waiting for new connection... [17:34:51] Sock 9.Parse request [17:34:51]Sock 9.Check first char [17:34:51]Sock 9.First char is OK [17:34:51]request: POST /json_proto HTTP/1.0 [17:34:51]Method: POST [17:34:51]URL: /json_proto [17:34:51]Method is POST - this is cgi request [17:34:51]url: /json_proto [17:34:51]query_string will be loaded in cgi processing [17:34:51]execute_cgi json_proto POST (null) [17:34:51]execute_cgi path=json_proto method=POST [17:34:51]POST find Content-Length [17:34:51]Host: 172.17.33.3:8080 [17:34:51]Content-Length: 1170 [17:34:51]Content-Type: application/json [17:34:51] [17:34:51]POST finish read [17:34:51]Found Content-Length = 1170 [17:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348072\u000A15.04.2024 17:16\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-\u041A-5\u000A 6.280 x 72.90\u000A\u0418\u0422\u041E\u0413: 457.81\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:51]execute_script... [17:34:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348072\u000A15.04.2024 17:16\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-\u041A-5\u000A 6.280 x 72.90\u000A\u0418\u0422\u041E\u0413: 457.81\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:51]POST & json_proto [17:34:51]process_json_proto [17:34:51]json parsed OK: [17:34:51]protocol is kg_v1.0 [17:34:51]action value=print_text [17:34:51]process_action print_text [17:34:51]cmd_print_text [17:34:51]ExternCall_PrintAddStr [17:34:51]wPrintStart [17:34:51]Write to MH i2c: 01 00 00 EF 0E FD [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 FF 0F 12 [17:34:51]RasterBufferAndPrint [17:34:51]line *****ТОВАРНЫЙ ЧЕК***** [17:34:51]line АЗС 108 [17:34:51]line Партнер нефть [17:34:51]line 02508201610067 [17:34:51]line Кассир : Джумагулова Н. [17:34:51]line Счет N : (1)348072 [17:34:51]line 15.04.2024 17:16 [17:34:51]line ПРОДАЖА [17:34:51]line ТРК (МРК, ГНК): 11 [17:34:51]line Вид ГСМ : 2710194210 [17:34:51]line ДТ-К-5 [17:34:51]line 6.280 x 72.90 [17:34:51]line ИТОГ: 457.81 [17:34:51]line Тип оплаты: Талоны: ТК ГПНА Online [17:34:51]line 30131330 [17:34:51]line ______________________ [17:34:51]line (подпись) [17:34:51]written 0, free lines is 4095 [17:34:51]Write to MH i2c: 01 00 00 04 0F 13 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 F2 0D 19 [17:34:51]RasterBufferAndPrint [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]written 0, free lines is 3571 [17:34:51]MH_Cut [17:34:51]Write to MH i2c: D1 01 00 0B 0F 01 EC [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 0B 0F 00 EB [17:34:51]Write to MH i2c: 01 00 00 0C 0F 1B [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:52]*** Cut start [17:34:52]*** Partial cut [17:34:52]*** CUTSNS_PIN = 1 [17:34:52]*** CUTSNS_PIN = 0 [17:34:52]*** Brake cut motor [17:34:52]Read from MH i2c: 01 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 [17:34:52]MH_I2C_Read... [17:34:52]*** Stop cut motor [17:34:52]*** Cut end [17:34:52]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [17:34:52]process_action print_text done [17:34:52]requested_data is exist [17:34:52]produce_requested_data [17:34:52]requested_item fm.sn is exist - process it [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 11 00 00 [17:34:52]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [17:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:34:52]wFMCommunicate OK [17:34:52]requested_item fd.num is exist - process it [17:34:52]SAM_PROTO_GetFieldsCounters [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 13 00 00 [17:34:52]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 62 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 62 00 0E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 11 [17:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_GetFieldsCounters done [17:34:52]requested_item shift.num is exist - process it [17:34:52]requested_item shift.opened is exist - process it [17:34:52]req_shift_opened [17:34:52]FM_GetShiftState [17:34:52]SAM_PROTO_GetShiftState [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 13 01 00 [17:34:52]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8F [17:34:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_GetShiftState done [17:34:52]FM_GetShiftState done [17:34:52]req_shift_opened done [17:34:52]requested_item shift.open_date is exist - process it [17:34:52]req_shift_open_date [17:34:52]req_shift_open_date done [17:34:52]produce_requested_data done [17:34:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:34:52]process_action_free print_text [17:34:52]json_value_free [17:34:52]json_value_free done [17:34:52]process_json_proto returns [17:34:52]Send response to host [17:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:34:52]free response buf [17:34:52]execute_script done [17:34:52]execute_script returns [17:34:52]free content buf [17:34:52]Sock 9.Close socket [17:34:52]Sock 9.Thread stoped [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 10 0F 1F [17:36:57]*** FLAG_PRN_KEY set [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 10 0F 00 08 00 00 00 FF 0F 3C [17:36:57]state=0 [17:36:57]Key pressed [17:36:57]Feed [17:36:57]Write to MH i2c: D8 00 00 11 0F F7 [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 11 0F 00 F8 [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 12 0F 21 [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 12 0F 00 48 00 00 00 3C 00 AC [17:36:57]state=2 [17:36:57]Key pressed [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 13 0F 22 [17:36:57]*** FLAG_PRN_KEY reset [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 F5 0F 2D [17:36:57]state=2 [17:36:57]Stop feed [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 14 0F 23 [17:36:57]*** FLAG_PRN_KEY set [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 14 0F 00 08 00 00 00 FF 0F 40 [17:36:57]state=0 [17:36:57]Key pressed [17:36:57]Feed [17:36:57]Write to MH i2c: D8 00 00 15 0F FB [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 15 0F 00 FC [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 16 0F 25 [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 16 0F 00 48 00 00 00 3C 00 B0 [17:36:57]state=2 [17:36:57]Key pressed [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 17 0F 26 [17:36:57]*** FLAG_PRN_KEY reset [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 17 0F 00 00 00 00 00 F5 0F 31 [17:36:57]state=2 [17:36:57]Stop feed [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 18 0F 27 [17:36:57]*** FLAG_PRN_KEY set [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 18 0F 00 08 00 00 00 FF 0F 44 [17:36:57]state=0 [17:36:57]Key pressed [17:36:57]Feed [17:36:57]Write to MH i2c: D8 00 00 19 0F FF [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: D8 01 00 19 0F 00 00 [17:36:57]int [17:36:57]Write to MH i2c: 01 00 00 1A 0F 29 [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: 01 07 00 1A 0F 00 48 00 00 00 3C 00 B4 [17:36:57]state=2 [17:36:57]Key pressed [17:36:58]int [17:36:58]Write to MH i2c: 01 00 00 1B 0F 2A [17:36:58]*** FLAG_PRN_KEY reset [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 F5 0F 35 [17:36:58]state=2 [17:36:58]Stop feed [17:36:58]int [17:36:58]Write to MH i2c: 01 00 00 1C 0F 2B [17:36:58]*** FLAG_PRN_KEY set [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 1C 0F 00 08 00 00 00 FF 0F 48 [17:36:58]state=0 [17:36:58]Key pressed [17:36:58]Feed [17:36:58]Write to MH i2c: D8 00 00 1D 0F 03 [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: D8 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: D8 01 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: D8 01 00 1D 0F 00 04 [17:36:58]int [17:36:58]Write to MH i2c: 01 00 00 1E 0F 2D [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 1E 0F 00 48 00 00 00 3C 00 B8 [17:36:58]state=2 [17:36:58]Key pressed [17:36:58]int [17:36:58]Write to MH i2c: 01 00 00 1F 0F 2E [17:36:58]*** FLAG_PRN_KEY reset [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 F5 0F 39 [17:36:58]state=2 [17:36:58]Stop feed [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:35]accept exits with 7 [17:38:35]New connection [17:38:35]New thread 3067108708 created [17:38:35]Thread 3066965348 joined [17:38:35]Waiting for new connection... [17:38:35] Sock 7.Parse request [17:38:35]Sock 7.Check first char [17:38:35]Sock 7.First char is OK [17:38:35]request: POST /json_proto HTTP/1.0 [17:38:35]Method: POST [17:38:35]URL: /json_proto [17:38:35]Method is POST - this is cgi request [17:38:35]url: /json_proto [17:38:35]query_string will be loaded in cgi processing [17:38:35]execute_cgi json_proto POST (null) [17:38:35]execute_cgi path=json_proto method=POST [17:38:35]POST find Content-Length [17:38:35]Host: 172.17.33.3:8080 [17:38:35]Content-Length: 1213 [17:38:35]Content-Type: application/json [17:38:35] [17:38:35]POST finish read [17:38:35]Found Content-Length = 1213 [17:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348073\u000A15.04.2024 17:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 2592.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\u000A43447\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:35]execute_script... [17:38:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348073\u000A15.04.2024 17:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 2592.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\u000A43447\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:35]POST & json_proto [17:38:35]process_json_proto [17:38:35]json parsed OK: [17:38:35]protocol is kg_v1.0 [17:38:35]action value=print_text [17:38:35]process_action print_text [17:38:35]cmd_print_text [17:38:35]ExternCall_PrintAddStr [17:38:35]wPrintStart [17:38:35]Write to MH i2c: 01 00 00 20 0F 2F [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 07 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 07 00 20 0F 00 00 00 00 00 FF 0F 44 [17:38:35]RasterBufferAndPrint [17:38:35]line *****ТОВАРНЫЙ ЧЕК***** [17:38:35]line АЗС 108 [17:38:35]line Партнер нефть [17:38:35]line 02508201610067 [17:38:35]line Кассир : Джумагулова Н. [17:38:35]line Счет N : (1)348073 [17:38:35]line 15.04.2024 17:20 [17:38:35]line ПРОДАЖА [17:38:35]line ТРК (МРК, ГНК): 32 [17:38:35]line Вид ГСМ : 2710124130 [17:38:35]line Аи-92-К-5 [17:38:35]line 40.000 x 64.80 [17:38:35]line ИТОГ: 2592.00 [17:38:35]line Тип оплаты: Талоны: Топливная Карта [17:38:35]line 43447 [17:38:35]line ______________________ [17:38:35]line (подпись) [17:38:35]written 0, free lines is 4095 [17:38:35]Write to MH i2c: 01 00 00 35 0F 44 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 07 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: 01 07 00 35 0F 00 00 00 00 00 F8 0D 50 [17:38:35]RasterBufferAndPrint [17:38:35]line [17:38:35]line [17:38:35]line [17:38:35]line [17:38:35]line [17:38:35]written 0, free lines is 3578 [17:38:35]MH_Cut [17:38:35]Write to MH i2c: D1 01 00 3C 0F 01 1D [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: D1 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: D1 01 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: D1 01 00 3C 0F 00 1C [17:38:35]Write to MH i2c: 01 00 00 3D 0F 4C [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:36]OFD Sender: No OFD packet to send [17:38:36]*** Cut start [17:38:36]*** Partial cut [17:38:36]*** CUTSNS_PIN = 1 [17:38:36]*** CUTSNS_PIN = 0 [17:38:36]*** Brake cut motor [17:38:36]Read from MH i2c: 01 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 07 00 [17:38:36]MH_I2C_Read... [17:38:36]*** Stop cut motor [17:38:36]*** Cut end [17:38:36]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 FF 0F 61 [17:38:36]process_action print_text done [17:38:36]requested_data is exist [17:38:36]produce_requested_data [17:38:36]requested_item fm.sn is exist - process it [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 11 00 00 [17:38:36]Write to MH i2c: E2 08 00 3E 0F 80 11 00 00 00 00 00 00 C7 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 17 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 17 00 3E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [17:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:38:36]wFMCommunicate OK [17:38:36]requested_item fd.num is exist - process it [17:38:36]SAM_PROTO_GetFieldsCounters [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 13 00 00 [17:38:36]Write to MH i2c: E2 08 00 3F 0F 80 13 00 00 00 00 00 00 CA [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:37]Read from MH i2c: E2 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: E2 62 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: E2 62 00 3F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 42 [17:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 [17:38:37]wFMCommunicate OK [17:38:37]SAM_PROTO_GetFieldsCounters done [17:38:37]requested_item shift.num is exist - process it [17:38:37]requested_item shift.opened is exist - process it [17:38:37]req_shift_opened [17:38:37]FM_GetShiftState [17:38:37]SAM_PROTO_GetShiftState [17:38:37]wFMCommunicate request_size=4 [17:38:37]MH_SAM_APDU [17:38:37]CAPDU: 80 13 01 00 [17:38:37]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:37]Read from MH i2c: E2 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: E2 0E 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [17:38:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:38:37]wFMCommunicate OK [17:38:37]SAM_PROTO_GetShiftState done [17:38:37]FM_GetShiftState done [17:38:37]req_shift_opened done [17:38:37]requested_item shift.open_date is exist - process it [17:38:37]req_shift_open_date [17:38:37]req_shift_open_date done [17:38:37]produce_requested_data done [17:38:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:38:37]process_action_free print_text [17:38:37]json_value_free [17:38:37]json_value_free done [17:38:37]process_json_proto returns [17:38:37]Send response to host [17:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:38:37]free response buf [17:38:37]execute_script done [17:38:37]execute_script returns [17:38:37]free content buf [17:38:37]Sock 7.Close socket [17:38:37]Sock 7.Thread stoped [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [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:38]accept exits with 9 [17:40:38]New connection [17:40:38]New thread 3066965348 created [17:40:38]Thread 3067108708 joined [17:40:38]Waiting for new connection... [17:40:38] Sock 9.Parse request [17:40:38]Sock 9.Check first char [17:40:38]Sock 9.First char is OK [17:40:38]request: POST /json_proto HTTP/1.0 [17:40:38]Method: POST [17:40:38]URL: /json_proto [17:40:38]Method is POST - this is cgi request [17:40:38]url: /json_proto [17:40:38]query_string will be loaded in cgi processing [17:40:38]execute_cgi json_proto POST (null) [17:40:38]execute_cgi path=json_proto method=POST [17:40:38]POST find Content-Length [17:40:38]Host: 172.17.33.3:8080 [17:40:38]Content-Length: 1175 [17:40:38]Content-Type: application/json [17:40:38] [17:40:38]POST finish read [17:40:38]Found Content-Length = 1175 [17:40: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348074\u000A15.04.2024 17:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 3240.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017349\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:38]execute_script... [17:40: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348074\u000A15.04.2024 17:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 3240.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017349\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:38]POST & json_proto [17:40:38]process_json_proto [17:40:38]json parsed OK: [17:40:38]protocol is kg_v1.0 [17:40:38]action value=print_text [17:40:38]process_action print_text [17:40:38]cmd_print_text [17:40:38]ExternCall_PrintAddStr [17:40:38]wPrintStart [17:40:38]Write to MH i2c: 01 00 00 41 0F 50 [17:40:38]Write i2c OK [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 07 00 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [17:40:38]RasterBufferAndPrint [17:40:38]line *****ТОВАРНЫЙ ЧЕК***** [17:40:38]line АЗС 108 [17:40:38]line Партнер нефть [17:40:38]line 02508201610067 [17:40:38]line Кассир : Джумагулова Н. [17:40:38]line Счет N : (1)348074 [17:40:38]line 15.04.2024 17:22 [17:40:38]line ПРОДАЖА [17:40:38]line ТРК (МРК, ГНК): 53 [17:40:38]line Вид ГСМ : 2710124130 [17:40:38]line Аи-92-К-5 [17:40:38]line 50.000 x 64.80 [17:40:38]line ИТОГ: 3240.00 [17:40:38]line Тип оплаты: Талоны: ТК ГПНА Online [17:40:38]line 30017349 [17:40:38]line ______________________ [17:40:38]line (подпись) [17:40:38]written 0, free lines is 4095 [17:40:38]Write to MH i2c: 01 00 00 56 0F 65 [17:40:38]Write i2c OK [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 07 00 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 F5 0D 6E [17:40:38]RasterBufferAndPrint [17:40:38]line [17:40:38]line [17:40:38]line [17:40:38]line [17:40:38]line [17:40:38]written 0, free lines is 3575 [17:40:38]MH_Cut [17:40:38]Write to MH i2c: D1 01 00 5D 0F 01 3E [17:40:38]Write i2c OK [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: D1 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: D1 01 00 [17:40:38]MH_I2C_Read... [17:40:38]Read from MH i2c: D1 01 00 5D 0F 00 3D [17:40:38]Write to MH i2c: 01 00 00 5E 0F 6D [17:40:38]Write i2c OK [17:40:38]MH_I2C_Read... [17:40:38]*** Cut start [17:40:38]*** Partial cut [17:40:38]*** CUTSNS_PIN = 1 [17:40:38]*** CUTSNS_PIN = 0 [17:40:39]*** Brake cut motor [17:40:39]Read from MH i2c: 01 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: 01 07 00 [17:40:39]MH_I2C_Read... [17:40:39]*** Stop cut motor [17:40:39]*** Cut end [17:40:39]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0F 82 [17:40:39]process_action print_text done [17:40:39]requested_data is exist [17:40:39]produce_requested_data [17:40:39]requested_item fm.sn is exist - process it [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 11 00 00 [17:40:39]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 17 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [17:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:40:39]wFMCommunicate OK [17:40:39]requested_item fd.num is exist - process it [17:40:39]SAM_PROTO_GetFieldsCounters [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 13 00 00 [17:40:39]Write to MH i2c: E2 08 00 60 0F 80 13 00 00 00 00 00 00 EB [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 62 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 62 00 60 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 63 [17:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 73 00 00 0E 04 04 00 75 00 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 [17:40:39]wFMCommunicate OK [17:40:39]SAM_PROTO_GetFieldsCounters done [17:40:39]requested_item shift.num is exist - process it [17:40:39]requested_item shift.opened is exist - process it [17:40:39]req_shift_opened [17:40:39]FM_GetShiftState [17:40:39]SAM_PROTO_GetShiftState [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 13 01 00 [17:40:39]Write to MH i2c: E2 08 00 61 0F 80 13 01 00 00 00 00 00 ED [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 0E 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 0E 00 61 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [17:40:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:40:39]wFMCommunicate OK [17:40:39]SAM_PROTO_GetShiftState done [17:40:39]FM_GetShiftState done [17:40:39]req_shift_opened done [17:40:39]requested_item shift.open_date is exist - process it [17:40:39]req_shift_open_date [17:40:39]req_shift_open_date done [17:40:39]produce_requested_data done [17:40:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:40:39]process_action_free print_text [17:40:39]json_value_free [17:40:39]json_value_free done [17:40:39]process_json_proto returns [17:40:39]Send response to host [17:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29627,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:40:39]free response buf [17:40:39]execute_script done [17:40:39]execute_script returns [17:40:39]free content buf [17:40:39]Sock 9.Close socket [17:40:39]Sock 9.Thread stoped [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:33]accept exits with 7 [17:42:33]New connection [17:42:33]New thread 3067108708 created [17:42:33]Thread 3066965348 joined [17:42:33]Waiting for new connection... [17:42:33] Sock 7.Parse request [17:42:33]Sock 7.Check first char [17:42:33]Sock 7.First char is OK [17:42:33]request: POST /json_proto HTTP/1.0 [17:42:33]Method: POST [17:42:33]URL: /json_proto [17:42:33]Method is POST - this is cgi request [17:42:33]url: /json_proto [17:42:33]query_string will be loaded in cgi processing [17:42:33]execute_cgi json_proto POST (null) [17:42:33]execute_cgi path=json_proto method=POST [17:42:33]POST find Content-Length [17:42:33]Host: 172.17.33.3:8080 [17:42:33]Content-Length: 801 [17:42:33]Content-Type: application/json [17:42:33] [17:42:33]POST finish read [17:42:33]Found Content-Length = 801 [17:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:33]execute_script... [17:42: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)348075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:33]POST & json_proto [17:42:33]process_json_proto [17:42:33]json parsed OK: [17:42:33]protocol is kg_v1.0 [17:42:33]action value=close_receipt [17:42:33]process_action close_receipt [17:42:33]cmd_close_receipt [17:42:33]MH_GetDate [17:42:33]Write to MH i2c: F0 00 00 62 0F 60 [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: F0 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: F0 09 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: F0 09 00 62 0F 00 0A 67 1D 66 23 5B 8F 65 CF [17:42:33]GetLastDocTimeStamp 1713202229 [17:42:33]current date 1713202954 [17:42:33]FM_GetShiftState [17:42:33]SAM_PROTO_GetShiftState [17:42:33]wFMCommunicate request_size=4 [17:42:33]MH_SAM_APDU [17:42:33]CAPDU: 80 13 01 00 [17:42:33]Write to MH i2c: E2 08 00 63 0F 80 13 01 00 00 00 00 00 EF [17:42:33]Write i2c OK [17:42:33]MH_I2C_Read... [17:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:33]Read from MH i2c: E2 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0E 00 [17:42:33]MH_I2C_Read... [17:42:33]Read from MH i2c: E2 0E 00 63 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E3 [17:42:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:42:33]wFMCommunicate OK [17:42:33]SAM_PROTO_GetShiftState done [17:42:33]FM_GetShiftState done [17:42:33]opened in 1713140468 [17:42:33]opened+sec_in_day 1713226868 [17:42:33]quantity*price = 200032 [17:42:33]sum+1 = 200033 [17:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 222 15.04.2024 17:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29628 ФПД: 200579683467145 1/tax-web-control/client/api/v1/ticket?date=20240415T174235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29628&fm=200579683467145&tin=02508201610067®Number=0000138879044617&sum=200032 [17:42:34]StoreToDocumentArchive [17:42:34]shift 117 fd 29628 [17:42:34]save to /storage/0117/doc_00029628 [17:42:34]save last doc name /storage/0117/doc_00029628 to /storage/kkm_last_doc_name [17:42:34]save OK [17:42:34]Clear old archive folders... [17:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:42:34]tlvbuf is 01A7FE60 [17:42:34]SAM_PROTO_ClearQueue [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 09 00 00 [17:42:34]Write to MH i2c: E2 08 00 70 0F 80 09 00 00 00 00 00 00 F1 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]SAM_PROTO_ClearQueue done [17:42:34]KKMCreateOFDPacket [17:42:34]OFDProtocolAddRootSTLVToBuf [17:42:34]FM_MakeSignedData [17:42:34]FM_MakeSignedData [17:42:34]SAM_PROTO_SignData [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 0D 01 02 [17:42:34]Write to MH i2c: E2 08 00 71 0F 80 0D 01 02 00 00 00 00 F9 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]wFMCommunicate request_size=255 [17:42:34]MH_SAM_APDU [17:42: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 0B 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 73 00 00 35 04 06 00 [17:42:34]Write to MH i2c: E2 02 01 72 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 0B 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 73 00 00 35 04 06 00 00 00 D0 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]wFMCommunicate request_size=11 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 02 02 06 B6 6D 18 C8 3F 89 [17:42:35]Write to MH i2c: E2 0E 00 73 0F 80 0D 02 02 06 00 B6 6D 18 C8 3F 89 00 00 D3 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 03 02 [17:42:35]Write to MH i2c: E2 08 00 74 0F 80 0D 03 02 00 00 00 00 FE [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0B 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0B 00 74 0F 00 5D DA 9F 3F 30 F0 71 5E 90 00 03 [17:42:35]RAPDU: 5D DA 9F 3F 30 F0 71 5E 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_SignData done [17:42:35]FM_MakeSignedData done [17:42:35]CreateOFDProtocolMessage [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 11 00 00 [17:42:35]Write to MH i2c: E2 08 00 75 0F 80 11 00 00 00 00 00 00 FE [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 75 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [17:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:35]wFMCommunicate OK [17:42:35]CreateOFDProtocolMessage done [17:42:35]OFDSenderStorePacket 29628 [17:42:35]StoreOFDPacket docnum=29628 [17:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 89 53 08 01 75 87 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 0B 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 73 00 00 35 04 06 00 B6 6D 18 C8 3F 89 5D DA 9F 3F 30 F0 71 5E [17:42:35]CheckFolder [17:42:35]dirname=/storage/ofd_packets [17:42:35]CheckFolder done [17:42:35]ProducePacketName [17:42:35]name=ofd_packets/00029628 [17:42:35]NVStorageSaveData ofd_packets/00029628 [17:42:35]File name is /storage/ofd_packets/00029628 [17:42:35]Write 302 bytes [17:42:35]NVStorageSaveData done [17:42:35]OFDSenderStorePacket done [17:42:35]KKMCreateOFDPacket done [17:42:35]NVStorageSaveData kkm_last_timestamp [17:42:35]File name is /storage/kkm_last_timestamp [17:42:35]Write 4 bytes [17:42:35]NVStorageSaveData done [17:42:35]ExternCall_PrintAddStr [17:42:35]wPrintStart [17:42:35]Write to MH i2c: 01 00 00 76 0F 85 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 76 0F 00 00 00 00 00 FF 0F 9A [17:42:35]RasterBufferAndPrint [17:42:35]line Счет N : (1)348075 [17:42:35]line ИНН: 02508201610067 [17:42:35]line Контрольно-Кассовый Чек [17:42:35]line ПРОДАЖА [17:42:35]line ТРК (МРК, ГНК) : 31 [17:42:35]line Товар: 2710124130 [17:42:35]line SUPER-92-К-5 [17:42:35]line 30.400 * 65.80 [17:42:35]line = 2000.32 [17:42:35]line НДС 12% НСП 1% [17:42:35]line > о реализуемом товаре [17:42:35]line ИТОГО: 2000.32 [17:42:35]line НСП 1% : 17.70 [17:42:35]line НДС 12% : 212.42 [17:42:35]line Наличными: 0.00 [17:42:35]line Безнал.: 2000.32 [17:42:35]line Место: АЗС № 108 "Партнер Нефть" [17:42:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:42:35]line СНО: Общий режим [17:42:35]line Чек 222 15.04.2024 17:42 [17:42:35]line Смена: 117 ФФД: 1.0 [17:42:35]line ЗНМ: 0300000027 [17:42:35]line РНМ: 0000138879044617 [17:42:35]line Версия ККМ: 001 [17:42:35]line Платежная система: О! деньги [17:42:35]line ФМ: 0000000000963154 [17:42:35]line ФД: 29628 [17:42:35]line ФПД: 200579683467145 [17:42:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T174235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29628&fm=200579683467145&tin=02508201610067®Number=0000138879044617&sum=200032 [17:42:35]OFD Sender: Processing packet 29628 [packets to send 8, broken 7] [17:42:35]ProducePacketName [17:42:35]name=ofd_packets/00029628 [17:42:35]OFD Sender: To server: pG, [17:42:35]CommunicateWithHost lk.salyk.kg:30040 [17:42:35]ConnectInit lk.salyk.kg [17:42:35]written 0, free lines is 4095 [17:42:35]Connected sock=10 [17:42:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 89 53 08 01 75 87 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 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 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 0B 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 73 00 00 35 04 06 00 B6 6D 18 C8 3F 89 5D DA 9F 3F 30 F0 71 5E [17:42:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 67 2A 47 00 77 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 73 00 00 F4 03 04 00 AB 11 1D 66 B6 04 01 00 00 FD 27 4E 7C C8 51 C2 5F [17:42:35]CommunicateWithHost err = 0 [17:42:35]CheckOFDResponse [17:42:35]1017 (14) - 77093643461234 [17:42:35]1041 (16) - 0000000000963154 [17:42:35]1040 (4) - 29628 [17:42:35]1012 (4) - 15.04.2024 11:38 [17:42:35]1206 (1) - 0 [17:42:35]OFD Sender: Remove packet 29628 [17:42:35]ProducePacketName [17:42:35]name=ofd_packets/00029628 [17:42:35]NVStorageDeleteData [17:42:36]Write to MH i2c: 01 00 00 9F 0F AE [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 07 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 E4 0C A5 [17:42:36]RasterBufferAndPrint [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]written 0, free lines is 3305 [17:42:36]MH_Cut [17:42:36]Write to MH i2c: D1 01 00 A6 0F 01 87 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 01 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 01 00 A6 0F 00 86 [17:42:36]Write to MH i2c: 01 00 00 A7 0F B6 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]OFD Sender: No OFD packet to send [17:42:36]*** Cut start [17:42:36]*** Partial cut [17:42:36]*** CUTSNS_PIN = 1 [17:42:36]*** CUTSNS_PIN = 0 [17:42:37]*** Brake cut motor [17:42:37]Read from MH i2c: 01 [17:42:37]MH_I2C_Read... [17:42:37]*** Stop cut motor [17:42:37]*** Cut end [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 A7 0F 00 00 00 00 00 FF 0F CB [17:42:37]process_action close_receipt done [17:42:37]requested_data is exist [17:42:37]produce_requested_data [17:42:37]requested_item fm.sn is exist - process it [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 A8 0F 80 11 00 00 00 00 00 00 31 [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 A8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [17:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:37]wFMCommunicate OK [17:42:37]requested_item fd.num is exist - process it [17:42:37]SAM_PROTO_GetFieldsCounters [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 13 00 00 [17:42:37]Write to MH i2c: E2 08 00 A9 0F 80 13 00 00 00 00 00 00 34 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 62 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 62 00 A9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 73 00 00 0E 04 04 00 75 00 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 B0 [17:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 73 00 00 0E 04 04 00 75 00 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 [17:42:37]wFMCommunicate OK [17:42:37]SAM_PROTO_GetFieldsCounters done [17:42:37]requested_item shift.num is exist - process it [17:42:37]requested_item shift.opened is exist - process it [17:42:37]req_shift_opened [17:42:37]FM_GetShiftState [17:42:37]SAM_PROTO_GetShiftState [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 13 01 00 [17:42:37]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 0E 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2A [17:42:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:42:37]wFMCommunicate OK [17:42:37]SAM_PROTO_GetShiftState done [17:42:37]FM_GetShiftState done [17:42:37]req_shift_opened done [17:42:37]requested_item shift.open_date is exist - process it [17:42:37]req_shift_open_date [17:42:37]req_shift_open_date done [17:42:37]produce_requested_data done [17:42:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29628,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:42:37]process_action_free close_receipt [17:42:37]json_value_free [17:42:37]json_value_free done [17:42:37]process_json_proto returns [17:42:37]Send response to host [17:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29628,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:42:37]free response buf [17:42:37]execute_script done [17:42:37]execute_script returns [17:42:37]free content buf [17:42:37]Sock 7.Close socket [17:42:37]Sock 7.Thread stoped [17:42:41]OFD Sender: No OFD packet to send [17:42:46]accept exits with 9 [17:42:46]New connection [17:42:46]New thread 3066965348 created [17:42:46]Thread 3067108708 joined [17:42:46]Waiting for new connection... [17:42:46] Sock 9.Parse request [17:42:46]Sock 9.Check first char [17:42:46]Sock 9.First char is OK [17:42:46]request: POST /json_proto HTTP/1.0 [17:42:46]Method: POST [17:42:46]URL: /json_proto [17:42:46]Method is POST - this is cgi request [17:42:46]url: /json_proto [17:42:46]query_string will be loaded in cgi processing [17:42:46]execute_cgi json_proto POST (null) [17:42:46]execute_cgi path=json_proto method=POST [17:42:46]POST find Content-Length [17:42:46]Host: 172.17.33.3:8080 [17:42:46]Content-Length: 801 [17:42:46]Content-Type: application/json [17:42:46] [17:42:46]POST finish read [17:42:46]Found Content-Length = 801 [17:42:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:46]execute_script... [17:42: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)348076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:46]POST & json_proto [17:42:46]process_json_proto [17:42:46]json parsed OK: [17:42:46]protocol is kg_v1.0 [17:42:46]action value=close_receipt [17:42:46]process_action close_receipt [17:42:46]cmd_close_receipt [17:42:46]MH_GetDate [17:42:46]Write to MH i2c: F0 00 00 AB 0F A9 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: F0 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: F0 09 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: F0 09 00 AB 0F 00 17 67 1D 66 23 5B 8F 65 25 [17:42:46]GetLastDocTimeStamp 1713202955 [17:42:46]current date 1713202967 [17:42:46]FM_GetShiftState [17:42:46]SAM_PROTO_GetShiftState [17:42:46]wFMCommunicate request_size=4 [17:42:46]MH_SAM_APDU [17:42:46]CAPDU: 80 13 01 00 [17:42:46]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [17:42:46]Write i2c OK [17:42:46]MH_I2C_Read... [17:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:46]Read from MH i2c: E2 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 0E 00 [17:42:46]MH_I2C_Read... [17:42:46]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2C [17:42:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:42:46]wFMCommunicate OK [17:42:46]SAM_PROTO_GetShiftState done [17:42:46]FM_GetShiftState done [17:42:46]opened in 1713140468 [17:42:46]opened+sec_in_day 1713226868 [17:42:46]quantity*price = 150024 [17:42:46]sum+1 = 150025 [17:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 223 15.04.2024 17:42 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29629 ФПД: 130525488843009 1/tax-web-control/client/api/v1/ticket?date=20240415T174247&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29629&fm=130525488843009&tin=02508201610067®Number=0000138879044617&sum=150024 [17:42:47]StoreToDocumentArchive [17:42:47]shift 117 fd 29629 [17:42:47]save to /storage/0117/doc_00029629 [17:42:47]save last doc name /storage/0117/doc_00029629 to /storage/kkm_last_doc_name [17:42:47]save OK [17:42:47]Clear old archive folders... [17:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:42:47]tlvbuf is 01A750E0 [17:42:47]SAM_PROTO_ClearQueue [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 09 00 00 [17:42:47]Write to MH i2c: E2 08 00 B9 0F 80 09 00 00 00 00 00 00 3A [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_ClearQueue done [17:42:47]KKMCreateOFDPacket [17:42:47]OFDProtocolAddRootSTLVToBuf [17:42:47]FM_MakeSignedData [17:42:47]FM_MakeSignedData [17:42:47]SAM_PROTO_SignData [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 01 02 [17:42:47]Write to MH i2c: E2 08 00 BA 0F 80 0D 01 02 00 00 00 00 42 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=255 [17:42:47]MH_SAM_APDU [17:42:47]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 73 00 00 35 04 06 00 [17:42:47]Write to MH i2c: E2 02 01 BB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 73 00 00 35 04 06 00 00 00 79 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=11 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 02 02 06 76 B6 55 65 89 01 [17:42:47]Write to MH i2c: E2 0E 00 BC 0F 80 0D 02 02 06 00 76 B6 55 65 89 01 00 00 C1 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [17:42:47]RAPDU: 90 00 [17:42:47]wFMCommunicate OK [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 0D 03 02 [17:42:47]Write to MH i2c: E2 08 00 BD 0F 80 0D 03 02 00 00 00 00 47 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0B 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0B 00 BD 0F 00 0F 9A A9 79 47 A9 22 1B 90 00 40 [17:42:47]RAPDU: 0F 9A A9 79 47 A9 22 1B 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_SignData done [17:42:47]FM_MakeSignedData done [17:42:47]CreateOFDProtocolMessage [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 11 00 00 [17:42:47]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [17:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:47]wFMCommunicate OK [17:42:47]CreateOFDProtocolMessage done [17:42:47]OFDSenderStorePacket 29629 [17:42:47]StoreOFDPacket docnum=29629 [17:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 6D 08 01 A8 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 73 00 00 35 04 06 00 76 B6 55 65 89 01 0F 9A A9 79 47 A9 22 1B [17:42:47]CheckFolder [17:42:47]dirname=/storage/ofd_packets [17:42:47]CheckFolder done [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00029629 [17:42:47]NVStorageSaveData ofd_packets/00029629 [17:42:47]File name is /storage/ofd_packets/00029629 [17:42:47]Write 302 bytes [17:42:47]NVStorageSaveData done [17:42:47]OFDSenderStorePacket done [17:42:47]KKMCreateOFDPacket done [17:42:47]NVStorageSaveData kkm_last_timestamp [17:42:47]File name is /storage/kkm_last_timestamp [17:42:47]Write 4 bytes [17:42:47]NVStorageSaveData done [17:42:47]ExternCall_PrintAddStr [17:42:47]wPrintStart [17:42:47]Write to MH i2c: 01 00 00 BF 0F CE [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FF 0F E3 [17:42:47]RasterBufferAndPrint [17:42:47]line Счет N : (1)348076 [17:42:47]line ИНН: 02508201610067 [17:42:47]line Контрольно-Кассовый Чек [17:42:47]line ПРОДАЖА [17:42:47]line ТРК (МРК, ГНК) : 12 [17:42:47]line Товар: 2710124130 [17:42:47]line SUPER-92-К-5 [17:42:47]line 22.800 * 65.80 [17:42:47]line = 1500.24 [17:42:47]line НДС 12% НСП 1% [17:42:47]line > о реализуемом товаре [17:42:47]line ИТОГО: 1500.24 [17:42:47]line НСП 1% : 13.28 [17:42:47]line НДС 12% : 159.32 [17:42:47]line Наличными: 0.00 [17:42:47]line Безнал.: 1500.24 [17:42:47]line Место: АЗС № 108 "Партнер Нефть" [17:42:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:42:47]line СНО: Общий режим [17:42:47]line Чек 223 15.04.2024 17:42 [17:42:47]line Смена: 117 ФФД: 1.0 [17:42:47]line ЗНМ: 0300000027 [17:42:47]line РНМ: 0000138879044617 [17:42:47]line Версия ККМ: 001 [17:42:47]line Платежная система: О! деньги [17:42:47]line ФМ: 0000000000963154 [17:42:47]line ФД: 29629 [17:42:47]line ФПД: 130525488843009 [17:42:47]line 1/tax-web-control/client/api/v1/ticket?date=20240415T174247&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29629&fm=130525488843009&tin=02508201610067®Number=0000138879044617&sum=150024 [17:42:47]written 0, free lines is 4095 [17:42:47]OFD Sender: Processing packet 29629 [packets to send 8, broken 7] [17:42:47]ProducePacketName [17:42:47]name=ofd_packets/00029629 [17:42:47]OFD Sender: To server: pG, [17:42:47]CommunicateWithHost lk.salyk.kg:30040 [17:42:47]ConnectInit lk.salyk.kg [17:42:48]Connected sock=10 [17:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 6D 08 01 A8 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 17 67 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 73 00 00 35 04 06 00 76 B6 55 65 89 01 0F 9A A9 79 47 A9 22 1B [17:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4A 8F 47 00 58 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 39 36 33 31 35 34 10 04 04 00 BD 73 00 00 F4 03 04 00 B7 11 1D 66 B6 04 01 00 00 0A BD F5 1C 91 F7 DF 48 [17:42:48]CommunicateWithHost err = 0 [17:42:48]CheckOFDResponse [17:42:48]1017 (14) - 77093643461234 [17:42:48]1041 (16) - 0000000000963154 [17:42:48]1040 (4) - 29629 [17:42:48]1012 (4) - 15.04.2024 11:38 [17:42:48]1206 (1) - 0 [17:42:48]OFD Sender: Remove packet 29629 [17:42:48]ProducePacketName [17:42:48]name=ofd_packets/00029629 [17:42:48]NVStorageDeleteData [17:42:48]Write to MH i2c: 01 00 00 E8 0F F7 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 07 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 F5 0C FF [17:42:48]RasterBufferAndPrint [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]line [17:42:48]written 0, free lines is 3328 [17:42:48]MH_Cut [17:42:48]Write to MH i2c: D1 01 00 EF 0F 01 D0 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 01 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: D1 01 00 EF 0F 00 CF [17:42:48]Write to MH i2c: 01 00 00 F0 0F FF [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]OFD Sender: No OFD packet to send [17:42:49]*** Cut start [17:42:49]*** Partial cut [17:42:49]*** CUTSNS_PIN = 1 [17:42:49]*** CUTSNS_PIN = 0 [17:42:49]*** Brake cut motor [17:42:49]Read from MH i2c: 01 [17:42:49]MH_I2C_Read... [17:42:49]*** Stop cut motor [17:42:49]*** Cut end [17:42:49]Read from MH i2c: 01 07 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: 01 07 00 F0 0F 00 00 00 00 00 FF 0F 14 [17:42:49]process_action close_receipt done [17:42:49]requested_data is exist [17:42:49]produce_requested_data [17:42:49]requested_item fm.sn is exist - process it [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 11 00 00 [17:42:49]Write to MH i2c: E2 08 00 F1 0F 80 11 00 00 00 00 00 00 7A [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 F1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [17:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:49]wFMCommunicate OK [17:42:49]requested_item fd.num is exist - process it [17:42:49]SAM_PROTO_GetFieldsCounters [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 13 00 00 [17:42:49]Write to MH i2c: E2 08 00 F2 0F 80 13 00 00 00 00 00 00 7D [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 62 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 62 00 F2 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 73 00 00 0E 04 04 00 75 00 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 FD [17:42:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 73 00 00 0E 04 04 00 75 00 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 [17:42:50]wFMCommunicate OK [17:42:50]SAM_PROTO_GetFieldsCounters done [17:42:50]requested_item shift.num is exist - process it [17:42:50]requested_item shift.opened is exist - process it [17:42:50]req_shift_opened [17:42:50]FM_GetShiftState [17:42:50]SAM_PROTO_GetShiftState [17:42:50]wFMCommunicate request_size=4 [17:42:50]MH_SAM_APDU [17:42:50]CAPDU: 80 13 01 00 [17:42:50]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:50]Read from MH i2c: E2 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0E 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 73 [17:42:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:42:50]wFMCommunicate OK [17:42:50]SAM_PROTO_GetShiftState done [17:42:50]FM_GetShiftState done [17:42:50]req_shift_opened done [17:42:50]requested_item shift.open_date is exist - process it [17:42:50]req_shift_open_date [17:42:50]req_shift_open_date done [17:42:50]produce_requested_data done [17:42:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29629,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:42:50]process_action_free close_receipt [17:42:50]json_value_free [17:42:50]json_value_free done [17:42:50]process_json_proto returns [17:42:50]Send response to host [17:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29629,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:42:50]free response buf [17:42:50]execute_script done [17:42:50]execute_script returns [17:42:50]free content buf [17:42:50]Sock 9.Close socket [17:42:50]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:04]accept exits with 7 [17:47:04]New connection [17:47:04]New thread 3067108708 created [17:47:04]Thread 3066965348 joined [17:47:04]Waiting for new connection... [17:47:04] Sock 7.Parse request [17:47:04]Sock 7.Check first char [17:47:04]Sock 7.First char is OK [17:47:04]request: POST /json_proto HTTP/1.0 [17:47:04]Method: POST [17:47:04]URL: /json_proto [17:47:04]Method is POST - this is cgi request [17:47:04]url: /json_proto [17:47:04]query_string will be loaded in cgi processing [17:47:04]execute_cgi json_proto POST (null) [17:47:04]execute_cgi path=json_proto method=POST [17:47:04]POST find Content-Length [17:47:04]Host: 172.17.33.3:8080 [17:47:04]Content-Length: 678 [17:47:04]Content-Type: application/json [17:47:04] [17:47:04]POST finish read [17:47:04]Found Content-Length = 678 [17:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "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" ] } } [17:47:04]execute_script... [17:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "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" ] } } [17:47:04]POST & json_proto [17:47:04]process_json_proto [17:47:04]json parsed OK: [17:47:04]protocol is kg_v1.0 [17:47:04]action value=close_receipt [17:47:04]process_action close_receipt [17:47:04]cmd_close_receipt [17:47:04]MH_GetDate [17:47:04]Write to MH i2c: F0 00 00 F4 0F F2 [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: F0 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: F0 09 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: F0 09 00 F4 0F 00 19 68 1D 66 23 5B 8F 65 71 [17:47:04]GetLastDocTimeStamp 1713202967 [17:47:04]current date 1713203225 [17:47:04]FM_GetShiftState [17:47:04]SAM_PROTO_GetShiftState [17:47:04]wFMCommunicate request_size=4 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 13 01 00 [17:47:04]Write to MH i2c: E2 08 00 F5 0F 80 13 01 00 00 00 00 00 81 [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 0E 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 0E 00 F5 0F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [17:47:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:47:04]wFMCommunicate OK [17:47:04]SAM_PROTO_GetShiftState done [17:47:04]FM_GetShiftState done [17:47:04]opened in 1713140468 [17:47:04]opened+sec_in_day 1713226868 [17:47:04]quantity*price = 80028 [17:47:04]sum+1 = 80029 [17:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 224 15.04.2024 17:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29630 ФПД: 151423905329813 1/tax-web-control/client/api/v1/ticket?date=20240415T174705&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29630&fm=151423905329813&tin=02508201610067®Number=0000138879044617&sum=80000 [17:47:05]StoreToDocumentArchive [17:47:05]shift 117 fd 29630 [17:47:05]save to /storage/0117/doc_00029630 [17:47:05]save last doc name /storage/0117/doc_00029630 to /storage/kkm_last_doc_name [17:47:05]save OK [17:47:05]Clear old archive folders... [17:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:05]tlvbuf is 01A18C40 [17:47:05]SAM_PROTO_ClearQueue [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 09 00 00 [17:47:05]Write to MH i2c: E2 08 00 02 10 80 09 00 00 00 00 00 00 84 [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 03 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [17:47:05]RAPDU: 90 00 [17:47:05]wFMCommunicate OK [17:47:05]SAM_PROTO_ClearQueue done [17:47:05]KKMCreateOFDPacket [17:47:05]OFDProtocolAddRootSTLVToBuf [17:47:05]FM_MakeSignedData [17:47:05]FM_MakeSignedData [17:47:05]SAM_PROTO_SignData [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 0D 01 02 [17:47:05]Write to MH i2c: E2 08 00 03 10 80 0D 01 02 00 00 00 00 8C [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 03 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [17:47:05]RAPDU: 90 00 [17:47:05]wFMCommunicate OK [17:47:05]wFMCommunicate request_size=255 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 E0 00 00 00 F4 03 04 00 19 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 73 00 00 35 04 06 00 89 [17:47:05]Write to MH i2c: E2 02 01 04 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 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 E0 00 00 00 F4 03 04 00 19 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 73 00 00 35 04 06 00 89 00 00 FD [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 03 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [17:47:06]RAPDU: 90 00 [17:47:06]wFMCommunicate OK [17:47:06]wFMCommunicate request_size=10 [17:47:06]MH_SAM_APDU [17:47:06]CAPDU: 80 0D 02 02 05 B8 20 16 72 95 [17:47:06]Write to MH i2c: E2 0D 00 05 10 80 0D 02 02 05 00 B8 20 16 72 95 00 00 8E [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 03 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [17:47:06]RAPDU: 90 00 [17:47:06]wFMCommunicate OK [17:47:06]wFMCommunicate request_size=4 [17:47:06]MH_SAM_APDU [17:47:06]CAPDU: 80 0D 03 02 [17:47:06]Write to MH i2c: E2 08 00 06 10 80 0D 03 02 00 00 00 00 91 [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 0B 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 0B 00 06 10 00 DD 3B 33 A3 F3 B7 73 9E 90 00 3B [17:47:06]RAPDU: DD 3B 33 A3 F3 B7 73 9E 90 00 [17:47:06]wFMCommunicate OK [17:47:06]SAM_PROTO_SignData done [17:47:06]FM_MakeSignedData done [17:47:06]CreateOFDProtocolMessage [17:47:06]wFMCommunicate request_size=4 [17:47:06]MH_SAM_APDU [17:47:06]CAPDU: 80 11 00 00 [17:47:06]Write to MH i2c: E2 08 00 07 10 80 11 00 00 00 00 00 00 91 [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 17 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 17 00 07 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [17:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:47:06]wFMCommunicate OK [17:47:06]CreateOFDProtocolMessage done [17:47:06]OFDSenderStorePacket 29630 [17:47:06]StoreOFDPacket docnum=29630 [17:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 FE 07 01 EF 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 E0 00 00 00 F4 03 04 00 19 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 73 00 00 35 04 06 00 89 B8 20 16 72 95 DD 3B 33 A3 F3 B7 73 9E [17:47:06]CheckFolder [17:47:06]dirname=/storage/ofd_packets [17:47:06]CheckFolder done [17:47:06]ProducePacketName [17:47:06]name=ofd_packets/00029630 [17:47:06]NVStorageSaveData ofd_packets/00029630 [17:47:06]File name is /storage/ofd_packets/00029630 [17:47:06]Write 301 bytes [17:47:06]NVStorageSaveData done [17:47:06]OFDSenderStorePacket done [17:47:06]KKMCreateOFDPacket done [17:47:06]NVStorageSaveData kkm_last_timestamp [17:47:06]File name is /storage/kkm_last_timestamp [17:47:06]Write 4 bytes [17:47:06]NVStorageSaveData done [17:47:06]ExternCall_PrintAddStr [17:47:06]wPrintStart [17:47:06]Write to MH i2c: 01 00 00 08 10 18 [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 07 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 FF 0F 2D [17:47:06]RasterBufferAndPrint [17:47:06]line Счет N : (1)348078 [17:47:06]line ИНН: 02508201610067 [17:47:06]line Контрольно-Кассовый Чек [17:47:06]line ПРОДАЖА [17:47:06]line ТРК (МРК, ГНК) : 42 [17:47:06]line Товар: 2710124130 [17:47:06]line Аи-92-К-5 [17:47:06]line 12.350 * 64.80 [17:47:06]line = 800.28 [17:47:06]line НДС 12% НСП 1% [17:47:06]line > о реализуемом товаре [17:47:06]line ОКРУГЛЕНИЕ: -0.28 [17:47:06]line ИТОГО: 800.00 [17:47:06]line Внесено: 800.00 [17:47:06]line СДАЧА: 0.00 [17:47:06]line НСП 1% : 7.08 [17:47:06]line НДС 12% : 84.98 [17:47:06]line Наличными: 800.00 [17:47:06]line Безнал.: 0.00 [17:47:06]line Место: АЗС № 108 "Партнер Нефть" [17:47:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:47:06]line СНО: Общий режим [17:47:06]line Чек 224 15.04.2024 17:47 [17:47:06]line Смена: 117 ФФД: 1.0 [17:47:06]line ЗНМ: 0300000027 [17:47:06]line РНМ: 0000138879044617 [17:47:06]line Версия ККМ: 001 [17:47:06]line ФМ: 0000000000963154 [17:47:06]line ФД: 29630 [17:47:06]line ФПД: 151423905329813 [17:47:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T174705&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29630&fm=151423905329813&tin=02508201610067®Number=0000138879044617&sum=80000 [17:47:06]OFD Sender: Processing packet 29630 [packets to send 8, broken 7] [17:47:06]ProducePacketName [17:47:06]name=ofd_packets/00029630 [17:47:06]OFD Sender: To server: pG, [17:47:06]CommunicateWithHost lk.salyk.kg:30040 [17:47:06]ConnectInit lk.salyk.kg [17:47:06]written 0, free lines is 4095 [17:47:06]Connected sock=10 [17:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 FE 07 01 EF 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 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 E0 00 00 00 F4 03 04 00 19 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 73 00 00 35 04 06 00 89 B8 20 16 72 95 DD 3B 33 A3 F3 B7 73 9E [17:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 1A 47 00 07 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 39 36 33 31 35 34 10 04 04 00 BE 73 00 00 F4 03 04 00 BA 12 1D 66 B6 04 01 00 00 64 7F 8F 9F DC 1F 0E CB [17:47:06]CommunicateWithHost err = 0 [17:47:06]CheckOFDResponse [17:47:06]1017 (14) - 77093643461234 [17:47:06]1041 (16) - 0000000000963154 [17:47:06]1040 (4) - 29630 [17:47:06]1012 (4) - 15.04.2024 11:42 [17:47:06]1206 (1) - 0 [17:47:06]OFD Sender: Remove packet 29630 [17:47:06]ProducePacketName [17:47:06]name=ofd_packets/00029630 [17:47:06]NVStorageDeleteData [17:47:06]Write to MH i2c: 01 00 00 32 10 42 [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 07 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 C8 0C 1D [17:47:06]RasterBufferAndPrint [17:47:06]line [17:47:06]line [17:47:06]line [17:47:06]line [17:47:06]line [17:47:06]written 0, free lines is 3276 [17:47:07]MH_Cut [17:47:07]Write to MH i2c: D1 01 00 39 10 01 1B [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: D1 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: D1 01 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: D1 01 00 39 10 00 1A [17:47:07]Write to MH i2c: 01 00 00 3A 10 4A [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]OFD Sender: No OFD packet to send [17:47:07]*** Cut start [17:47:07]*** Partial cut [17:47:07]*** CUTSNS_PIN = 1 [17:47:07]*** CUTSNS_PIN = 0 [17:47:08]*** Brake cut motor [17:47:08]Read from MH i2c: 01 [17:47:08]MH_I2C_Read... [17:47:08]*** Stop cut motor [17:47:08]*** Cut end [17:47:08]Read from MH i2c: 01 07 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [17:47:08]process_action close_receipt done [17:47:08]requested_data is exist [17:47:08]produce_requested_data [17:47:08]requested_item fm.sn is exist - process it [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 11 00 00 [17:47:08]Write to MH i2c: E2 08 00 3B 10 80 11 00 00 00 00 00 00 C5 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 3B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [17:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:47:08]wFMCommunicate OK [17:47:08]requested_item fd.num is exist - process it [17:47:08]SAM_PROTO_GetFieldsCounters [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 13 00 00 [17:47:08]Write to MH i2c: E2 08 00 3C 10 80 13 00 00 00 00 00 00 C8 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 62 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 62 00 3C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 73 00 00 0E 04 04 00 75 00 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 4C [17:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 73 00 00 0E 04 04 00 75 00 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 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_GetFieldsCounters done [17:47:08]requested_item shift.num is exist - process it [17:47:08]requested_item shift.opened is exist - process it [17:47:08]req_shift_opened [17:47:08]FM_GetShiftState [17:47:08]SAM_PROTO_GetShiftState [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 13 01 00 [17:47:08]Write to MH i2c: E2 08 00 3D 10 80 13 01 00 00 00 00 00 CA [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 3D 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [17:47:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_GetShiftState done [17:47:08]FM_GetShiftState done [17:47:08]req_shift_opened done [17:47:08]requested_item shift.open_date is exist - process it [17:47:08]req_shift_open_date [17:47:08]req_shift_open_date done [17:47:08]produce_requested_data done [17:47:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29630,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:47:08]process_action_free close_receipt [17:47:08]json_value_free [17:47:08]json_value_free done [17:47:08]process_json_proto returns [17:47:08]Send response to host [17:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29630,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:47:08]free response buf [17:47:08]execute_script done [17:47:08]execute_script returns [17:47:08]free content buf [17:47:08]Sock 7.Close socket [17:47:08]Sock 7.Thread stoped [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:46]accept exits with 9 [17:48:46]New connection [17:48:46]New thread 3066965348 created [17:48:46]Thread 3067108708 joined [17:48:46]Waiting for new connection... [17:48:46] Sock 9.Parse request [17:48:46]Sock 9.Check first char [17:48:46]Sock 9.First char is OK [17:48:46]request: POST /json_proto HTTP/1.0 [17:48:46]Method: POST [17:48:46]URL: /json_proto [17:48:46]Method is POST - this is cgi request [17:48:46]url: /json_proto [17:48:46]query_string will be loaded in cgi processing [17:48:46]execute_cgi json_proto POST (null) [17:48:46]execute_cgi path=json_proto method=POST [17:48:46]POST find Content-Length [17:48:46]Host: 172.17.33.3:8080 [17:48:46]Content-Length: 1170 [17:48:46]Content-Type: application/json [17:48:46] [17:48:46]POST finish read [17:48:46]Found Content-Length = 1170 [17:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348079\u000A15.04.2024 17:30\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-\u041A-5\u000A 9.420 x 72.90\u000A\u0418\u0422\u041E\u0413: 686.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:46]execute_script... [17:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348079\u000A15.04.2024 17:30\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-\u041A-5\u000A 9.420 x 72.90\u000A\u0418\u0422\u041E\u0413: 686.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:46]POST & json_proto [17:48:46]process_json_proto [17:48:46]json parsed OK: [17:48:46]protocol is kg_v1.0 [17:48:46]action value=print_text [17:48:46]process_action print_text [17:48:46]cmd_print_text [17:48:46]ExternCall_PrintAddStr [17:48:46]wPrintStart [17:48:46]Write to MH i2c: 01 00 00 3E 10 4E [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 3E 10 00 00 00 00 00 FF 0F 63 [17:48:46]RasterBufferAndPrint [17:48:46]line *****ТОВАРНЫЙ ЧЕК***** [17:48:46]line АЗС 108 [17:48:46]line Партнер нефть [17:48:46]line 02508201610067 [17:48:46]line Кассир : Джумагулова Н. [17:48:46]line Счет N : (1)348079 [17:48:46]line 15.04.2024 17:30 [17:48:46]line ПРОДАЖА [17:48:46]line ТРК (МРК, ГНК): 51 [17:48:46]line Вид ГСМ : 2710194210 [17:48:46]line ДТ-К-5 [17:48:46]line 9.420 x 72.90 [17:48:46]line ИТОГ: 686.72 [17:48:46]line Тип оплаты: Талоны: ТК ГПНА Online [17:48:46]line 30024816 [17:48:46]line ______________________ [17:48:46]line (подпись) [17:48:46]written 0, free lines is 4095 [17:48:47]Write to MH i2c: 01 00 00 53 10 63 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 07 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 F2 0D 69 [17:48:47]RasterBufferAndPrint [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]written 0, free lines is 3572 [17:48:47]MH_Cut [17:48:47]Write to MH i2c: D1 01 00 5A 10 01 3C [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 01 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 01 00 5A 10 00 3B [17:48:47]Write to MH i2c: 01 00 00 5B 10 6B [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]OFD Sender: No OFD packet to send [17:48:47]*** Cut start [17:48:47]*** Partial cut [17:48:47]*** CUTSNS_PIN = 1 [17:48:47]*** CUTSNS_PIN = 0 [17:48:48]*** Brake cut motor [17:48:48]Read from MH i2c: 01 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: 01 07 00 [17:48:48]MH_I2C_Read... [17:48:48]*** Stop cut motor [17:48:48]*** Cut end [17:48:48]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 FF 0F 80 [17:48:48]process_action print_text done [17:48:48]requested_data is exist [17:48:48]produce_requested_data [17:48:48]requested_item fm.sn is exist - process it [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 11 00 00 [17:48:48]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [17:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:48:48]wFMCommunicate OK [17:48:48]requested_item fd.num is exist - process it [17:48:48]SAM_PROTO_GetFieldsCounters [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 00 00 [17:48:48]Write to MH i2c: E2 08 00 5D 10 80 13 00 00 00 00 00 00 E9 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 5D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 73 00 00 0E 04 04 00 75 00 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 6D [17:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 73 00 00 0E 04 04 00 75 00 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 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetFieldsCounters done [17:48:48]requested_item shift.num is exist - process it [17:48:48]requested_item shift.opened is exist - process it [17:48:48]req_shift_opened [17:48:48]FM_GetShiftState [17:48:48]SAM_PROTO_GetShiftState [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 01 00 [17:48:48]Write to MH i2c: E2 08 00 5E 10 80 13 01 00 00 00 00 00 EB [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 5E 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DF [17:48:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetShiftState done [17:48:48]FM_GetShiftState done [17:48:48]req_shift_opened done [17:48:48]requested_item shift.open_date is exist - process it [17:48:48]req_shift_open_date [17:48:48]req_shift_open_date done [17:48:48]produce_requested_data done [17:48:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29630,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:48:48]process_action_free print_text [17:48:48]json_value_free [17:48:48]json_value_free done [17:48:48]process_json_proto returns [17:48:48]Send response to host [17:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29630,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:48:48]free response buf [17:48:48]execute_script done [17:48:48]execute_script returns [17:48:48]free content buf [17:48:48]Sock 9.Close socket [17:48:48]Sock 9.Thread stoped [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:34]accept exits with 7 [17:49:34]New connection [17:49:34]New thread 3067108708 created [17:49:34]Thread 3066965348 joined [17:49:34]Waiting for new connection... [17:49:34] Sock 7.Parse request [17:49:34]Sock 7.Check first char [17:49:34]Sock 7.First char is OK [17:49:34]request: POST /json_proto HTTP/1.0 [17:49:34]Method: POST [17:49:34]URL: /json_proto [17:49:34]Method is POST - this is cgi request [17:49:34]url: /json_proto [17:49:34]query_string will be loaded in cgi processing [17:49:34]execute_cgi json_proto POST (null) [17:49:34]execute_cgi path=json_proto method=POST [17:49:34]POST find Content-Length [17:49:34]Host: 172.17.33.3:8080 [17:49:34]Content-Length: 768 [17:49:34]Content-Type: application/json [17:49:34] [17:49:34]POST finish read [17:49:34]Found Content-Length = 768 [17:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.890, "sum" : 900.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 900.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:34]execute_script... [17:49: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)348080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.890, "sum" : 900.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 900.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:34]POST & json_proto [17:49:34]process_json_proto [17:49:34]json parsed OK: [17:49:34]protocol is kg_v1.0 [17:49:34]action value=close_receipt [17:49:34]process_action close_receipt [17:49:34]cmd_close_receipt [17:49:34]MH_GetDate [17:49:34]Write to MH i2c: F0 00 00 5F 10 5E [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: F0 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: F0 09 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: F0 09 00 5F 10 00 AF 68 1D 66 23 5B 8F 65 73 [17:49:34]GetLastDocTimeStamp 1713203225 [17:49:34]current date 1713203375 [17:49:34]FM_GetShiftState [17:49:34]SAM_PROTO_GetShiftState [17:49:34]wFMCommunicate request_size=4 [17:49:34]MH_SAM_APDU [17:49:34]CAPDU: 80 13 01 00 [17:49:34]Write to MH i2c: E2 08 00 60 10 80 13 01 00 00 00 00 00 ED [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:34]Read from MH i2c: E2 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 0E 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 0E 00 60 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [17:49:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:49:34]wFMCommunicate OK [17:49:34]SAM_PROTO_GetShiftState done [17:49:34]FM_GetShiftState done [17:49:34]opened in 1713140468 [17:49:34]opened+sec_in_day 1713226868 [17:49:34]quantity*price = 90007 [17:49:34]sum+1 = 90008 [17:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.07 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 225 15.04.2024 17:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000963154 ФД: 29631 ФПД: 158360783367383 1/tax-web-control/client/api/v1/ticket?date=20240415T174935&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29631&fm=158360783367383&tin=02508201610067®Number=0000138879044617&sum=90007 [17:49:35]StoreToDocumentArchive [17:49:35]shift 117 fd 29631 [17:49:35]save to /storage/0117/doc_00029631 [17:49:35]save last doc name /storage/0117/doc_00029631 to /storage/kkm_last_doc_name [17:49:35]save OK [17:49:35]Clear old archive folders... [17:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:35]tlvbuf is 01A1AF80 [17:49:35]SAM_PROTO_ClearQueue [17:49:35]wFMCommunicate request_size=4 [17:49:35]MH_SAM_APDU [17:49:35]CAPDU: 80 09 00 00 [17:49:35]Write to MH i2c: E2 08 00 6D 10 80 09 00 00 00 00 00 00 EF [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 6D 10 00 90 00 F1 [17:49:35]RAPDU: 90 00 [17:49:35]wFMCommunicate OK [17:49:35]SAM_PROTO_ClearQueue done [17:49:35]KKMCreateOFDPacket [17:49:35]OFDProtocolAddRootSTLVToBuf [17:49:35]FM_MakeSignedData [17:49:35]FM_MakeSignedData [17:49:35]SAM_PROTO_SignData [17:49:35]wFMCommunicate request_size=4 [17:49:35]MH_SAM_APDU [17:49:35]CAPDU: 80 0D 01 02 [17:49:35]Write to MH i2c: E2 08 00 6E 10 80 0D 01 02 00 00 00 00 F7 [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [17:49:35]RAPDU: 90 00 [17:49:35]wFMCommunicate OK [17:49:35]wFMCommunicate request_size=255 [17:49:35]MH_SAM_APDU [17:49: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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AF 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 73 00 00 35 04 06 00 90 [17:49:35]Write to MH i2c: E2 02 01 6F 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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AF 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 73 00 00 35 04 06 00 90 00 00 30 [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [17:49:35]RAPDU: 90 00 [17:49:35]wFMCommunicate OK [17:49:35]wFMCommunicate request_size=10 [17:49:35]MH_SAM_APDU [17:49:35]CAPDU: 80 0D 02 02 05 07 3E 3D 2C D7 [17:49:35]Write to MH i2c: E2 0D 00 70 10 80 0D 02 02 05 00 07 3E 3D 2C D7 00 00 89 [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [17:49:35]RAPDU: 90 00 [17:49:35]wFMCommunicate OK [17:49:35]wFMCommunicate request_size=4 [17:49:35]MH_SAM_APDU [17:49:35]CAPDU: 80 0D 03 02 [17:49:35]Write to MH i2c: E2 08 00 71 10 80 0D 03 02 00 00 00 00 FC [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 0B 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 0B 00 71 10 00 05 C8 94 61 B2 09 23 72 90 00 0F [17:49:35]RAPDU: 05 C8 94 61 B2 09 23 72 90 00 [17:49:35]wFMCommunicate OK [17:49:35]SAM_PROTO_SignData done [17:49:35]FM_MakeSignedData done [17:49:35]CreateOFDProtocolMessage [17:49:35]wFMCommunicate request_size=4 [17:49:35]MH_SAM_APDU [17:49:35]CAPDU: 80 11 00 00 [17:49:35]Write to MH i2c: E2 08 00 72 10 80 11 00 00 00 00 00 00 FC [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:35]Read from MH i2c: E2 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 17 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: E2 17 00 72 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [17:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:49:35]wFMCommunicate OK [17:49:35]CreateOFDProtocolMessage done [17:49:35]OFDSenderStorePacket 29631 [17:49:35]StoreOFDPacket docnum=29631 [17:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 2F 07 01 73 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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AF 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 73 00 00 35 04 06 00 90 07 3E 3D 2C D7 05 C8 94 61 B2 09 23 72 [17:49:35]CheckFolder [17:49:35]dirname=/storage/ofd_packets [17:49:35]CheckFolder done [17:49:35]ProducePacketName [17:49:35]name=ofd_packets/00029631 [17:49:35]NVStorageSaveData ofd_packets/00029631 [17:49:35]File name is /storage/ofd_packets/00029631 [17:49:35]Write 301 bytes [17:49:35]NVStorageSaveData done [17:49:35]OFDSenderStorePacket done [17:49:35]KKMCreateOFDPacket done [17:49:35]NVStorageSaveData kkm_last_timestamp [17:49:35]File name is /storage/kkm_last_timestamp [17:49:35]Write 4 bytes [17:49:35]NVStorageSaveData done [17:49:35]ExternCall_PrintAddStr [17:49:35]wPrintStart [17:49:35]Write to MH i2c: 01 00 00 73 10 83 [17:49:35]Write i2c OK [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: 01 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: 01 07 00 [17:49:35]MH_I2C_Read... [17:49:35]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FF 0F 98 [17:49:35]RasterBufferAndPrint [17:49:35]line Счет N : (1)348080 [17:49:35]line ИНН: 02508201610067 [17:49:35]line Контрольно-Кассовый Чек [17:49:35]line ПРОДАЖА [17:49:35]line ТРК (МРК, ГНК) : 23 [17:49:35]line Товар: 2710124130 [17:49:35]line Аи-92-К-5 [17:49:35]line 13.890 * 64.80 [17:49:35]line = 900.07 [17:49:35]line НДС 12% НСП 1% [17:49:35]line > о реализуемом товаре [17:49:35]line ИТОГО: 900.07 [17:49:35]line НСП 1% : 7.96 [17:49:35]line НДС 12% : 95.58 [17:49:35]line Наличными: 0.00 [17:49:35]line Безнал.: 900.07 [17:49:35]line Место: АЗС № 108 "Партнер Нефть" [17:49:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:49:35]line СНО: Общий режим [17:49:35]line Чек 225 15.04.2024 17:49 [17:49:35]line Смена: 117 ФФД: 1.0 [17:49:35]line ЗНМ: 0300000027 [17:49:35]line РНМ: 0000138879044617 [17:49:35]line Версия ККМ: 001 [17:49:35]line Платежная система: cash2u [17:49:35]line ФМ: 0000000000963154 [17:49:35]line ФД: 29631 [17:49:35]line ФПД: 158360783367383 [17:49:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T174935&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29631&fm=158360783367383&tin=02508201610067®Number=0000138879044617&sum=90007 [17:49:36]OFD Sender: Processing packet 29631 [packets to send 8, broken 7] [17:49:36]ProducePacketName [17:49:36]name=ofd_packets/00029631 [17:49:36]OFD Sender: To server: pG, [17:49:36]CommunicateWithHost lk.salyk.kg:30040 [17:49:36]ConnectInit lk.salyk.kg [17:49:36]written 0, free lines is 4095 [17:49:36]Connected sock=9 [17:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 2F 07 01 73 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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 AF 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 73 00 00 35 04 06 00 90 07 3E 3D 2C D7 05 C8 94 61 B2 09 23 72 [17:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BE 18 47 00 28 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 39 36 33 31 35 34 10 04 04 00 BF 73 00 00 F4 03 04 00 4F 13 1D 66 B6 04 01 00 00 09 E0 8E 1C 03 01 5B 85 [17:49:36]CommunicateWithHost err = 0 [17:49:36]CheckOFDResponse [17:49:36]1017 (14) - 77093643461234 [17:49:36]1041 (16) - 0000000000963154 [17:49:36]1040 (4) - 29631 [17:49:36]1012 (4) - 15.04.2024 11:45 [17:49:36]1206 (1) - 0 [17:49:36]OFD Sender: Remove packet 29631 [17:49:36]ProducePacketName [17:49:36]name=ofd_packets/00029631 [17:49:36]NVStorageDeleteData [17:49:36]Write to MH i2c: 01 00 00 9B 10 AB [17:49:36]Write i2c OK [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: 01 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: 01 07 00 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 F7 0C B5 [17:49:36]RasterBufferAndPrint [17:49:36]line [17:49:36]line [17:49:36]line [17:49:36]line [17:49:36]line [17:49:36]written 0, free lines is 3326 [17:49:36]MH_Cut [17:49:36]Write to MH i2c: D1 01 00 A2 10 01 84 [17:49:36]Write i2c OK [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: D1 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: D1 01 00 [17:49:36]MH_I2C_Read... [17:49:36]Read from MH i2c: D1 01 00 A2 10 00 83 [17:49:36]Write to MH i2c: 01 00 00 A3 10 B3 [17:49:36]Write i2c OK [17:49:36]MH_I2C_Read... [17:49:36]OFD Sender: No OFD packet to send [17:49:37]*** Cut start [17:49:37]*** Partial cut [17:49:37]*** CUTSNS_PIN = 1 [17:49:37]*** CUTSNS_PIN = 0 [17:49:37]*** Brake cut motor [17:49:37]Read from MH i2c: 01 [17:49:37]MH_I2C_Read... [17:49:37]*** Stop cut motor [17:49:37]*** Cut end [17:49:37]Read from MH i2c: 01 07 00 [17:49:37]MH_I2C_Read... [17:49:37]Read from MH i2c: 01 07 00 A3 10 00 00 00 00 00 FF 0F C8 [17:49:37]process_action close_receipt done [17:49:37]requested_data is exist [17:49:37]produce_requested_data [17:49:37]requested_item fm.sn is exist - process it [17:49:37]wFMCommunicate request_size=4 [17:49:37]MH_SAM_APDU [17:49:37]CAPDU: 80 11 00 00 [17:49:37]Write to MH i2c: E2 08 00 A4 10 80 11 00 00 00 00 00 00 2E [17:49:37]Write i2c OK [17:49:37]MH_I2C_Read... [17:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:37]Read from MH i2c: E2 [17:49:37]MH_I2C_Read... [17:49:37]Read from MH i2c: E2 17 00 [17:49:37]MH_I2C_Read... [17:49:37]Read from MH i2c: E2 17 00 A4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [17:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:49:37]wFMCommunicate OK [17:49:37]requested_item fd.num is exist - process it [17:49:37]SAM_PROTO_GetFieldsCounters [17:49:37]wFMCommunicate request_size=4 [17:49:37]MH_SAM_APDU [17:49:37]CAPDU: 80 13 00 00 [17:49:37]Write to MH i2c: E2 08 00 A5 10 80 13 00 00 00 00 00 00 31 [17:49:37]Write i2c OK [17:49:37]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 62 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 62 00 A5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 73 00 00 0E 04 04 00 75 00 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 B9 [17:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 73 00 00 0E 04 04 00 75 00 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 [17:49:38]wFMCommunicate OK [17:49:38]SAM_PROTO_GetFieldsCounters done [17:49:38]requested_item shift.num is exist - process it [17:49:38]requested_item shift.opened is exist - process it [17:49:38]req_shift_opened [17:49:38]FM_GetShiftState [17:49:38]SAM_PROTO_GetShiftState [17:49:38]wFMCommunicate request_size=4 [17:49:38]MH_SAM_APDU [17:49:38]CAPDU: 80 13 01 00 [17:49:38]Write to MH i2c: E2 08 00 A6 10 80 13 01 00 00 00 00 00 33 [17:49:38]Write i2c OK [17:49:38]MH_I2C_Read... [17:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:38]Read from MH i2c: E2 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 0E 00 [17:49:38]MH_I2C_Read... [17:49:38]Read from MH i2c: E2 0E 00 A6 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 27 [17:49:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:49:38]wFMCommunicate OK [17:49:38]SAM_PROTO_GetShiftState done [17:49:38]FM_GetShiftState done [17:49:38]req_shift_opened done [17:49:38]requested_item shift.open_date is exist - process it [17:49:38]req_shift_open_date [17:49:38]req_shift_open_date done [17:49:38]produce_requested_data done [17:49:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29631,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:49:38]process_action_free close_receipt [17:49:38]json_value_free [17:49:38]json_value_free done [17:49:38]process_json_proto returns [17:49:38]Send response to host [17:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29631,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:49:38]free response buf [17:49:38]execute_script done [17:49:38]execute_script returns [17:49:38]free content buf [17:49:38]Sock 7.Close socket [17:49:38]Sock 7.Thread stoped [17:49:40]accept exits with 10 [17:49:40]New connection [17:49:40]New thread 3066965348 created [17:49:40]Thread 3067108708 joined [17:49:40]Waiting for new connection... [17:49:40] Sock 10.Parse request [17:49:40]Sock 10.Check first char [17:49:40]Sock 10.First char is OK [17:49:40]request: POST /json_proto HTTP/1.0 [17:49:40]Method: POST [17:49:40]URL: /json_proto [17:49:40]Method is POST - this is cgi request [17:49:40]url: /json_proto [17:49:40]query_string will be loaded in cgi processing [17:49:40]execute_cgi json_proto POST (null) [17:49:40]execute_cgi path=json_proto method=POST [17:49:40]POST find Content-Length [17:49:40]Host: 172.17.33.3:8080 [17:49:40]Content-Length: 670 [17:49:40]Content-Type: application/json [17:49:40] [17:49:40]POST finish read [17:49:40]Found Content-Length = 670 [17:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:40]execute_script... [17:49: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)348081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:40]POST & json_proto [17:49:40]process_json_proto [17:49:40]json parsed OK: [17:49:40]protocol is kg_v1.0 [17:49:40]action value=close_receipt [17:49:40]process_action close_receipt [17:49:40]cmd_close_receipt [17:49:40]MH_GetDate [17:49:40]Write to MH i2c: F0 00 00 A7 10 A6 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 09 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 09 00 A7 10 00 B6 68 1D 66 23 5B 8F 65 C2 [17:49:40]GetLastDocTimeStamp 1713203375 [17:49:40]current date 1713203382 [17:49:40]FM_GetShiftState [17:49:40]SAM_PROTO_GetShiftState [17:49:40]wFMCommunicate request_size=4 [17:49:40]MH_SAM_APDU [17:49:40]CAPDU: 80 13 01 00 [17:49:40]Write to MH i2c: E2 08 00 A8 10 80 13 01 00 00 00 00 00 35 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:40]Read from MH i2c: E2 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 0E 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 0E 00 A8 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 29 [17:49:40]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:49:40]wFMCommunicate OK [17:49:40]SAM_PROTO_GetShiftState done [17:49:40]FM_GetShiftState done [17:49:40]opened in 1713140468 [17:49:40]opened+sec_in_day 1713226868 [17:49:40]quantity*price = 60009 [17:49:40]sum+1 = 60011 [17:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 226 15.04.2024 17:49 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29632 ФПД: 272214468899262 1/tax-web-control/client/api/v1/ticket?date=20240415T174942&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29632&fm=272214468899262&tin=02508201610067®Number=0000138879044617&sum=60000 [17:49:41]StoreToDocumentArchive [17:49:41]shift 117 fd 29632 [17:49:41]save to /storage/0117/doc_00029632 [17:49:41]save last doc name /storage/0117/doc_00029632 to /storage/kkm_last_doc_name [17:49:41]save OK [17:49:41]Clear old archive folders... [17:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:49:41]tlvbuf is 01A9E7F0 [17:49:41]SAM_PROTO_ClearQueue [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 09 00 00 [17:49:41]Write to MH i2c: E2 08 00 B5 10 80 09 00 00 00 00 00 00 37 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [17:49:42]RAPDU: 90 00 [17:49:42]wFMCommunicate OK [17:49:42]SAM_PROTO_ClearQueue done [17:49:42]KKMCreateOFDPacket [17:49:42]OFDProtocolAddRootSTLVToBuf [17:49:42]FM_MakeSignedData [17:49:42]FM_MakeSignedData [17:49:42]SAM_PROTO_SignData [17:49:42]wFMCommunicate request_size=4 [17:49:42]MH_SAM_APDU [17:49:42]CAPDU: 80 0D 01 02 [17:49:42]Write to MH i2c: E2 08 00 B6 10 80 0D 01 02 00 00 00 00 3F [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [17:49:42]RAPDU: 90 00 [17:49:42]wFMCommunicate OK [17:49:42]wFMCommunicate request_size=255 [17:49:42]MH_SAM_APDU [17:49: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B6 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 73 00 00 35 04 06 00 [17:49:42]Write to MH i2c: E2 02 01 B7 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B6 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 73 00 00 35 04 06 00 00 00 C5 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [17:49:42]RAPDU: 90 00 [17:49:42]wFMCommunicate OK [17:49:42]wFMCommunicate request_size=11 [17:49:42]MH_SAM_APDU [17:49:42]CAPDU: 80 0D 02 02 06 F7 93 DE B8 B1 BE [17:49:42]Write to MH i2c: E2 0E 00 B8 10 80 0D 02 02 06 00 F7 93 DE B8 B1 BE 00 00 DD [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [17:49:42]RAPDU: 90 00 [17:49:42]wFMCommunicate OK [17:49:42]wFMCommunicate request_size=4 [17:49:42]MH_SAM_APDU [17:49:42]CAPDU: 80 0D 03 02 [17:49:42]Write to MH i2c: E2 08 00 B9 10 80 0D 03 02 00 00 00 00 44 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 0B 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 0B 00 B9 10 00 34 D9 81 CD 7B 1E EF 61 90 00 89 [17:49:42]RAPDU: 34 D9 81 CD 7B 1E EF 61 90 00 [17:49:42]wFMCommunicate OK [17:49:42]SAM_PROTO_SignData done [17:49:42]FM_MakeSignedData done [17:49:42]CreateOFDProtocolMessage [17:49:42]wFMCommunicate request_size=4 [17:49:42]MH_SAM_APDU [17:49:42]CAPDU: 80 11 00 00 [17:49:42]Write to MH i2c: E2 08 00 BA 10 80 11 00 00 00 00 00 00 44 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 17 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 17 00 BA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [17:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:49:42]wFMCommunicate OK [17:49:42]CreateOFDProtocolMessage done [17:49:42]OFDSenderStorePacket 29632 [17:49:42]StoreOFDPacket docnum=29632 [17:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C2 78 08 01 C7 16 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B6 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 73 00 00 35 04 06 00 F7 93 DE B8 B1 BE 34 D9 81 CD 7B 1E EF 61 [17:49:42]CheckFolder [17:49:42]dirname=/storage/ofd_packets [17:49:42]CheckFolder done [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00029632 [17:49:42]NVStorageSaveData ofd_packets/00029632 [17:49:42]File name is /storage/ofd_packets/00029632 [17:49:42]Write 302 bytes [17:49:42]NVStorageSaveData done [17:49:42]OFDSenderStorePacket done [17:49:42]KKMCreateOFDPacket done [17:49:42]NVStorageSaveData kkm_last_timestamp [17:49:42]File name is /storage/kkm_last_timestamp [17:49:42]Write 4 bytes [17:49:42]NVStorageSaveData done [17:49:42]ExternCall_PrintAddStr [17:49:42]wPrintStart [17:49:42]Write to MH i2c: 01 00 00 BB 10 CB [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 FF 0F E0 [17:49:42]RasterBufferAndPrint [17:49:42]line Счет N : (1)348081 [17:49:42]line ИНН: 02508201610067 [17:49:42]line Контрольно-Кассовый Чек [17:49:42]line ПРОДАЖА [17:49:42]line ТРК (МРК, ГНК) : 31 [17:49:42]line Товар: 2710124130 [17:49:42]line SUPER-92-К-5 [17:49:42]line 9.120 * 65.80 [17:49:42]line = 600.10 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line ОКРУГЛЕНИЕ: -0.10 [17:49:42]line ИТОГО: 600.00 [17:49:42]line Внесено: 600.00 [17:49:42]line СДАЧА: 0.00 [17:49:42]line НСП 1% : 5.31 [17:49:42]line НДС 12% : 63.73 [17:49:42]line Наличными: 600.00 [17:49:42]line Безнал.: 0.00 [17:49:42]line Место: АЗС № 108 "Партнер Нефть" [17:49:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:49:42]line СНО: Общий режим [17:49:42]line Чек 226 15.04.2024 17:49 [17:49:42]line Смена: 117 ФФД: 1.0 [17:49:42]line ЗНМ: 0300000027 [17:49:42]line РНМ: 0000138879044617 [17:49:42]line Версия ККМ: 001 [17:49:42]line ФМ: 0000000000963154 [17:49:42]line ФД: 29632 [17:49:42]line ФПД: 272214468899262 [17:49:42]line 1/tax-web-control/client/api/v1/ticket?date=20240415T174942&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29632&fm=272214468899262&tin=02508201610067®Number=0000138879044617&sum=60000 [17:49:42]written 0, free lines is 4095 [17:49:42]OFD Sender: Processing packet 29632 [packets to send 8, broken 7] [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00029632 [17:49:42]OFD Sender: To server: pG, [17:49:42]CommunicateWithHost lk.salyk.kg:30040 [17:49:42]ConnectInit lk.salyk.kg [17:49:42]Connected sock=9 [17:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C2 78 08 01 C7 16 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 B6 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 73 00 00 35 04 06 00 F7 93 DE B8 B1 BE 34 D9 81 CD 7B 1E EF 61 [17:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 FA 47 00 66 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 39 36 33 31 35 34 10 04 04 00 C0 73 00 00 F4 03 04 00 56 13 1D 66 B6 04 01 00 00 43 ED 1D 10 90 93 10 24 [17:49:42]CommunicateWithHost err = 0 [17:49:42]CheckOFDResponse [17:49:42]1017 (14) - 77093643461234 [17:49:42]1041 (16) - 0000000000963154 [17:49:42]1040 (4) - 29632 [17:49:42]1012 (4) - 15.04.2024 11:45 [17:49:42]1206 (1) - 0 [17:49:42]OFD Sender: Remove packet 29632 [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00029632 [17:49:42]NVStorageDeleteData [17:49:43]Write to MH i2c: 01 00 00 E5 10 F5 [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: 01 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: 01 07 00 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: 01 07 00 E5 10 00 00 00 00 00 DE 0C E6 [17:49:43]RasterBufferAndPrint [17:49:43]line [17:49:43]line [17:49:43]line [17:49:43]line [17:49:43]line [17:49:43]written 0, free lines is 3307 [17:49:43]MH_Cut [17:49:43]Write to MH i2c: D1 01 00 EC 10 01 CE [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: D1 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: D1 01 00 [17:49:43]MH_I2C_Read... [17:49:43]Read from MH i2c: D1 01 00 EC 10 00 CD [17:49:43]Write to MH i2c: 01 00 00 ED 10 FD [17:49:43]Write i2c OK [17:49:43]MH_I2C_Read... [17:49:43]OFD Sender: No OFD packet to send [17:49:43]*** Cut start [17:49:43]*** Partial cut [17:49:43]*** CUTSNS_PIN = 1 [17:49:43]*** CUTSNS_PIN = 0 [17:49:44]*** Brake cut motor [17:49:44]Read from MH i2c: 01 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 07 00 [17:49:44]MH_I2C_Read... [17:49:44]*** Stop cut motor [17:49:44]*** Cut end [17:49:44]Read from MH i2c: 01 07 00 ED 10 00 00 00 00 00 FF 0F 12 [17:49:44]process_action close_receipt done [17:49:44]requested_data is exist [17:49:44]produce_requested_data [17:49:44]requested_item fm.sn is exist - process it [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 11 00 00 [17:49:44]Write to MH i2c: E2 08 00 EE 10 80 11 00 00 00 00 00 00 78 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 EE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [17:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:49:44]wFMCommunicate OK [17:49:44]requested_item fd.num is exist - process it [17:49:44]SAM_PROTO_GetFieldsCounters [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 00 00 [17:49:44]Write to MH i2c: E2 08 00 EF 10 80 13 00 00 00 00 00 00 7B [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 EF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 73 00 00 0E 04 04 00 75 00 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 07 [17:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 73 00 00 0E 04 04 00 75 00 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 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetFieldsCounters done [17:49:44]requested_item shift.num is exist - process it [17:49:44]requested_item shift.opened is exist - process it [17:49:44]req_shift_opened [17:49:44]FM_GetShiftState [17:49:44]SAM_PROTO_GetShiftState [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 01 00 [17:49:44]Write to MH i2c: E2 08 00 F0 10 80 13 01 00 00 00 00 00 7D [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 F0 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 71 [17:49:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetShiftState done [17:49:44]FM_GetShiftState done [17:49:44]req_shift_opened done [17:49:44]requested_item shift.open_date is exist - process it [17:49:44]req_shift_open_date [17:49:44]req_shift_open_date done [17:49:44]produce_requested_data done [17:49:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29632,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:49:44]process_action_free close_receipt [17:49:44]json_value_free [17:49:44]json_value_free done [17:49:44]process_json_proto returns [17:49:44]Send response to host [17:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29632,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:49:44]free response buf [17:49:44]execute_script done [17:49:44]execute_script returns [17:49:44]free content buf [17:49:44]Sock 10.Close socket [17:49:44]Sock 10.Thread stoped [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:35]accept exits with 7 [17:50:35]New connection [17:50:35]New thread 3067108708 created [17:50:35]Thread 3066965348 joined [17:50:35]Waiting for new connection... [17:50:35] Sock 7.Parse request [17:50:35]Sock 7.Check first char [17:50:35]Sock 7.First char is OK [17:50:35]request: POST /json_proto HTTP/1.0 [17:50:35]Method: POST [17:50:35]URL: /json_proto [17:50:35]Method is POST - this is cgi request [17:50:35]url: /json_proto [17:50:35]query_string will be loaded in cgi processing [17:50:35]execute_cgi json_proto POST (null) [17:50:35]execute_cgi path=json_proto method=POST [17:50:35]POST find Content-Length [17:50:35]Host: 172.17.33.3:8080 [17:50:35]Content-Length: 671 [17:50:35]Content-Type: application/json [17:50:35] [17:50:35]POST finish read [17:50:35]Found Content-Length = 671 [17:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:50:35]execute_script... [17:50: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)348082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:50:35]POST & json_proto [17:50:35]process_json_proto [17:50:35]json parsed OK: [17:50:35]protocol is kg_v1.0 [17:50:35]action value=close_receipt [17:50:35]process_action close_receipt [17:50:35]cmd_close_receipt [17:50:35]MH_GetDate [17:50:35]Write to MH i2c: F0 00 00 F1 10 F0 [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 09 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 09 00 F1 10 00 EC 68 1D 66 23 5B 8F 65 42 [17:50:35]GetLastDocTimeStamp 1713203382 [17:50:35]current date 1713203436 [17:50:35]FM_GetShiftState [17:50:35]SAM_PROTO_GetShiftState [17:50:35]wFMCommunicate request_size=4 [17:50:35]MH_SAM_APDU [17:50:35]CAPDU: 80 13 01 00 [17:50:35]Write to MH i2c: E2 08 00 F2 10 80 13 01 00 00 00 00 00 7F [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:35]Read from MH i2c: E2 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 F2 10 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 73 [17:50:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:50:35]wFMCommunicate OK [17:50:35]SAM_PROTO_GetShiftState done [17:50:35]FM_GetShiftState done [17:50:35]opened in 1713140468 [17:50:35]opened+sec_in_day 1713226868 [17:50:35]quantity*price = 70011 [17:50:35]sum+1 = 70012 [17:50:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 227 15.04.2024 17:50 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29633 ФПД: 107983064393734 1/tax-web-control/client/api/v1/ticket?date=20240415T175036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29633&fm=107983064393734&tin=02508201610067®Number=0000138879044617&sum=70000 [17:50:36]StoreToDocumentArchive [17:50:36]shift 117 fd 29633 [17:50:36]save to /storage/0117/doc_00029633 [17:50:36]save last doc name /storage/0117/doc_00029633 to /storage/kkm_last_doc_name [17:50:36]save OK [17:50:36]Clear old archive folders... [17:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:50:36]tlvbuf is 01A6AE90 [17:50:36]SAM_PROTO_ClearQueue [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 09 00 00 [17:50:36]Write to MH i2c: E2 08 00 FF 10 80 09 00 00 00 00 00 00 81 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 FF 10 00 90 00 83 [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]SAM_PROTO_ClearQueue done [17:50:36]KKMCreateOFDPacket [17:50:36]OFDProtocolAddRootSTLVToBuf [17:50:36]FM_MakeSignedData [17:50:36]FM_MakeSignedData [17:50:36]SAM_PROTO_SignData [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 01 02 [17:50:36]Write to MH i2c: E2 08 00 00 11 80 0D 01 02 00 00 00 00 8A [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=255 [17:50:36]MH_SAM_APDU [17:50: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 E3 00 00 00 F4 03 04 00 EC 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 73 00 00 35 04 06 00 [17:50:36]Write to MH i2c: E2 02 01 01 11 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 E3 00 00 00 F4 03 04 00 EC 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 73 00 00 35 04 06 00 00 00 6B [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 01 11 00 90 00 86 [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=11 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 02 02 06 62 35 C4 31 E8 06 [17:50:36]Write to MH i2c: E2 0E 00 02 11 80 0D 02 02 06 00 62 35 C4 31 E8 06 00 00 13 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 02 11 00 90 00 87 [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 03 02 [17:50:36]Write to MH i2c: E2 08 00 03 11 80 0D 03 02 00 00 00 00 8F [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 0B 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 0B 00 03 11 00 C8 E1 0D BC 1B 3A 93 ED 90 00 D7 [17:50:36]RAPDU: C8 E1 0D BC 1B 3A 93 ED 90 00 [17:50:36]wFMCommunicate OK [17:50:36]SAM_PROTO_SignData done [17:50:36]FM_MakeSignedData done [17:50:36]CreateOFDProtocolMessage [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 11 00 00 [17:50:36]Write to MH i2c: E2 08 00 04 11 80 11 00 00 00 00 00 00 8F [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 17 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 17 00 04 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [17:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:36]wFMCommunicate OK [17:50:36]CreateOFDProtocolMessage done [17:50:36]OFDSenderStorePacket 29633 [17:50:36]StoreOFDPacket docnum=29633 [17:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C1 17 08 01 07 B1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 E3 00 00 00 F4 03 04 00 EC 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 73 00 00 35 04 06 00 62 35 C4 31 E8 06 C8 E1 0D BC 1B 3A 93 ED [17:50:36]CheckFolder [17:50:36]dirname=/storage/ofd_packets [17:50:36]CheckFolder done [17:50:36]ProducePacketName [17:50:36]name=ofd_packets/00029633 [17:50:36]NVStorageSaveData ofd_packets/00029633 [17:50:36]File name is /storage/ofd_packets/00029633 [17:50:36]Write 302 bytes [17:50:36]NVStorageSaveData done [17:50:36]OFDSenderStorePacket done [17:50:36]KKMCreateOFDPacket done [17:50:36]NVStorageSaveData kkm_last_timestamp [17:50:36]File name is /storage/kkm_last_timestamp [17:50:36]Write 4 bytes [17:50:36]NVStorageSaveData done [17:50:36]ExternCall_PrintAddStr [17:50:36]wPrintStart [17:50:36]Write to MH i2c: 01 00 00 05 11 16 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 07 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 07 00 05 11 00 00 00 00 00 FF 0F 2B [17:50:36]RasterBufferAndPrint [17:50:36]line Счет N : (1)348082 [17:50:36]line ИНН: 02508201610067 [17:50:36]line Контрольно-Кассовый Чек [17:50:36]line ПРОДАЖА [17:50:36]line ТРК (МРК, ГНК) : 12 [17:50:36]line Товар: 2710124130 [17:50:36]line SUPER-92-К-5 [17:50:36]line 10.640 * 65.80 [17:50:36]line = 700.11 [17:50:36]line НДС 12% НСП 1% [17:50:36]line > о реализуемом товаре [17:50:36]line ОКРУГЛЕНИЕ: -0.11 [17:50:36]line ИТОГО: 700.00 [17:50:36]line Внесено: 700.00 [17:50:36]line СДАЧА: 0.00 [17:50:36]line НСП 1% : 6.20 [17:50:36]line НДС 12% : 74.35 [17:50:36]line Наличными: 700.00 [17:50:36]line Безнал.: 0.00 [17:50:36]line Место: АЗС № 108 "Партнер Нефть" [17:50:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:50:36]line СНО: Общий режим [17:50:36]line Чек 227 15.04.2024 17:50 [17:50:36]line Смена: 117 ФФД: 1.0 [17:50:36]line ЗНМ: 0300000027 [17:50:36]line РНМ: 0000138879044617 [17:50:36]line Версия ККМ: 001 [17:50:36]line ФМ: 0000000000963154 [17:50:36]line ФД: 29633 [17:50:36]line ФПД: 107983064393734 [17:50:36]line 1/tax-web-control/client/api/v1/ticket?date=20240415T175036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29633&fm=107983064393734&tin=02508201610067®Number=0000138879044617&sum=70000 [17:50:37]OFD Sender: Processing packet 29633 [packets to send 8, broken 7] [17:50:37]ProducePacketName [17:50:37]name=ofd_packets/00029633 [17:50:37]OFD Sender: To server: pG, [17:50:37]CommunicateWithHost lk.salyk.kg:30040 [17:50:37]ConnectInit lk.salyk.kg [17:50:37]written 0, free lines is 4095 [17:50:37]Connected sock=10 [17:50:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C1 17 08 01 07 B1 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 E3 00 00 00 F4 03 04 00 EC 68 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 73 00 00 35 04 06 00 62 35 C4 31 E8 06 C8 E1 0D BC 1B 3A 93 ED [17:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 01 02 47 00 FB 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 39 36 33 31 35 34 10 04 04 00 C1 73 00 00 F4 03 04 00 8C 13 1D 66 B6 04 01 00 00 2C DE 07 63 32 DD 15 35 [17:50:37]CommunicateWithHost err = 0 [17:50:37]CheckOFDResponse [17:50:37]1017 (14) - 77093643461234 [17:50:37]1041 (16) - 0000000000963154 [17:50:37]1040 (4) - 29633 [17:50:37]1012 (4) - 15.04.2024 11:46 [17:50:37]1206 (1) - 0 [17:50:37]OFD Sender: Remove packet 29633 [17:50:37]ProducePacketName [17:50:37]name=ofd_packets/00029633 [17:50:37]NVStorageDeleteData [17:50:37]Write to MH i2c: 01 00 00 2F 11 40 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 CA 0C 1D [17:50:37]RasterBufferAndPrint [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]written 0, free lines is 3278 [17:50:37]MH_Cut [17:50:37]Write to MH i2c: D1 01 00 36 11 01 19 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 01 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 01 00 36 11 00 18 [17:50:37]Write to MH i2c: 01 00 00 37 11 48 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]OFD Sender: No OFD packet to send [17:50:38]*** Cut start [17:50:38]*** Partial cut [17:50:38]*** CUTSNS_PIN = 1 [17:50:38]*** CUTSNS_PIN = 0 [17:50:38]*** Brake cut motor [17:50:38]Read from MH i2c: 01 [17:50:39]MH_I2C_Read... [17:50:39]*** Stop cut motor [17:50:39]*** Cut end [17:50:39]Read from MH i2c: 01 07 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 07 00 37 11 00 00 00 00 00 FF 0F 5D [17:50:39]process_action close_receipt done [17:50:39]requested_data is exist [17:50:39]produce_requested_data [17:50:39]requested_item fm.sn is exist - process it [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 11 00 00 [17:50:39]Write to MH i2c: E2 08 00 38 11 80 11 00 00 00 00 00 00 C3 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 17 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 17 00 38 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [17:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:39]wFMCommunicate OK [17:50:39]requested_item fd.num is exist - process it [17:50:39]SAM_PROTO_GetFieldsCounters [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 13 00 00 [17:50:39]Write to MH i2c: E2 08 00 39 11 80 13 00 00 00 00 00 00 C6 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 62 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 62 00 39 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 73 00 00 0E 04 04 00 75 00 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 56 [17:50:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 73 00 00 0E 04 04 00 75 00 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 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_GetFieldsCounters done [17:50:39]requested_item shift.num is exist - process it [17:50:39]requested_item shift.opened is exist - process it [17:50:39]req_shift_opened [17:50:39]FM_GetShiftState [17:50:39]SAM_PROTO_GetShiftState [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 13 01 00 [17:50:39]Write to MH i2c: E2 08 00 3A 11 80 13 01 00 00 00 00 00 C8 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0E 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0E 00 3A 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BC [17:50:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_GetShiftState done [17:50:39]FM_GetShiftState done [17:50:39]req_shift_opened done [17:50:39]requested_item shift.open_date is exist - process it [17:50:39]req_shift_open_date [17:50:39]req_shift_open_date done [17:50:39]produce_requested_data done [17:50:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29633,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:50:39]process_action_free close_receipt [17:50:39]json_value_free [17:50:39]json_value_free done [17:50:39]process_json_proto returns [17:50:39]Send response to host [17:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29633,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:50:39]free response buf [17:50:39]execute_script done [17:50:39]execute_script returns [17:50:39]free content buf [17:50:39]Sock 7.Close socket [17:50:39]Sock 7.Thread stoped [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:55]accept exits with 9 [17:54:55]New connection [17:54:55]New thread 3066965348 created [17:54:55]Thread 3067108708 joined [17:54:55]Waiting for new connection... [17:54:55] Sock 9.Parse request [17:54:55]Sock 9.Check first char [17:54:55]Sock 9.First char is OK [17:54:55]request: POST /json_proto HTTP/1.0 [17:54:55]Method: POST [17:54:55]URL: /json_proto [17:54:55]Method is POST - this is cgi request [17:54:55]url: /json_proto [17:54:55]query_string will be loaded in cgi processing [17:54:55]execute_cgi json_proto POST (null) [17:54:55]execute_cgi path=json_proto method=POST [17:54:55]POST find Content-Length [17:54:55]Host: 172.17.33.3:8080 [17:54:55]Content-Length: 642 [17:54:55]Content-Type: application/json [17:54:55] [17:54:55]POST finish read [17:54:55]Found Content-Length = 642 [17:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]execute_script... [17: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)348083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.000, "sum" : 1296.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]POST & json_proto [17:54:55]process_json_proto [17:54:55]json parsed OK: [17:54:55]protocol is kg_v1.0 [17:54:55]action value=close_receipt [17:54:55]process_action close_receipt [17:54:55]cmd_close_receipt [17:54:55]MH_GetDate [17:54:55]Write to MH i2c: F0 00 00 3B 11 3B [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 3B 11 00 F0 69 1D 66 23 5B 8F 65 92 [17:54:55]GetLastDocTimeStamp 1713203436 [17:54:55]current date 1713203696 [17:54:55]FM_GetShiftState [17:54:55]SAM_PROTO_GetShiftState [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 13 01 00 [17:54:55]Write to MH i2c: E2 08 00 3C 11 80 13 01 00 00 00 00 00 CA [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0E 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0E 00 3C 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [17:54:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_GetShiftState done [17:54:55]FM_GetShiftState done [17:54:55]opened in 1713140468 [17:54:55]opened+sec_in_day 1713226868 [17:54:55]quantity*price = 129600 [17:54:55]sum+1 = 129601 [17:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1296.00 НСП 1% : 11.47 НДС 12% : 137.63 Наличными: 1296.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 228 15.04.2024 17:54 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29634 ФПД: 254204957884916 1/tax-web-control/client/api/v1/ticket?date=20240415T175456&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29634&fm=254204957884916&tin=02508201610067®Number=0000138879044617&sum=129600 [17:54:56]StoreToDocumentArchive [17:54:56]shift 117 fd 29634 [17:54:56]save to /storage/0117/doc_00029634 [17:54:56]save last doc name /storage/0117/doc_00029634 to /storage/kkm_last_doc_name [17:54:56]save OK [17:54:56]Clear old archive folders... [17:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:56]tlvbuf is 01A685B0 [17:54:56]SAM_PROTO_ClearQueue [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 09 00 00 [17:54:56]Write to MH i2c: E2 08 00 49 11 80 09 00 00 00 00 00 00 CC [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 09 00 00... 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 49 11 00 90 00 CE [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_ClearQueue done [17:54:56]KKMCreateOFDPacket [17:54:56]OFDProtocolAddRootSTLVToBuf [17:54:56]FM_MakeSignedData [17:54:56]FM_MakeSignedData [17:54:56]SAM_PROTO_SignData [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 01 02 [17:54:56]Write to MH i2c: E2 08 00 4A 11 80 0D 01 02 00 00 00 00 D4 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 01 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 4A 11 00 90 00 CF [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=255 [17:54:56]MH_SAM_APDU [17: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 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 F0 69 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 73 00 00 35 04 06 00 E7 [17:54:56]Write to MH i2c: E2 02 01 4B 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 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 F0 69 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 73 00 00 35 04 06 00 E7 00 00 4B [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 4B 11 00 90 00 D0 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=10 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 02 02 05 32 B4 37 01 F4 [17:54:56]Write to MH i2c: E2 0D 00 4C 11 80 0D 02 02 05 00 32 B4 37 01 F4 00 00 F3 [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 4C 11 00 90 00 D1 [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 4D 11 80 0D 03 02 00 00 00 00 D9 [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 4D 11 00 7F 27 3D 0D 2F 9C C7 DE 90 00 3A [17:54:56]RAPDU: 7F 27 3D 0D 2F 9C C7 DE 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 4E 11 80 11 00 00 00 00 00 00 D9 [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 4E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [17:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:56]wFMCommunicate OK [17:54:56]CreateOFDProtocolMessage done [17:54:56]OFDSenderStorePacket 29634 [17:54:56]StoreOFDPacket docnum=29634 [17:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 31 07 01 AE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 F0 69 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 73 00 00 35 04 06 00 E7 32 B4 37 01 F4 7F 27 3D 0D 2F 9C C7 DE [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/00029634 [17:54:56]NVStorageSaveData ofd_packets/00029634 [17:54:56]File name is /storage/ofd_packets/00029634 [17:54:56]Write 301 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]OFD Sender: Processing packet 29634 [packets to send 8, broken 7] [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00029634 [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]ExternCall_PrintAddStr [17:54:56]wPrintStart [17:54:56]Write to MH i2c: 01 00 00 4F 11 60 [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 4F 11 00 00 00 00 00 FF 0F 75 [17:54:56]RasterBufferAndPrint [17:54:56]line Счет N : (1)348083 [17:54:56]line ИНН: 02508201610067 [17:54:56]line Контрольно-Кассовый Чек [17:54:56]line ПРОДАЖА [17:54:56]line ТРК (МРК, ГНК) : 32 [17:54:56]line Товар: 2710124130 [17:54:56]line Аи-92-К-5 [17:54:56]line 20.000 * 64.80 [17:54:56]line = 1296.00 [17:54:56]line НДС 12% НСП 1% [17:54:56]line > о реализуемом товаре [17:54:56]line ИТОГО: 1296.00 [17:54:56]line НСП 1% : 11.47 [17:54:56]line НДС 12% : 137.63 [17:54:56]line Наличными: 1296.00 [17:54:56]line Безнал.: 0.00 [17:54:56]line Место: АЗС № 108 "Партнер Нефть" [17:54:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:54:56]line СНО: Общий режим [17:54:56]line Чек 228 15.04.2024 17:54 [17:54:56]line Смена: 117 ФФД: 1.0 [17:54:56]line ЗНМ: 0300000027 [17:54:56]line РНМ: 0000138879044617 [17:54:56]line Версия ККМ: 001 [17:54:56]line ФМ: 0000000000963154 [17:54:56]line ФД: 29634 [17:54:57]line ФПД: 254204957884916 [17:54:57]line 1/tax-web-control/client/api/v1/ticket?date=20240415T175456&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29634&fm=254204957884916&tin=02508201610067®Number=0000138879044617&sum=129600 [17:54:57]Connected sock=11 [17:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 31 07 01 AE 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 40 FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 35 00 00 00 00 07 04 06 00 40 FA 01 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 F0 69 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 73 00 00 35 04 06 00 E7 32 B4 37 01 F4 7F 27 3D 0D 2F 9C C7 DE [17:54:57]written 0, free lines is 4095 [17:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DB 50 47 00 FB 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 39 36 33 31 35 34 10 04 04 00 C2 73 00 00 F4 03 04 00 90 14 1D 66 B6 04 01 00 00 AA 7B 3B 16 CD FE 65 95 [17:54:57]CommunicateWithHost err = 0 [17:54:57]CheckOFDResponse [17:54:57]1017 (14) - 77093643461234 [17:54:57]1041 (16) - 0000000000963154 [17:54:57]1040 (4) - 29634 [17:54:57]1012 (4) - 15.04.2024 11:50 [17:54:57]1206 (1) - 0 [17:54:57]OFD Sender: Remove packet 29634 [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00029634 [17:54:57]NVStorageDeleteData [17:54:57]Write to MH i2c: 01 00 00 76 11 87 [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 76 11 00 00 00 00 00 03 0D 9E [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 3335 [17:54:57]MH_Cut [17:54:57]Write to MH i2c: D1 01 00 7D 11 01 60 [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 7D 11 00 5F [17:54:57]Write to MH i2c: 01 00 00 7E 11 8F [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]OFD Sender: No OFD packet to send [17:54:58]*** Cut start [17:54:58]*** Partial cut [17:54:58]*** CUTSNS_PIN = 1 [17:54:58]*** CUTSNS_PIN = 0 [17:54:58]*** Brake cut motor [17:54:58]Read from MH i2c: 01 [17:54:58]MH_I2C_Read... [17:54:58]*** Stop cut motor [17:54:58]*** Cut end [17:54:58]Read from MH i2c: 01 07 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 FF 0F A4 [17:54:58]process_action close_receipt done [17:54:58]requested_data is exist [17:54:58]produce_requested_data [17:54:58]requested_item fm.sn is exist - process it [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 11 00 00 [17:54:58]Write to MH i2c: E2 08 00 7F 11 80 11 00 00 00 00 00 00 0A [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 17 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 17 00 7F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [17:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:58]wFMCommunicate OK [17:54:58]requested_item fd.num is exist - process it [17:54:58]SAM_PROTO_GetFieldsCounters [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 13 00 00 [17:54:58]Write to MH i2c: E2 08 00 80 11 80 13 00 00 00 00 00 00 0D [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 80 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 73 00 00 0E 04 04 00 75 00 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 A1 [17:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 73 00 00 0E 04 04 00 75 00 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 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetFieldsCounters done [17:54:59]requested_item shift.num is exist - process it [17:54:59]requested_item shift.opened is exist - process it [17:54:59]req_shift_opened [17:54:59]FM_GetShiftState [17:54:59]SAM_PROTO_GetShiftState [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 01 00 [17:54:59]Write to MH i2c: E2 08 00 81 11 80 13 01 00 00 00 00 00 0F [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 81 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 03 [17:54:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetShiftState done [17:54:59]FM_GetShiftState done [17:54:59]req_shift_opened done [17:54:59]requested_item shift.open_date is exist - process it [17:54:59]req_shift_open_date [17:54:59]req_shift_open_date done [17:54:59]produce_requested_data done [17:54:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29634,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:54:59]process_action_free close_receipt [17:54:59]json_value_free [17:54:59]json_value_free done [17:54:59]process_json_proto returns [17:54:59]Send response to host [17:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29634,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:54:59]free response buf [17:54:59]execute_script done [17:54:59]execute_script returns [17:54:59]free content buf [17:54:59]Sock 9.Close socket [17:54:59]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:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:45]accept exits with 7 [17:57:45]New connection [17:57:45]New thread 3067108708 created [17:57:45]Thread 3066965348 joined [17:57:45]Waiting for new connection... [17:57:45] Sock 7.Parse request [17:57:45]Sock 7.Check first char [17:57:45]Sock 7.First char is OK [17:57:45]request: POST /json_proto HTTP/1.0 [17:57:45]Method: POST [17:57:45]URL: /json_proto [17:57:45]Method is POST - this is cgi request [17:57:45]url: /json_proto [17:57:45]query_string will be loaded in cgi processing [17:57:45]execute_cgi json_proto POST (null) [17:57:45]execute_cgi path=json_proto method=POST [17:57:45]POST find Content-Length [17:57:45]Host: 172.17.33.3:8080 [17:57:45]Content-Length: 808 [17:57:45]Content-Type: application/json [17:57:45] [17:57:45]POST finish read [17:57:45]Found Content-Length = 808 [17:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:45]execute_script... [17:57: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)348085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:45]POST & json_proto [17:57:45]process_json_proto [17:57:45]json parsed OK: [17:57:45]protocol is kg_v1.0 [17:57:45]action value=close_receipt [17:57:45]process_action close_receipt [17:57:45]cmd_close_receipt [17:57:45]MH_GetDate [17:57:45]Write to MH i2c: F0 00 00 82 11 82 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: F0 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: F0 09 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: F0 09 00 82 11 00 9A 6A 1D 66 23 5B 8F 65 84 [17:57:45]GetLastDocTimeStamp 1713203696 [17:57:45]current date 1713203866 [17:57:45]FM_GetShiftState [17:57:45]SAM_PROTO_GetShiftState [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 13 01 00 [17:57:45]Write to MH i2c: E2 08 00 83 11 80 13 01 00 00 00 00 00 11 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 0E 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 0E 00 83 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 05 [17:57:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:57:45]wFMCommunicate OK [17:57:45]SAM_PROTO_GetShiftState done [17:57:45]FM_GetShiftState done [17:57:45]opened in 1713140468 [17:57:45]opened+sec_in_day 1713226868 [17:57:45]quantity*price = 200037 [17:57:45]sum+1 = 200039 [17:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 229 15.04.2024 17:57 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29635 ФПД: 187446563190083 1/tax-web-control/client/api/v1/ticket?date=20240415T175747&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29635&fm=187446563190083&tin=02508201610067®Number=0000138879044617&sum=200038 [17:57:46]StoreToDocumentArchive [17:57:46]shift 117 fd 29635 [17:57:46]save to /storage/0117/doc_00029635 [17:57:46]save last doc name /storage/0117/doc_00029635 to /storage/kkm_last_doc_name [17:57:46]save OK [17:57:46]Clear old archive folders... [17:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:46]tlvbuf is 01A5BE00 [17:57:46]SAM_PROTO_ClearQueue [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 09 00 00 [17:57:46]Write to MH i2c: E2 08 00 90 11 80 09 00 00 00 00 00 00 13 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [17:57:46]RAPDU: 90 00 [17:57:46]wFMCommunicate OK [17:57:46]SAM_PROTO_ClearQueue done [17:57:46]KKMCreateOFDPacket [17:57:46]OFDProtocolAddRootSTLVToBuf [17:57:46]FM_MakeSignedData [17:57:46]FM_MakeSignedData [17:57:46]SAM_PROTO_SignData [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 0D 01 02 [17:57:46]Write to MH i2c: E2 08 00 91 11 80 0D 01 02 00 00 00 00 1B [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 03 00 91 11 00 90 00 16 [17:57:46]RAPDU: 90 00 [17:57:46]wFMCommunicate OK [17:57:46]wFMCommunicate request_size=255 [17:57:46]MH_SAM_APDU [17:57: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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9B 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 73 00 00 35 04 06 00 AA [17:57:46]Write to MH i2c: E2 02 01 92 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9B 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 73 00 00 35 04 06 00 AA 00 00 1A [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 92 11 00 90 00 17 [17:57:47]RAPDU: 90 00 [17:57:47]wFMCommunicate OK [17:57:47]wFMCommunicate request_size=10 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 0D 02 02 05 7B 4D D0 35 43 [17:57:47]Write to MH i2c: E2 0D 00 93 11 80 0D 02 02 05 00 7B 4D D0 35 43 00 00 38 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [17:57:47]RAPDU: 90 00 [17:57:47]wFMCommunicate OK [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 0D 03 02 [17:57:47]Write to MH i2c: E2 08 00 94 11 80 0D 03 02 00 00 00 00 20 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0B 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 0B 00 94 11 00 5C 83 09 D8 6A AE 96 1A 90 00 A9 [17:57:47]RAPDU: 5C 83 09 D8 6A AE 96 1A 90 00 [17:57:47]wFMCommunicate OK [17:57:47]SAM_PROTO_SignData done [17:57:47]FM_MakeSignedData done [17:57:47]CreateOFDProtocolMessage [17:57:47]wFMCommunicate request_size=4 [17:57:47]MH_SAM_APDU [17:57:47]CAPDU: 80 11 00 00 [17:57:47]Write to MH i2c: E2 08 00 95 11 80 11 00 00 00 00 00 00 20 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:47]Read from MH i2c: E2 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 17 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: E2 17 00 95 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [17:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:57:47]wFMCommunicate OK [17:57:47]CreateOFDProtocolMessage done [17:57:47]OFDSenderStorePacket 29635 [17:57:47]StoreOFDPacket docnum=29635 [17:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 B6 07 01 33 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9B 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 73 00 00 35 04 06 00 AA 7B 4D D0 35 43 5C 83 09 D8 6A AE 96 1A [17:57:47]CheckFolder [17:57:47]dirname=/storage/ofd_packets [17:57:47]CheckFolder done [17:57:47]ProducePacketName [17:57:47]name=ofd_packets/00029635 [17:57:47]NVStorageSaveData ofd_packets/00029635 [17:57:47]File name is /storage/ofd_packets/00029635 [17:57:47]Write 301 bytes [17:57:47]NVStorageSaveData done [17:57:47]OFDSenderStorePacket done [17:57:47]KKMCreateOFDPacket done [17:57:47]NVStorageSaveData kkm_last_timestamp [17:57:47]File name is /storage/kkm_last_timestamp [17:57:47]Write 4 bytes [17:57:47]NVStorageSaveData done [17:57:47]ExternCall_PrintAddStr [17:57:47]wPrintStart [17:57:47]Write to MH i2c: 01 00 00 96 11 A7 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [17:57:47]RasterBufferAndPrint [17:57:47]line Счет N : (1)348085 [17:57:47]line ИНН: 02508201610067 [17:57:47]line Контрольно-Кассовый Чек [17:57:47]line ПРОДАЖА [17:57:47]line ТРК (МРК, ГНК) : 23 [17:57:47]line Товар: 2710124130 [17:57:47]line Аи-92-К-5 [17:57:47]line 30.870 * 64.80 [17:57:47]line = 2000.38 [17:57:47]line НДС 12% НСП 1% [17:57:47]line > о реализуемом товаре [17:57:47]line ИТОГО: 2000.38 [17:57:47]line НСП 1% : 17.70 [17:57:47]line НДС 12% : 212.43 [17:57:47]line Наличными: 0.00 [17:57:47]line Безнал.: 2000.38 [17:57:47]line Место: АЗС № 108 "Партнер Нефть" [17:57:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:57:47]line СНО: Общий режим [17:57:47]line Чек 229 15.04.2024 17:57 [17:57:47]line Смена: 117 ФФД: 1.0 [17:57:47]line ЗНМ: 0300000027 [17:57:47]line РНМ: 0000138879044617 [17:57:47]line Версия ККМ: 001 [17:57:47]line Платежная система: О! деньги [17:57:47]line ФМ: 0000000000963154 [17:57:47]line ФД: 29635 [17:57:47]line ФПД: 187446563190083 [17:57:47]line 1/tax-web-control/client/api/v1/ticket?date=20240415T175747&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29635&fm=187446563190083&tin=02508201610067®Number=0000138879044617&sum=200038 [17:57:47]written 0, free lines is 4095 [17:57:47]OFD Sender: Processing packet 29635 [packets to send 8, broken 7] [17:57:47]ProducePacketName [17:57:47]name=ofd_packets/00029635 [17:57:47]OFD Sender: To server: pG, [17:57:47]CommunicateWithHost lk.salyk.kg:30040 [17:57:47]ConnectInit lk.salyk.kg [17:57:47]Connected sock=11 [17:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 70 B6 07 01 33 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9B 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 73 00 00 35 04 06 00 AA 7B 4D D0 35 43 5C 83 09 D8 6A AE 96 1A [17:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 E3 47 00 EB 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 39 36 33 31 35 34 10 04 04 00 C3 73 00 00 F4 03 04 00 3B 15 1D 66 B6 04 01 00 00 2F A5 00 FB 5B 84 3E C7 [17:57:47]CommunicateWithHost err = 0 [17:57:47]CheckOFDResponse [17:57:47]1017 (14) - 77093643461234 [17:57:47]1041 (16) - 0000000000963154 [17:57:47]1040 (4) - 29635 [17:57:47]1012 (4) - 15.04.2024 11:53 [17:57:47]1206 (1) - 0 [17:57:47]OFD Sender: Remove packet 29635 [17:57:47]ProducePacketName [17:57:47]name=ofd_packets/00029635 [17:57:47]NVStorageDeleteData [17:57:47]Write to MH i2c: 01 00 00 BF 11 D0 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 E7 0C CA [17:57:47]RasterBufferAndPrint [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]line [17:57:47]written 0, free lines is 3309 [17:57:47]MH_Cut [17:57:47]Write to MH i2c: D1 01 00 C6 11 01 A9 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: D1 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: D1 01 00 [17:57:47]MH_I2C_Read... [17:57:47]Read from MH i2c: D1 01 00 C6 11 00 A8 [17:57:47]Write to MH i2c: 01 00 00 C7 11 D8 [17:57:47]Write i2c OK [17:57:47]MH_I2C_Read... [17:57:48]OFD Sender: No OFD packet to send [17:57:48]*** Cut start [17:57:48]*** Partial cut [17:57:48]*** CUTSNS_PIN = 1 [17:57:48]*** CUTSNS_PIN = 0 [17:57:48]*** Brake cut motor [17:57:49]Read from MH i2c: 01 [17:57:49]MH_I2C_Read... [17:57:49]*** Stop cut motor [17:57:49]*** Cut end [17:57:49]Read from MH i2c: 01 07 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [17:57:49]process_action close_receipt done [17:57:49]requested_data is exist [17:57:49]produce_requested_data [17:57:49]requested_item fm.sn is exist - process it [17:57:49]wFMCommunicate request_size=4 [17:57:49]MH_SAM_APDU [17:57:49]CAPDU: 80 11 00 00 [17:57:49]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:49]Read from MH i2c: E2 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 17 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [17:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:57:49]wFMCommunicate OK [17:57:49]requested_item fd.num is exist - process it [17:57:49]SAM_PROTO_GetFieldsCounters [17:57:49]wFMCommunicate request_size=4 [17:57:49]MH_SAM_APDU [17:57:49]CAPDU: 80 13 00 00 [17:57:49]Write to MH i2c: E2 08 00 C9 11 80 13 00 00 00 00 00 00 56 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:49]Read from MH i2c: E2 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 62 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 62 00 C9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 73 00 00 0E 04 04 00 75 00 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 EE [17:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 73 00 00 0E 04 04 00 75 00 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 [17:57:49]wFMCommunicate OK [17:57:49]SAM_PROTO_GetFieldsCounters done [17:57:49]requested_item shift.num is exist - process it [17:57:49]requested_item shift.opened is exist - process it [17:57:49]req_shift_opened [17:57:49]FM_GetShiftState [17:57:49]SAM_PROTO_GetShiftState [17:57:49]wFMCommunicate request_size=4 [17:57:49]MH_SAM_APDU [17:57:49]CAPDU: 80 13 01 00 [17:57:49]Write to MH i2c: E2 08 00 CA 11 80 13 01 00 00 00 00 00 58 [17:57:49]Write i2c OK [17:57:49]MH_I2C_Read... [17:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:49]Read from MH i2c: E2 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 0E 00 [17:57:49]MH_I2C_Read... [17:57:49]Read from MH i2c: E2 0E 00 CA 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4C [17:57:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:57:49]wFMCommunicate OK [17:57:49]SAM_PROTO_GetShiftState done [17:57:49]FM_GetShiftState done [17:57:49]req_shift_opened done [17:57:49]requested_item shift.open_date is exist - process it [17:57:49]req_shift_open_date [17:57:49]req_shift_open_date done [17:57:49]produce_requested_data done [17:57:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29635,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:57:49]process_action_free close_receipt [17:57:49]json_value_free [17:57:49]json_value_free done [17:57:49]process_json_proto returns [17:57:49]Send response to host [17:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29635,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:57:49]free response buf [17:57:49]execute_script done [17:57:49]execute_script returns [17:57:49]free content buf [17:57:49]Sock 7.Close socket [17:57:49]Sock 7.Thread stoped [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:18]accept exits with 9 [17:59:18]New connection [17:59:18]New thread 3066965348 created [17:59:18]Thread 3067108708 joined [17:59:18]Waiting for new connection... [17:59:18] Sock 9.Parse request [17:59:18]Sock 9.Check first char [17:59:18]Sock 9.First char is OK [17:59:18]request: POST /json_proto HTTP/1.0 [17:59:18]Method: POST [17:59:18]URL: /json_proto [17:59:18]Method is POST - this is cgi request [17:59:18]url: /json_proto [17:59:18]query_string will be loaded in cgi processing [17:59:18]execute_cgi json_proto POST (null) [17:59:18]execute_cgi path=json_proto method=POST [17:59:18]POST find Content-Length [17:59:18]Host: 172.17.33.3:8080 [17:59:18]Content-Length: 840 [17:59:18]Content-Type: application/json [17:59:18] [17:59:18]POST finish read [17:59:18]Found Content-Length = 840 [17:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.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" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:18]execute_script... [17:59: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)348084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.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" : 6000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:18]POST & json_proto [17:59:18]process_json_proto [17:59:18]json parsed OK: [17:59:18]protocol is kg_v1.0 [17:59:18]action value=close_receipt [17:59:18]process_action close_receipt [17:59:18]cmd_close_receipt [17:59:18]MH_GetDate [17:59:18]Write to MH i2c: F0 00 00 CB 11 CB [17:59:18]Write i2c OK [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: F0 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: F0 09 00 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: F0 09 00 CB 11 00 F7 6A 1D 66 23 5B 8F 65 2A [17:59:18]GetLastDocTimeStamp 1713203867 [17:59:18]current date 1713203959 [17:59:18]FM_GetShiftState [17:59:18]SAM_PROTO_GetShiftState [17:59:18]wFMCommunicate request_size=4 [17:59:18]MH_SAM_APDU [17:59:18]CAPDU: 80 13 01 00 [17:59:18]Write to MH i2c: E2 08 00 CC 11 80 13 01 00 00 00 00 00 5A [17:59:18]Write i2c OK [17:59:18]MH_I2C_Read... [17:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:18]Read from MH i2c: E2 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 0E 00 [17:59:18]MH_I2C_Read... [17:59:18]Read from MH i2c: E2 0E 00 CC 11 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4E [17:59:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:59:18]wFMCommunicate OK [17:59:18]SAM_PROTO_GetShiftState done [17:59:18]FM_GetShiftState done [17:59:18]opened in 1713140468 [17:59:18]opened+sec_in_day 1713226868 [17:59:18]quantity*price = 600039 [17:59:18]sum+1 = 600041 [17:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.40 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 230 15.04.2024 17:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29636 ФПД: 72589138663016 1/tax-web-control/client/api/v1/ticket?date=20240415T175919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29636&fm=72589138663016&tin=02508201610067®Number=0000138879044617&sum=600040 [17:59:19]StoreToDocumentArchive [17:59:19]shift 117 fd 29636 [17:59:19]save to /storage/0117/doc_00029636 [17:59:19]save last doc name /storage/0117/doc_00029636 to /storage/kkm_last_doc_name [17:59:19]save OK [17:59:19]Clear old archive folders... [17:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:19]tlvbuf is 01A5BDB0 [17:59:19]SAM_PROTO_ClearQueue [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 09 00 00 [17:59:19]Write to MH i2c: E2 08 00 D9 11 80 09 00 00 00 00 00 00 5C [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]SAM_PROTO_ClearQueue done [17:59:19]KKMCreateOFDPacket [17:59:19]OFDProtocolAddRootSTLVToBuf [17:59:19]FM_MakeSignedData [17:59:19]FM_MakeSignedData [17:59:19]SAM_PROTO_SignData [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 01 02 [17:59:19]Write to MH i2c: E2 08 00 DA 11 80 0D 01 02 00 00 00 00 64 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]wFMCommunicate request_size=255 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 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 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F7 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 73 00 00 35 04 06 00 42 04 F9 D3 [17:59:19]Write to MH i2c: E2 02 01 DB 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 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 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F7 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 73 00 00 35 04 06 00 42 04 F9 D3 00 00 BF [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]wFMCommunicate request_size=7 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 02 02 02 16 68 [17:59:19]Write to MH i2c: E2 0A 00 DC 11 80 0D 02 02 02 00 16 68 00 00 E9 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:19]Read from MH i2c: E2 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 [17:59:19]MH_I2C_Read... [17:59:19]Read from MH i2c: E2 03 00 DC 11 00 90 00 61 [17:59:19]RAPDU: 90 00 [17:59:19]wFMCommunicate OK [17:59:19]wFMCommunicate request_size=4 [17:59:19]MH_SAM_APDU [17:59:19]CAPDU: 80 0D 03 02 [17:59:19]Write to MH i2c: E2 08 00 DD 11 80 0D 03 02 00 00 00 00 69 [17:59:19]Write i2c OK [17:59:19]MH_I2C_Read... [17:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:20]Read from MH i2c: E2 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 0B 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 0B 00 DD 11 00 17 92 28 9C C3 6C 75 F3 90 00 6E [17:59:20]RAPDU: 17 92 28 9C C3 6C 75 F3 90 00 [17:59:20]wFMCommunicate OK [17:59:20]SAM_PROTO_SignData done [17:59:20]FM_MakeSignedData done [17:59:20]CreateOFDProtocolMessage [17:59:20]wFMCommunicate request_size=4 [17:59:20]MH_SAM_APDU [17:59:20]CAPDU: 80 11 00 00 [17:59:20]Write to MH i2c: E2 08 00 DE 11 80 11 00 00 00 00 00 00 69 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:20]Read from MH i2c: E2 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 17 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 17 00 DE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [17:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:59:20]wFMCommunicate OK [17:59:20]CreateOFDProtocolMessage done [17:59:20]OFDSenderStorePacket 29636 [17:59:20]StoreOFDPacket docnum=29636 [17:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 71 22 04 01 49 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 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 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F7 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 73 00 00 35 04 06 00 42 04 F9 D3 16 68 17 92 28 9C C3 6C 75 F3 [17:59:20]CheckFolder [17:59:20]dirname=/storage/ofd_packets [17:59:20]CheckFolder done [17:59:20]ProducePacketName [17:59:20]name=ofd_packets/00029636 [17:59:20]NVStorageSaveData ofd_packets/00029636 [17:59:20]File name is /storage/ofd_packets/00029636 [17:59:20]Write 298 bytes [17:59:20]NVStorageSaveData done [17:59:20]OFDSenderStorePacket done [17:59:20]KKMCreateOFDPacket done [17:59:20]NVStorageSaveData kkm_last_timestamp [17:59:20]File name is /storage/kkm_last_timestamp [17:59:20]Write 4 bytes [17:59:20]NVStorageSaveData done [17:59:20]ExternCall_PrintAddStr [17:59:20]wPrintStart [17:59:20]Write to MH i2c: 01 00 00 DF 11 F0 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [17:59:20]RasterBufferAndPrint [17:59:20]line Счет N : (1)348084 [17:59:20]line ИНН: 02508201610067 [17:59:20]line Контрольно-Кассовый Чек [17:59:20]line ПРОДАЖА [17:59:20]line ТРК (МРК, ГНК) : 61 [17:59:20]line Товар: 2710194210 [17:59:20]line ДТ-К-5 [17:59:20]line 82.310 * 72.90 [17:59:20]line = 6000.40 [17:59:20]line НДС 12% НСП 1% [17:59:20]line > о реализуемом товаре [17:59:20]line ИТОГО: 6000.40 [17:59:20]line НСП 1% : 53.10 [17:59:20]line НДС 12% : 637.21 [17:59:20]line Наличными: 0.00 [17:59:20]line Безнал.: 6000.40 [17:59:20]line Место: АЗС № 108 "Партнер Нефть" [17:59:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:59:20]line СНО: Общий режим [17:59:20]line Чек 230 15.04.2024 17:59 [17:59:20]line Смена: 117 ФФД: 1.0 [17:59:20]line ЗНМ: 0300000027 [17:59:20]line РНМ: 0000138879044617 [17:59:20]line Версия ККМ: 001 [17:59:20]line Платежная система: АКБ Кыргызстан [17:59:20]line ФМ: 0000000000963154 [17:59:20]line ФД: 29636 [17:59:20]line ФПД: 72589138663016 [17:59:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T175919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29636&fm=72589138663016&tin=02508201610067®Number=0000138879044617&sum=600040 [17:59:20]OFD Sender: Processing packet 29636 [packets to send 8, broken 7] [17:59:20]ProducePacketName [17:59:20]name=ofd_packets/00029636 [17:59:20]OFD Sender: To server: pG, [17:59:20]CommunicateWithHost lk.salyk.kg:30040 [17:59:20]ConnectInit lk.salyk.kg [17:59:20]written 0, free lines is 4095 [17:59:20]Connected sock=10 [17:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 71 22 04 01 49 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 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 E8 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F7 6A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 73 00 00 35 04 06 00 42 04 F9 D3 16 68 17 92 28 9C C3 6C 75 F3 [17:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A1 38 47 00 A2 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 39 36 33 31 35 34 10 04 04 00 C4 73 00 00 F4 03 04 00 98 15 1D 66 B6 04 01 00 00 04 33 62 3E 17 91 13 DE [17:59:20]CommunicateWithHost err = 0 [17:59:20]CheckOFDResponse [17:59:20]1017 (14) - 77093643461234 [17:59:20]1041 (16) - 0000000000963154 [17:59:20]1040 (4) - 29636 [17:59:20]1012 (4) - 15.04.2024 11:55 [17:59:20]1206 (1) - 0 [17:59:20]OFD Sender: Remove packet 29636 [17:59:20]ProducePacketName [17:59:20]name=ofd_packets/00029636 [17:59:20]NVStorageDeleteData [17:59:20]Write to MH i2c: 01 00 00 08 12 1A [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: 01 07 00 08 12 00 00 00 00 00 E9 0C 16 [17:59:20]RasterBufferAndPrint [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]line [17:59:20]written 0, free lines is 3312 [17:59:20]MH_Cut [17:59:20]Write to MH i2c: D1 01 00 0F 12 01 F3 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 01 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: D1 01 00 0F 12 00 F2 [17:59:20]Write to MH i2c: 01 00 00 10 12 22 [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:21]OFD Sender: No OFD packet to send [17:59:21]*** Cut start [17:59:21]*** Partial cut [17:59:21]*** CUTSNS_PIN = 1 [17:59:21]*** CUTSNS_PIN = 0 [17:59:21]*** Brake cut motor [17:59:22]Read from MH i2c: 01 [17:59:22]MH_I2C_Read... [17:59:22]*** Stop cut motor [17:59:22]*** Cut end [17:59:22]Read from MH i2c: 01 07 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 FF 0F 37 [17:59:22]process_action close_receipt done [17:59:22]requested_data is exist [17:59:22]produce_requested_data [17:59:22]requested_item fm.sn is exist - process it [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 11 00 00 [17:59:22]Write to MH i2c: E2 08 00 11 12 80 11 00 00 00 00 00 00 9D [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 17 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 17 00 11 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [17:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:59:22]wFMCommunicate OK [17:59:22]requested_item fd.num is exist - process it [17:59:22]SAM_PROTO_GetFieldsCounters [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 13 00 00 [17:59:22]Write to MH i2c: E2 08 00 12 12 80 13 00 00 00 00 00 00 A0 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 62 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 62 00 12 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 73 00 00 0E 04 04 00 75 00 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 3C [17:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 73 00 00 0E 04 04 00 75 00 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 [17:59:22]wFMCommunicate OK [17:59:22]SAM_PROTO_GetFieldsCounters done [17:59:22]requested_item shift.num is exist - process it [17:59:22]requested_item shift.opened is exist - process it [17:59:22]req_shift_opened [17:59:22]FM_GetShiftState [17:59:22]SAM_PROTO_GetShiftState [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 13 01 00 [17:59:22]Write to MH i2c: E2 08 00 13 12 80 13 01 00 00 00 00 00 A2 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 0E 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 0E 00 13 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 96 [17:59:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [17:59:22]wFMCommunicate OK [17:59:22]SAM_PROTO_GetShiftState done [17:59:22]FM_GetShiftState done [17:59:22]req_shift_opened done [17:59:22]requested_item shift.open_date is exist - process it [17:59:22]req_shift_open_date [17:59:22]req_shift_open_date done [17:59:22]produce_requested_data done [17:59:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29636,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [17:59:22]process_action_free close_receipt [17:59:22]json_value_free [17:59:22]json_value_free done [17:59:22]process_json_proto returns [17:59:22]Send response to host [17:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29636,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [17:59:22]free response buf [17:59:22]execute_script done [17:59:22]execute_script returns [17:59:22]free content buf [17:59:22]Sock 9.Close socket [17:59:22]Sock 9.Thread stoped [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:48]accept exits with 7 [18:01:48]New connection [18:01:48]New thread 3067108708 created [18:01:48]Thread 3066965348 joined [18:01:48]Waiting for new connection... [18:01:48] Sock 7.Parse request [18:01:48]Sock 7.Check first char [18:01:48]Sock 7.First char is OK [18:01:48]request: POST /json_proto HTTP/1.0 [18:01:48]Method: POST [18:01:48]URL: /json_proto [18:01:48]Method is POST - this is cgi request [18:01:48]url: /json_proto [18:01:48]query_string will be loaded in cgi processing [18:01:48]execute_cgi json_proto POST (null) [18:01:48]execute_cgi path=json_proto method=POST [18:01:48]POST find Content-Length [18:01:48]Host: 172.17.33.3:8080 [18:01:48]Content-Length: 840 [18:01:48]Content-Type: application/json [18:01:48] [18:01:48]POST finish read [18:01:48]Found Content-Length = 840 [18:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:48]execute_script... [18:01: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)348087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:48]POST & json_proto [18:01:48]process_json_proto [18:01:48]json parsed OK: [18:01:48]protocol is kg_v1.0 [18:01:48]action value=close_receipt [18:01:48]process_action close_receipt [18:01:48]cmd_close_receipt [18:01:48]MH_GetDate [18:01:48]Write to MH i2c: F0 00 00 14 12 15 [18:01:48]Write i2c OK [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: F0 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: F0 09 00 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: F0 09 00 14 12 00 8D 6B 1D 66 23 5B 8F 65 0B [18:01:48]GetLastDocTimeStamp 1713203959 [18:01:48]current date 1713204109 [18:01:48]FM_GetShiftState [18:01:48]SAM_PROTO_GetShiftState [18:01:48]wFMCommunicate request_size=4 [18:01:48]MH_SAM_APDU [18:01:48]CAPDU: 80 13 01 00 [18:01:48]Write to MH i2c: E2 08 00 15 12 80 13 01 00 00 00 00 00 A4 [18:01:48]Write i2c OK [18:01:48]MH_I2C_Read... [18:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:48]Read from MH i2c: E2 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 0E 00 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 0E 00 15 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 98 [18:01:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:01:48]wFMCommunicate OK [18:01:48]SAM_PROTO_GetShiftState done [18:01:48]FM_GetShiftState done [18:01:48]opened in 1713140468 [18:01:48]opened+sec_in_day 1713226868 [18:01:48]quantity*price = 40046 [18:01:48]sum+1 = 40047 [18:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.46 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 231 15.04.2024 18:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29637 ФПД: 33119458586187 1/tax-web-control/client/api/v1/ticket?date=20240415T180149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29637&fm=33119458586187&tin=02508201610067®Number=0000138879044617&sum=40046 [18:01:49]StoreToDocumentArchive [18:01:49]shift 117 fd 29637 [18:01:49]save to /storage/0117/doc_00029637 [18:01:49]save last doc name /storage/0117/doc_00029637 to /storage/kkm_last_doc_name [18:01:49]save OK [18:01:49]Clear old archive folders... [18:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:49]tlvbuf is 01A5BCA0 [18:01:49]SAM_PROTO_ClearQueue [18:01:49]wFMCommunicate request_size=4 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 09 00 00 [18:01:49]Write to MH i2c: E2 08 00 22 12 80 09 00 00 00 00 00 00 A6 [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [18:01:49]RAPDU: 90 00 [18:01:49]wFMCommunicate OK [18:01:49]SAM_PROTO_ClearQueue done [18:01:49]KKMCreateOFDPacket [18:01:49]OFDProtocolAddRootSTLVToBuf [18:01:49]FM_MakeSignedData [18:01:49]FM_MakeSignedData [18:01:49]SAM_PROTO_SignData [18:01:49]wFMCommunicate request_size=4 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 0D 01 02 [18:01:49]Write to MH i2c: E2 08 00 23 12 80 0D 01 02 00 00 00 00 AE [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 23 12 00 90 00 A9 [18:01:49]RAPDU: 90 00 [18:01:49]wFMCommunicate OK [18:01:49]wFMCommunicate request_size=255 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8D 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 73 00 00 35 04 06 00 1E [18:01:49]Write to MH i2c: E2 02 01 24 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8D 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 73 00 00 35 04 06 00 1E 00 00 D5 [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 24 12 00 90 00 AA [18:01:49]RAPDU: 90 00 [18:01:49]wFMCommunicate OK [18:01:49]wFMCommunicate request_size=10 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 0D 02 02 05 1F 39 90 6E 4B [18:01:49]Write to MH i2c: E2 0D 00 25 12 80 0D 02 02 05 00 1F 39 90 6E 4B 00 00 5C [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [18:01:49]RAPDU: 90 00 [18:01:49]wFMCommunicate OK [18:01:49]wFMCommunicate request_size=4 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 0D 03 02 [18:01:49]Write to MH i2c: E2 08 00 26 12 80 0D 03 02 00 00 00 00 B3 [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 0B 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 0B 00 26 12 00 07 0C 9A 50 1C 94 50 B5 90 00 66 [18:01:49]RAPDU: 07 0C 9A 50 1C 94 50 B5 90 00 [18:01:49]wFMCommunicate OK [18:01:49]SAM_PROTO_SignData done [18:01:49]FM_MakeSignedData done [18:01:49]CreateOFDProtocolMessage [18:01:49]wFMCommunicate request_size=4 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 11 00 00 [18:01:49]Write to MH i2c: E2 08 00 27 12 80 11 00 00 00 00 00 00 B3 [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 17 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 17 00 27 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [18:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:01:49]wFMCommunicate OK [18:01:49]CreateOFDProtocolMessage done [18:01:49]OFDSenderStorePacket 29637 [18:01:49]StoreOFDPacket docnum=29637 [18:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 F0 07 01 F7 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8D 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 73 00 00 35 04 06 00 1E 1F 39 90 6E 4B 07 0C 9A 50 1C 94 50 B5 [18:01:49]CheckFolder [18:01:49]dirname=/storage/ofd_packets [18:01:49]CheckFolder done [18:01:49]ProducePacketName [18:01:49]name=ofd_packets/00029637 [18:01:49]NVStorageSaveData ofd_packets/00029637 [18:01:49]File name is /storage/ofd_packets/00029637 [18:01:49]Write 301 bytes [18:01:49]NVStorageSaveData done [18:01:49]OFDSenderStorePacket done [18:01:49]KKMCreateOFDPacket done [18:01:49]NVStorageSaveData kkm_last_timestamp [18:01:49]File name is /storage/kkm_last_timestamp [18:01:49]Write 4 bytes [18:01:49]NVStorageSaveData done [18:01:49]ExternCall_PrintAddStr [18:01:49]wPrintStart [18:01:49]Write to MH i2c: 01 00 00 28 12 3A [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: 01 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: 01 07 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: 01 07 00 28 12 00 00 00 00 00 FF 0F 4F [18:01:49]RasterBufferAndPrint [18:01:49]line Счет N : (1)348087 [18:01:49]line ИНН: 02508201610067 [18:01:49]line Контрольно-Кассовый Чек [18:01:49]line ПРОДАЖА [18:01:49]line ТРК (МРК, ГНК) : 23 [18:01:49]line Товар: 2710124130 [18:01:49]line Аи-92-К-5 [18:01:49]line 6.180 * 64.80 [18:01:49]line = 400.46 [18:01:49]line НДС 12% НСП 1% [18:01:49]line > о реализуемом товаре [18:01:49]line ИТОГО: 400.46 [18:01:49]line НСП 1% : 3.54 [18:01:49]line НДС 12% : 42.53 [18:01:49]line Наличными: 0.00 [18:01:49]line Безнал.: 400.46 [18:01:49]line Место: АЗС № 108 "Партнер Нефть" [18:01:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:01:49]line СНО: Общий режим [18:01:49]line Чек 231 15.04.2024 18:01 [18:01:49]line Смена: 117 ФФД: 1.0 [18:01:49]line ЗНМ: 0300000027 [18:01:49]line РНМ: 0000138879044617 [18:01:49]line Версия ККМ: 001 [18:01:49]line Платежная система: АКБ Кыргызстан [18:01:49]line ФМ: 0000000000963154 [18:01:49]line ФД: 29637 [18:01:49]line ФПД: 33119458586187 [18:01:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T180149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29637&fm=33119458586187&tin=02508201610067®Number=0000138879044617&sum=40046 [18:01:50]OFD Sender: Processing packet 29637 [packets to send 8, broken 7] [18:01:50]ProducePacketName [18:01:50]name=ofd_packets/00029637 [18:01:50]OFD Sender: To server: pG, [18:01:50]CommunicateWithHost lk.salyk.kg:30040 [18:01:50]ConnectInit lk.salyk.kg [18:01:50]written 0, free lines is 4095 [18:01:50]Connected sock=11 [18:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A3 F0 07 01 F7 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 8D 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 73 00 00 35 04 06 00 1E 1F 39 90 6E 4B 07 0C 9A 50 1C 94 50 B5 [18:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BD 14 47 00 F2 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 39 36 33 31 35 34 10 04 04 00 C5 73 00 00 F4 03 04 00 2D 16 1D 66 B6 04 01 00 00 8A 66 45 09 88 48 F2 B4 [18:01:50]CommunicateWithHost err = 0 [18:01:50]CheckOFDResponse [18:01:50]1017 (14) - 77093643461234 [18:01:50]1041 (16) - 0000000000963154 [18:01:50]1040 (4) - 29637 [18:01:50]1012 (4) - 15.04.2024 11:57 [18:01:50]1206 (1) - 0 [18:01:50]OFD Sender: Remove packet 29637 [18:01:50]ProducePacketName [18:01:50]name=ofd_packets/00029637 [18:01:50]NVStorageDeleteData [18:01:50]Write to MH i2c: 01 00 00 51 12 63 [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: 01 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: 01 07 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 E2 0C 58 [18:01:50]RasterBufferAndPrint [18:01:50]line [18:01:50]line [18:01:50]line [18:01:50]line [18:01:50]line [18:01:50]written 0, free lines is 3303 [18:01:50]MH_Cut [18:01:50]Write to MH i2c: D1 01 00 58 12 01 3C [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: D1 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: D1 01 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: D1 01 00 58 12 00 3B [18:01:50]Write to MH i2c: 01 00 00 59 12 6B [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]OFD Sender: No OFD packet to send [18:01:51]*** Cut start [18:01:51]*** Partial cut [18:01:51]*** CUTSNS_PIN = 1 [18:01:51]*** CUTSNS_PIN = 0 [18:01:51]*** Brake cut motor [18:01:51]Read from MH i2c: 01 [18:01:51]MH_I2C_Read... [18:01:51]*** Stop cut motor [18:01:51]*** Cut end [18:01:51]Read from MH i2c: 01 07 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [18:01:51]process_action close_receipt done [18:01:51]requested_data is exist [18:01:51]produce_requested_data [18:01:51]requested_item fm.sn is exist - process it [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 11 00 00 [18:01:51]Write to MH i2c: E2 08 00 5A 12 80 11 00 00 00 00 00 00 E6 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 17 00 5A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [18:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:01:52]wFMCommunicate OK [18:01:52]requested_item fd.num is exist - process it [18:01:52]SAM_PROTO_GetFieldsCounters [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 13 00 00 [18:01:52]Write to MH i2c: E2 08 00 5B 12 80 13 00 00 00 00 00 00 E9 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 62 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 62 00 5B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 73 00 00 0E 04 04 00 75 00 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 89 [18:01:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 73 00 00 0E 04 04 00 75 00 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:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_GetFieldsCounters done [18:01:52]requested_item shift.num is exist - process it [18:01:52]requested_item shift.opened is exist - process it [18:01:52]req_shift_opened [18:01:52]FM_GetShiftState [18:01:52]SAM_PROTO_GetShiftState [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 13 01 00 [18:01:52]Write to MH i2c: E2 08 00 5C 12 80 13 01 00 00 00 00 00 EB [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 5C 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DF [18:01:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_GetShiftState done [18:01:52]FM_GetShiftState done [18:01:52]req_shift_opened done [18:01:52]requested_item shift.open_date is exist - process it [18:01:52]req_shift_open_date [18:01:52]req_shift_open_date done [18:01:52]produce_requested_data done [18:01:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29637,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:01:52]process_action_free close_receipt [18:01:52]json_value_free [18:01:52]json_value_free done [18:01:52]process_json_proto returns [18:01:52]Send response to host [18:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29637,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:01:52]free response buf [18:01:52]execute_script done [18:01:52]execute_script returns [18:01:52]free content buf [18:01:52]Sock 7.Close socket [18:01:52]Sock 7.Thread stoped [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:11]accept exits with 9 [18:03:11]New connection [18:03:11]New thread 3066965348 created [18:03:11]Thread 3067108708 joined [18:03:11]Waiting for new connection... [18:03:11] Sock 9.Parse request [18:03:11]Sock 9.Check first char [18:03:11]Sock 9.First char is OK [18:03:11]request: POST /json_proto HTTP/1.0 [18:03:11]Method: POST [18:03:11]URL: /json_proto [18:03:11]Method is POST - this is cgi request [18:03:11]url: /json_proto [18:03:11]query_string will be loaded in cgi processing [18:03:11]execute_cgi json_proto POST (null) [18:03:11]execute_cgi path=json_proto method=POST [18:03:11]POST find Content-Length [18:03:11]Host: 172.17.33.3:8080 [18:03:11]Content-Length: 1209 [18:03:11]Content-Type: application/json [18:03:11] [18:03:11]POST finish read [18:03:11]Found Content-Length = 1209 [18:03: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348088\u000A15.04.2024 17:44\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-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:11]execute_script... [18:03: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348088\u000A15.04.2024 17:44\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-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:11]POST & json_proto [18:03:11]process_json_proto [18:03:11]json parsed OK: [18:03:11]protocol is kg_v1.0 [18:03:11]action value=print_text [18:03:11]process_action print_text [18:03:11]cmd_print_text [18:03:11]ExternCall_PrintAddStr [18:03:11]wPrintStart [18:03:11]Write to MH i2c: 01 00 00 5D 12 6F [18:03:11]Write i2c OK [18:03:11]MH_I2C_Read... [18:03:11]Read from MH i2c: 01 [18:03:11]MH_I2C_Read... [18:03:11]Read from MH i2c: 01 07 00 [18:03:11]MH_I2C_Read... [18:03:11]Read from MH i2c: 01 07 00 5D 12 00 00 00 00 00 FF 0F 84 [18:03:11]RasterBufferAndPrint [18:03:11]line *****ТОВАРНЫЙ ЧЕК***** [18:03:11]line АЗС 108 [18:03:11]line Партнер нефть [18:03:11]line 02508201610067 [18:03:11]line Кассир : Джумагулова Н. [18:03:11]line Счет N : (1)348088 [18:03:11]line 15.04.2024 17:44 [18:03:11]line ПРОДАЖА [18:03:11]line ТРК (МРК, ГНК): 11 [18:03:11]line Вид ГСМ : 2710194210 [18:03:11]line ДТ-К-5 [18:03:11]line 10.980 x 72.90 [18:03:11]line ИТОГ: 800.44 [18:03:11]line Тип оплаты: Талоны: Топливная Карта [18:03:11]line 02136 [18:03:11]line ______________________ [18:03:11]line (подпись) [18:03:11]written 0, free lines is 4095 [18:03:12]Write to MH i2c: 01 00 00 72 12 84 [18:03:12]Write i2c OK [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: 01 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: 01 07 00 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 F3 0D 8B [18:03:12]RasterBufferAndPrint [18:03:12]line [18:03:12]line [18:03:12]line [18:03:12]line [18:03:12]line [18:03:12]written 0, free lines is 3572 [18:03:12]MH_Cut [18:03:12]Write to MH i2c: D1 01 00 79 12 01 5D [18:03:12]Write i2c OK [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: D1 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: D1 01 00 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: D1 01 00 79 12 00 5C [18:03:12]Write to MH i2c: 01 00 00 7A 12 8C [18:03:12]Write i2c OK [18:03:12]MH_I2C_Read... [18:03:12]*** Cut start [18:03:12]*** Partial cut [18:03:12]*** CUTSNS_PIN = 1 [18:03:12]*** CUTSNS_PIN = 0 [18:03:12]*** Brake cut motor [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]*** Stop cut motor [18:03:13]*** Cut end [18:03:13]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 FF 0F A1 [18:03:13]process_action print_text done [18:03:13]requested_data is exist [18:03:13]produce_requested_data [18:03:13]requested_item fm.sn is exist - process it [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 7B 12 80 11 00 00 00 00 00 00 07 [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 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [18:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:03:13]wFMCommunicate OK [18:03:13]requested_item fd.num is exist - process it [18:03:13]SAM_PROTO_GetFieldsCounters [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 13 00 00 [18:03:13]Write to MH i2c: E2 08 00 7C 12 80 13 00 00 00 00 00 00 0A [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 62 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 62 00 7C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 73 00 00 0E 04 04 00 75 00 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 AA [18:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 73 00 00 0E 04 04 00 75 00 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:03:13]wFMCommunicate OK [18:03:13]SAM_PROTO_GetFieldsCounters done [18:03:13]requested_item shift.num is exist - process it [18:03:13]requested_item shift.opened is exist - process it [18:03:13]req_shift_opened [18:03:13]FM_GetShiftState [18:03:13]SAM_PROTO_GetShiftState [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 13 01 00 [18:03:13]Write to MH i2c: E2 08 00 7D 12 80 13 01 00 00 00 00 00 0C [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0E 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0E 00 7D 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 00 [18:03:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:03:13]wFMCommunicate OK [18:03:13]SAM_PROTO_GetShiftState done [18:03:13]FM_GetShiftState done [18:03:13]req_shift_opened done [18:03:13]requested_item shift.open_date is exist - process it [18:03:13]req_shift_open_date [18:03:13]req_shift_open_date done [18:03:13]produce_requested_data done [18:03:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29637,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:03:13]process_action_free print_text [18:03:13]json_value_free [18:03:13]json_value_free done [18:03:13]process_json_proto returns [18:03:13]Send response to host [18:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29637,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:03:13]free response buf [18:03:13]execute_script done [18:03:13]execute_script returns [18:03:13]free content buf [18:03:13]Sock 9.Close socket [18:03:13]Sock 9.Thread stoped [18:03:15]OFD Sender: No OFD packet to send [18:03:18]accept exits with 7 [18:03:18]New connection [18:03:18]New thread 3067108708 created [18:03:18]Thread 3066965348 joined [18:03:18]Waiting for new connection... [18:03:18] Sock 7.Parse request [18:03:18]Sock 7.Check first char [18:03:18]Sock 7.First char is OK [18:03:18]request: POST /json_proto HTTP/1.0 [18:03:18]Method: POST [18:03:18]URL: /json_proto [18:03:18]Method is POST - this is cgi request [18:03:18]url: /json_proto [18:03:18]query_string will be loaded in cgi processing [18:03:18]execute_cgi json_proto POST (null) [18:03:18]execute_cgi path=json_proto method=POST [18:03:18]POST find Content-Length [18:03:18]Host: 172.17.33.3:8080 [18:03:18]Content-Length: 677 [18:03:18]Content-Type: application/json [18:03:18] [18:03:18]POST finish read [18:03:18]Found Content-Length = 677 [18:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.880, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]execute_script... [18: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)348089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.880, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]POST & json_proto [18:03:18]process_json_proto [18:03:18]json parsed OK: [18:03:18]protocol is kg_v1.0 [18:03:18]action value=close_receipt [18:03:18]process_action close_receipt [18:03:18]cmd_close_receipt [18:03:18]MH_GetDate [18:03:18]Write to MH i2c: F0 00 00 7E 12 7F [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 7E 12 00 E7 6B 1D 66 23 5B 8F 65 CF [18:03:18]GetLastDocTimeStamp 1713204109 [18:03:18]current date 1713204199 [18:03:18]FM_GetShiftState [18:03:18]SAM_PROTO_GetShiftState [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 13 01 00 [18:03:18]Write to MH i2c: E2 08 00 7F 12 80 13 01 00 00 00 00 00 0E [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 7F 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 02 [18:03:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_GetShiftState done [18:03:18]FM_GetShiftState done [18:03:18]opened in 1713140468 [18:03:18]opened+sec_in_day 1713226868 [18:03:18]quantity*price = 51062 [18:03:18]sum+1 = 51063 [18:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.22 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 232 15.04.2024 18:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29638 ФПД: 127370212806125 1/tax-web-control/client/api/v1/ticket?date=20240415T180319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29638&fm=127370212806125&tin=02508201610067®Number=0000138879044617&sum=51000 [18:03:19]StoreToDocumentArchive [18:03:19]shift 117 fd 29638 [18:03:19]save to /storage/0117/doc_00029638 [18:03:19]save last doc name /storage/0117/doc_00029638 to /storage/kkm_last_doc_name [18:03:19]save OK [18:03:19]Clear old archive folders... [18:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:19]tlvbuf is 01A7F3A0 [18:03:19]SAM_PROTO_ClearQueue [18:03:19]wFMCommunicate request_size=4 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 09 00 00 [18:03:19]Write to MH i2c: E2 08 00 8C 12 80 09 00 00 00 00 00 00 10 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]SAM_PROTO_ClearQueue done [18:03:19]KKMCreateOFDPacket [18:03:19]OFDProtocolAddRootSTLVToBuf [18:03:19]FM_MakeSignedData [18:03:19]FM_MakeSignedData [18:03:19]SAM_PROTO_SignData [18:03:19]wFMCommunicate request_size=4 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 01 02 [18:03:19]Write to MH i2c: E2 08 00 8D 12 80 0D 01 02 00 00 00 00 18 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 8D 12 00 90 00 13 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]wFMCommunicate request_size=255 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 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 E7 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 73 00 00 35 04 06 00 73 [18:03:19]Write to MH i2c: E2 02 01 8E 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 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 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 E7 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 73 00 00 35 04 06 00 73 00 00 AF [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 8E 12 00 90 00 14 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]wFMCommunicate request_size=10 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 02 02 05 D7 B0 4A 0D ED [18:03:19]Write to MH i2c: E2 0D 00 8F 12 80 0D 02 02 05 00 D7 B0 4A 0D ED 00 00 F0 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]wFMCommunicate request_size=4 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 03 02 [18:03:19]Write to MH i2c: E2 08 00 90 12 80 0D 03 02 00 00 00 00 1D [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0B 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0B 00 90 12 00 32 6F BD 9B 0F 1E EB 8A 90 00 B9 [18:03:20]RAPDU: 32 6F BD 9B 0F 1E EB 8A 90 00 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_SignData done [18:03:20]FM_MakeSignedData done [18:03:20]CreateOFDProtocolMessage [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 11 00 00 [18:03:20]Write to MH i2c: E2 08 00 91 12 80 11 00 00 00 00 00 00 1D [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 91 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [18:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:03:20]wFMCommunicate OK [18:03:20]CreateOFDProtocolMessage done [18:03:20]OFDSenderStorePacket 29638 [18:03:20]StoreOFDPacket docnum=29638 [18:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CC 35 07 01 CC 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 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 E7 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 73 00 00 35 04 06 00 73 D7 B0 4A 0D ED 32 6F BD 9B 0F 1E EB 8A [18:03:20]CheckFolder [18:03:20]dirname=/storage/ofd_packets [18:03:20]CheckFolder done [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00029638 [18:03:20]NVStorageSaveData ofd_packets/00029638 [18:03:20]File name is /storage/ofd_packets/00029638 [18:03:20]Write 301 bytes [18:03:20]NVStorageSaveData done [18:03:20]OFDSenderStorePacket done [18:03:20]KKMCreateOFDPacket done [18:03:20]NVStorageSaveData kkm_last_timestamp [18:03:20]File name is /storage/kkm_last_timestamp [18:03:20]Write 4 bytes [18:03:20]NVStorageSaveData done [18:03:20]ExternCall_PrintAddStr [18:03:20]wPrintStart [18:03:20]Write to MH i2c: 01 00 00 92 12 A4 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [18:03:20]RasterBufferAndPrint [18:03:20]line Счет N : (1)348089 [18:03:20]line ИНН: 02508201610067 [18:03:20]line Контрольно-Кассовый Чек [18:03:20]line ПРОДАЖА [18:03:20]line ТРК (МРК, ГНК) : 32 [18:03:20]line Товар: 2710124130 [18:03:20]line Аи-92-К-5 [18:03:20]line 7.880 * 64.80 [18:03:20]line = 510.62 [18:03:20]line НДС 12% НСП 1% [18:03:20]line > о реализуемом товаре [18:03:20]line ОКРУГЛЕНИЕ: -0.62 [18:03:20]line ИТОГО: 510.00 [18:03:20]line Внесено: 510.00 [18:03:20]line СДАЧА: 0.00 [18:03:20]line НСП 1% : 4.52 [18:03:20]line НДС 12% : 54.22 [18:03:20]line Наличными: 510.00 [18:03:20]line Безнал.: 0.00 [18:03:20]line Место: АЗС № 108 "Партнер Нефть" [18:03:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:03:20]line СНО: Общий режим [18:03:20]line Чек 232 15.04.2024 18:03 [18:03:20]line Смена: 117 ФФД: 1.0 [18:03:20]line ЗНМ: 0300000027 [18:03:20]line РНМ: 0000138879044617 [18:03:20]line Версия ККМ: 001 [18:03:20]line ФМ: 0000000000963154 [18:03:20]line ФД: 29638 [18:03:20]line ФПД: 127370212806125 [18:03:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T180319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29638&fm=127370212806125&tin=02508201610067®Number=0000138879044617&sum=51000 [18:03:20]OFD Sender: Processing packet 29638 [packets to send 8, broken 7] [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00029638 [18:03:20]OFD Sender: To server: pG, [18:03:20]CommunicateWithHost lk.salyk.kg:30040 [18:03:20]ConnectInit lk.salyk.kg [18:03:20]written 0, free lines is 4095 [18:03:20]Connected sock=10 [18:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CC 35 07 01 CC 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 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 E7 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 73 00 00 35 04 06 00 73 D7 B0 4A 0D ED 32 6F BD 9B 0F 1E EB 8A [18:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E1 55 47 00 60 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 73 00 00 F4 03 04 00 88 16 1D 66 B6 04 01 00 00 D4 41 F7 72 C4 D7 F9 96 [18:03:20]CommunicateWithHost err = 0 [18:03:20]CheckOFDResponse [18:03:20]1017 (14) - 77093643461234 [18:03:20]1041 (16) - 0000000000963154 [18:03:20]1040 (4) - 29638 [18:03:20]1012 (4) - 15.04.2024 11:59 [18:03:20]1206 (1) - 0 [18:03:20]OFD Sender: Remove packet 29638 [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00029638 [18:03:20]NVStorageDeleteData [18:03:20]Write to MH i2c: 01 00 00 BC 12 CE [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 C9 0C AA [18:03:20]RasterBufferAndPrint [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]written 0, free lines is 3277 [18:03:20]MH_Cut [18:03:20]Write to MH i2c: D1 01 00 C3 12 01 A7 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 01 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 01 00 C3 12 00 A6 [18:03:20]Write to MH i2c: 01 00 00 C4 12 D6 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:21]OFD Sender: No OFD packet to send [18:03:21]*** Cut start [18:03:21]*** Partial cut [18:03:21]*** CUTSNS_PIN = 1 [18:03:21]*** CUTSNS_PIN = 0 [18:03:21]*** Brake cut motor [18:03:22]Read from MH i2c: 01 [18:03:22]MH_I2C_Read... [18:03:22]*** Stop cut motor [18:03:22]*** Cut end [18:03:22]Read from MH i2c: 01 07 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 C4 12 00 00 00 00 00 FF 0F EB [18:03:22]process_action close_receipt done [18:03:22]requested_data is exist [18:03:22]produce_requested_data [18:03:22]requested_item fm.sn is exist - process it [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 11 00 00 [18:03:22]Write to MH i2c: E2 08 00 C5 12 80 11 00 00 00 00 00 00 51 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 C5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [18:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:03:22]wFMCommunicate OK [18:03:22]requested_item fd.num is exist - process it [18:03:22]SAM_PROTO_GetFieldsCounters [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 13 00 00 [18:03:22]Write to MH i2c: E2 08 00 C6 12 80 13 00 00 00 00 00 00 54 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 62 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 62 00 C6 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 73 00 00 0E 04 04 00 75 00 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 F8 [18:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 73 00 00 0E 04 04 00 75 00 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 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_GetFieldsCounters done [18:03:22]requested_item shift.num is exist - process it [18:03:22]requested_item shift.opened is exist - process it [18:03:22]req_shift_opened [18:03:22]FM_GetShiftState [18:03:22]SAM_PROTO_GetShiftState [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 13 01 00 [18:03:22]Write to MH i2c: E2 08 00 C7 12 80 13 01 00 00 00 00 00 56 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 C7 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4A [18:03:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_GetShiftState done [18:03:22]FM_GetShiftState done [18:03:22]req_shift_opened done [18:03:22]requested_item shift.open_date is exist - process it [18:03:22]req_shift_open_date [18:03:22]req_shift_open_date done [18:03:22]produce_requested_data done [18:03:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29638,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:03:22]process_action_free close_receipt [18:03:22]json_value_free [18:03:22]json_value_free done [18:03:22]process_json_proto returns [18:03:22]Send response to host [18:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29638,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:03:22]free response buf [18:03:22]execute_script done [18:03:22]execute_script returns [18:03:22]free content buf [18:03:22]Sock 7.Close socket [18:03:22]Sock 7.Thread stoped [18:03:23]accept exits with 9 [18:03:23]New connection [18:03:23]New thread 3066965348 created [18:03:23]Thread 3067108708 joined [18:03:23]Waiting for new connection... [18:03:23] Sock 9.Parse request [18:03:23]Sock 9.Check first char [18:03:23]Sock 9.First char is OK [18:03:23]request: POST /json_proto HTTP/1.0 [18:03:23]Method: POST [18:03:23]URL: /json_proto [18:03:23]Method is POST - this is cgi request [18:03:23]url: /json_proto [18:03:23]query_string will be loaded in cgi processing [18:03:23]execute_cgi json_proto POST (null) [18:03:23]execute_cgi path=json_proto method=POST [18:03:23]POST find Content-Length [18:03:23]Host: 172.17.33.3:8080 [18:03:23]Content-Length: 819 [18:03:23]Content-Type: application/json [18:03:23] [18:03:23]POST finish read [18:03:23]Found Content-Length = 819 [18:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:23]execute_script... [18:03:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:23]POST & json_proto [18:03:23]process_json_proto [18:03:23]json parsed OK: [18:03:23]protocol is kg_v1.0 [18:03:23]action value=close_receipt [18:03:23]process_action close_receipt [18:03:23]cmd_close_receipt [18:03:23]MH_GetDate [18:03:23]Write to MH i2c: F0 00 00 C8 12 C9 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: F0 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: F0 09 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: F0 09 00 C8 12 00 EC 6B 1D 66 23 5B 8F 65 1E [18:03:23]GetLastDocTimeStamp 1713204199 [18:03:23]current date 1713204204 [18:03:23]FM_GetShiftState [18:03:23]SAM_PROTO_GetShiftState [18:03:23]wFMCommunicate request_size=4 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 13 01 00 [18:03:23]Write to MH i2c: E2 08 00 C9 12 80 13 01 00 00 00 00 00 58 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 0E 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 0E 00 C9 12 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4C [18:03:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:03:23]wFMCommunicate OK [18:03:23]SAM_PROTO_GetShiftState done [18:03:23]FM_GetShiftState done [18:03:23]opened in 1713140468 [18:03:23]opened+sec_in_day 1713226868 [18:03:23]quantity*price = 100051 [18:03:23]sum+1 = 100052 [18:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 233 15.04.2024 18:03 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29639 ФПД: 212792071601771 1/tax-web-control/client/api/v1/ticket?date=20240415T180324&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29639&fm=212792071601771&tin=02508201610067®Number=0000138879044617&sum=100051 [18:03:24]StoreToDocumentArchive [18:03:24]shift 117 fd 29639 [18:03:24]save to /storage/0117/doc_00029639 [18:03:24]save last doc name /storage/0117/doc_00029639 to /storage/kkm_last_doc_name [18:03:24]save OK [18:03:24]Clear old archive folders... [18:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:24]tlvbuf is 01A81820 [18:03:24]SAM_PROTO_ClearQueue [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 09 00 00 [18:03:24]Write to MH i2c: E2 08 00 D6 12 80 09 00 00 00 00 00 00 5A [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [18:03:24]RAPDU: 90 00 [18:03:24]wFMCommunicate OK [18:03:24]SAM_PROTO_ClearQueue done [18:03:24]KKMCreateOFDPacket [18:03:24]OFDProtocolAddRootSTLVToBuf [18:03:24]FM_MakeSignedData [18:03:24]FM_MakeSignedData [18:03:24]SAM_PROTO_SignData [18:03:24]wFMCommunicate request_size=4 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 0D 01 02 [18:03:24]Write to MH i2c: E2 08 00 D7 12 80 0D 01 02 00 00 00 00 62 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:24]Read from MH i2c: E2 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [18:03:24]RAPDU: 90 00 [18:03:24]wFMCommunicate OK [18:03:24]wFMCommunicate request_size=255 [18:03:24]MH_SAM_APDU [18:03:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EC 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 73 00 00 35 04 06 00 C1 [18:03:24]Write to MH i2c: E2 02 01 D8 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EC 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 73 00 00 35 04 06 00 C1 00 00 E1 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 03 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 03 00 D8 12 00 90 00 5E [18:03:25]RAPDU: 90 00 [18:03:25]wFMCommunicate OK [18:03:25]wFMCommunicate request_size=10 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 0D 02 02 05 88 83 D6 BE 6B [18:03:25]Write to MH i2c: E2 0D 00 D9 12 80 0D 02 02 05 00 88 83 D6 BE 6B 00 00 79 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 03 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 03 00 D9 12 00 90 00 5F [18:03:25]RAPDU: 90 00 [18:03:25]wFMCommunicate OK [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 0D 03 02 [18:03:25]Write to MH i2c: E2 08 00 DA 12 80 0D 03 02 00 00 00 00 67 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0B 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0B 00 DA 12 00 29 F1 01 3B F7 1B 16 6C 90 00 52 [18:03:25]RAPDU: 29 F1 01 3B F7 1B 16 6C 90 00 [18:03:25]wFMCommunicate OK [18:03:25]SAM_PROTO_SignData done [18:03:25]FM_MakeSignedData done [18:03:25]CreateOFDProtocolMessage [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 11 00 00 [18:03:25]Write to MH i2c: E2 08 00 DB 12 80 11 00 00 00 00 00 00 67 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 17 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 17 00 DB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [18:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:03:25]wFMCommunicate OK [18:03:25]CreateOFDProtocolMessage done [18:03:25]OFDSenderStorePacket 29639 [18:03:25]StoreOFDPacket docnum=29639 [18:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 9F 07 01 B0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EC 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 73 00 00 35 04 06 00 C1 88 83 D6 BE 6B 29 F1 01 3B F7 1B 16 6C [18:03:25]CheckFolder [18:03:25]dirname=/storage/ofd_packets [18:03:25]CheckFolder done [18:03:25]ProducePacketName [18:03:25]name=ofd_packets/00029639 [18:03:25]NVStorageSaveData ofd_packets/00029639 [18:03:25]File name is /storage/ofd_packets/00029639 [18:03:25]Write 301 bytes [18:03:25]NVStorageSaveData done [18:03:25]OFDSenderStorePacket done [18:03:25]KKMCreateOFDPacket done [18:03:25]NVStorageSaveData kkm_last_timestamp [18:03:25]File name is /storage/kkm_last_timestamp [18:03:25]Write 4 bytes [18:03:25]NVStorageSaveData done [18:03:25]ExternCall_PrintAddStr [18:03:25]wPrintStart [18:03:25]Write to MH i2c: 01 00 00 DC 12 EE [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: 01 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: 01 07 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 FF 0F 03 [18:03:25]RasterBufferAndPrint [18:03:25]line Счет N : (1)348090 [18:03:25]line ИНН: 02508201610067 [18:03:25]line Контрольно-Кассовый Чек [18:03:25]line ПРОДАЖА [18:03:25]line ТРК (МРК, ГНК) : 42 [18:03:25]line Товар: 2710124130 [18:03:25]line Аи-92-К-5 [18:03:25]line 15.440 * 64.80 [18:03:25]line = 1000.51 [18:03:25]line НДС 12% НСП 1% [18:03:25]line > о реализуемом товаре [18:03:25]line ИТОГО: 1000.51 [18:03:25]line НСП 1% : 8.85 [18:03:25]line НДС 12% : 106.25 [18:03:25]line Наличными: 0.00 [18:03:25]line Безнал.: 1000.51 [18:03:25]line Место: АЗС № 108 "Партнер Нефть" [18:03:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:03:25]line СНО: Общий режим [18:03:25]line Чек 233 15.04.2024 18:03 [18:03:25]line Смена: 117 ФФД: 1.0 [18:03:25]line ЗНМ: 0300000027 [18:03:25]line РНМ: 0000138879044617 [18:03:25]line Версия ККМ: 001 [18:03:25]line Платежная система: Бакай Банк [18:03:25]line ФМ: 0000000000963154 [18:03:25]line ФД: 29639 [18:03:25]line ФПД: 212792071601771 [18:03:25]line 1/tax-web-control/client/api/v1/ticket?date=20240415T180324&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29639&fm=212792071601771&tin=02508201610067®Number=0000138879044617&sum=100051 [18:03:25]OFD Sender: Processing packet 29639 [packets to send 8, broken 7] [18:03:25]ProducePacketName [18:03:25]name=ofd_packets/00029639 [18:03:25]OFD Sender: To server: pG, [18:03:25]CommunicateWithHost lk.salyk.kg:30040 [18:03:25]ConnectInit lk.salyk.kg [18:03:25]written 0, free lines is 4095 [18:03:25]Connected sock=10 [18:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 9F 07 01 B0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EC 6B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 73 00 00 35 04 06 00 C1 88 83 D6 BE 6B 29 F1 01 3B F7 1B 16 6C [18:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 92 A7 47 00 B3 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 73 00 00 F4 03 04 00 8D 16 1D 66 B6 04 01 00 00 0F CC 97 EC 57 C7 23 94 [18:03:25]CommunicateWithHost err = 0 [18:03:25]CheckOFDResponse [18:03:25]1017 (14) - 77093643461234 [18:03:25]1041 (16) - 0000000000963154 [18:03:25]1040 (4) - 29639 [18:03:25]1012 (4) - 15.04.2024 11:59 [18:03:25]1206 (1) - 0 [18:03:25]OFD Sender: Remove packet 29639 [18:03:25]ProducePacketName [18:03:25]name=ofd_packets/00029639 [18:03:25]NVStorageDeleteData [18:03:26]Write to MH i2c: 01 00 00 05 13 18 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 F1 0C 1C [18:03:26]RasterBufferAndPrint [18:03:26]line [18:03:26]line [18:03:26]line [18:03:26]line [18:03:26]line [18:03:26]written 0, free lines is 3323 [18:03:26]MH_Cut [18:03:26]Write to MH i2c: D1 01 00 0C 13 01 F1 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: D1 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: D1 01 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: D1 01 00 0C 13 00 F0 [18:03:26]Write to MH i2c: 01 00 00 0D 13 20 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]OFD Sender: No OFD packet to send [18:03:26]*** Cut start [18:03:26]*** Partial cut [18:03:26]*** CUTSNS_PIN = 1 [18:03:26]*** CUTSNS_PIN = 0 [18:03:27]*** Brake cut motor [18:03:27]Read from MH i2c: 01 [18:03:27]MH_I2C_Read... [18:03:27]*** Stop cut motor [18:03:27]*** Cut end [18:03:27]Read from MH i2c: 01 07 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 FF 0F 35 [18:03:27]process_action close_receipt done [18:03:27]requested_data is exist [18:03:27]produce_requested_data [18:03:27]requested_item fm.sn is exist - process it [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 11 00 00 [18:03:27]Write to MH i2c: E2 08 00 0E 13 80 11 00 00 00 00 00 00 9B [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 17 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 17 00 0E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [18:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:03:27]wFMCommunicate OK [18:03:27]requested_item fd.num is exist - process it [18:03:27]SAM_PROTO_GetFieldsCounters [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 13 00 00 [18:03:27]Write to MH i2c: E2 08 00 0F 13 80 13 00 00 00 00 00 00 9E [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 62 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 62 00 0F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 73 00 00 0E 04 04 00 75 00 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 46 [18:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 73 00 00 0E 04 04 00 75 00 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 [18:03:27]wFMCommunicate OK [18:03:27]SAM_PROTO_GetFieldsCounters done [18:03:27]requested_item shift.num is exist - process it [18:03:27]requested_item shift.opened is exist - process it [18:03:27]req_shift_opened [18:03:27]FM_GetShiftState [18:03:27]SAM_PROTO_GetShiftState [18:03:27]wFMCommunicate request_size=4 [18:03:27]MH_SAM_APDU [18:03:27]CAPDU: 80 13 01 00 [18:03:27]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:27]Read from MH i2c: E2 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 0E 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 94 [18:03:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:03:27]wFMCommunicate OK [18:03:27]SAM_PROTO_GetShiftState done [18:03:27]FM_GetShiftState done [18:03:27]req_shift_opened done [18:03:27]requested_item shift.open_date is exist - process it [18:03:27]req_shift_open_date [18:03:27]req_shift_open_date done [18:03:27]produce_requested_data done [18:03:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29639,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:03:27]process_action_free close_receipt [18:03:27]json_value_free [18:03:27]json_value_free done [18:03:27]process_json_proto returns [18:03:27]Send response to host [18:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29639,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:03:27]free response buf [18:03:27]execute_script done [18:03:27]execute_script returns [18:03:27]free content buf [18:03:27]Sock 9.Close socket [18:03:27]Sock 9.Thread stoped [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]accept exits with 7 [18:11:06]New connection [18:11:06]New thread 3067108708 created [18:11:06]Thread 3066965348 joined [18:11:06]Waiting for new connection... [18:11:06] Sock 7.Parse request [18:11:06]Sock 7.Check first char [18:11:06]Sock 7.First char is OK [18:11:06]request: POST /json_proto HTTP/1.0 [18:11:06]Method: POST [18:11:06]URL: /json_proto [18:11:06]Method is POST - this is cgi request [18:11:06]url: /json_proto [18:11:06]query_string will be loaded in cgi processing [18:11:06]execute_cgi json_proto POST (null) [18:11:06]execute_cgi path=json_proto method=POST [18:11:06]POST find Content-Length [18:11:06]Host: 172.17.33.3:8080 [18:11:06]Content-Length: 670 [18:11:06]Content-Type: application/json [18:11:06] [18:11:06]POST finish read [18:11:06]Found Content-Length = 670 [18:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 8.820, "sum" : 580.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:06]execute_script... [18:11: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)348091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 8.820, "sum" : 580.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:06]POST & json_proto [18:11:06]process_json_proto [18:11:06]json parsed OK: [18:11:06]protocol is kg_v1.0 [18:11:06]action value=close_receipt [18:11:06]process_action close_receipt [18:11:06]cmd_close_receipt [18:11:06]MH_GetDate [18:11:06]Write to MH i2c: F0 00 00 11 13 13 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: F0 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: F0 09 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: F0 09 00 11 13 00 BB 6D 1D 66 23 5B 8F 65 39 [18:11:06]GetLastDocTimeStamp 1713204204 [18:11:06]current date 1713204667 [18:11:06]FM_GetShiftState [18:11:06]SAM_PROTO_GetShiftState [18:11:06]wFMCommunicate request_size=4 [18:11:06]MH_SAM_APDU [18:11:06]CAPDU: 80 13 01 00 [18:11:06]Write to MH i2c: E2 08 00 12 13 80 13 01 00 00 00 00 00 A2 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:06]Read from MH i2c: E2 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 0E 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 0E 00 12 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 96 [18:11:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:11:06]wFMCommunicate OK [18:11:06]SAM_PROTO_GetShiftState done [18:11:06]FM_GetShiftState done [18:11:06]opened in 1713140468 [18:11:06]opened+sec_in_day 1713226868 [18:11:06]quantity*price = 58035 [18:11:06]sum+1 = 58037 [18:11:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.14 НДС 12% : 61.63 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 234 15.04.2024 18:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29640 ФПД: 23847982369132 1/tax-web-control/client/api/v1/ticket?date=20240415T181107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29640&fm=23847982369132&tin=02508201610067®Number=0000138879044617&sum=58000 [18:11:07]StoreToDocumentArchive [18:11:07]shift 117 fd 29640 [18:11:07]save to /storage/0117/doc_00029640 [18:11:07]save last doc name /storage/0117/doc_00029640 to /storage/kkm_last_doc_name [18:11:07]save OK [18:11:07]Clear old archive folders... [18:11:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:11:07]tlvbuf is 01A9B550 [18:11:07]SAM_PROTO_ClearQueue [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 09 00 00 [18:11:07]Write to MH i2c: E2 08 00 1F 13 80 09 00 00 00 00 00 00 A4 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [18:11:07]RAPDU: 90 00 [18:11:07]wFMCommunicate OK [18:11:07]SAM_PROTO_ClearQueue done [18:11:07]KKMCreateOFDPacket [18:11:07]OFDProtocolAddRootSTLVToBuf [18:11:07]FM_MakeSignedData [18:11:07]FM_MakeSignedData [18:11:07]SAM_PROTO_SignData [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 0D 01 02 [18:11:07]Write to MH i2c: E2 08 00 20 13 80 0D 01 02 00 00 00 00 AC [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [18:11:07]RAPDU: 90 00 [18:11:07]wFMCommunicate OK [18:11:07]wFMCommunicate request_size=255 [18:11:07]MH_SAM_APDU [18:11: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 BB 6D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 73 00 00 35 04 06 00 [18:11:07]Write to MH i2c: E2 02 01 21 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 BB 6D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 73 00 00 35 04 06 00 00 00 CE [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 21 13 00 90 00 A8 [18:11:07]RAPDU: 90 00 [18:11:07]wFMCommunicate OK [18:11:07]wFMCommunicate request_size=11 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 0D 02 02 06 15 B0 8A 84 89 6C [18:11:07]Write to MH i2c: E2 0E 00 22 13 80 0D 02 02 06 00 15 B0 8A 84 89 6C 00 00 83 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 03 00 22 13 00 90 00 A9 [18:11:07]RAPDU: 90 00 [18:11:07]wFMCommunicate OK [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 0D 03 02 [18:11:07]Write to MH i2c: E2 08 00 23 13 80 0D 03 02 00 00 00 00 B1 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 0B 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 0B 00 23 13 00 9C 4F 10 5A B7 22 09 15 90 00 FE [18:11:07]RAPDU: 9C 4F 10 5A B7 22 09 15 90 00 [18:11:07]wFMCommunicate OK [18:11:07]SAM_PROTO_SignData done [18:11:07]FM_MakeSignedData done [18:11:07]CreateOFDProtocolMessage [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 11 00 00 [18:11:07]Write to MH i2c: E2 08 00 24 13 80 11 00 00 00 00 00 00 B1 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 17 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 17 00 24 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [18:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:11:07]wFMCommunicate OK [18:11:07]CreateOFDProtocolMessage done [18:11:07]OFDSenderStorePacket 29640 [18:11:07]StoreOFDPacket docnum=29640 [18:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AB 93 08 01 20 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 BB 6D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 73 00 00 35 04 06 00 15 B0 8A 84 89 6C 9C 4F 10 5A B7 22 09 15 [18:11:07]CheckFolder [18:11:07]dirname=/storage/ofd_packets [18:11:07]CheckFolder done [18:11:07]ProducePacketName [18:11:07]name=ofd_packets/00029640 [18:11:07]NVStorageSaveData ofd_packets/00029640 [18:11:07]File name is /storage/ofd_packets/00029640 [18:11:07]Write 302 bytes [18:11:07]NVStorageSaveData done [18:11:07]OFDSenderStorePacket done [18:11:07]KKMCreateOFDPacket done [18:11:07]NVStorageSaveData kkm_last_timestamp [18:11:07]File name is /storage/kkm_last_timestamp [18:11:07]Write 4 bytes [18:11:07]NVStorageSaveData done [18:11:07]ExternCall_PrintAddStr [18:11:07]wPrintStart [18:11:07]Write to MH i2c: 01 00 00 25 13 38 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 25 13 00 00 00 00 00 FF 0F 4D [18:11:07]RasterBufferAndPrint [18:11:07]line Счет N : (1)348091 [18:11:07]line ИНН: 02508201610067 [18:11:07]line Контрольно-Кассовый Чек [18:11:07]line ПРОДАЖА [18:11:07]line ТРК (МРК, ГНК) : 12 [18:11:07]line Товар: 2710124130 [18:11:07]line SUPER-92-К-5 [18:11:07]line 8.820 * 65.80 [18:11:07]line = 580.36 [18:11:07]line НДС 12% НСП 1% [18:11:07]line > о реализуемом товаре [18:11:07]line ОКРУГЛЕНИЕ: -0.36 [18:11:07]line ИТОГО: 580.00 [18:11:07]line Внесено: 580.00 [18:11:07]line СДАЧА: 0.00 [18:11:07]line НСП 1% : 5.14 [18:11:07]line НДС 12% : 61.63 [18:11:07]line Наличными: 580.00 [18:11:07]line Безнал.: 0.00 [18:11:07]line Место: АЗС № 108 "Партнер Нефть" [18:11:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:11:07]line СНО: Общий режим [18:11:07]line Чек 234 15.04.2024 18:11 [18:11:07]line Смена: 117 ФФД: 1.0 [18:11:07]line ЗНМ: 0300000027 [18:11:07]line РНМ: 0000138879044617 [18:11:07]line Версия ККМ: 001 [18:11:07]line ФМ: 0000000000963154 [18:11:07]line ФД: 29640 [18:11:07]line ФПД: 23847982369132 [18:11:07]line 1/tax-web-control/client/api/v1/ticket?date=20240415T181107&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29640&fm=23847982369132&tin=02508201610067®Number=0000138879044617&sum=58000 [18:11:08]OFD Sender: Processing packet 29640 [packets to send 8, broken 7] [18:11:08]ProducePacketName [18:11:08]name=ofd_packets/00029640 [18:11:08]OFD Sender: To server: pG, [18:11:08]CommunicateWithHost lk.salyk.kg:30040 [18:11:08]ConnectInit lk.salyk.kg [18:11:08]written 0, free lines is 4095 [18:11:08]Connected sock=10 [18:11:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AB 93 08 01 20 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 22 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 90 E2 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 BB 6D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 73 00 00 35 04 06 00 15 B0 8A 84 89 6C 9C 4F 10 5A B7 22 09 15 [18:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 F1 47 00 AF 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 73 00 00 F4 03 04 00 5B 18 1D 66 B6 04 01 00 00 0D 11 D2 0F 3B B0 BF 20 [18:11:08]CommunicateWithHost err = 0 [18:11:08]CheckOFDResponse [18:11:08]1017 (14) - 77093643461234 [18:11:08]1041 (16) - 0000000000963154 [18:11:08]1040 (4) - 29640 [18:11:08]1012 (4) - 15.04.2024 12:06 [18:11:08]1206 (1) - 0 [18:11:08]OFD Sender: Remove packet 29640 [18:11:08]ProducePacketName [18:11:08]name=ofd_packets/00029640 [18:11:08]NVStorageDeleteData [18:11:08]Write to MH i2c: 01 00 00 4F 13 62 [18:11:08]Write i2c OK [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: 01 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: 01 07 00 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: 01 07 00 4F 13 00 00 00 00 00 D3 0C 48 [18:11:08]RasterBufferAndPrint [18:11:08]line [18:11:08]line [18:11:08]line [18:11:08]line [18:11:08]line [18:11:08]written 0, free lines is 3289 [18:11:08]MH_Cut [18:11:08]Write to MH i2c: D1 01 00 56 13 01 3B [18:11:08]Write i2c OK [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: D1 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: D1 01 00 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: D1 01 00 56 13 00 3A [18:11:08]Write to MH i2c: 01 00 00 57 13 6A [18:11:08]Write i2c OK [18:11:08]MH_I2C_Read... [18:11:08]OFD Sender: No OFD packet to send [18:11:09]*** Cut start [18:11:09]*** Partial cut [18:11:09]*** CUTSNS_PIN = 1 [18:11:09]*** CUTSNS_PIN = 0 [18:11:09]*** Brake cut motor [18:11:09]Read from MH i2c: 01 [18:11:09]MH_I2C_Read... [18:11:09]*** Stop cut motor [18:11:09]*** Cut end [18:11:09]Read from MH i2c: 01 07 00 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: 01 07 00 57 13 00 00 00 00 00 FF 0F 7F [18:11:09]process_action close_receipt done [18:11:09]requested_data is exist [18:11:09]produce_requested_data [18:11:09]requested_item fm.sn is exist - process it [18:11:09]wFMCommunicate request_size=4 [18:11:09]MH_SAM_APDU [18:11:09]CAPDU: 80 11 00 00 [18:11:09]Write to MH i2c: E2 08 00 58 13 80 11 00 00 00 00 00 00 E5 [18:11:09]Write i2c OK [18:11:09]MH_I2C_Read... [18:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:09]Read from MH i2c: E2 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: E2 17 00 [18:11:09]MH_I2C_Read... [18:11:09]Read from MH i2c: E2 17 00 58 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [18:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:11:09]wFMCommunicate OK [18:11:09]requested_item fd.num is exist - process it [18:11:09]SAM_PROTO_GetFieldsCounters [18:11:09]wFMCommunicate request_size=4 [18:11:09]MH_SAM_APDU [18:11:09]CAPDU: 80 13 00 00 [18:11:09]Write to MH i2c: E2 08 00 59 13 80 13 00 00 00 00 00 00 E8 [18:11:09]Write i2c OK [18:11:09]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 62 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 62 00 59 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 73 00 00 0E 04 04 00 75 00 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 94 [18:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 73 00 00 0E 04 04 00 75 00 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 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_GetFieldsCounters done [18:11:10]requested_item shift.num is exist - process it [18:11:10]requested_item shift.opened is exist - process it [18:11:10]req_shift_opened [18:11:10]FM_GetShiftState [18:11:10]SAM_PROTO_GetShiftState [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 13 01 00 [18:11:10]Write to MH i2c: E2 08 00 5A 13 80 13 01 00 00 00 00 00 EA [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:10]Read from MH i2c: E2 0E 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 0E 00 5A 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DE [18:11:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_GetShiftState done [18:11:10]FM_GetShiftState done [18:11:10]req_shift_opened done [18:11:10]requested_item shift.open_date is exist - process it [18:11:10]req_shift_open_date [18:11:10]req_shift_open_date done [18:11:10]produce_requested_data done [18:11:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29640,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:11:10]process_action_free close_receipt [18:11:10]json_value_free [18:11:10]json_value_free done [18:11:10]process_json_proto returns [18:11:10]Send response to host [18:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29640,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:11:10]free response buf [18:11:10]execute_script done [18:11:10]execute_script returns [18:11:10]free content buf [18:11:10]Sock 7.Close socket [18:11:10]Sock 7.Thread stoped [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]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:02]accept exits with 9 [18:13:02]New connection [18:13:02]New thread 3066965348 created [18:13:02]Thread 3067108708 joined [18:13:02]Waiting for new connection... [18:13:02] Sock 9.Parse request [18:13:02]Sock 9.Check first char [18:13:02]Sock 9.First char is OK [18:13:02]request: POST /json_proto HTTP/1.0 [18:13:02]Method: POST [18:13:02]URL: /json_proto [18:13:02]Method is POST - this is cgi request [18:13:02]url: /json_proto [18:13:02]query_string will be loaded in cgi processing [18:13:02]execute_cgi json_proto POST (null) [18:13:02]execute_cgi path=json_proto method=POST [18:13:02]POST find Content-Length [18:13:02]Host: 172.17.33.3:8080 [18:13:02]Content-Length: 843 [18:13:02]Content-Type: application/json [18:13:02] [18:13:02]POST finish read [18:13:02]Found Content-Length = 843 [18:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:02]execute_script... [18:13: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)348092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:02]POST & json_proto [18:13:02]process_json_proto [18:13:02]json parsed OK: [18:13:02]protocol is kg_v1.0 [18:13:02]action value=close_receipt [18:13:02]process_action close_receipt [18:13:02]cmd_close_receipt [18:13:02]MH_GetDate [18:13:02]Write to MH i2c: F0 00 00 5B 13 5D [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: F0 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: F0 09 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: F0 09 00 5B 13 00 2F 6E 1D 66 23 5B 8F 65 F8 [18:13:02]GetLastDocTimeStamp 1713204667 [18:13:02]current date 1713204783 [18:13:02]FM_GetShiftState [18:13:02]SAM_PROTO_GetShiftState [18:13:02]wFMCommunicate request_size=4 [18:13:02]MH_SAM_APDU [18:13:02]CAPDU: 80 13 01 00 [18:13:02]Write to MH i2c: E2 08 00 5C 13 80 13 01 00 00 00 00 00 EC [18:13:02]Write i2c OK [18:13:02]MH_I2C_Read... [18:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:02]Read from MH i2c: E2 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 0E 00 [18:13:02]MH_I2C_Read... [18:13:02]Read from MH i2c: E2 0E 00 5C 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E0 [18:13:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:13:02]wFMCommunicate OK [18:13:02]SAM_PROTO_GetShiftState done [18:13:02]FM_GetShiftState done [18:13:02]opened in 1713140468 [18:13:02]opened+sec_in_day 1713226868 [18:13:02]quantity*price = 100051 [18:13:02]sum+1 = 100052 [18:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 235 15.04.2024 18:13 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29641 ФПД: 84823069352469 1/tax-web-control/client/api/v1/ticket?date=20240415T181303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29641&fm=84823069352469&tin=02508201610067®Number=0000138879044617&sum=100051 [18:13:03]StoreToDocumentArchive [18:13:03]shift 117 fd 29641 [18:13:03]save to /storage/0117/doc_00029641 [18:13:03]save last doc name /storage/0117/doc_00029641 to /storage/kkm_last_doc_name [18:13:03]save OK [18:13:03]Clear old archive folders... [18:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:03]tlvbuf is B6ECEAA0 [18:13:03]SAM_PROTO_ClearQueue [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 09 00 00 [18:13:03]Write to MH i2c: E2 08 00 69 13 80 09 00 00 00 00 00 00 EE [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [18:13:03]RAPDU: 90 00 [18:13:03]wFMCommunicate OK [18:13:03]SAM_PROTO_ClearQueue done [18:13:03]KKMCreateOFDPacket [18:13:03]OFDProtocolAddRootSTLVToBuf [18:13:03]FM_MakeSignedData [18:13:03]FM_MakeSignedData [18:13:03]SAM_PROTO_SignData [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 0D 01 02 [18:13:03]Write to MH i2c: E2 08 00 6A 13 80 0D 01 02 00 00 00 00 F6 [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [18:13:03]RAPDU: 90 00 [18:13:03]wFMCommunicate OK [18:13:03]wFMCommunicate request_size=255 [18:13:03]MH_SAM_APDU [18:13: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2F 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 73 00 00 35 04 06 00 4D [18:13:03]Write to MH i2c: E2 02 01 6B 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2F 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 73 00 00 35 04 06 00 4D 00 00 4B [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [18:13:03]RAPDU: 90 00 [18:13:03]wFMCommunicate OK [18:13:03]wFMCommunicate request_size=10 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 0D 02 02 05 25 68 EA E2 15 [18:13:03]Write to MH i2c: E2 0D 00 6C 13 80 0D 02 02 05 00 25 68 EA E2 15 00 00 71 [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:03]Read from MH i2c: E2 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 [18:13:03]MH_I2C_Read... [18:13:03]Read from MH i2c: E2 03 00 6C 13 00 90 00 F3 [18:13:03]RAPDU: 90 00 [18:13:03]wFMCommunicate OK [18:13:03]wFMCommunicate request_size=4 [18:13:03]MH_SAM_APDU [18:13:03]CAPDU: 80 0D 03 02 [18:13:03]Write to MH i2c: E2 08 00 6D 13 80 0D 03 02 00 00 00 00 FB [18:13:03]OFD Sender: No OFD packet to send [18:13:03]Write i2c OK [18:13:03]MH_I2C_Read... [18:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:04]Read from MH i2c: E2 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 0B 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 0B 00 6D 13 00 7C CD BE 6C 3A EF 8E 2D 90 00 53 [18:13:04]RAPDU: 7C CD BE 6C 3A EF 8E 2D 90 00 [18:13:04]wFMCommunicate OK [18:13:04]SAM_PROTO_SignData done [18:13:04]FM_MakeSignedData done [18:13:04]CreateOFDProtocolMessage [18:13:04]wFMCommunicate request_size=4 [18:13:04]MH_SAM_APDU [18:13:04]CAPDU: 80 11 00 00 [18:13:04]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:04]Read from MH i2c: E2 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 17 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [18:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:13:04]wFMCommunicate OK [18:13:04]CreateOFDProtocolMessage done [18:13:04]OFDSenderStorePacket 29641 [18:13:04]StoreOFDPacket docnum=29641 [18:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 36 07 01 D0 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2F 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 73 00 00 35 04 06 00 4D 25 68 EA E2 15 7C CD BE 6C 3A EF 8E 2D [18:13:04]CheckFolder [18:13:04]dirname=/storage/ofd_packets [18:13:04]CheckFolder done [18:13:04]ProducePacketName [18:13:04]name=ofd_packets/00029641 [18:13:04]NVStorageSaveData ofd_packets/00029641 [18:13:04]File name is /storage/ofd_packets/00029641 [18:13:04]Write 301 bytes [18:13:04]NVStorageSaveData done [18:13:04]OFDSenderStorePacket done [18:13:04]KKMCreateOFDPacket done [18:13:04]NVStorageSaveData kkm_last_timestamp [18:13:04]File name is /storage/kkm_last_timestamp [18:13:04]Write 4 bytes [18:13:04]NVStorageSaveData done [18:13:04]ExternCall_PrintAddStr [18:13:04]wPrintStart [18:13:04]Write to MH i2c: 01 00 00 6F 13 82 [18:13:04]OFD Sender: Processing packet 29641 [packets to send 8, broken 7] [18:13:04]ProducePacketName [18:13:04]name=ofd_packets/00029641 [18:13:04]OFD Sender: To server: pG, [18:13:04]CommunicateWithHost lk.salyk.kg:30040 [18:13:04]ConnectInit lk.salyk.kg [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 07 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 FF 0F 97 [18:13:04]RasterBufferAndPrint [18:13:04]line Счет N : (1)348092 [18:13:04]line ИНН: 02508201610067 [18:13:04]line Контрольно-Кассовый Чек [18:13:04]line ПРОДАЖА [18:13:04]line ТРК (МРК, ГНК) : 32 [18:13:04]line Товар: 2710124130 [18:13:04]line Аи-92-К-5 [18:13:04]line 15.440 * 64.80 [18:13:04]line = 1000.51 [18:13:04]line НДС 12% НСП 1% [18:13:04]line > о реализуемом товаре [18:13:04]line ИТОГО: 1000.51 [18:13:04]line НСП 1% : 8.85 [18:13:04]line НДС 12% : 106.25 [18:13:04]line Наличными: 0.00 [18:13:04]line Безнал.: 1000.51 [18:13:04]line Место: АЗС № 108 "Партнер Нефть" [18:13:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:13:04]line СНО: Общий режим [18:13:04]line Чек 235 15.04.2024 18:13 [18:13:04]line Смена: 117 ФФД: 1.0 [18:13:04]line ЗНМ: 0300000027 [18:13:04]line РНМ: 0000138879044617 [18:13:04]line Версия ККМ: 001 [18:13:04]line Платежная система: АКБ Кыргызстан [18:13:04]line ФМ: 0000000000963154 [18:13:04]line ФД: 29641 [18:13:04]line ФПД: 84823069352469 [18:13:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T181303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29641&fm=84823069352469&tin=02508201610067®Number=0000138879044617&sum=100051 [18:13:04]Connected sock=10 [18:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 36 07 01 D0 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2F 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 73 00 00 35 04 06 00 4D 25 68 EA E2 15 7C CD BE 6C 3A EF 8E 2D [18:13:04]written 0, free lines is 4095 [18:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 89 6D 47 00 BD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 73 00 00 F4 03 04 00 D0 18 1D 66 B6 04 01 00 00 6A 9E 1C 62 6E 1B 54 AE [18:13:04]CommunicateWithHost err = 0 [18:13:04]CheckOFDResponse [18:13:04]1017 (14) - 77093643461234 [18:13:04]1041 (16) - 0000000000963154 [18:13:04]1040 (4) - 29641 [18:13:04]1012 (4) - 15.04.2024 12:08 [18:13:04]1206 (1) - 0 [18:13:04]OFD Sender: Remove packet 29641 [18:13:04]ProducePacketName [18:13:04]name=ofd_packets/00029641 [18:13:04]NVStorageDeleteData [18:13:04]Write to MH i2c: 01 00 00 98 13 AB [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 07 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: 01 07 00 98 13 00 00 00 00 00 F1 0C AF [18:13:04]RasterBufferAndPrint [18:13:04]line [18:13:04]line [18:13:04]line [18:13:04]line [18:13:04]line [18:13:04]written 0, free lines is 3319 [18:13:04]MH_Cut [18:13:04]Write to MH i2c: D1 01 00 9F 13 01 84 [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: D1 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: D1 01 00 [18:13:04]MH_I2C_Read... [18:13:04]Read from MH i2c: D1 01 00 9F 13 00 83 [18:13:04]Write to MH i2c: 01 00 00 A0 13 B3 [18:13:04]Write i2c OK [18:13:04]MH_I2C_Read... [18:13:05]OFD Sender: No OFD packet to send [18:13:05]*** Cut start [18:13:05]*** Partial cut [18:13:05]*** CUTSNS_PIN = 1 [18:13:05]*** CUTSNS_PIN = 0 [18:13:05]*** Brake cut motor [18:13:06]Read from MH i2c: 01 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: 01 07 00 [18:13:06]MH_I2C_Read... [18:13:06]*** Stop cut motor [18:13:06]*** Cut end [18:13:06]Read from MH i2c: 01 07 00 A0 13 00 00 00 00 00 FF 0F C8 [18:13:06]process_action close_receipt done [18:13:06]requested_data is exist [18:13:06]produce_requested_data [18:13:06]requested_item fm.sn is exist - process it [18:13:06]wFMCommunicate request_size=4 [18:13:06]MH_SAM_APDU [18:13:06]CAPDU: 80 11 00 00 [18:13:06]Write to MH i2c: E2 08 00 A1 13 80 11 00 00 00 00 00 00 2E [18:13:06]Write i2c OK [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 [18:13:06]MH_I2C_Read... [18:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:06]Read from MH i2c: E2 17 00 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 17 00 A1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [18:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:13:06]wFMCommunicate OK [18:13:06]requested_item fd.num is exist - process it [18:13:06]SAM_PROTO_GetFieldsCounters [18:13:06]wFMCommunicate request_size=4 [18:13:06]MH_SAM_APDU [18:13:06]CAPDU: 80 13 00 00 [18:13:06]Write to MH i2c: E2 08 00 A2 13 80 13 00 00 00 00 00 00 31 [18:13:06]Write i2c OK [18:13:06]MH_I2C_Read... [18:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:06]Read from MH i2c: E2 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 62 00 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 62 00 A2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 73 00 00 0E 04 04 00 75 00 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 E1 [18:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 73 00 00 0E 04 04 00 75 00 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 [18:13:06]wFMCommunicate OK [18:13:06]SAM_PROTO_GetFieldsCounters done [18:13:06]requested_item shift.num is exist - process it [18:13:06]requested_item shift.opened is exist - process it [18:13:06]req_shift_opened [18:13:06]FM_GetShiftState [18:13:06]SAM_PROTO_GetShiftState [18:13:06]wFMCommunicate request_size=4 [18:13:06]MH_SAM_APDU [18:13:06]CAPDU: 80 13 01 00 [18:13:06]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [18:13:06]Write i2c OK [18:13:06]MH_I2C_Read... [18:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:06]Read from MH i2c: E2 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 0E 00 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 27 [18:13:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:13:06]wFMCommunicate OK [18:13:06]SAM_PROTO_GetShiftState done [18:13:06]FM_GetShiftState done [18:13:06]req_shift_opened done [18:13:06]requested_item shift.open_date is exist - process it [18:13:06]req_shift_open_date [18:13:06]req_shift_open_date done [18:13:06]produce_requested_data done [18:13:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29641,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:13:06]process_action_free close_receipt [18:13:06]json_value_free [18:13:06]json_value_free done [18:13:06]process_json_proto returns [18:13:06]Send response to host [18:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29641,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:13:06]free response buf [18:13:06]execute_script done [18:13:06]execute_script returns [18:13:06]free content buf [18:13:06]Sock 9.Close socket [18:13:06]Sock 9.Thread stoped [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:42]accept exits with 7 [18:15:42]New connection [18:15:42]New thread 3067108708 created [18:15:42]Thread 3066965348 joined [18:15:42]Waiting for new connection... [18:15:42] Sock 7.Parse request [18:15:42]Sock 7.Check first char [18:15:42]Sock 7.First char is OK [18:15:42]request: POST /json_proto HTTP/1.0 [18:15:42]Method: POST [18:15:42]URL: /json_proto [18:15:42]Method is POST - this is cgi request [18:15:42]url: /json_proto [18:15:42]query_string will be loaded in cgi processing [18:15:42]execute_cgi json_proto POST (null) [18:15:42]execute_cgi path=json_proto method=POST [18:15:42]POST find Content-Length [18:15:42]Host: 172.17.33.3:8080 [18:15:42]Content-Length: 670 [18:15:42]Content-Type: application/json [18:15:42] [18:15:42]POST finish read [18:15:42]Found Content-Length = 670 [18:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:15:42]execute_script... [18:15: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)348093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:15:42]POST & json_proto [18:15:42]process_json_proto [18:15:42]json parsed OK: [18:15:42]protocol is kg_v1.0 [18:15:42]action value=close_receipt [18:15:42]process_action close_receipt [18:15:42]cmd_close_receipt [18:15:42]MH_GetDate [18:15:42]Write to MH i2c: F0 00 00 A4 13 A6 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: F0 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: F0 09 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: F0 09 00 A4 13 00 D0 6E 1D 66 23 5B 8F 65 E2 [18:15:42]GetLastDocTimeStamp 1713204783 [18:15:42]current date 1713204944 [18:15:42]FM_GetShiftState [18:15:42]SAM_PROTO_GetShiftState [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 13 01 00 [18:15:42]Write to MH i2c: E2 08 00 A5 13 80 13 01 00 00 00 00 00 35 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0E 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0E 00 A5 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 29 [18:15:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_GetShiftState done [18:15:42]FM_GetShiftState done [18:15:42]opened in 1713140468 [18:15:42]opened+sec_in_day 1713226868 [18:15:42]quantity*price = 30004 [18:15:42]sum+1 = 30006 [18:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 236 15.04.2024 18:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29642 ФПД: 30956739745078 1/tax-web-control/client/api/v1/ticket?date=20240415T181544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29642&fm=30956739745078&tin=02508201610067®Number=0000138879044617&sum=30000 [18:15:43]StoreToDocumentArchive [18:15:43]shift 117 fd 29642 [18:15:43]save to /storage/0117/doc_00029642 [18:15:43]save last doc name /storage/0117/doc_00029642 to /storage/kkm_last_doc_name [18:15:43]save OK [18:15:43]Clear old archive folders... [18:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:15:43]tlvbuf is 01A9B500 [18:15:43]SAM_PROTO_ClearQueue [18:15:43]wFMCommunicate request_size=4 [18:15:43]MH_SAM_APDU [18:15:43]CAPDU: 80 09 00 00 [18:15:43]Write to MH i2c: E2 08 00 B2 13 80 09 00 00 00 00 00 00 37 [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:43]Read from MH i2c: E2 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: E2 03 00 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [18:15:43]RAPDU: 90 00 [18:15:43]wFMCommunicate OK [18:15:43]SAM_PROTO_ClearQueue done [18:15:43]KKMCreateOFDPacket [18:15:43]OFDProtocolAddRootSTLVToBuf [18:15:43]FM_MakeSignedData [18:15:43]FM_MakeSignedData [18:15:43]SAM_PROTO_SignData [18:15:43]wFMCommunicate request_size=4 [18:15:43]MH_SAM_APDU [18:15:43]CAPDU: 80 0D 01 02 [18:15:43]Write to MH i2c: E2 08 00 B3 13 80 0D 01 02 00 00 00 00 3F [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [18:15:44]RAPDU: 90 00 [18:15:44]wFMCommunicate OK [18:15:44]wFMCommunicate request_size=255 [18:15:44]MH_SAM_APDU [18:15: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 EC 00 00 00 F4 03 04 00 D0 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 73 00 00 35 04 06 00 [18:15:44]Write to MH i2c: E2 02 01 B4 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 EC 00 00 00 F4 03 04 00 D0 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 73 00 00 35 04 06 00 00 00 99 [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [18:15:44]RAPDU: 90 00 [18:15:44]wFMCommunicate OK [18:15:44]wFMCommunicate request_size=11 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 0D 02 02 06 1C 27 AD 79 D5 36 [18:15:44]Write to MH i2c: E2 0E 00 B5 13 80 0D 02 02 06 00 1C 27 AD 79 D5 36 00 00 C2 [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [18:15:44]RAPDU: 90 00 [18:15:44]wFMCommunicate OK [18:15:44]wFMCommunicate request_size=4 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 0D 03 02 [18:15:44]Write to MH i2c: E2 08 00 B6 13 80 0D 03 02 00 00 00 00 44 [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 0B 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 0B 00 B6 13 00 67 26 6D 84 40 3A 17 FC 90 00 50 [18:15:44]RAPDU: 67 26 6D 84 40 3A 17 FC 90 00 [18:15:44]wFMCommunicate OK [18:15:44]SAM_PROTO_SignData done [18:15:44]FM_MakeSignedData done [18:15:44]CreateOFDProtocolMessage [18:15:44]wFMCommunicate request_size=4 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 11 00 00 [18:15:44]Write to MH i2c: E2 08 00 B7 13 80 11 00 00 00 00 00 00 44 [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 17 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 17 00 B7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [18:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:15:44]wFMCommunicate OK [18:15:44]CreateOFDProtocolMessage done [18:15:44]OFDSenderStorePacket 29642 [18:15:44]StoreOFDPacket docnum=29642 [18:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5B F3 08 01 B8 58 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 EC 00 00 00 F4 03 04 00 D0 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 73 00 00 35 04 06 00 1C 27 AD 79 D5 36 67 26 6D 84 40 3A 17 FC [18:15:44]CheckFolder [18:15:44]dirname=/storage/ofd_packets [18:15:44]CheckFolder done [18:15:44]ProducePacketName [18:15:44]name=ofd_packets/00029642 [18:15:44]NVStorageSaveData ofd_packets/00029642 [18:15:44]File name is /storage/ofd_packets/00029642 [18:15:44]Write 302 bytes [18:15:44]NVStorageSaveData done [18:15:44]OFDSenderStorePacket done [18:15:44]KKMCreateOFDPacket done [18:15:44]NVStorageSaveData kkm_last_timestamp [18:15:44]File name is /storage/kkm_last_timestamp [18:15:44]Write 4 bytes [18:15:44]NVStorageSaveData done [18:15:44]ExternCall_PrintAddStr [18:15:44]wPrintStart [18:15:44]Write to MH i2c: 01 00 00 B8 13 CB [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: 01 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: 01 07 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: 01 07 00 B8 13 00 00 00 00 00 FF 0F E0 [18:15:44]RasterBufferAndPrint [18:15:44]line Счет N : (1)348093 [18:15:44]line ИНН: 02508201610067 [18:15:44]line Контрольно-Кассовый Чек [18:15:44]line ПРОДАЖА [18:15:44]line ТРК (МРК, ГНК) : 31 [18:15:44]line Товар: 2710124130 [18:15:44]line SUPER-92-К-5 [18:15:44]line 4.560 * 65.80 [18:15:44]line = 300.05 [18:15:44]line НДС 12% НСП 1% [18:15:44]line > о реализуемом товаре [18:15:44]line ОКРУГЛЕНИЕ: -0.05 [18:15:44]line ИТОГО: 300.00 [18:15:44]line Внесено: 300.00 [18:15:44]line СДАЧА: 0.00 [18:15:44]line НСП 1% : 2.65 [18:15:44]line НДС 12% : 31.86 [18:15:44]line Наличными: 300.00 [18:15:44]line Безнал.: 0.00 [18:15:44]line Место: АЗС № 108 "Партнер Нефть" [18:15:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:15:44]line СНО: Общий режим [18:15:44]line Чек 236 15.04.2024 18:15 [18:15:44]line Смена: 117 ФФД: 1.0 [18:15:44]line ЗНМ: 0300000027 [18:15:44]line РНМ: 0000138879044617 [18:15:44]line Версия ККМ: 001 [18:15:44]line ФМ: 0000000000963154 [18:15:44]line ФД: 29642 [18:15:44]line ФПД: 30956739745078 [18:15:44]line 1/tax-web-control/client/api/v1/ticket?date=20240415T181544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29642&fm=30956739745078&tin=02508201610067®Number=0000138879044617&sum=30000 [18:15:44]OFD Sender: Processing packet 29642 [packets to send 8, broken 7] [18:15:44]ProducePacketName [18:15:44]name=ofd_packets/00029642 [18:15:44]OFD Sender: To server: pG, [18:15:44]CommunicateWithHost lk.salyk.kg:30040 [18:15:44]ConnectInit lk.salyk.kg [18:15:44]written 0, free lines is 4095 [18:15:44]Connected sock=10 [18:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5B F3 08 01 B8 58 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 EC 00 00 00 F4 03 04 00 D0 6E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 73 00 00 35 04 06 00 1C 27 AD 79 D5 36 67 26 6D 84 40 3A 17 FC [18:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D C0 47 00 2F 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 73 00 00 F4 03 04 00 70 19 1D 66 B6 04 01 00 00 B9 7A 5D E7 A7 4C 51 79 [18:15:45]CommunicateWithHost err = 0 [18:15:45]CheckOFDResponse [18:15:45]1017 (14) - 77093643461234 [18:15:45]1041 (16) - 0000000000963154 [18:15:45]1040 (4) - 29642 [18:15:45]1012 (4) - 15.04.2024 12:11 [18:15:45]1206 (1) - 0 [18:15:45]OFD Sender: Remove packet 29642 [18:15:45]ProducePacketName [18:15:45]name=ofd_packets/00029642 [18:15:45]NVStorageDeleteData [18:15:45]Write to MH i2c: 01 00 00 E2 13 F5 [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: 01 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: 01 07 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 D3 0C DB [18:15:45]RasterBufferAndPrint [18:15:45]line [18:15:45]line [18:15:45]line [18:15:45]line [18:15:45]line [18:15:45]written 0, free lines is 3289 [18:15:45]MH_Cut [18:15:45]Write to MH i2c: D1 01 00 E9 13 01 CE [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: D1 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: D1 01 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: D1 01 00 E9 13 00 CD [18:15:45]Write to MH i2c: 01 00 00 EA 13 FD [18:15:45]Write i2c OK [18:15:45]MH_I2C_Read... [18:15:45]OFD Sender: No OFD packet to send [18:15:46]*** Cut start [18:15:46]*** Partial cut [18:15:46]*** CUTSNS_PIN = 1 [18:15:46]*** CUTSNS_PIN = 0 [18:15:46]*** Brake cut motor [18:15:46]Read from MH i2c: 01 [18:15:46]MH_I2C_Read... [18:15:46]*** Stop cut motor [18:15:46]*** Cut end [18:15:46]Read from MH i2c: 01 07 00 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [18:15:46]process_action close_receipt done [18:15:46]requested_data is exist [18:15:46]produce_requested_data [18:15:46]requested_item fm.sn is exist - process it [18:15:46]wFMCommunicate request_size=4 [18:15:46]MH_SAM_APDU [18:15:46]CAPDU: 80 11 00 00 [18:15:46]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [18:15:46]Write i2c OK [18:15:46]MH_I2C_Read... [18:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:46]Read from MH i2c: E2 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 17 00 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [18:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:15:46]wFMCommunicate OK [18:15:46]requested_item fd.num is exist - process it [18:15:46]SAM_PROTO_GetFieldsCounters [18:15:46]wFMCommunicate request_size=4 [18:15:46]MH_SAM_APDU [18:15:46]CAPDU: 80 13 00 00 [18:15:46]Write to MH i2c: E2 08 00 EC 13 80 13 00 00 00 00 00 00 7B [18:15:46]Write i2c OK [18:15:46]MH_I2C_Read... [18:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:46]Read from MH i2c: E2 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 62 00 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 62 00 EC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 73 00 00 0E 04 04 00 75 00 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 2F [18:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 73 00 00 0E 04 04 00 75 00 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 [18:15:46]wFMCommunicate OK [18:15:46]SAM_PROTO_GetFieldsCounters done [18:15:46]requested_item shift.num is exist - process it [18:15:46]requested_item shift.opened is exist - process it [18:15:46]req_shift_opened [18:15:46]FM_GetShiftState [18:15:46]SAM_PROTO_GetShiftState [18:15:46]wFMCommunicate request_size=4 [18:15:46]MH_SAM_APDU [18:15:46]CAPDU: 80 13 01 00 [18:15:46]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [18:15:46]Write i2c OK [18:15:46]MH_I2C_Read... [18:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:46]Read from MH i2c: E2 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 0E 00 [18:15:46]MH_I2C_Read... [18:15:46]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 71 [18:15:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:15:46]wFMCommunicate OK [18:15:46]SAM_PROTO_GetShiftState done [18:15:46]FM_GetShiftState done [18:15:46]req_shift_opened done [18:15:46]requested_item shift.open_date is exist - process it [18:15:46]req_shift_open_date [18:15:46]req_shift_open_date done [18:15:46]produce_requested_data done [18:15:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29642,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:15:46]process_action_free close_receipt [18:15:46]json_value_free [18:15:46]json_value_free done [18:15:46]process_json_proto returns [18:15:46]Send response to host [18:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29642,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:15:46]free response buf [18:15:46]execute_script done [18:15:46]execute_script returns [18:15:46]free content buf [18:15:46]Sock 7.Close socket [18:15:46]Sock 7.Thread stoped [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:17]accept exits with 9 [18:17:17]New connection [18:17:17]New thread 3066965348 created [18:17:17]Thread 3067108708 joined [18:17:17]Waiting for new connection... [18:17:17] Sock 9.Parse request [18:17:17]Sock 9.Check first char [18:17:17]Sock 9.First char is OK [18:17:17]request: POST /json_proto HTTP/1.0 [18:17:17]Method: POST [18:17:17]URL: /json_proto [18:17:17]Method is POST - this is cgi request [18:17:17]url: /json_proto [18:17:17]query_string will be loaded in cgi processing [18:17:17]execute_cgi json_proto POST (null) [18:17:17]execute_cgi path=json_proto method=POST [18:17:17]POST find Content-Length [18:17:17]Host: 172.17.33.3:8080 [18:17:17]Content-Length: 677 [18:17:17]Content-Type: application/json [18:17:17] [18:17:17]POST finish read [18:17:17]Found Content-Length = 677 [18:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:17]execute_script... [18:17: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)348095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:17]POST & json_proto [18:17:17]process_json_proto [18:17:17]json parsed OK: [18:17:17]protocol is kg_v1.0 [18:17:17]action value=close_receipt [18:17:17]process_action close_receipt [18:17:17]cmd_close_receipt [18:17:17]MH_GetDate [18:17:17]Write to MH i2c: F0 00 00 EE 13 F0 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: F0 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: F0 09 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: F0 09 00 EE 13 00 2E 6F 1D 66 23 5B 8F 65 8B [18:17:17]GetLastDocTimeStamp 1713204944 [18:17:17]current date 1713205038 [18:17:17]FM_GetShiftState [18:17:17]SAM_PROTO_GetShiftState [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 13 01 00 [18:17:17]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0E 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 73 [18:17:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:17:17]wFMCommunicate OK [18:17:17]SAM_PROTO_GetShiftState done [18:17:17]FM_GetShiftState done [18:17:17]opened in 1713140468 [18:17:17]opened+sec_in_day 1713226868 [18:17:17]quantity*price = 50025 [18:17:17]sum+1 = 50027 [18:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 237 15.04.2024 18:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29643 ФПД: 72756445762354 1/tax-web-control/client/api/v1/ticket?date=20240415T181718&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29643&fm=72756445762354&tin=02508201610067®Number=0000138879044617&sum=50000 [18:17:18]StoreToDocumentArchive [18:17:18]shift 117 fd 29643 [18:17:18]save to /storage/0117/doc_00029643 [18:17:18]save last doc name /storage/0117/doc_00029643 to /storage/kkm_last_doc_name [18:17:18]save OK [18:17:18]Clear old archive folders... [18:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:18]tlvbuf is 01A1B410 [18:17:18]SAM_PROTO_ClearQueue [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 09 00 00 [18:17:18]Write to MH i2c: E2 08 00 FC 13 80 09 00 00 00 00 00 00 81 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [18:17:18]RAPDU: 90 00 [18:17:18]wFMCommunicate OK [18:17:18]SAM_PROTO_ClearQueue done [18:17:18]KKMCreateOFDPacket [18:17:18]OFDProtocolAddRootSTLVToBuf [18:17:18]FM_MakeSignedData [18:17:18]FM_MakeSignedData [18:17:18]SAM_PROTO_SignData [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 0D 01 02 [18:17:18]Write to MH i2c: E2 08 00 FD 13 80 0D 01 02 00 00 00 00 89 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [18:17:18]RAPDU: 90 00 [18:17:18]wFMCommunicate OK [18:17:18]wFMCommunicate request_size=255 [18:17:18]MH_SAM_APDU [18:17: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2E 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 73 00 00 35 04 06 00 42 [18:17:18]Write to MH i2c: E2 02 01 FE 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2E 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 73 00 00 35 04 06 00 42 00 00 44 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [18:17:18]RAPDU: 90 00 [18:17:18]wFMCommunicate OK [18:17:18]wFMCommunicate request_size=10 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 0D 02 02 05 2B EE 1A D3 32 [18:17:18]Write to MH i2c: E2 0D 00 FF 13 80 0D 02 02 05 00 2B EE 1A D3 32 00 00 CE [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [18:17:18]RAPDU: 90 00 [18:17:18]wFMCommunicate OK [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 0D 03 02 [18:17:18]Write to MH i2c: E2 08 00 00 14 80 0D 03 02 00 00 00 00 8F [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 0B 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 0B 00 00 14 00 7C 10 B4 99 C0 DF ED 1B 90 00 10 [18:17:18]RAPDU: 7C 10 B4 99 C0 DF ED 1B 90 00 [18:17:18]wFMCommunicate OK [18:17:18]SAM_PROTO_SignData done [18:17:18]FM_MakeSignedData done [18:17:18]CreateOFDProtocolMessage [18:17:18]wFMCommunicate request_size=4 [18:17:18]MH_SAM_APDU [18:17:18]CAPDU: 80 11 00 00 [18:17:18]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:18]Read from MH i2c: E2 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 17 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [18:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:17:18]wFMCommunicate OK [18:17:18]CreateOFDProtocolMessage done [18:17:18]OFDSenderStorePacket 29643 [18:17:18]StoreOFDPacket docnum=29643 [18:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AD 43 07 01 72 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2E 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 73 00 00 35 04 06 00 42 2B EE 1A D3 32 7C 10 B4 99 C0 DF ED 1B [18:17:18]CheckFolder [18:17:18]dirname=/storage/ofd_packets [18:17:18]CheckFolder done [18:17:18]ProducePacketName [18:17:18]name=ofd_packets/00029643 [18:17:18]NVStorageSaveData ofd_packets/00029643 [18:17:18]File name is /storage/ofd_packets/00029643 [18:17:18]Write 301 bytes [18:17:18]NVStorageSaveData done [18:17:18]OFDSenderStorePacket done [18:17:18]KKMCreateOFDPacket done [18:17:18]NVStorageSaveData kkm_last_timestamp [18:17:18]File name is /storage/kkm_last_timestamp [18:17:18]Write 4 bytes [18:17:18]NVStorageSaveData done [18:17:18]ExternCall_PrintAddStr [18:17:18]wPrintStart [18:17:18]Write to MH i2c: 01 00 00 02 14 16 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [18:17:18]RasterBufferAndPrint [18:17:18]line Счет N : (1)348095 [18:17:18]line ИНН: 02508201610067 [18:17:18]line Контрольно-Кассовый Чек [18:17:18]line ПРОДАЖА [18:17:18]line ТРК (МРК, ГНК) : 42 [18:17:18]line Товар: 2710124130 [18:17:18]line Аи-92-К-5 [18:17:18]line 7.720 * 64.80 [18:17:18]line = 500.26 [18:17:18]line НДС 12% НСП 1% [18:17:18]line > о реализуемом товаре [18:17:18]line ОКРУГЛЕНИЕ: -0.26 [18:17:18]line ИТОГО: 500.00 [18:17:18]line Внесено: 500.00 [18:17:18]line СДАЧА: 0.00 [18:17:18]line НСП 1% : 4.43 [18:17:18]line НДС 12% : 53.12 [18:17:18]line Наличными: 500.00 [18:17:18]line Безнал.: 0.00 [18:17:18]line Место: АЗС № 108 "Партнер Нефть" [18:17:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:17:18]line СНО: Общий режим [18:17:18]line Чек 237 15.04.2024 18:17 [18:17:18]line Смена: 117 ФФД: 1.0 [18:17:18]line ЗНМ: 0300000027 [18:17:18]line РНМ: 0000138879044617 [18:17:18]line Версия ККМ: 001 [18:17:18]line ФМ: 0000000000963154 [18:17:18]line ФД: 29643 [18:17:18]line ФПД: 72756445762354 [18:17:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T181718&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29643&fm=72756445762354&tin=02508201610067®Number=0000138879044617&sum=50000 [18:17:19]OFD Sender: Processing packet 29643 [packets to send 8, broken 7] [18:17:19]ProducePacketName [18:17:19]name=ofd_packets/00029643 [18:17:19]OFD Sender: To server: pG, [18:17:19]CommunicateWithHost lk.salyk.kg:30040 [18:17:19]ConnectInit lk.salyk.kg [18:17:19]written 0, free lines is 4095 [18:17:19]Connected sock=10 [18:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AD 43 07 01 72 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2E 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 73 00 00 35 04 06 00 42 2B EE 1A D3 32 7C 10 B4 99 C0 DF ED 1B [18:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 92 98 47 00 30 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 39 36 33 31 35 34 10 04 04 00 CB 73 00 00 F4 03 04 00 CE 19 1D 66 B6 04 01 00 00 00 46 13 1B 21 53 05 71 [18:17:19]CommunicateWithHost err = 0 [18:17:19]CheckOFDResponse [18:17:19]1017 (14) - 77093643461234 [18:17:19]1041 (16) - 0000000000963154 [18:17:19]1040 (4) - 29643 [18:17:19]1012 (4) - 15.04.2024 12:13 [18:17:19]1206 (1) - 0 [18:17:19]OFD Sender: Remove packet 29643 [18:17:19]ProducePacketName [18:17:19]name=ofd_packets/00029643 [18:17:19]NVStorageDeleteData [18:17:19]Write to MH i2c: 01 00 00 2C 14 40 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: 01 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: 01 07 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 CA 0C 1D [18:17:19]RasterBufferAndPrint [18:17:19]line [18:17:19]line [18:17:19]line [18:17:19]line [18:17:19]line [18:17:19]written 0, free lines is 3280 [18:17:19]MH_Cut [18:17:19]Write to MH i2c: D1 01 00 33 14 01 19 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: D1 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: D1 01 00 [18:17:19]MH_I2C_Read... [18:17:19]Read from MH i2c: D1 01 00 33 14 00 18 [18:17:19]Write to MH i2c: 01 00 00 34 14 48 [18:17:19]Write i2c OK [18:17:19]MH_I2C_Read... [18:17:19]OFD Sender: No OFD packet to send [18:17:20]*** Cut start [18:17:20]*** Partial cut [18:17:20]*** CUTSNS_PIN = 1 [18:17:20]*** CUTSNS_PIN = 0 [18:17:20]*** Brake cut motor [18:17:20]Read from MH i2c: 01 [18:17:20]MH_I2C_Read... [18:17:20]*** Stop cut motor [18:17:20]*** Cut end [18:17:20]Read from MH i2c: 01 07 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 FF 0F 5D [18:17:20]process_action close_receipt done [18:17:20]requested_data is exist [18:17:20]produce_requested_data [18:17:20]requested_item fm.sn is exist - process it [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 11 00 00 [18:17:20]Write to MH i2c: E2 08 00 35 14 80 11 00 00 00 00 00 00 C3 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 35 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [18:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:17:21]wFMCommunicate OK [18:17:21]requested_item fd.num is exist - process it [18:17:21]SAM_PROTO_GetFieldsCounters [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 00 00 [18:17:21]Write to MH i2c: E2 08 00 36 14 80 13 00 00 00 00 00 00 C6 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 62 00 36 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 73 00 00 0E 04 04 00 75 00 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 7E [18:17:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 73 00 00 0E 04 04 00 75 00 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 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetFieldsCounters done [18:17:21]requested_item shift.num is exist - process it [18:17:21]requested_item shift.opened is exist - process it [18:17:21]req_shift_opened [18:17:21]FM_GetShiftState [18:17:21]SAM_PROTO_GetShiftState [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 13 01 00 [18:17:21]Write to MH i2c: E2 08 00 37 14 80 13 01 00 00 00 00 00 C8 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0E 00 37 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BC [18:17:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_GetShiftState done [18:17:21]FM_GetShiftState done [18:17:21]req_shift_opened done [18:17:21]requested_item shift.open_date is exist - process it [18:17:21]req_shift_open_date [18:17:21]req_shift_open_date done [18:17:21]produce_requested_data done [18:17:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29643,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:17:21]process_action_free close_receipt [18:17:21]json_value_free [18:17:21]json_value_free done [18:17:21]process_json_proto returns [18:17:21]Send response to host [18:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29643,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:17:21]free response buf [18:17:21]execute_script done [18:17:21]execute_script returns [18:17:21]free content buf [18:17:21]Sock 9.Close socket [18:17:21]Sock 9.Thread stoped [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:17]accept exits with 7 [18:19:17]New connection [18:19:17]New thread 3067108708 created [18:19:17]Thread 3066965348 joined [18:19:17]Waiting for new connection... [18:19:17] Sock 7.Parse request [18:19:17]Sock 7.Check first char [18:19:17]Sock 7.First char is OK [18:19:17]request: POST /json_proto HTTP/1.0 [18:19:17]Method: POST [18:19:17]URL: /json_proto [18:19:17]Method is POST - this is cgi request [18:19:17]url: /json_proto [18:19:17]query_string will be loaded in cgi processing [18:19:17]execute_cgi json_proto POST (null) [18:19:17]execute_cgi path=json_proto method=POST [18:19:17]POST find Content-Length [18:19:17]Host: 172.17.33.3:8080 [18:19:17]Content-Length: 808 [18:19:17]Content-Type: application/json [18:19:17] [18:19:17]POST finish read [18:19:17]Found Content-Length = 808 [18:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 41.660, "sum" : 2699.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2699.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:17]execute_script... [18:19: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)348096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 41.660, "sum" : 2699.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2699.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:17]POST & json_proto [18:19:17]process_json_proto [18:19:17]json parsed OK: [18:19:17]protocol is kg_v1.0 [18:19:17]action value=close_receipt [18:19:17]process_action close_receipt [18:19:17]cmd_close_receipt [18:19:17]MH_GetDate [18:19:17]Write to MH i2c: F0 00 00 38 14 3B [18:19:17]Write i2c OK [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: F0 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: F0 09 00 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: F0 09 00 38 14 00 A7 6F 1D 66 23 5B 8F 65 4F [18:19:17]GetLastDocTimeStamp 1713205038 [18:19:17]current date 1713205159 [18:19:17]FM_GetShiftState [18:19:17]SAM_PROTO_GetShiftState [18:19:17]wFMCommunicate request_size=4 [18:19:17]MH_SAM_APDU [18:19:17]CAPDU: 80 13 01 00 [18:19:17]Write to MH i2c: E2 08 00 39 14 80 13 01 00 00 00 00 00 CA [18:19:17]Write i2c OK [18:19:17]MH_I2C_Read... [18:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:17]Read from MH i2c: E2 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: E2 0E 00 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: E2 0E 00 39 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [18:19:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:19:17]wFMCommunicate OK [18:19:17]SAM_PROTO_GetShiftState done [18:19:17]FM_GetShiftState done [18:19:17]opened in 1713140468 [18:19:17]opened+sec_in_day 1713226868 [18:19:17]quantity*price = 269956 [18:19:17]sum+1 = 269958 [18:19:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2699.57 НСП 1% : 23.89 НДС 12% : 286.68 Наличными: 0.00 Безнал.: 2699.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 238 15.04.2024 18:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29644 ФПД: 275413437802909 1/tax-web-control/client/api/v1/ticket?date=20240415T181919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29644&fm=275413437802909&tin=02508201610067®Number=0000138879044617&sum=269957 [18:19:18]StoreToDocumentArchive [18:19:18]shift 117 fd 29644 [18:19:18]save to /storage/0117/doc_00029644 [18:19:18]save last doc name /storage/0117/doc_00029644 to /storage/kkm_last_doc_name [18:19:18]save OK [18:19:18]Clear old archive folders... [18:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:18]tlvbuf is 01A9B550 [18:19:18]SAM_PROTO_ClearQueue [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 09 00 00 [18:19:18]Write to MH i2c: E2 08 00 46 14 80 09 00 00 00 00 00 00 CC [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 03 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [18:19:18]RAPDU: 90 00 [18:19:18]wFMCommunicate OK [18:19:18]SAM_PROTO_ClearQueue done [18:19:18]KKMCreateOFDPacket [18:19:18]OFDProtocolAddRootSTLVToBuf [18:19:18]FM_MakeSignedData [18:19:18]FM_MakeSignedData [18:19:18]SAM_PROTO_SignData [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 0D 01 02 [18:19:18]Write to MH i2c: E2 08 00 47 14 80 0D 01 02 00 00 00 00 D4 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 03 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [18:19:18]RAPDU: 90 00 [18:19:18]wFMCommunicate OK [18:19:18]wFMCommunicate request_size=255 [18:19:18]MH_SAM_APDU [18:19: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 BC A2 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A7 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 73 00 00 35 04 06 00 FA [18:19:18]Write to MH i2c: E2 02 01 48 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 BC A2 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A7 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 73 00 00 35 04 06 00 FA 00 00 B5 [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=10 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 02 02 05 7C B0 20 69 9D [18:19:19]Write to MH i2c: E2 0D 00 49 14 80 0D 02 02 05 00 7C B0 20 69 9D 00 00 33 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 03 02 [18:19:19]Write to MH i2c: E2 08 00 4A 14 80 0D 03 02 00 00 00 00 D9 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 0B 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 0B 00 4A 14 00 B9 A2 63 9C 10 6A B7 28 90 00 8D [18:19:19]RAPDU: B9 A2 63 9C 10 6A B7 28 90 00 [18:19:19]wFMCommunicate OK [18:19:19]SAM_PROTO_SignData done [18:19:19]FM_MakeSignedData done [18:19:19]CreateOFDProtocolMessage [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 11 00 00 [18:19:19]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 17 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [18:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:19:19]wFMCommunicate OK [18:19:19]CreateOFDProtocolMessage done [18:19:19]OFDSenderStorePacket 29644 [18:19:19]StoreOFDPacket docnum=29644 [18:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C D5 07 01 1B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC A2 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A7 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 73 00 00 35 04 06 00 FA 7C B0 20 69 9D B9 A2 63 9C 10 6A B7 28 [18:19:19]CheckFolder [18:19:19]dirname=/storage/ofd_packets [18:19:19]CheckFolder done [18:19:19]ProducePacketName [18:19:19]name=ofd_packets/00029644 [18:19:19]NVStorageSaveData ofd_packets/00029644 [18:19:19]File name is /storage/ofd_packets/00029644 [18:19:19]Write 301 bytes [18:19:19]NVStorageSaveData done [18:19:19]OFDSenderStorePacket done [18:19:19]KKMCreateOFDPacket done [18:19:19]NVStorageSaveData kkm_last_timestamp [18:19:19]File name is /storage/kkm_last_timestamp [18:19:19]Write 4 bytes [18:19:19]NVStorageSaveData done [18:19:19]ExternCall_PrintAddStr [18:19:19]wPrintStart [18:19:19]Write to MH i2c: 01 00 00 4C 14 60 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 07 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 FF 0F 75 [18:19:19]RasterBufferAndPrint [18:19:19]line Счет N : (1)348096 [18:19:19]line ИНН: 02508201610067 [18:19:19]line Контрольно-Кассовый Чек [18:19:19]line ПРОДАЖА [18:19:19]line ТРК (МРК, ГНК) : 13 [18:19:19]line Товар: 2710124130 [18:19:19]line Аи-92-К-5 [18:19:19]line 41.660 * 64.80 [18:19:19]line = 2699.57 [18:19:19]line НДС 12% НСП 1% [18:19:19]line > о реализуемом товаре [18:19:19]line ИТОГО: 2699.57 [18:19:19]line НСП 1% : 23.89 [18:19:19]line НДС 12% : 286.68 [18:19:19]line Наличными: 0.00 [18:19:19]line Безнал.: 2699.57 [18:19:19]line Место: АЗС № 108 "Партнер Нефть" [18:19:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:19:19]line СНО: Общий режим [18:19:19]line Чек 238 15.04.2024 18:19 [18:19:19]line Смена: 117 ФФД: 1.0 [18:19:19]line ЗНМ: 0300000027 [18:19:19]line РНМ: 0000138879044617 [18:19:19]line Версия ККМ: 001 [18:19:19]line Платежная система: О! деньги [18:19:19]line ФМ: 0000000000963154 [18:19:19]line ФД: 29644 [18:19:19]line ФПД: 275413437802909 [18:19:19]line 1/tax-web-control/client/api/v1/ticket?date=20240415T181919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29644&fm=275413437802909&tin=02508201610067®Number=0000138879044617&sum=269957 [18:19:19]OFD Sender: Processing packet 29644 [packets to send 8, broken 7] [18:19:19]ProducePacketName [18:19:19]name=ofd_packets/00029644 [18:19:19]OFD Sender: To server: pG, [18:19:19]CommunicateWithHost lk.salyk.kg:30040 [18:19:19]ConnectInit lk.salyk.kg [18:19:19]written 0, free lines is 4095 [18:19:19]Connected sock=10 [18:19:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7C D5 07 01 1B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC A2 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A7 6F 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 73 00 00 35 04 06 00 FA 7C B0 20 69 9D B9 A2 63 9C 10 6A B7 28 [18:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 CA 47 00 AA 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 73 00 00 F4 03 04 00 47 1A 1D 66 B6 04 01 00 00 09 BB 5F 96 8A C7 5C A9 [18:19:19]CommunicateWithHost err = 0 [18:19:19]CheckOFDResponse [18:19:19]1017 (14) - 77093643461234 [18:19:19]1041 (16) - 0000000000963154 [18:19:19]1040 (4) - 29644 [18:19:19]1012 (4) - 15.04.2024 12:15 [18:19:19]1206 (1) - 0 [18:19:19]OFD Sender: Remove packet 29644 [18:19:19]ProducePacketName [18:19:19]name=ofd_packets/00029644 [18:19:19]NVStorageDeleteData [18:19:20]Write to MH i2c: 01 00 00 75 14 89 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 EF 0C 8B [18:19:20]RasterBufferAndPrint [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]line [18:19:20]written 0, free lines is 3317 [18:19:20]MH_Cut [18:19:20]Write to MH i2c: D1 01 00 7C 14 01 62 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 01 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: D1 01 00 7C 14 00 61 [18:19:20]Write to MH i2c: 01 00 00 7D 14 91 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]OFD Sender: No OFD packet to send [18:19:20]*** Cut start [18:19:20]*** Partial cut [18:19:20]*** CUTSNS_PIN = 1 [18:19:20]*** CUTSNS_PIN = 0 [18:19:21]*** Brake cut motor [18:19:21]Read from MH i2c: 01 [18:19:21]MH_I2C_Read... [18:19:21]*** Stop cut motor [18:19:21]*** Cut end [18:19:21]Read from MH i2c: 01 07 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [18:19:21]process_action close_receipt done [18:19:21]requested_data is exist [18:19:21]produce_requested_data [18:19:21]requested_item fm.sn is exist - process it [18:19:21]wFMCommunicate request_size=4 [18:19:21]MH_SAM_APDU [18:19:21]CAPDU: 80 11 00 00 [18:19:21]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:21]Read from MH i2c: E2 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 17 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 17 00 7E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [18:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:19:21]wFMCommunicate OK [18:19:21]requested_item fd.num is exist - process it [18:19:21]SAM_PROTO_GetFieldsCounters [18:19:21]wFMCommunicate request_size=4 [18:19:21]MH_SAM_APDU [18:19:21]CAPDU: 80 13 00 00 [18:19:21]Write to MH i2c: E2 08 00 7F 14 80 13 00 00 00 00 00 00 0F [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:21]Read from MH i2c: E2 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 62 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 62 00 7F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 73 00 00 0E 04 04 00 75 00 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 CB [18:19:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 73 00 00 0E 04 04 00 75 00 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 [18:19:21]wFMCommunicate OK [18:19:21]SAM_PROTO_GetFieldsCounters done [18:19:21]requested_item shift.num is exist - process it [18:19:21]requested_item shift.opened is exist - process it [18:19:21]req_shift_opened [18:19:21]FM_GetShiftState [18:19:21]SAM_PROTO_GetShiftState [18:19:21]wFMCommunicate request_size=4 [18:19:21]MH_SAM_APDU [18:19:21]CAPDU: 80 13 01 00 [18:19:21]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:21]Read from MH i2c: E2 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 0E 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 05 [18:19:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:19:21]wFMCommunicate OK [18:19:21]SAM_PROTO_GetShiftState done [18:19:21]FM_GetShiftState done [18:19:21]req_shift_opened done [18:19:21]requested_item shift.open_date is exist - process it [18:19:21]req_shift_open_date [18:19:21]req_shift_open_date done [18:19:21]produce_requested_data done [18:19:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29644,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:19:21]process_action_free close_receipt [18:19:21]json_value_free [18:19:21]json_value_free done [18:19:21]process_json_proto returns [18:19:21]Send response to host [18:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29644,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:19:21]free response buf [18:19:21]execute_script done [18:19:21]execute_script returns [18:19:21]free content buf [18:19:21]Sock 7.Close socket [18:19:21]Sock 7.Thread stoped [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:44]accept exits with 9 [18:32:44]New connection [18:32:44]New thread 3066965348 created [18:32:44]Thread 3067108708 joined [18:32:44]Waiting for new connection... [18:32:44] Sock 9.Parse request [18:32:44]Sock 9.Check first char [18:32:44]Sock 9.First char is OK [18:32:44]request: POST /json_proto HTTP/1.0 [18:32:44]Method: POST [18:32:44]URL: /json_proto [18:32:44]Method is POST - this is cgi request [18:32:44]url: /json_proto [18:32:44]query_string will be loaded in cgi processing [18:32:44]execute_cgi json_proto POST (null) [18:32:44]execute_cgi path=json_proto method=POST [18:32:44]POST find Content-Length [18:32:44]Host: 172.17.33.3:8080 [18:32:44]Content-Length: 671 [18:32:44]Content-Type: application/json [18:32:44] [18:32:44]POST finish read [18:32:44]Found Content-Length = 671 [18:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:32:44]execute_script... [18: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)348097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:32:44]POST & json_proto [18:32:44]process_json_proto [18:32:44]json parsed OK: [18:32:44]protocol is kg_v1.0 [18:32:44]action value=close_receipt [18:32:44]process_action close_receipt [18:32:44]cmd_close_receipt [18:32:44]MH_GetDate [18:32:44]Write to MH i2c: F0 00 00 81 14 84 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: F0 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: F0 09 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: F0 09 00 81 14 00 CD 72 1D 66 23 5B 8F 65 C1 [18:32:44]GetLastDocTimeStamp 1713205159 [18:32:44]current date 1713205965 [18:32:44]FM_GetShiftState [18:32:44]SAM_PROTO_GetShiftState [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 13 01 00 [18:32:44]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0E 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 07 [18:32:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_GetShiftState done [18:32:44]FM_GetShiftState done [18:32:44]opened in 1713140468 [18:32:44]opened+sec_in_day 1713226868 [18:32:44]quantity*price = 70011 [18:32:44]sum+1 = 70012 [18:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 239 15.04.2024 18:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29645 ФПД: 170084370888818 1/tax-web-control/client/api/v1/ticket?date=20240415T183245&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29645&fm=170084370888818&tin=02508201610067®Number=0000138879044617&sum=70000 [18:32:45]StoreToDocumentArchive [18:32:45]shift 117 fd 29645 [18:32:45]save to /storage/0117/doc_00029645 [18:32:45]save last doc name /storage/0117/doc_00029645 to /storage/kkm_last_doc_name [18:32:45]save OK [18:32:45]Clear old archive folders... [18:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:32:45]tlvbuf is 01A75FA0 [18:32:45]SAM_PROTO_ClearQueue [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 09 00 00 [18:32:45]Write to MH i2c: E2 08 00 8F 14 80 09 00 00 00 00 00 00 15 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]SAM_PROTO_ClearQueue done [18:32:45]KKMCreateOFDPacket [18:32:45]OFDProtocolAddRootSTLVToBuf [18:32:45]FM_MakeSignedData [18:32:45]FM_MakeSignedData [18:32:45]SAM_PROTO_SignData [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 01 02 [18:32:45]Write to MH i2c: E2 08 00 90 14 80 0D 01 02 00 00 00 00 1D [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=255 [18:32:45]MH_SAM_APDU [18: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 EF 00 00 00 F4 03 04 00 CD 72 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 73 00 00 35 04 06 00 [18:32:45]Write to MH i2c: E2 02 01 91 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 EF 00 00 00 F4 03 04 00 CD 72 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 73 00 00 35 04 06 00 00 00 01 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=11 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 02 02 06 9A B0 DA 82 38 72 [18:32:45]Write to MH i2c: E2 0E 00 92 14 80 0D 02 02 06 00 9A B0 DA 82 38 72 00 00 7C [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 03 02 [18:32:45]Write to MH i2c: E2 08 00 93 14 80 0D 03 02 00 00 00 00 22 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 93 14 00 30 BA B7 7B 4B 7C 7C FC 90 00 7E [18:32:45]RAPDU: 30 BA B7 7B 4B 7C 7C FC 90 00 [18:32:45]wFMCommunicate OK [18:32:45]SAM_PROTO_SignData done [18:32:45]FM_MakeSignedData done [18:32:45]CreateOFDProtocolMessage [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 11 00 00 [18:32:45]Write to MH i2c: E2 08 00 94 14 80 11 00 00 00 00 00 00 22 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 94 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [18:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:32:45]wFMCommunicate OK [18:32:45]CreateOFDProtocolMessage done [18:32:45]OFDSenderStorePacket 29645 [18:32:45]StoreOFDPacket docnum=29645 [18:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5A 10 08 01 6E FD 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 EF 00 00 00 F4 03 04 00 CD 72 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 73 00 00 35 04 06 00 9A B0 DA 82 38 72 30 BA B7 7B 4B 7C 7C FC [18:32:45]CheckFolder [18:32:45]dirname=/storage/ofd_packets [18:32:45]CheckFolder done [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00029645 [18:32:45]NVStorageSaveData ofd_packets/00029645 [18:32:45]File name is /storage/ofd_packets/00029645 [18:32:45]Write 302 bytes [18:32:45]NVStorageSaveData done [18:32:45]OFDSenderStorePacket done [18:32:45]KKMCreateOFDPacket done [18:32:45]NVStorageSaveData kkm_last_timestamp [18:32:45]File name is /storage/kkm_last_timestamp [18:32:45]Write 4 bytes [18:32:45]NVStorageSaveData done [18:32:45]ExternCall_PrintAddStr [18:32:45]wPrintStart [18:32:45]Write to MH i2c: 01 00 00 95 14 A9 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [18:32:45]RasterBufferAndPrint [18:32:45]line Счет N : (1)348097 [18:32:45]line ИНН: 02508201610067 [18:32:45]line Контрольно-Кассовый Чек [18:32:45]line ПРОДАЖА [18:32:45]line ТРК (МРК, ГНК) : 12 [18:32:45]line Товар: 2710124130 [18:32:45]line SUPER-92-К-5 [18:32:45]line 10.640 * 65.80 [18:32:45]line = 700.11 [18:32:45]line НДС 12% НСП 1% [18:32:45]line > о реализуемом товаре [18:32:45]line ОКРУГЛЕНИЕ: -0.11 [18:32:45]line ИТОГО: 700.00 [18:32:45]line Внесено: 700.00 [18:32:45]line СДАЧА: 0.00 [18:32:45]line НСП 1% : 6.20 [18:32:45]line НДС 12% : 74.35 [18:32:45]line Наличными: 700.00 [18:32:45]line Безнал.: 0.00 [18:32:45]line Место: АЗС № 108 "Партнер Нефть" [18:32:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:32:45]line СНО: Общий режим [18:32:45]line Чек 239 15.04.2024 18:32 [18:32:45]line Смена: 117 ФФД: 1.0 [18:32:45]line ЗНМ: 0300000027 [18:32:45]line РНМ: 0000138879044617 [18:32:45]line Версия ККМ: 001 [18:32:45]line ФМ: 0000000000963154 [18:32:45]line ФД: 29645 [18:32:45]line ФПД: 170084370888818 [18:32:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T183245&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29645&fm=170084370888818&tin=02508201610067®Number=0000138879044617&sum=70000 [18:32:46]OFD Sender: Processing packet 29645 [packets to send 8, broken 7] [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00029645 [18:32:46]OFD Sender: To server: pG, [18:32:46]CommunicateWithHost lk.salyk.kg:30040 [18:32:46]ConnectInit lk.salyk.kg [18:32:46]written 0, free lines is 4095 [18:32:46]Connected sock=10 [18:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 5A 10 08 01 6E FD 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 EF 00 00 00 F4 03 04 00 CD 72 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 73 00 00 35 04 06 00 9A B0 DA 82 38 72 30 BA B7 7B 4B 7C 7C FC [18:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 00 47 00 9A 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 39 36 33 31 35 34 10 04 04 00 CD 73 00 00 F4 03 04 00 6D 1D 1D 66 B6 04 01 00 00 2C BD 6C 83 16 8B 18 50 [18:32:46]CommunicateWithHost err = 0 [18:32:46]CheckOFDResponse [18:32:46]1017 (14) - 77093643461234 [18:32:46]1041 (16) - 0000000000963154 [18:32:46]1040 (4) - 29645 [18:32:46]1012 (4) - 15.04.2024 12:28 [18:32:46]1206 (1) - 0 [18:32:46]OFD Sender: Remove packet 29645 [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00029645 [18:32:46]NVStorageDeleteData [18:32:46]Write to MH i2c: 01 00 00 BF 14 D3 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 07 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 CE 0C B4 [18:32:46]RasterBufferAndPrint [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]written 0, free lines is 3286 [18:32:46]MH_Cut [18:32:46]Write to MH i2c: D1 01 00 C6 14 01 AC [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 01 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 01 00 C6 14 00 AB [18:32:46]Write to MH i2c: 01 00 00 C7 14 DB [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]OFD Sender: No OFD packet to send [18:32:47]*** Cut start [18:32:47]*** Partial cut [18:32:47]*** CUTSNS_PIN = 1 [18:32:47]*** CUTSNS_PIN = 0 [18:32:47]*** Brake cut motor [18:32:48]Read from MH i2c: 01 [18:32:48]MH_I2C_Read... [18:32:48]*** Stop cut motor [18:32:48]*** Cut end [18:32:48]Read from MH i2c: 01 07 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 FF 0F F0 [18:32:48]process_action close_receipt done [18:32:48]requested_data is exist [18:32:48]produce_requested_data [18:32:48]requested_item fm.sn is exist - process it [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 11 00 00 [18:32:48]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 17 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [18:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:32:48]wFMCommunicate OK [18:32:48]requested_item fd.num is exist - process it [18:32:48]SAM_PROTO_GetFieldsCounters [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 13 00 00 [18:32:48]Write to MH i2c: E2 08 00 C9 14 80 13 00 00 00 00 00 00 59 [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 62 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 62 00 C9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 73 00 00 0E 04 04 00 75 00 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 [18:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 73 00 00 0E 04 04 00 75 00 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 [18:32:48]wFMCommunicate OK [18:32:48]SAM_PROTO_GetFieldsCounters done [18:32:48]requested_item shift.num is exist - process it [18:32:48]requested_item shift.opened is exist - process it [18:32:48]req_shift_opened [18:32:48]FM_GetShiftState [18:32:48]SAM_PROTO_GetShiftState [18:32:48]wFMCommunicate request_size=4 [18:32:48]MH_SAM_APDU [18:32:48]CAPDU: 80 13 01 00 [18:32:48]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [18:32:48]Write i2c OK [18:32:48]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0E 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4F [18:32:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:32:48]wFMCommunicate OK [18:32:48]SAM_PROTO_GetShiftState done [18:32:48]FM_GetShiftState done [18:32:48]req_shift_opened done [18:32:48]requested_item shift.open_date is exist - process it [18:32:48]req_shift_open_date [18:32:48]req_shift_open_date done [18:32:48]produce_requested_data done [18:32:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29645,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:32:48]process_action_free close_receipt [18:32:48]json_value_free [18:32:48]json_value_free done [18:32:48]process_json_proto returns [18:32:48]Send response to host [18:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29645,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:32:48]free response buf [18:32:48]execute_script done [18:32:48]execute_script returns [18:32:48]free content buf [18:32:48]Sock 9.Close socket [18:32:48]Sock 9.Thread stoped [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]int [18:43:47]Write to MH i2c: 01 00 00 CB 14 DF [18:43:47]*** FLAG_PRN_KEY set [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 CB 14 00 08 00 00 00 FF 0F FC [18:43:47]state=0 [18:43:47]Key pressed [18:43:47]Feed [18:43:47]Write to MH i2c: D8 00 00 CC 14 B7 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: D8 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: D8 01 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: D8 01 00 CC 14 00 B8 [18:43:47]int [18:43:47]Write to MH i2c: 01 00 00 CD 14 E1 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 CD 14 00 48 00 00 00 3C 00 6C [18:43:47]state=2 [18:43:47]Key pressed [18:43:47]OFD Sender: No OFD packet to send [18:43:47]int [18:43:47]Write to MH i2c: 01 00 00 CE 14 E2 [18:43:47]*** FLAG_PRN_KEY reset [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: 01 07 00 CE 14 00 00 00 00 00 F7 0F EF [18:43:47]state=2 [18:43:47]Stop feed [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:31]accept exits with 7 [18:44:31]New connection [18:44:31]New thread 3067108708 created [18:44:31]Thread 3066965348 joined [18:44:31]Waiting for new connection... [18:44:31] Sock 7.Parse request [18:44:31]Sock 7.Check first char [18:44:31]Sock 7.First char is OK [18:44:31]request: POST /json_proto HTTP/1.0 [18:44:31]Method: POST [18:44:31]URL: /json_proto [18:44:31]Method is POST - this is cgi request [18:44:31]url: /json_proto [18:44:31]query_string will be loaded in cgi processing [18:44:31]execute_cgi json_proto POST (null) [18:44:31]execute_cgi path=json_proto method=POST [18:44:31]POST find Content-Length [18:44:31]Host: 172.17.33.3:8080 [18:44:31]Content-Length: 677 [18:44:31]Content-Type: application/json [18:44:31] [18:44:31]POST finish read [18:44:31]Found Content-Length = 677 [18:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:31]execute_script... [18:44:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:31]POST & json_proto [18:44:31]process_json_proto [18:44:31]json parsed OK: [18:44:31]protocol is kg_v1.0 [18:44:31]action value=close_receipt [18:44:31]process_action close_receipt [18:44:31]cmd_close_receipt [18:44:31]MH_GetDate [18:44:31]Write to MH i2c: F0 00 00 CF 14 D2 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: F0 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: F0 09 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: F0 09 00 CF 14 00 91 75 1D 66 23 5B 8F 65 D6 [18:44:31]GetLastDocTimeStamp 1713205965 [18:44:31]current date 1713206673 [18:44:31]FM_GetShiftState [18:44:31]SAM_PROTO_GetShiftState [18:44:31]wFMCommunicate request_size=4 [18:44:31]MH_SAM_APDU [18:44:31]CAPDU: 80 13 01 00 [18:44:31]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:31]Read from MH i2c: E2 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 0E 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 55 [18:44:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:44:31]wFMCommunicate OK [18:44:31]SAM_PROTO_GetShiftState done [18:44:31]FM_GetShiftState done [18:44:31]opened in 1713140468 [18:44:31]opened+sec_in_day 1713226868 [18:44:31]quantity*price = 50025 [18:44:31]sum+1 = 50027 [18:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 240 15.04.2024 18:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29646 ФПД: 31516594545732 1/tax-web-control/client/api/v1/ticket?date=20240415T184433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29646&fm=31516594545732&tin=02508201610067®Number=0000138879044617&sum=50000 [18:44:32]StoreToDocumentArchive [18:44:32]shift 117 fd 29646 [18:44:32]save to /storage/0117/doc_00029646 [18:44:32]save last doc name /storage/0117/doc_00029646 to /storage/kkm_last_doc_name [18:44:32]save OK [18:44:32]Clear old archive folders... [18:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:32]tlvbuf is 01A9B500 [18:44:32]SAM_PROTO_ClearQueue [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 09 00 00 [18:44:32]Write to MH i2c: E2 08 00 DD 14 80 09 00 00 00 00 00 00 63 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [18:44:32]RAPDU: 90 00 [18:44:32]wFMCommunicate OK [18:44:32]SAM_PROTO_ClearQueue done [18:44:32]KKMCreateOFDPacket [18:44:32]OFDProtocolAddRootSTLVToBuf [18:44:32]FM_MakeSignedData [18:44:32]FM_MakeSignedData [18:44:32]SAM_PROTO_SignData [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 0D 01 02 [18:44:32]Write to MH i2c: E2 08 00 DE 14 80 0D 01 02 00 00 00 00 6B [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [18:44:33]RAPDU: 90 00 [18:44:33]wFMCommunicate OK [18:44:33]wFMCommunicate request_size=255 [18:44:33]MH_SAM_APDU [18:44: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 75 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 73 00 00 35 04 06 00 1C [18:44:33]Write to MH i2c: E2 02 01 DF 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 75 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 73 00 00 35 04 06 00 1C 00 00 6F [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [18:44:33]RAPDU: 90 00 [18:44:33]wFMCommunicate OK [18:44:33]wFMCommunicate request_size=10 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 0D 02 02 05 AA 07 6C 24 44 [18:44:33]Write to MH i2c: E2 0D 00 E0 14 80 0D 02 02 05 00 AA 07 6C 24 44 00 00 FD [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [18:44:33]RAPDU: 90 00 [18:44:33]wFMCommunicate OK [18:44:33]wFMCommunicate request_size=4 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 0D 03 02 [18:44:33]Write to MH i2c: E2 08 00 E1 14 80 0D 03 02 00 00 00 00 70 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 0B 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 0B 00 E1 14 00 7F B8 69 A1 2A 11 F3 17 90 00 F7 [18:44:33]RAPDU: 7F B8 69 A1 2A 11 F3 17 90 00 [18:44:33]wFMCommunicate OK [18:44:33]SAM_PROTO_SignData done [18:44:33]FM_MakeSignedData done [18:44:33]CreateOFDProtocolMessage [18:44:33]wFMCommunicate request_size=4 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 11 00 00 [18:44:33]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 17 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [18:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:44:33]wFMCommunicate OK [18:44:33]CreateOFDProtocolMessage done [18:44:33]OFDSenderStorePacket 29646 [18:44:33]StoreOFDPacket docnum=29646 [18:44:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 16 07 01 76 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 75 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 73 00 00 35 04 06 00 1C AA 07 6C 24 44 7F B8 69 A1 2A 11 F3 17 [18:44:33]CheckFolder [18:44:33]dirname=/storage/ofd_packets [18:44:33]CheckFolder done [18:44:33]ProducePacketName [18:44:33]name=ofd_packets/00029646 [18:44:33]NVStorageSaveData ofd_packets/00029646 [18:44:33]File name is /storage/ofd_packets/00029646 [18:44:33]Write 301 bytes [18:44:33]NVStorageSaveData done [18:44:33]OFDSenderStorePacket done [18:44:33]KKMCreateOFDPacket done [18:44:33]NVStorageSaveData kkm_last_timestamp [18:44:33]File name is /storage/kkm_last_timestamp [18:44:33]Write 4 bytes [18:44:33]NVStorageSaveData done [18:44:33]ExternCall_PrintAddStr [18:44:33]wPrintStart [18:44:33]Write to MH i2c: 01 00 00 E3 14 F7 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 07 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 FF 0F 0C [18:44:33]RasterBufferAndPrint [18:44:33]line Счет N : (1)348099 [18:44:33]line ИНН: 02508201610067 [18:44:33]line Контрольно-Кассовый Чек [18:44:33]line ПРОДАЖА [18:44:33]line ТРК (МРК, ГНК) : 42 [18:44:33]line Товар: 2710124130 [18:44:33]line Аи-92-К-5 [18:44:33]line 7.720 * 64.80 [18:44:33]line = 500.26 [18:44:33]line НДС 12% НСП 1% [18:44:33]line > о реализуемом товаре [18:44:33]line ОКРУГЛЕНИЕ: -0.26 [18:44:33]line ИТОГО: 500.00 [18:44:33]line Внесено: 500.00 [18:44:33]line СДАЧА: 0.00 [18:44:33]line НСП 1% : 4.43 [18:44:33]line НДС 12% : 53.12 [18:44:33]line Наличными: 500.00 [18:44:33]line Безнал.: 0.00 [18:44:33]line Место: АЗС № 108 "Партнер Нефть" [18:44:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:44:33]line СНО: Общий режим [18:44:33]line Чек 240 15.04.2024 18:44 [18:44:33]line Смена: 117 ФФД: 1.0 [18:44:33]line ЗНМ: 0300000027 [18:44:33]line РНМ: 0000138879044617 [18:44:33]line Версия ККМ: 001 [18:44:33]line ФМ: 0000000000963154 [18:44:33]line ФД: 29646 [18:44:33]line ФПД: 31516594545732 [18:44:33]line 1/tax-web-control/client/api/v1/ticket?date=20240415T184433&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29646&fm=31516594545732&tin=02508201610067®Number=0000138879044617&sum=50000 [18:44:33]written 0, free lines is 4095 [18:44:33]OFD Sender: Processing packet 29646 [packets to send 8, broken 7] [18:44:33]ProducePacketName [18:44:33]name=ofd_packets/00029646 [18:44:33]OFD Sender: To server: pG, [18:44:33]CommunicateWithHost lk.salyk.kg:30040 [18:44:33]ConnectInit lk.salyk.kg [18:44:33]Connected sock=10 [18:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF 16 07 01 76 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 75 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 73 00 00 35 04 06 00 1C AA 07 6C 24 44 7F B8 69 A1 2A 11 F3 17 [18:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 A8 47 00 23 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 73 00 00 F4 03 04 00 31 20 1D 66 B6 04 01 00 00 ED 3F 27 DC 52 AD 88 45 [18:44:33]CommunicateWithHost err = 0 [18:44:33]CheckOFDResponse [18:44:33]1017 (14) - 77093643461234 [18:44:33]1041 (16) - 0000000000963154 [18:44:33]1040 (4) - 29646 [18:44:33]1012 (4) - 15.04.2024 12:40 [18:44:33]1206 (1) - 0 [18:44:33]OFD Sender: Remove packet 29646 [18:44:33]ProducePacketName [18:44:33]name=ofd_packets/00029646 [18:44:33]NVStorageDeleteData [18:44:33]Write to MH i2c: 01 00 00 0D 15 22 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 07 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 D3 0C 08 [18:44:33]RasterBufferAndPrint [18:44:33]line [18:44:33]line [18:44:33]line [18:44:33]line [18:44:33]line [18:44:33]written 0, free lines is 3289 [18:44:33]MH_Cut [18:44:33]Write to MH i2c: D1 01 00 14 15 01 FB [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: D1 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: D1 01 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: D1 01 00 14 15 00 FA [18:44:33]Write to MH i2c: 01 00 00 15 15 2A [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:34]OFD Sender: No OFD packet to send [18:44:34]*** Cut start [18:44:34]*** Partial cut [18:44:34]*** CUTSNS_PIN = 1 [18:44:34]*** CUTSNS_PIN = 0 [18:44:34]*** Brake cut motor [18:44:35]Read from MH i2c: 01 [18:44:35]MH_I2C_Read... [18:44:35]*** Stop cut motor [18:44:35]*** Cut end [18:44:35]Read from MH i2c: 01 07 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [18:44:35]process_action close_receipt done [18:44:35]requested_data is exist [18:44:35]produce_requested_data [18:44:35]requested_item fm.sn is exist - process it [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 11 00 00 [18:44:35]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 17 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [18:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:44:35]wFMCommunicate OK [18:44:35]requested_item fd.num is exist - process it [18:44:35]SAM_PROTO_GetFieldsCounters [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 13 00 00 [18:44:35]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 62 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 62 00 17 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 73 00 00 0E 04 04 00 75 00 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 6C [18:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 73 00 00 0E 04 04 00 75 00 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 [18:44:35]wFMCommunicate OK [18:44:35]SAM_PROTO_GetFieldsCounters done [18:44:35]requested_item shift.num is exist - process it [18:44:35]requested_item shift.opened is exist - process it [18:44:35]req_shift_opened [18:44:35]FM_GetShiftState [18:44:35]SAM_PROTO_GetShiftState [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 13 01 00 [18:44:35]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 0E 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9E [18:44:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:44:35]wFMCommunicate OK [18:44:35]SAM_PROTO_GetShiftState done [18:44:35]FM_GetShiftState done [18:44:35]req_shift_opened done [18:44:35]requested_item shift.open_date is exist - process it [18:44:35]req_shift_open_date [18:44:35]req_shift_open_date done [18:44:35]produce_requested_data done [18:44:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29646,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:44:35]process_action_free close_receipt [18:44:35]json_value_free [18:44:35]json_value_free done [18:44:35]process_json_proto returns [18:44:35]Send response to host [18:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29646,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:44:35]free response buf [18:44:35]execute_script done [18:44:35]execute_script returns [18:44:35]free content buf [18:44:35]Sock 7.Close socket [18:44:35]Sock 7.Thread stoped [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]accept exits with 9 [18:46:54]New connection [18:46:54]New thread 3066965348 created [18:46:54]Thread 3067108708 joined [18:46:54]Waiting for new connection... [18:46:54] Sock 9.Parse request [18:46:54]Sock 9.Check first char [18:46:54]Sock 9.First char is OK [18:46:54]request: POST /json_proto HTTP/1.0 [18:46:54]Method: POST [18:46:54]URL: /json_proto [18:46:54]Method is POST - this is cgi request [18:46:54]url: /json_proto [18:46:54]query_string will be loaded in cgi processing [18:46:54]execute_cgi json_proto POST (null) [18:46:54]execute_cgi path=json_proto method=POST [18:46:54]POST find Content-Length [18:46:54]Host: 172.17.33.3:8080 [18:46:54]Content-Length: 678 [18:46:54]Content-Type: application/json [18:46:54] [18:46:54]POST finish read [18:46:54]Found Content-Length = 678 [18:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [18:46:54]execute_script... [18:46: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)348100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [18:46:54]POST & json_proto [18:46:54]process_json_proto [18:46:54]json parsed OK: [18:46:54]protocol is kg_v1.0 [18:46:54]action value=close_receipt [18:46:54]process_action close_receipt [18:46:54]cmd_close_receipt [18:46:54]MH_GetDate [18:46:54]Write to MH i2c: F0 00 00 19 15 1D [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 19 15 00 1F 76 1D 66 23 5B 8F 65 B0 [18:46:54]GetLastDocTimeStamp 1713206673 [18:46:54]current date 1713206815 [18:46:54]FM_GetShiftState [18:46:54]SAM_PROTO_GetShiftState [18:46:54]wFMCommunicate request_size=4 [18:46:54]MH_SAM_APDU [18:46:54]CAPDU: 80 13 01 00 [18:46:54]Write to MH i2c: E2 08 00 1A 15 80 13 01 00 00 00 00 00 AC [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:54]Read from MH i2c: E2 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 1A 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A0 [18:46:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:46:54]wFMCommunicate OK [18:46:54]SAM_PROTO_GetShiftState done [18:46:54]FM_GetShiftState done [18:46:54]opened in 1713140468 [18:46:54]opened+sec_in_day 1713226868 [18:46:54]quantity*price = 65059 [18:46:54]sum+1 = 65060 [18:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 241 15.04.2024 18:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29647 ФПД: 28375874318339 1/tax-web-control/client/api/v1/ticket?date=20240415T184655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29647&fm=28375874318339&tin=02508201610067®Number=0000138879044617&sum=65000 [18:46:55]StoreToDocumentArchive [18:46:55]shift 117 fd 29647 [18:46:55]save to /storage/0117/doc_00029647 [18:46:55]save last doc name /storage/0117/doc_00029647 to /storage/kkm_last_doc_name [18:46:55]save OK [18:46:55]Clear old archive folders... [18:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:55]tlvbuf is B6EE7480 [18:46:55]SAM_PROTO_ClearQueue [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 09 00 00 [18:46:55]Write to MH i2c: E2 08 00 27 15 80 09 00 00 00 00 00 00 AE [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]SAM_PROTO_ClearQueue done [18:46:55]KKMCreateOFDPacket [18:46:55]OFDProtocolAddRootSTLVToBuf [18:46:55]FM_MakeSignedData [18:46:55]FM_MakeSignedData [18:46:55]SAM_PROTO_SignData [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 01 02 [18:46:55]Write to MH i2c: E2 08 00 28 15 80 0D 01 02 00 00 00 00 B6 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=255 [18:46:55]MH_SAM_APDU [18:46: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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 1F 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 73 00 00 35 04 06 00 19 [18:46:55]Write to MH i2c: E2 02 01 29 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 1F 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 73 00 00 35 04 06 00 19 00 00 C2 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=10 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 02 02 05 CE C5 E8 B0 03 [18:46:55]Write to MH i2c: E2 0D 00 2A 15 80 0D 02 02 05 00 CE C5 E8 B0 03 00 00 F1 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [18:46:55]RAPDU: 90 00 [18:46:55]wFMCommunicate OK [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 0D 03 02 [18:46:55]Write to MH i2c: E2 08 00 2B 15 80 0D 03 02 00 00 00 00 BB [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 0B 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 0B 00 2B 15 00 2B 65 34 90 CF 97 C4 84 90 00 BE [18:46:55]RAPDU: 2B 65 34 90 CF 97 C4 84 90 00 [18:46:55]wFMCommunicate OK [18:46:55]SAM_PROTO_SignData done [18:46:55]FM_MakeSignedData done [18:46:55]CreateOFDProtocolMessage [18:46:55]wFMCommunicate request_size=4 [18:46:55]MH_SAM_APDU [18:46:55]CAPDU: 80 11 00 00 [18:46:55]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:55]Read from MH i2c: E2 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 17 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [18:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:46:55]wFMCommunicate OK [18:46:55]CreateOFDProtocolMessage done [18:46:55]OFDSenderStorePacket 29647 [18:46:55]StoreOFDPacket docnum=29647 [18:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 32 07 01 59 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 1F 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 73 00 00 35 04 06 00 19 CE C5 E8 B0 03 2B 65 34 90 CF 97 C4 84 [18:46:55]CheckFolder [18:46:55]dirname=/storage/ofd_packets [18:46:55]CheckFolder done [18:46:55]ProducePacketName [18:46:55]name=ofd_packets/00029647 [18:46:55]NVStorageSaveData ofd_packets/00029647 [18:46:55]File name is /storage/ofd_packets/00029647 [18:46:55]Write 301 bytes [18:46:55]NVStorageSaveData done [18:46:55]OFDSenderStorePacket done [18:46:55]KKMCreateOFDPacket done [18:46:55]NVStorageSaveData kkm_last_timestamp [18:46:55]File name is /storage/kkm_last_timestamp [18:46:55]Write 4 bytes [18:46:55]NVStorageSaveData done [18:46:55]ExternCall_PrintAddStr [18:46:55]wPrintStart [18:46:55]Write to MH i2c: 01 00 00 2D 15 42 [18:46:55]Write i2c OK [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 07 00 [18:46:55]MH_I2C_Read... [18:46:55]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FF 0F 57 [18:46:55]RasterBufferAndPrint [18:46:55]line Счет N : (1)348100 [18:46:55]line ИНН: 02508201610067 [18:46:55]line Контрольно-Кассовый Чек [18:46:55]line ПРОДАЖА [18:46:55]line ТРК (МРК, ГНК) : 13 [18:46:55]line Товар: 2710124130 [18:46:55]line Аи-92-К-5 [18:46:55]line 10.040 * 64.80 [18:46:55]line = 650.59 [18:46:55]line НДС 12% НСП 1% [18:46:55]line > о реализуемом товаре [18:46:55]line ОКРУГЛЕНИЕ: -0.59 [18:46:55]line ИТОГО: 650.00 [18:46:55]line Внесено: 650.00 [18:46:55]line СДАЧА: 0.00 [18:46:55]line НСП 1% : 5.76 [18:46:55]line НДС 12% : 69.09 [18:46:55]line Наличными: 650.00 [18:46:55]line Безнал.: 0.00 [18:46:55]line Место: АЗС № 108 "Партнер Нефть" [18:46:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:46:55]line СНО: Общий режим [18:46:55]line Чек 241 15.04.2024 18:46 [18:46:55]line Смена: 117 ФФД: 1.0 [18:46:55]line ЗНМ: 0300000027 [18:46:55]line РНМ: 0000138879044617 [18:46:55]line Версия ККМ: 001 [18:46:55]line ФМ: 0000000000963154 [18:46:55]line ФД: 29647 [18:46:55]line ФПД: 28375874318339 [18:46:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T184655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29647&fm=28375874318339&tin=02508201610067®Number=0000138879044617&sum=65000 [18:46:56]OFD Sender: Processing packet 29647 [packets to send 8, broken 7] [18:46:56]ProducePacketName [18:46:56]name=ofd_packets/00029647 [18:46:56]OFD Sender: To server: pG, [18:46:56]CommunicateWithHost lk.salyk.kg:30040 [18:46:56]ConnectInit lk.salyk.kg [18:46:56]written 0, free lines is 4095 [18:46:56]Connected sock=10 [18:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 32 07 01 59 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 1F 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 73 00 00 35 04 06 00 19 CE C5 E8 B0 03 2B 65 34 90 CF 97 C4 84 [18:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 57 47 00 A8 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 73 00 00 F4 03 04 00 BF 20 1D 66 B6 04 01 00 00 35 62 2F 32 1A 52 6C 8C [18:46:56]CommunicateWithHost err = 0 [18:46:56]CheckOFDResponse [18:46:56]1017 (14) - 77093643461234 [18:46:56]1041 (16) - 0000000000963154 [18:46:56]1040 (4) - 29647 [18:46:56]1012 (4) - 15.04.2024 12:42 [18:46:56]1206 (1) - 0 [18:46:56]OFD Sender: Remove packet 29647 [18:46:56]ProducePacketName [18:46:56]name=ofd_packets/00029647 [18:46:56]NVStorageDeleteData [18:46:56]Write to MH i2c: 01 00 00 57 15 6C [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: 01 07 00 57 15 00 00 00 00 00 D1 0C 50 [18:46:56]RasterBufferAndPrint [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]line [18:46:56]written 0, free lines is 3287 [18:46:56]MH_Cut [18:46:56]Write to MH i2c: D1 01 00 5E 15 01 45 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: D1 01 00 5E 15 00 44 [18:46:56]Write to MH i2c: 01 00 00 5F 15 74 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]OFD Sender: No OFD packet to send [18:46:57]*** Cut start [18:46:57]*** Partial cut [18:46:57]*** CUTSNS_PIN = 1 [18:46:57]*** CUTSNS_PIN = 0 [18:46:57]*** Brake cut motor [18:46:58]Read from MH i2c: 01 [18:46:58]MH_I2C_Read... [18:46:58]*** Stop cut motor [18:46:58]*** Cut end [18:46:58]Read from MH i2c: 01 07 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [18:46:58]process_action close_receipt done [18:46:58]requested_data is exist [18:46:58]produce_requested_data [18:46:58]requested_item fm.sn is exist - process it [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 11 00 00 [18:46:58]Write to MH i2c: E2 08 00 60 15 80 11 00 00 00 00 00 00 EF [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 17 00 60 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [18:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:46:58]wFMCommunicate OK [18:46:58]requested_item fd.num is exist - process it [18:46:58]SAM_PROTO_GetFieldsCounters [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 13 00 00 [18:46:58]Write to MH i2c: E2 08 00 61 15 80 13 00 00 00 00 00 00 F2 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 62 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 62 00 61 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 73 00 00 0E 04 04 00 75 00 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 BA [18:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 73 00 00 0E 04 04 00 75 00 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 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_GetFieldsCounters done [18:46:58]requested_item shift.num is exist - process it [18:46:58]requested_item shift.opened is exist - process it [18:46:58]req_shift_opened [18:46:58]FM_GetShiftState [18:46:58]SAM_PROTO_GetShiftState [18:46:58]wFMCommunicate request_size=4 [18:46:58]MH_SAM_APDU [18:46:58]CAPDU: 80 13 01 00 [18:46:58]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [18:46:58]Write i2c OK [18:46:58]MH_I2C_Read... [18:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:58]Read from MH i2c: E2 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0E 00 [18:46:58]MH_I2C_Read... [18:46:58]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E8 [18:46:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:46:58]wFMCommunicate OK [18:46:58]SAM_PROTO_GetShiftState done [18:46:58]FM_GetShiftState done [18:46:58]req_shift_opened done [18:46:58]requested_item shift.open_date is exist - process it [18:46:58]req_shift_open_date [18:46:58]req_shift_open_date done [18:46:58]produce_requested_data done [18:46:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29647,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:46:58]process_action_free close_receipt [18:46:58]json_value_free [18:46:58]json_value_free done [18:46:58]process_json_proto returns [18:46:58]Send response to host [18:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29647,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:46:58]free response buf [18:46:58]execute_script done [18:46:58]execute_script returns [18:46:58]free content buf [18:46:58]Sock 9.Close socket [18:46:58]Sock 9.Thread stoped [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:49]accept exits with 7 [18:47:49]New connection [18:47:49]New thread 3067108708 created [18:47:49]Thread 3066965348 joined [18:47:49]Waiting for new connection... [18:47:49] Sock 7.Parse request [18:47:49]Sock 7.Check first char [18:47:49]Sock 7.First char is OK [18:47:49]request: POST /json_proto HTTP/1.0 [18:47:49]Method: POST [18:47:49]URL: /json_proto [18:47:49]Method is POST - this is cgi request [18:47:49]url: /json_proto [18:47:49]query_string will be loaded in cgi processing [18:47:49]execute_cgi json_proto POST (null) [18:47:49]execute_cgi path=json_proto method=POST [18:47:49]POST find Content-Length [18:47:49]Host: 172.17.33.3:8080 [18:47:49]Content-Length: 819 [18:47:49]Content-Type: application/json [18:47:49] [18:47:49]POST finish read [18:47:49]Found Content-Length = 819 [18:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:49]execute_script... [18:47:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:49]POST & json_proto [18:47:49]process_json_proto [18:47:49]json parsed OK: [18:47:49]protocol is kg_v1.0 [18:47:49]action value=close_receipt [18:47:49]process_action close_receipt [18:47:49]cmd_close_receipt [18:47:49]MH_GetDate [18:47:49]Write to MH i2c: F0 00 00 63 15 67 [18:47:49]Write i2c OK [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: F0 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: F0 09 00 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: F0 09 00 63 15 00 57 76 1D 66 23 5B 8F 65 32 [18:47:49]GetLastDocTimeStamp 1713206815 [18:47:49]current date 1713206871 [18:47:49]FM_GetShiftState [18:47:49]SAM_PROTO_GetShiftState [18:47:49]wFMCommunicate request_size=4 [18:47:49]MH_SAM_APDU [18:47:49]CAPDU: 80 13 01 00 [18:47:49]Write to MH i2c: E2 08 00 64 15 80 13 01 00 00 00 00 00 F6 [18:47:49]Write i2c OK [18:47:49]MH_I2C_Read... [18:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:50]Read from MH i2c: E2 [18:47:50]MH_I2C_Read... [18:47:50]Read from MH i2c: E2 0E 00 [18:47:50]MH_I2C_Read... [18:47:50]Read from MH i2c: E2 0E 00 64 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 EA [18:47:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:47:50]wFMCommunicate OK [18:47:50]SAM_PROTO_GetShiftState done [18:47:50]FM_GetShiftState done [18:47:50]opened in 1713140468 [18:47:50]opened+sec_in_day 1713226868 [18:47:50]quantity*price = 200037 [18:47:50]sum+1 = 200039 [18:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 242 15.04.2024 18:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29648 ФПД: 153908580447710 1/tax-web-control/client/api/v1/ticket?date=20240415T184751&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29648&fm=153908580447710&tin=02508201610067®Number=0000138879044617&sum=200038 [18:47:51]StoreToDocumentArchive [18:47:51]shift 117 fd 29648 [18:47:51]save to /storage/0117/doc_00029648 [18:47:51]save last doc name /storage/0117/doc_00029648 to /storage/kkm_last_doc_name [18:47:51]save OK [18:47:51]Clear old archive folders... [18:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:51]tlvbuf is 01A5BC70 [18:47:51]SAM_PROTO_ClearQueue [18:47:51]wFMCommunicate request_size=4 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 09 00 00 [18:47:51]Write to MH i2c: E2 08 00 71 15 80 09 00 00 00 00 00 00 F8 [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [18:47:51]RAPDU: 90 00 [18:47:51]wFMCommunicate OK [18:47:51]SAM_PROTO_ClearQueue done [18:47:51]KKMCreateOFDPacket [18:47:51]OFDProtocolAddRootSTLVToBuf [18:47:51]FM_MakeSignedData [18:47:51]FM_MakeSignedData [18:47:51]SAM_PROTO_SignData [18:47:51]wFMCommunicate request_size=4 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 0D 01 02 [18:47:51]Write to MH i2c: E2 08 00 72 15 80 0D 01 02 00 00 00 00 00 [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [18:47:51]RAPDU: 90 00 [18:47:51]wFMCommunicate OK [18:47:51]wFMCommunicate request_size=255 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 57 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 73 00 00 35 04 06 00 8B [18:47:51]Write to MH i2c: E2 02 01 73 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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 57 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 73 00 00 35 04 06 00 8B 00 00 C2 [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [18:47:51]RAPDU: 90 00 [18:47:51]wFMCommunicate OK [18:47:51]wFMCommunicate request_size=10 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 0D 02 02 05 FA A2 43 F5 DE [18:47:51]Write to MH i2c: E2 0D 00 74 15 80 0D 02 02 05 00 FA A2 43 F5 DE 00 00 BF [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [18:47:51]RAPDU: 90 00 [18:47:51]wFMCommunicate OK [18:47:51]wFMCommunicate request_size=4 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 0D 03 02 [18:47:51]Write to MH i2c: E2 08 00 75 15 80 0D 03 02 00 00 00 00 05 [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 0B 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 0B 00 75 15 00 D1 BA C0 60 7E 5C 87 EB 90 00 FD [18:47:51]RAPDU: D1 BA C0 60 7E 5C 87 EB 90 00 [18:47:51]wFMCommunicate OK [18:47:51]SAM_PROTO_SignData done [18:47:51]FM_MakeSignedData done [18:47:51]CreateOFDProtocolMessage [18:47:51]wFMCommunicate request_size=4 [18:47:51]MH_SAM_APDU [18:47:51]CAPDU: 80 11 00 00 [18:47:51]Write to MH i2c: E2 08 00 76 15 80 11 00 00 00 00 00 00 05 [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:51]Read from MH i2c: E2 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 17 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: E2 17 00 76 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [18:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:47:51]wFMCommunicate OK [18:47:51]CreateOFDProtocolMessage done [18:47:51]OFDSenderStorePacket 29648 [18:47:51]StoreOFDPacket docnum=29648 [18:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 37 02 07 01 AD 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 57 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 73 00 00 35 04 06 00 8B FA A2 43 F5 DE D1 BA C0 60 7E 5C 87 EB [18:47:51]CheckFolder [18:47:51]dirname=/storage/ofd_packets [18:47:51]CheckFolder done [18:47:51]ProducePacketName [18:47:51]name=ofd_packets/00029648 [18:47:51]NVStorageSaveData ofd_packets/00029648 [18:47:51]File name is /storage/ofd_packets/00029648 [18:47:51]Write 301 bytes [18:47:51]NVStorageSaveData done [18:47:51]OFDSenderStorePacket done [18:47:51]KKMCreateOFDPacket done [18:47:51]NVStorageSaveData kkm_last_timestamp [18:47:51]File name is /storage/kkm_last_timestamp [18:47:51]Write 4 bytes [18:47:51]NVStorageSaveData done [18:47:51]ExternCall_PrintAddStr [18:47:51]wPrintStart [18:47:51]Write to MH i2c: 01 00 00 77 15 8C [18:47:51]Write i2c OK [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: 01 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: 01 07 00 [18:47:51]MH_I2C_Read... [18:47:51]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 FF 0F A1 [18:47:51]RasterBufferAndPrint [18:47:51]line Счет N : (1)348101 [18:47:51]line ИНН: 02508201610067 [18:47:51]line Контрольно-Кассовый Чек [18:47:51]line ПРОДАЖА [18:47:51]line ТРК (МРК, ГНК) : 32 [18:47:51]line Товар: 2710124130 [18:47:51]line Аи-92-К-5 [18:47:51]line 30.870 * 64.80 [18:47:51]line = 2000.38 [18:47:51]line НДС 12% НСП 1% [18:47:51]line > о реализуемом товаре [18:47:51]line ИТОГО: 2000.38 [18:47:51]line НСП 1% : 17.70 [18:47:51]line НДС 12% : 212.43 [18:47:51]line Наличными: 0.00 [18:47:51]line Безнал.: 2000.38 [18:47:51]line Место: АЗС № 108 "Партнер Нефть" [18:47:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:47:51]line СНО: Общий режим [18:47:51]line Чек 242 15.04.2024 18:47 [18:47:51]line Смена: 117 ФФД: 1.0 [18:47:51]line ЗНМ: 0300000027 [18:47:51]line РНМ: 0000138879044617 [18:47:51]line Версия ККМ: 001 [18:47:51]line Платежная система: Бакай Банк [18:47:51]line ФМ: 0000000000963154 [18:47:51]line ФД: 29648 [18:47:51]line ФПД: 153908580447710 [18:47:51]line 1/tax-web-control/client/api/v1/ticket?date=20240415T184751&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29648&fm=153908580447710&tin=02508201610067®Number=0000138879044617&sum=200038 [18:47:51]OFD Sender: Processing packet 29648 [packets to send 8, broken 7] [18:47:51]ProducePacketName [18:47:51]name=ofd_packets/00029648 [18:47:51]OFD Sender: To server: pG, [18:47:51]CommunicateWithHost lk.salyk.kg:30040 [18:47:51]ConnectInit lk.salyk.kg [18:47:51]written 0, free lines is 4095 [18:47:52]Connected sock=10 [18:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 37 02 07 01 AD 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 57 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 73 00 00 35 04 06 00 8B FA A2 43 F5 DE D1 BA C0 60 7E 5C 87 EB [18:47:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 80 51 47 00 D2 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 39 36 33 31 35 34 10 04 04 00 D0 73 00 00 F4 03 04 00 F7 20 1D 66 B6 04 01 00 00 37 70 4B 88 94 9B 0B 2D [18:47:52]CommunicateWithHost err = 0 [18:47:52]CheckOFDResponse [18:47:52]1017 (14) - 77093643461234 [18:47:52]1041 (16) - 0000000000963154 [18:47:52]1040 (4) - 29648 [18:47:52]1012 (4) - 15.04.2024 12:43 [18:47:52]1206 (1) - 0 [18:47:52]OFD Sender: Remove packet 29648 [18:47:52]ProducePacketName [18:47:52]name=ofd_packets/00029648 [18:47:52]NVStorageDeleteData [18:47:52]Write to MH i2c: 01 00 00 A0 15 B5 [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 07 00 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 E8 0C B0 [18:47:52]RasterBufferAndPrint [18:47:52]line [18:47:52]line [18:47:52]line [18:47:52]line [18:47:52]line [18:47:52]written 0, free lines is 3310 [18:47:52]MH_Cut [18:47:52]Write to MH i2c: D1 01 00 A7 15 01 8E [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: D1 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: D1 01 00 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: D1 01 00 A7 15 00 8D [18:47:52]Write to MH i2c: 01 00 00 A8 15 BD [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]OFD Sender: No OFD packet to send [18:47:53]*** Cut start [18:47:53]*** Partial cut [18:47:53]*** CUTSNS_PIN = 1 [18:47:53]*** CUTSNS_PIN = 0 [18:47:53]*** Brake cut motor [18:47:53]Read from MH i2c: 01 [18:47:53]MH_I2C_Read... [18:47:53]*** Stop cut motor [18:47:53]*** Cut end [18:47:53]Read from MH i2c: 01 07 00 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [18:47:53]process_action close_receipt done [18:47:53]requested_data is exist [18:47:53]produce_requested_data [18:47:53]requested_item fm.sn is exist - process it [18:47:53]wFMCommunicate request_size=4 [18:47:53]MH_SAM_APDU [18:47:53]CAPDU: 80 11 00 00 [18:47:53]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [18:47:53]Write i2c OK [18:47:53]MH_I2C_Read... [18:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:53]Read from MH i2c: E2 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 17 00 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [18:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:47:53]wFMCommunicate OK [18:47:53]requested_item fd.num is exist - process it [18:47:53]SAM_PROTO_GetFieldsCounters [18:47:53]wFMCommunicate request_size=4 [18:47:53]MH_SAM_APDU [18:47:53]CAPDU: 80 13 00 00 [18:47:53]Write to MH i2c: E2 08 00 AA 15 80 13 00 00 00 00 00 00 3B [18:47:53]Write i2c OK [18:47:53]MH_I2C_Read... [18:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 62 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 62 00 AA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 73 00 00 0E 04 04 00 75 00 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 07 [18:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 73 00 00 0E 04 04 00 75 00 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 [18:47:54]wFMCommunicate OK [18:47:54]SAM_PROTO_GetFieldsCounters done [18:47:54]requested_item shift.num is exist - process it [18:47:54]requested_item shift.opened is exist - process it [18:47:54]req_shift_opened [18:47:54]FM_GetShiftState [18:47:54]SAM_PROTO_GetShiftState [18:47:54]wFMCommunicate request_size=4 [18:47:54]MH_SAM_APDU [18:47:54]CAPDU: 80 13 01 00 [18:47:54]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [18:47:54]Write i2c OK [18:47:54]MH_I2C_Read... [18:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 0E 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [18:47:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:47:54]wFMCommunicate OK [18:47:54]SAM_PROTO_GetShiftState done [18:47:54]FM_GetShiftState done [18:47:54]req_shift_opened done [18:47:54]requested_item shift.open_date is exist - process it [18:47:54]req_shift_open_date [18:47:54]req_shift_open_date done [18:47:54]produce_requested_data done [18:47:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29648,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:47:54]process_action_free close_receipt [18:47:54]json_value_free [18:47:54]json_value_free done [18:47:54]process_json_proto returns [18:47:54]Send response to host [18:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29648,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:47:54]free response buf [18:47:54]execute_script done [18:47:54]execute_script returns [18:47:54]free content buf [18:47:54]Sock 7.Close socket [18:47:54]Sock 7.Thread stoped [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:19]accept exits with 9 [18:48:19]New connection [18:48:19]New thread 3066965348 created [18:48:19]Thread 3067108708 joined [18:48:19]Waiting for new connection... [18:48:19] Sock 9.Parse request [18:48:19]Sock 9.Check first char [18:48:19]Sock 9.First char is OK [18:48:19]request: POST /json_proto HTTP/1.0 [18:48:19]Method: POST [18:48:19]URL: /json_proto [18:48:19]Method is POST - this is cgi request [18:48:19]url: /json_proto [18:48:19]query_string will be loaded in cgi processing [18:48:19]execute_cgi json_proto POST (null) [18:48:19]execute_cgi path=json_proto method=POST [18:48:19]POST find Content-Length [18:48:19]Host: 172.17.33.3:8080 [18:48:19]Content-Length: 675 [18:48:19]Content-Type: application/json [18:48:19] [18:48:19]POST finish read [18:48:19]Found Content-Length = 675 [18:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 17.030, "sum" : 1120.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:19]execute_script... [18:48: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)348103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 17.030, "sum" : 1120.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:19]POST & json_proto [18:48:19]process_json_proto [18:48:19]json parsed OK: [18:48:19]protocol is kg_v1.0 [18:48:19]action value=close_receipt [18:48:19]process_action close_receipt [18:48:19]cmd_close_receipt [18:48:19]MH_GetDate [18:48:19]Write to MH i2c: F0 00 00 AC 15 B0 [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: F0 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: F0 09 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: F0 09 00 AC 15 00 74 76 1D 66 23 5B 8F 65 98 [18:48:19]GetLastDocTimeStamp 1713206871 [18:48:19]current date 1713206900 [18:48:19]FM_GetShiftState [18:48:19]SAM_PROTO_GetShiftState [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 13 01 00 [18:48:19]Write to MH i2c: E2 08 00 AD 15 80 13 01 00 00 00 00 00 3F [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 AD 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [18:48:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:48:19]wFMCommunicate OK [18:48:19]SAM_PROTO_GetShiftState done [18:48:19]FM_GetShiftState done [18:48:19]opened in 1713140468 [18:48:19]opened+sec_in_day 1713226868 [18:48:19]quantity*price = 112057 [18:48:19]sum+1 = 112058 [18:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.92 НДС 12% : 119.00 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 243 15.04.2024 18:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29649 ФПД: 97981894940403 1/tax-web-control/client/api/v1/ticket?date=20240415T184820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29649&fm=97981894940403&tin=02508201610067®Number=0000138879044617&sum=112000 [18:48:20]StoreToDocumentArchive [18:48:20]shift 117 fd 29649 [18:48:20]save to /storage/0117/doc_00029649 [18:48:20]save last doc name /storage/0117/doc_00029649 to /storage/kkm_last_doc_name [18:48:20]save OK [18:48:20]Clear old archive folders... [18:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:48:20]tlvbuf is 01A5B900 [18:48:20]SAM_PROTO_ClearQueue [18:48:20]wFMCommunicate request_size=4 [18:48:20]MH_SAM_APDU [18:48:20]CAPDU: 80 09 00 00 [18:48:20]Write to MH i2c: E2 08 00 BA 15 80 09 00 00 00 00 00 00 41 [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [18:48:20]RAPDU: 90 00 [18:48:20]wFMCommunicate OK [18:48:20]SAM_PROTO_ClearQueue done [18:48:20]KKMCreateOFDPacket [18:48:20]OFDProtocolAddRootSTLVToBuf [18:48:20]FM_MakeSignedData [18:48:20]FM_MakeSignedData [18:48:20]SAM_PROTO_SignData [18:48:20]wFMCommunicate request_size=4 [18:48:20]MH_SAM_APDU [18:48:20]CAPDU: 80 0D 01 02 [18:48:20]Write to MH i2c: E2 08 00 BB 15 80 0D 01 02 00 00 00 00 49 [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [18:48:20]RAPDU: 90 00 [18:48:20]wFMCommunicate OK [18:48:20]wFMCommunicate request_size=255 [18:48:20]MH_SAM_APDU [18:48: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 42 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B9 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 2E 00 00 00 00 07 04 06 00 80 B5 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 74 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 73 00 00 35 04 06 00 [18:48:20]Write to MH i2c: E2 02 01 BC 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 42 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B9 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 2E 00 00 00 00 07 04 06 00 80 B5 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 74 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 73 00 00 35 04 06 00 00 00 30 [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [18:48:20]RAPDU: 90 00 [18:48:20]wFMCommunicate OK [18:48:20]wFMCommunicate request_size=11 [18:48:20]MH_SAM_APDU [18:48:20]CAPDU: 80 0D 02 02 06 59 1D 30 0A D6 F3 [18:48:20]Write to MH i2c: E2 0E 00 BD 15 80 0D 02 02 06 00 59 1D 30 0A D6 F3 00 00 D1 [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [18:48:20]RAPDU: 90 00 [18:48:20]wFMCommunicate OK [18:48:20]wFMCommunicate request_size=4 [18:48:20]MH_SAM_APDU [18:48:20]CAPDU: 80 0D 03 02 [18:48:20]Write to MH i2c: E2 08 00 BE 15 80 0D 03 02 00 00 00 00 4E [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 0B 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 0B 00 BE 15 00 44 FB 90 DB E9 99 59 C1 90 00 95 [18:48:20]RAPDU: 44 FB 90 DB E9 99 59 C1 90 00 [18:48:20]wFMCommunicate OK [18:48:20]SAM_PROTO_SignData done [18:48:20]FM_MakeSignedData done [18:48:20]CreateOFDProtocolMessage [18:48:20]wFMCommunicate request_size=4 [18:48:20]MH_SAM_APDU [18:48:20]CAPDU: 80 11 00 00 [18:48:20]Write to MH i2c: E2 08 00 BF 15 80 11 00 00 00 00 00 00 4E [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:20]Read from MH i2c: E2 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 17 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: E2 17 00 BF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [18:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:48:20]wFMCommunicate OK [18:48:20]CreateOFDProtocolMessage done [18:48:20]OFDSenderStorePacket 29649 [18:48:20]StoreOFDPacket docnum=29649 [18:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E2 1A 08 01 A5 87 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 42 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B9 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 2E 00 00 00 00 07 04 06 00 80 B5 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 74 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 73 00 00 35 04 06 00 59 1D 30 0A D6 F3 44 FB 90 DB E9 99 59 C1 [18:48:20]CheckFolder [18:48:20]dirname=/storage/ofd_packets [18:48:20]CheckFolder done [18:48:20]ProducePacketName [18:48:20]name=ofd_packets/00029649 [18:48:20]NVStorageSaveData ofd_packets/00029649 [18:48:20]File name is /storage/ofd_packets/00029649 [18:48:20]Write 302 bytes [18:48:20]NVStorageSaveData done [18:48:20]OFDSenderStorePacket done [18:48:20]KKMCreateOFDPacket done [18:48:20]NVStorageSaveData kkm_last_timestamp [18:48:20]File name is /storage/kkm_last_timestamp [18:48:20]Write 4 bytes [18:48:20]NVStorageSaveData done [18:48:20]ExternCall_PrintAddStr [18:48:20]wPrintStart [18:48:20]Write to MH i2c: 01 00 00 C0 15 D5 [18:48:20]Write i2c OK [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: 01 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: 01 07 00 [18:48:20]MH_I2C_Read... [18:48:20]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 FF 0F EA [18:48:20]RasterBufferAndPrint [18:48:20]line Счет N : (1)348103 [18:48:20]line ИНН: 02508201610067 [18:48:20]line Контрольно-Кассовый Чек [18:48:20]line ПРОДАЖА [18:48:20]line ТРК (МРК, ГНК) : 22 [18:48:20]line Товар: 2710124130 [18:48:20]line SUPER-92-К-5 [18:48:20]line 17.030 * 65.80 [18:48:20]line = 1120.57 [18:48:20]line НДС 12% НСП 1% [18:48:20]line > о реализуемом товаре [18:48:20]line ОКРУГЛЕНИЕ: -0.57 [18:48:20]line ИТОГО: 1120.00 [18:48:20]line Внесено: 1120.00 [18:48:20]line СДАЧА: 0.00 [18:48:20]line НСП 1% : 9.92 [18:48:20]line НДС 12% : 119.00 [18:48:20]line Наличными: 1120.00 [18:48:20]line Безнал.: 0.00 [18:48:20]line Место: АЗС № 108 "Партнер Нефть" [18:48:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:48:20]line СНО: Общий режим [18:48:20]line Чек 243 15.04.2024 18:48 [18:48:20]line Смена: 117 ФФД: 1.0 [18:48:20]line ЗНМ: 0300000027 [18:48:20]line РНМ: 0000138879044617 [18:48:20]line Версия ККМ: 001 [18:48:20]line ФМ: 0000000000963154 [18:48:20]line ФД: 29649 [18:48:20]line ФПД: 97981894940403 [18:48:20]line 1/tax-web-control/client/api/v1/ticket?date=20240415T184820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29649&fm=97981894940403&tin=02508201610067®Number=0000138879044617&sum=112000 [18:48:21]OFD Sender: Processing packet 29649 [packets to send 8, broken 7] [18:48:21]ProducePacketName [18:48:21]name=ofd_packets/00029649 [18:48:21]OFD Sender: To server: pG, [18:48:21]CommunicateWithHost lk.salyk.kg:30040 [18:48:21]ConnectInit lk.salyk.kg [18:48:21]written 0, free lines is 4095 [18:48:21]Connected sock=10 [18:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E2 1A 08 01 A5 87 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 42 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B9 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 2E 00 00 00 00 07 04 06 00 80 B5 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 74 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 73 00 00 35 04 06 00 59 1D 30 0A D6 F3 44 FB 90 DB E9 99 59 C1 [18:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 68 47 00 D4 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 73 00 00 F4 03 04 00 15 21 1D 66 B6 04 01 00 00 67 02 BF 41 E9 FF 45 DA [18:48:21]CommunicateWithHost err = 0 [18:48:21]CheckOFDResponse [18:48:21]1017 (14) - 77093643461234 [18:48:21]1041 (16) - 0000000000963154 [18:48:21]1040 (4) - 29649 [18:48:21]1012 (4) - 15.04.2024 12:44 [18:48:21]1206 (1) - 0 [18:48:21]OFD Sender: Remove packet 29649 [18:48:21]ProducePacketName [18:48:21]name=ofd_packets/00029649 [18:48:21]NVStorageDeleteData [18:48:21]Write to MH i2c: 01 00 00 EA 15 FF [18:48:21]Write i2c OK [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: 01 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: 01 07 00 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 D4 0C E6 [18:48:21]RasterBufferAndPrint [18:48:21]line [18:48:21]line [18:48:21]line [18:48:21]line [18:48:21]line [18:48:21]written 0, free lines is 3292 [18:48:21]MH_Cut [18:48:21]Write to MH i2c: D1 01 00 F1 15 01 D8 [18:48:21]Write i2c OK [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: D1 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: D1 01 00 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: D1 01 00 F1 15 00 D7 [18:48:21]Write to MH i2c: 01 00 00 F2 15 07 [18:48:21]Write i2c OK [18:48:21]MH_I2C_Read... [18:48:21]OFD Sender: No OFD packet to send [18:48:22]*** Cut start [18:48:22]*** Partial cut [18:48:22]*** CUTSNS_PIN = 1 [18:48:22]*** CUTSNS_PIN = 0 [18:48:22]*** Brake cut motor [18:48:23]Read from MH i2c: 01 [18:48:23]MH_I2C_Read... [18:48:23]*** Stop cut motor [18:48:23]*** Cut end [18:48:23]Read from MH i2c: 01 07 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [18:48:23]process_action close_receipt done [18:48:23]requested_data is exist [18:48:23]produce_requested_data [18:48:23]requested_item fm.sn is exist - process it [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 11 00 00 [18:48:23]Write to MH i2c: E2 08 00 F3 15 80 11 00 00 00 00 00 00 82 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 F3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [18:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:48:23]wFMCommunicate OK [18:48:23]requested_item fd.num is exist - process it [18:48:23]SAM_PROTO_GetFieldsCounters [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 13 00 00 [18:48:23]Write to MH i2c: E2 08 00 F4 15 80 13 00 00 00 00 00 00 85 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 62 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 62 00 F4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 73 00 00 0E 04 04 00 75 00 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 55 [18:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 73 00 00 0E 04 04 00 75 00 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 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_GetFieldsCounters done [18:48:23]requested_item shift.num is exist - process it [18:48:23]requested_item shift.opened is exist - process it [18:48:23]req_shift_opened [18:48:23]FM_GetShiftState [18:48:23]SAM_PROTO_GetShiftState [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 13 01 00 [18:48:23]Write to MH i2c: E2 08 00 F5 15 80 13 01 00 00 00 00 00 87 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0E 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0E 00 F5 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7B [18:48:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_GetShiftState done [18:48:23]FM_GetShiftState done [18:48:23]req_shift_opened done [18:48:23]requested_item shift.open_date is exist - process it [18:48:23]req_shift_open_date [18:48:23]req_shift_open_date done [18:48:23]produce_requested_data done [18:48:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29649,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:48:23]process_action_free close_receipt [18:48:23]json_value_free [18:48:23]json_value_free done [18:48:23]process_json_proto returns [18:48:23]Send response to host [18:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29649,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:48:23]free response buf [18:48:23]execute_script done [18:48:23]execute_script returns [18:48:23]free content buf [18:48:23]Sock 9.Close socket [18:48:23]Sock 9.Thread stoped [18:48:23]accept exits with 7 [18:48:23]New connection [18:48:23]New thread 3067108708 created [18:48:23]Thread 3066965348 joined [18:48:23]Waiting for new connection... [18:48:23] Sock 7.Parse request [18:48:23]Sock 7.Check first char [18:48:23]Sock 7.First char is OK [18:48:23]request: POST /json_proto HTTP/1.0 [18:48:23]Method: POST [18:48:23]URL: /json_proto [18:48:23]Method is POST - this is cgi request [18:48:23]url: /json_proto [18:48:23]query_string will be loaded in cgi processing [18:48:23]execute_cgi json_proto POST (null) [18:48:23]execute_cgi path=json_proto method=POST [18:48:23]POST find Content-Length [18:48:23]Host: 172.17.33.3:8080 [18:48:23]Content-Length: 677 [18:48:23]Content-Type: application/json [18:48:23] [18:48:23]POST finish read [18:48:23]Found Content-Length = 677 [18:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.170, "sum" : 270.22, "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:48:23]execute_script... [18:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.170, "sum" : 270.22, "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:48:23]POST & json_proto [18:48:23]process_json_proto [18:48:23]json parsed OK: [18:48:23]protocol is kg_v1.0 [18:48:23]action value=close_receipt [18:48:23]process_action close_receipt [18:48:23]cmd_close_receipt [18:48:23]MH_GetDate [18:48:23]Write to MH i2c: F0 00 00 F6 15 FA [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: F0 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: F0 09 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: F0 09 00 F6 15 00 79 76 1D 66 23 5B 8F 65 E7 [18:48:23]GetLastDocTimeStamp 1713206900 [18:48:23]current date 1713206905 [18:48:23]FM_GetShiftState [18:48:23]SAM_PROTO_GetShiftState [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 13 01 00 [18:48:23]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0E 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [18:48:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_GetShiftState done [18:48:23]FM_GetShiftState done [18:48:23]opened in 1713140468 [18:48:23]opened+sec_in_day 1713226868 [18:48:23]quantity*price = 27021 [18:48:23]sum+1 = 27023 [18:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 244 15.04.2024 18:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29650 ФПД: 266132715465830 1/tax-web-control/client/api/v1/ticket?date=20240415T184825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29650&fm=266132715465830&tin=02508201610067®Number=0000138879044617&sum=27000 [18:48:25]StoreToDocumentArchive [18:48:25]shift 117 fd 29650 [18:48:25]save to /storage/0117/doc_00029650 [18:48:25]save last doc name /storage/0117/doc_00029650 to /storage/kkm_last_doc_name [18:48:25]save OK [18:48:25]Clear old archive folders... [18:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:25]tlvbuf is 01A6AE20 [18:48:25]SAM_PROTO_ClearQueue [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 09 00 00 [18:48:25]Write to MH i2c: E2 08 00 04 16 80 09 00 00 00 00 00 00 8C [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [18:48:25]RAPDU: 90 00 [18:48:25]wFMCommunicate OK [18:48:25]SAM_PROTO_ClearQueue done [18:48:25]KKMCreateOFDPacket [18:48:25]OFDProtocolAddRootSTLVToBuf [18:48:25]FM_MakeSignedData [18:48:25]FM_MakeSignedData [18:48:25]SAM_PROTO_SignData [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 0D 01 02 [18:48:25]Write to MH i2c: E2 08 00 05 16 80 0D 01 02 00 00 00 00 94 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [18:48:25]RAPDU: 90 00 [18:48:25]wFMCommunicate OK [18:48:25]wFMCommunicate request_size=255 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 10 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8E 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 36 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 F4 00 00 00 F4 03 04 00 79 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 73 00 00 35 04 06 00 F2 [18:48:25]Write to MH i2c: E2 02 01 06 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 4A 10 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8E 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 36 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 F4 00 00 00 F4 03 04 00 79 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 73 00 00 35 04 06 00 F2 00 00 79 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [18:48:25]RAPDU: 90 00 [18:48:25]wFMCommunicate OK [18:48:25]wFMCommunicate request_size=10 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 0D 02 02 05 0B D9 F7 EC 66 [18:48:25]Write to MH i2c: E2 0D 00 07 16 80 0D 02 02 05 00 0B D9 F7 EC 66 00 00 CE [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [18:48:25]RAPDU: 90 00 [18:48:25]wFMCommunicate OK [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 0D 03 02 [18:48:25]Write to MH i2c: E2 08 00 08 16 80 0D 03 02 00 00 00 00 99 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 0B 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 0B 00 08 16 00 07 FA 8A 41 3E 79 06 52 90 00 75 [18:48:25]RAPDU: 07 FA 8A 41 3E 79 06 52 90 00 [18:48:25]wFMCommunicate OK [18:48:25]SAM_PROTO_SignData done [18:48:25]FM_MakeSignedData done [18:48:25]CreateOFDProtocolMessage [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 11 00 00 [18:48:25]Write to MH i2c: E2 08 00 09 16 80 11 00 00 00 00 00 00 99 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 17 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 17 00 09 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [18:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:48:25]wFMCommunicate OK [18:48:25]CreateOFDProtocolMessage done [18:48:25]OFDSenderStorePacket 29650 [18:48:25]StoreOFDPacket docnum=29650 [18:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B 81 07 01 AE 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 10 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8E 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 36 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 F4 00 00 00 F4 03 04 00 79 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 73 00 00 35 04 06 00 F2 0B D9 F7 EC 66 07 FA 8A 41 3E 79 06 52 [18:48:25]CheckFolder [18:48:25]dirname=/storage/ofd_packets [18:48:25]CheckFolder done [18:48:25]ProducePacketName [18:48:25]name=ofd_packets/00029650 [18:48:25]NVStorageSaveData ofd_packets/00029650 [18:48:25]File name is /storage/ofd_packets/00029650 [18:48:25]Write 301 bytes [18:48:25]NVStorageSaveData done [18:48:25]OFDSenderStorePacket done [18:48:25]KKMCreateOFDPacket done [18:48:25]NVStorageSaveData kkm_last_timestamp [18:48:25]File name is /storage/kkm_last_timestamp [18:48:25]Write 4 bytes [18:48:25]NVStorageSaveData done [18:48:25]ExternCall_PrintAddStr [18:48:25]wPrintStart [18:48:25]Write to MH i2c: 01 00 00 0A 16 20 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 FF 0F 35 [18:48:25]RasterBufferAndPrint [18:48:25]line Счет N : (1)348104 [18:48:25]line ИНН: 02508201610067 [18:48:25]line Контрольно-Кассовый Чек [18:48:25]line ПРОДАЖА [18:48:25]line ТРК (МРК, ГНК) : 13 [18:48:25]line Товар: 2710124130 [18:48:25]line Аи-92-К-5 [18:48:25]line 4.170 * 64.80 [18:48:25]line = 270.22 [18:48:25]line НДС 12% НСП 1% [18:48:25]line > о реализуемом товаре [18:48:25]line ОКРУГЛЕНИЕ: -0.22 [18:48:25]line ИТОГО: 270.00 [18:48:25]line Внесено: 270.00 [18:48:25]line СДАЧА: 0.00 [18:48:25]line НСП 1% : 2.39 [18:48:25]line НДС 12% : 28.70 [18:48:25]line Наличными: 270.00 [18:48:25]line Безнал.: 0.00 [18:48:25]line Место: АЗС № 108 "Партнер Нефть" [18:48:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:48:25]line СНО: Общий режим [18:48:25]line Чек 244 15.04.2024 18:48 [18:48:25]line Смена: 117 ФФД: 1.0 [18:48:25]line ЗНМ: 0300000027 [18:48:25]line РНМ: 0000138879044617 [18:48:25]line Версия ККМ: 001 [18:48:25]line ФМ: 0000000000963154 [18:48:25]line ФД: 29650 [18:48:25]line ФПД: 266132715465830 [18:48:25]line 1/tax-web-control/client/api/v1/ticket?date=20240415T184825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29650&fm=266132715465830&tin=02508201610067®Number=0000138879044617&sum=27000 [18:48:25]written 0, free lines is 4095 [18:48:25]OFD Sender: Processing packet 29650 [packets to send 8, broken 7] [18:48:25]ProducePacketName [18:48:25]name=ofd_packets/00029650 [18:48:25]OFD Sender: To server: pG, [18:48:25]CommunicateWithHost lk.salyk.kg:30040 [18:48:25]ConnectInit lk.salyk.kg [18:48:25]Connected sock=10 [18:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2B 81 07 01 AE 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 10 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8E 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 36 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 F4 00 00 00 F4 03 04 00 79 76 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 73 00 00 35 04 06 00 F2 0B D9 F7 EC 66 07 FA 8A 41 3E 79 06 52 [18:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 41 6F 47 00 39 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 73 00 00 F4 03 04 00 19 21 1D 66 B6 04 01 00 00 A8 DE C0 A6 60 10 F1 E7 [18:48:25]CommunicateWithHost err = 0 [18:48:25]CheckOFDResponse [18:48:25]1017 (14) - 77093643461234 [18:48:25]1041 (16) - 0000000000963154 [18:48:25]1040 (4) - 29650 [18:48:25]1012 (4) - 15.04.2024 12:44 [18:48:25]1206 (1) - 0 [18:48:25]OFD Sender: Remove packet 29650 [18:48:25]ProducePacketName [18:48:25]name=ofd_packets/00029650 [18:48:25]NVStorageDeleteData [18:48:26]Write to MH i2c: 01 00 00 34 16 4A [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: 01 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: 01 07 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 E6 0C 43 [18:48:26]RasterBufferAndPrint [18:48:26]line [18:48:26]line [18:48:26]line [18:48:26]line [18:48:26]line [18:48:26]written 0, free lines is 3315 [18:48:26]MH_Cut [18:48:26]Write to MH i2c: D1 01 00 3B 16 01 23 [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: D1 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: D1 01 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: D1 01 00 3B 16 00 22 [18:48:26]Write to MH i2c: 01 00 00 3C 16 52 [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]OFD Sender: No OFD packet to send [18:48:26]*** Cut start [18:48:26]*** Partial cut [18:48:26]*** CUTSNS_PIN = 1 [18:48:26]*** CUTSNS_PIN = 0 [18:48:27]*** Brake cut motor [18:48:27]Read from MH i2c: 01 [18:48:27]MH_I2C_Read... [18:48:27]*** Stop cut motor [18:48:27]*** Cut end [18:48:27]Read from MH i2c: 01 07 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [18:48:27]process_action close_receipt done [18:48:27]requested_data is exist [18:48:27]produce_requested_data [18:48:27]requested_item fm.sn is exist - process it [18:48:27]wFMCommunicate request_size=4 [18:48:27]MH_SAM_APDU [18:48:27]CAPDU: 80 11 00 00 [18:48:27]Write to MH i2c: E2 08 00 3D 16 80 11 00 00 00 00 00 00 CD [18:48:27]Write i2c OK [18:48:27]MH_I2C_Read... [18:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:27]Read from MH i2c: E2 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 17 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 17 00 3D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [18:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:48:27]wFMCommunicate OK [18:48:27]requested_item fd.num is exist - process it [18:48:27]SAM_PROTO_GetFieldsCounters [18:48:27]wFMCommunicate request_size=4 [18:48:27]MH_SAM_APDU [18:48:27]CAPDU: 80 13 00 00 [18:48:27]Write to MH i2c: E2 08 00 3E 16 80 13 00 00 00 00 00 00 D0 [18:48:27]Write i2c OK [18:48:27]MH_I2C_Read... [18:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:27]Read from MH i2c: E2 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 62 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 62 00 3E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 73 00 00 0E 04 04 00 75 00 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 A4 [18:48:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 73 00 00 0E 04 04 00 75 00 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 [18:48:27]wFMCommunicate OK [18:48:27]SAM_PROTO_GetFieldsCounters done [18:48:27]requested_item shift.num is exist - process it [18:48:27]requested_item shift.opened is exist - process it [18:48:27]req_shift_opened [18:48:27]FM_GetShiftState [18:48:27]SAM_PROTO_GetShiftState [18:48:27]wFMCommunicate request_size=4 [18:48:27]MH_SAM_APDU [18:48:27]CAPDU: 80 13 01 00 [18:48:27]Write to MH i2c: E2 08 00 3F 16 80 13 01 00 00 00 00 00 D2 [18:48:27]Write i2c OK [18:48:27]MH_I2C_Read... [18:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:27]Read from MH i2c: E2 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 0E 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 0E 00 3F 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [18:48:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:48:27]wFMCommunicate OK [18:48:27]SAM_PROTO_GetShiftState done [18:48:27]FM_GetShiftState done [18:48:27]req_shift_opened done [18:48:27]requested_item shift.open_date is exist - process it [18:48:27]req_shift_open_date [18:48:27]req_shift_open_date done [18:48:27]produce_requested_data done [18:48:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29650,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:48:27]process_action_free close_receipt [18:48:27]json_value_free [18:48:27]json_value_free done [18:48:27]process_json_proto returns [18:48:27]Send response to host [18:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29650,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:48:27]free response buf [18:48:27]execute_script done [18:48:27]execute_script returns [18:48:27]free content buf [18:48:27]Sock 7.Close socket [18:48:27]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:25]accept exits with 9 [18:53:25]New connection [18:53:25]New thread 3066965348 created [18:53:25]Thread 3067108708 joined [18:53:25]Waiting for new connection... [18:53:25] Sock 9.Parse request [18:53:25]Sock 9.Check first char [18:53:25]Sock 9.First char is OK [18:53:25]request: POST /json_proto HTTP/1.0 [18:53:25]Method: POST [18:53:25]URL: /json_proto [18:53:25]Method is POST - this is cgi request [18:53:25]url: /json_proto [18:53:25]query_string will be loaded in cgi processing [18:53:25]execute_cgi json_proto POST (null) [18:53:25]execute_cgi path=json_proto method=POST [18:53:25]POST find Content-Length [18:53:25]Host: 172.17.33.3:8080 [18:53:25]Content-Length: 677 [18:53:25]Content-Type: application/json [18:53:25] [18:53:25]POST finish read [18:53:25]Found Content-Length = 677 [18:53:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:25]execute_script... [18:53: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)348106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:25]POST & json_proto [18:53:25]process_json_proto [18:53:25]json parsed OK: [18:53:25]protocol is kg_v1.0 [18:53:25]action value=close_receipt [18:53:25]process_action close_receipt [18:53:25]cmd_close_receipt [18:53:25]MH_GetDate [18:53:25]Write to MH i2c: F0 00 00 40 16 45 [18:53:25]Write i2c OK [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 09 00 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: F0 09 00 40 16 00 A7 77 1D 66 23 5B 8F 65 61 [18:53:25]GetLastDocTimeStamp 1713206905 [18:53:25]current date 1713207207 [18:53:25]FM_GetShiftState [18:53:25]SAM_PROTO_GetShiftState [18:53:25]wFMCommunicate request_size=4 [18:53:25]MH_SAM_APDU [18:53:25]CAPDU: 80 13 01 00 [18:53:25]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [18:53:25]Write i2c OK [18:53:25]MH_I2C_Read... [18:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:25]Read from MH i2c: E2 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 [18:53:25]MH_I2C_Read... [18:53:25]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [18:53:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:53:25]wFMCommunicate OK [18:53:25]SAM_PROTO_GetShiftState done [18:53:25]FM_GetShiftState done [18:53:25]opened in 1713140468 [18:53:25]opened+sec_in_day 1713226868 [18:53:25]quantity*price = 50025 [18:53:25]sum+1 = 50027 [18:53:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 245 15.04.2024 18:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29651 ФПД: 216656159598432 1/tax-web-control/client/api/v1/ticket?date=20240415T185327&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29651&fm=216656159598432&tin=02508201610067®Number=0000138879044617&sum=50000 [18:53:26]StoreToDocumentArchive [18:53:26]shift 117 fd 29651 [18:53:26]save to /storage/0117/doc_00029651 [18:53:26]save last doc name /storage/0117/doc_00029651 to /storage/kkm_last_doc_name [18:53:26]save OK [18:53:26]Clear old archive folders... [18:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:26]tlvbuf is 01A250E0 [18:53:26]SAM_PROTO_ClearQueue [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 09 00 00 [18:53:26]Write to MH i2c: E2 08 00 4E 16 80 09 00 00 00 00 00 00 D6 [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]SAM_PROTO_ClearQueue done [18:53:26]KKMCreateOFDPacket [18:53:26]OFDProtocolAddRootSTLVToBuf [18:53:26]FM_MakeSignedData [18:53:26]FM_MakeSignedData [18:53:26]SAM_PROTO_SignData [18:53:26]wFMCommunicate request_size=4 [18:53:26]MH_SAM_APDU [18:53:26]CAPDU: 80 0D 01 02 [18:53:26]Write to MH i2c: E2 08 00 4F 16 80 0D 01 02 00 00 00 00 DE [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:26]Read from MH i2c: E2 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 [18:53:26]MH_I2C_Read... [18:53:26]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [18:53:26]RAPDU: 90 00 [18:53:26]wFMCommunicate OK [18:53:26]wFMCommunicate request_size=255 [18:53:26]MH_SAM_APDU [18:53: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 A7 77 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 73 00 00 35 04 06 00 C5 [18:53:26]Write to MH i2c: E2 02 01 50 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 A7 77 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 73 00 00 35 04 06 00 C5 00 00 AD [18:53:26]Write i2c OK [18:53:26]MH_I2C_Read... [18:53:26]OFD Sender: No OFD packet to send [18:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 03 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [18:53:27]RAPDU: 90 00 [18:53:27]wFMCommunicate OK [18:53:27]wFMCommunicate request_size=10 [18:53:27]MH_SAM_APDU [18:53:27]CAPDU: 80 0D 02 02 05 0C 31 6E 67 60 [18:53:27]Write to MH i2c: E2 0D 00 51 16 80 0D 02 02 05 00 0C 31 6E 67 60 00 00 5D [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 03 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [18:53:27]RAPDU: 90 00 [18:53:27]wFMCommunicate OK [18:53:27]wFMCommunicate request_size=4 [18:53:27]MH_SAM_APDU [18:53:27]CAPDU: 80 0D 03 02 [18:53:27]Write to MH i2c: E2 08 00 52 16 80 0D 03 02 00 00 00 00 E3 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 0B 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 0B 00 52 16 00 4F D1 87 63 BC CD 5E 24 90 00 F9 [18:53:27]RAPDU: 4F D1 87 63 BC CD 5E 24 90 00 [18:53:27]wFMCommunicate OK [18:53:27]SAM_PROTO_SignData done [18:53:27]FM_MakeSignedData done [18:53:27]CreateOFDProtocolMessage [18:53:27]wFMCommunicate request_size=4 [18:53:27]MH_SAM_APDU [18:53:27]CAPDU: 80 11 00 00 [18:53:27]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:27]Read from MH i2c: E2 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 17 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: E2 17 00 53 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [18:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:53:27]wFMCommunicate OK [18:53:27]CreateOFDProtocolMessage done [18:53:27]OFDSenderStorePacket 29651 [18:53:27]StoreOFDPacket docnum=29651 [18:53:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 29 07 01 33 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 A7 77 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 73 00 00 35 04 06 00 C5 0C 31 6E 67 60 4F D1 87 63 BC CD 5E 24 [18:53:27]CheckFolder [18:53:27]dirname=/storage/ofd_packets [18:53:27]CheckFolder done [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00029651 [18:53:27]NVStorageSaveData ofd_packets/00029651 [18:53:27]File name is /storage/ofd_packets/00029651 [18:53:27]Write 301 bytes [18:53:27]NVStorageSaveData done [18:53:27]OFDSenderStorePacket done [18:53:27]KKMCreateOFDPacket done [18:53:27]NVStorageSaveData kkm_last_timestamp [18:53:27]File name is /storage/kkm_last_timestamp [18:53:27]Write 4 bytes [18:53:27]NVStorageSaveData done [18:53:27]ExternCall_PrintAddStr [18:53:27]wPrintStart [18:53:27]Write to MH i2c: 01 00 00 54 16 6A [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 FF 0F 7F [18:53:27]RasterBufferAndPrint [18:53:27]line Счет N : (1)348106 [18:53:27]line ИНН: 02508201610067 [18:53:27]line Контрольно-Кассовый Чек [18:53:27]line ПРОДАЖА [18:53:27]line ТРК (МРК, ГНК) : 13 [18:53:27]line Товар: 2710124130 [18:53:27]line Аи-92-К-5 [18:53:27]line 7.720 * 64.80 [18:53:27]line = 500.26 [18:53:27]line НДС 12% НСП 1% [18:53:27]line > о реализуемом товаре [18:53:27]line ОКРУГЛЕНИЕ: -0.26 [18:53:27]line ИТОГО: 500.00 [18:53:27]line Внесено: 500.00 [18:53:27]line СДАЧА: 0.00 [18:53:27]line НСП 1% : 4.43 [18:53:27]line НДС 12% : 53.12 [18:53:27]line Наличными: 500.00 [18:53:27]line Безнал.: 0.00 [18:53:27]line Место: АЗС № 108 "Партнер Нефть" [18:53:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:53:27]line СНО: Общий режим [18:53:27]line Чек 245 15.04.2024 18:53 [18:53:27]line Смена: 117 ФФД: 1.0 [18:53:27]line ЗНМ: 0300000027 [18:53:27]line РНМ: 0000138879044617 [18:53:27]line Версия ККМ: 001 [18:53:27]line ФМ: 0000000000963154 [18:53:27]line ФД: 29651 [18:53:27]line ФПД: 216656159598432 [18:53:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T185327&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29651&fm=216656159598432&tin=02508201610067®Number=0000138879044617&sum=50000 [18:53:27]OFD Sender: Processing packet 29651 [packets to send 8, broken 7] [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00029651 [18:53:27]OFD Sender: To server: pG, [18:53:27]CommunicateWithHost lk.salyk.kg:30040 [18:53:27]ConnectInit lk.salyk.kg [18:53:27]written 0, free lines is 4095 [18:53:27]Connected sock=10 [18:53:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 45 29 07 01 33 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 A7 77 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 73 00 00 35 04 06 00 C5 0C 31 6E 67 60 4F D1 87 63 BC CD 5E 24 [18:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 1E 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 D3 73 00 00 F4 03 04 00 47 22 1D 66 B6 04 01 00 00 B3 7F 99 1F C2 D7 4D CF [18:53:27]CommunicateWithHost err = 0 [18:53:27]CheckOFDResponse [18:53:27]1017 (14) - 77093643461234 [18:53:27]1041 (16) - 0000000000963154 [18:53:27]1040 (4) - 29651 [18:53:27]1012 (4) - 15.04.2024 12:49 [18:53:27]1206 (1) - 0 [18:53:27]OFD Sender: Remove packet 29651 [18:53:27]ProducePacketName [18:53:27]name=ofd_packets/00029651 [18:53:27]NVStorageDeleteData [18:53:27]Write to MH i2c: 01 00 00 7E 16 94 [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 CB 0C 72 [18:53:27]RasterBufferAndPrint [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]line [18:53:27]written 0, free lines is 3281 [18:53:27]MH_Cut [18:53:27]Write to MH i2c: D1 01 00 85 16 01 6D [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 [18:53:27]MH_I2C_Read... [18:53:27]Read from MH i2c: D1 01 00 85 16 00 6C [18:53:27]Write to MH i2c: 01 00 00 86 16 9C [18:53:27]Write i2c OK [18:53:27]MH_I2C_Read... [18:53:28]OFD Sender: No OFD packet to send [18:53:28]*** Cut start [18:53:28]*** Partial cut [18:53:28]*** CUTSNS_PIN = 1 [18:53:28]*** CUTSNS_PIN = 0 [18:53:29]*** Brake cut motor [18:53:29]Read from MH i2c: 01 [18:53:29]MH_I2C_Read... [18:53:29]*** Stop cut motor [18:53:29]*** Cut end [18:53:29]Read from MH i2c: 01 07 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [18:53:29]process_action close_receipt done [18:53:29]requested_data is exist [18:53:29]produce_requested_data [18:53:29]requested_item fm.sn is exist - process it [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 11 00 00 [18:53:29]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 17 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [18:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:53:29]wFMCommunicate OK [18:53:29]requested_item fd.num is exist - process it [18:53:29]SAM_PROTO_GetFieldsCounters [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 13 00 00 [18:53:29]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 62 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 62 00 88 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 73 00 00 0E 04 04 00 75 00 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 F2 [18:53:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 73 00 00 0E 04 04 00 75 00 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 [18:53:29]wFMCommunicate OK [18:53:29]SAM_PROTO_GetFieldsCounters done [18:53:29]requested_item shift.num is exist - process it [18:53:29]requested_item shift.opened is exist - process it [18:53:29]req_shift_opened [18:53:29]FM_GetShiftState [18:53:29]SAM_PROTO_GetShiftState [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 13 01 00 [18:53:29]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 0E 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [18:53:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:53:29]wFMCommunicate OK [18:53:29]SAM_PROTO_GetShiftState done [18:53:29]FM_GetShiftState done [18:53:29]req_shift_opened done [18:53:29]requested_item shift.open_date is exist - process it [18:53:29]req_shift_open_date [18:53:29]req_shift_open_date done [18:53:29]produce_requested_data done [18:53:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29651,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:53:29]process_action_free close_receipt [18:53:29]json_value_free [18:53:29]json_value_free done [18:53:29]process_json_proto returns [18:53:29]Send response to host [18:53:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29651,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:53:29]free response buf [18:53:29]execute_script done [18:53:29]execute_script returns [18:53:29]free content buf [18:53:29]Sock 9.Close socket [18:53:29]Sock 9.Thread stoped [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:56]accept exits with 7 [18:54:56]New connection [18:54:56]New thread 3067108708 created [18:54:56]Thread 3066965348 joined [18:54:56]Waiting for new connection... [18:54:56] Sock 7.Parse request [18:54:56]Sock 7.Check first char [18:54:56]Sock 7.First char is OK [18:54:56]request: POST /json_proto HTTP/1.0 [18:54:56]Method: POST [18:54:56]URL: /json_proto [18:54:56]Method is POST - this is cgi request [18:54:56]url: /json_proto [18:54:56]query_string will be loaded in cgi processing [18:54:56]execute_cgi json_proto POST (null) [18:54:56]execute_cgi path=json_proto method=POST [18:54:56]POST find Content-Length [18:54:56]Host: 172.17.33.3:8080 [18:54:56]Content-Length: 1210 [18:54:56]Content-Type: application/json [18:54:56] [18:54:56]POST finish read [18:54:56]Found Content-Length = 1210 [18:54:56]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348107\u000A15.04.2024 18:36\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-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:56]execute_script... [18:54:56]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348107\u000A15.04.2024 18:36\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-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:56]POST & json_proto [18:54:56]process_json_proto [18:54:56]json parsed OK: [18:54:56]protocol is kg_v1.0 [18:54:56]action value=print_text [18:54:56]process_action print_text [18:54:56]cmd_print_text [18:54:56]ExternCall_PrintAddStr [18:54:56]wPrintStart [18:54:56]Write to MH i2c: 01 00 00 8A 16 A0 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 07 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 07 00 8A 16 00 00 00 00 00 FF 0F B5 [18:54:56]RasterBufferAndPrint [18:54:56]line *****ТОВАРНЫЙ ЧЕК***** [18:54:56]line АЗС 108 [18:54:56]line Партнер нефть [18:54:56]line 02508201610067 [18:54:56]line Кассир : Джумагулова Н. [18:54:56]line Счет N : (1)348107 [18:54:56]line 15.04.2024 18:36 [18:54:56]line ПРОДАЖА [18:54:56]line ТРК (МРК, ГНК): 51 [18:54:56]line Вид ГСМ : 2710194210 [18:54:56]line ДТ-К-5 [18:54:56]line 68.590 x 72.90 [18:54:56]line ИТОГ: 5000.21 [18:54:56]line Тип оплаты: Талоны: Топливная Карта [18:54:56]line 02136 [18:54:56]line ______________________ [18:54:56]line (подпись) [18:54:56]written 0, free lines is 4095 [18:54:57]Write to MH i2c: 01 00 00 9F 16 B5 [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: 01 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: 01 07 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 F5 0D BE [18:54:57]RasterBufferAndPrint [18:54:57]line [18:54:57]line [18:54:57]line [18:54:57]line [18:54:57]line [18:54:57]written 0, free lines is 3574 [18:54:57]MH_Cut [18:54:57]Write to MH i2c: D1 01 00 A6 16 01 8E [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: D1 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: D1 01 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: D1 01 00 A6 16 00 8D [18:54:57]Write to MH i2c: 01 00 00 A7 16 BD [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** Cut start [18:54:57]*** Partial cut [18:54:57]*** CUTSNS_PIN = 1 [18:54:57]*** CUTSNS_PIN = 0 [18:54:57]*** Brake cut motor [18:54:58]Read from MH i2c: 01 [18:54:58]MH_I2C_Read... [18:54:58]*** Stop cut motor [18:54:58]*** Cut end [18:54:58]Read from MH i2c: 01 07 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: 01 07 00 A7 16 00 00 00 00 00 FF 0F D2 [18:54:58]process_action print_text done [18:54:58]requested_data is exist [18:54:58]produce_requested_data [18:54:58]requested_item fm.sn is exist - process it [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 11 00 00 [18:54:58]Write to MH i2c: E2 08 00 A8 16 80 11 00 00 00 00 00 00 38 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 17 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 17 00 A8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [18:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:54:58]wFMCommunicate OK [18:54:58]requested_item fd.num is exist - process it [18:54:58]SAM_PROTO_GetFieldsCounters [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 13 00 00 [18:54:58]Write to MH i2c: E2 08 00 A9 16 80 13 00 00 00 00 00 00 3B [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]OFD Sender: No OFD packet to send [18:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 62 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 62 00 A9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 73 00 00 0E 04 04 00 75 00 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 13 [18:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 73 00 00 0E 04 04 00 75 00 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 [18:54:58]wFMCommunicate OK [18:54:58]SAM_PROTO_GetFieldsCounters done [18:54:58]requested_item shift.num is exist - process it [18:54:58]requested_item shift.opened is exist - process it [18:54:58]req_shift_opened [18:54:58]FM_GetShiftState [18:54:58]SAM_PROTO_GetShiftState [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 13 01 00 [18:54:58]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0E 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [18:54:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:54:58]wFMCommunicate OK [18:54:58]SAM_PROTO_GetShiftState done [18:54:58]FM_GetShiftState done [18:54:58]req_shift_opened done [18:54:58]requested_item shift.open_date is exist - process it [18:54:58]req_shift_open_date [18:54:58]req_shift_open_date done [18:54:58]produce_requested_data done [18:54:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29651,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:54:58]process_action_free print_text [18:54:58]json_value_free [18:54:58]json_value_free done [18:54:58]process_json_proto returns [18:54:58]Send response to host [18:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29651,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:54:58]free response buf [18:54:58]execute_script done [18:54:58]execute_script returns [18:54:58]free content buf [18:54:58]Sock 7.Close socket [18:54:58]Sock 7.Thread stoped [18:54:58]accept exits with 9 [18:54:58]New connection [18:54:58]New thread 3066965348 created [18:54:58]Thread 3067108708 joined [18:54:58]Waiting for new connection... [18:54:58] Sock 9.Parse request [18:54:58]Sock 9.Check first char [18:54:58]Sock 9.First char is OK [18:54:58]request: POST /json_proto HTTP/1.0 [18:54:58]Method: POST [18:54:58]URL: /json_proto [18:54:58]Method is POST - this is cgi request [18:54:58]url: /json_proto [18:54:58]query_string will be loaded in cgi processing [18:54:58]execute_cgi json_proto POST (null) [18:54:58]execute_cgi path=json_proto method=POST [18:54:58]POST find Content-Length [18:54:58]Host: 172.17.33.3:8080 [18:54:58]Content-Length: 679 [18:54:58]Content-Type: application/json [18:54:58] [18:54:58]POST finish read [18:54:58]Found Content-Length = 679 [18:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:58]execute_script... [18:54: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)348108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:58]POST & json_proto [18:54:58]process_json_proto [18:54:58]json parsed OK: [18:54:58]protocol is kg_v1.0 [18:54:58]action value=close_receipt [18:54:58]process_action close_receipt [18:54:58]cmd_close_receipt [18:54:58]MH_GetDate [18:54:58]Write to MH i2c: F0 00 00 AB 16 B0 [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: F0 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: F0 09 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: F0 09 00 AB 16 00 04 78 1D 66 23 5B 8F 65 2A [18:54:58]GetLastDocTimeStamp 1713207207 [18:54:58]current date 1713207300 [18:54:58]FM_GetShiftState [18:54:58]SAM_PROTO_GetShiftState [18:54:58]wFMCommunicate request_size=4 [18:54:58]MH_SAM_APDU [18:54:58]CAPDU: 80 13 01 00 [18:54:58]Write to MH i2c: E2 08 00 AC 16 80 13 01 00 00 00 00 00 3F [18:54:58]Write i2c OK [18:54:58]MH_I2C_Read... [18:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:58]Read from MH i2c: E2 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0E 00 [18:54:58]MH_I2C_Read... [18:54:58]Read from MH i2c: E2 0E 00 AC 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [18:54:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:54:58]wFMCommunicate OK [18:54:58]SAM_PROTO_GetShiftState done [18:54:58]FM_GetShiftState done [18:54:58]opened in 1713140468 [18:54:58]opened+sec_in_day 1713226868 [18:54:58]quantity*price = 500021 [18:54:58]sum+1 = 500022 [18:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 246 15.04.2024 18:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29652 ФПД: 45835740186727 1/tax-web-control/client/api/v1/ticket?date=20240415T185500&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29652&fm=45835740186727&tin=02508201610067®Number=0000138879044617&sum=500000 [18:55:00]StoreToDocumentArchive [18:55:00]shift 117 fd 29652 [18:55:00]save to /storage/0117/doc_00029652 [18:55:00]save last doc name /storage/0117/doc_00029652 to /storage/kkm_last_doc_name [18:55:00]save OK [18:55:00]Clear old archive folders... [18:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:00]tlvbuf is B6DCE300 [18:55:00]SAM_PROTO_ClearQueue [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 09 00 00 [18:55:00]Write to MH i2c: E2 08 00 B9 16 80 09 00 00 00 00 00 00 41 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]SAM_PROTO_ClearQueue done [18:55:00]KKMCreateOFDPacket [18:55:00]OFDProtocolAddRootSTLVToBuf [18:55:00]FM_MakeSignedData [18:55:00]FM_MakeSignedData [18:55:00]SAM_PROTO_SignData [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 01 02 [18:55:00]Write to MH i2c: E2 08 00 BA 16 80 0D 01 02 00 00 00 00 49 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=255 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 73 00 00 35 04 06 00 29 AF F7 03 [18:55:00]Write to MH i2c: E2 02 01 BB 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 73 00 00 35 04 06 00 29 AF F7 03 00 00 D8 [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=7 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 02 02 02 08 67 [18:55:00]Write to MH i2c: E2 0A 00 BC 16 80 0D 02 02 02 00 08 67 00 00 BF [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [18:55:00]RAPDU: 90 00 [18:55:00]wFMCommunicate OK [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 0D 03 02 [18:55:00]Write to MH i2c: E2 08 00 BD 16 80 0D 03 02 00 00 00 00 4E [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 0B 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 0B 00 BD 16 00 0E 8E 83 6B 83 DA EB 91 90 00 B2 [18:55:00]RAPDU: 0E 8E 83 6B 83 DA EB 91 90 00 [18:55:00]wFMCommunicate OK [18:55:00]SAM_PROTO_SignData done [18:55:00]FM_MakeSignedData done [18:55:00]CreateOFDProtocolMessage [18:55:00]wFMCommunicate request_size=4 [18:55:00]MH_SAM_APDU [18:55:00]CAPDU: 80 11 00 00 [18:55:00]Write to MH i2c: E2 08 00 BE 16 80 11 00 00 00 00 00 00 4E [18:55:00]Write i2c OK [18:55:00]MH_I2C_Read... [18:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:00]Read from MH i2c: E2 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 17 00 [18:55:00]MH_I2C_Read... [18:55:00]Read from MH i2c: E2 17 00 BE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [18:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:00]wFMCommunicate OK [18:55:00]CreateOFDProtocolMessage done [18:55:00]OFDSenderStorePacket 29652 [18:55:00]StoreOFDPacket docnum=29652 [18:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 AD 04 01 98 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 73 00 00 35 04 06 00 29 AF F7 03 08 67 0E 8E 83 6B 83 DA EB 91 [18:55:00]CheckFolder [18:55:00]dirname=/storage/ofd_packets [18:55:00]CheckFolder done [18:55:00]ProducePacketName [18:55:00]name=ofd_packets/00029652 [18:55:00]NVStorageSaveData ofd_packets/00029652 [18:55:00]File name is /storage/ofd_packets/00029652 [18:55:00]Write 298 bytes [18:55:00]NVStorageSaveData done [18:55:00]OFDSenderStorePacket done [18:55:00]KKMCreateOFDPacket done [18:55:00]NVStorageSaveData kkm_last_timestamp [18:55:00]File name is /storage/kkm_last_timestamp [18:55:00]Write 4 bytes [18:55:01]NVStorageSaveData done [18:55:01]ExternCall_PrintAddStr [18:55:01]wPrintStart [18:55:01]Write to MH i2c: 01 00 00 BF 16 D5 [18:55:01]OFD Sender: Processing packet 29652 [packets to send 8, broken 7] [18:55:01]ProducePacketName [18:55:01]name=ofd_packets/00029652 [18:55:01]OFD Sender: To server: pG, [18:55:01]CommunicateWithHost lk.salyk.kg:30040 [18:55:01]ConnectInit lk.salyk.kg [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 FF 0F EA [18:55:01]RasterBufferAndPrint [18:55:01]line Счет N : (1)348108 [18:55:01]line ИНН: 02508201610067 [18:55:01]line Контрольно-Кассовый Чек [18:55:01]line ПРОДАЖА [18:55:01]line ТРК (МРК, ГНК) : 61 [18:55:01]line Товар: 2710194210 [18:55:01]line ДТ-К-5 [18:55:01]line 68.590 * 72.90 [18:55:01]line = 5000.21 [18:55:01]line НДС 12% НСП 1% [18:55:01]line > о реализуемом товаре [18:55:01]line ОКРУГЛЕНИЕ: -0.21 [18:55:01]line ИТОГО: 5000.00 [18:55:01]line Внесено: 5000.00 [18:55:01]line СДАЧА: 0.00 [18:55:01]line НСП 1% : 44.25 [18:55:01]line НДС 12% : 531.00 [18:55:01]line Наличными: 5000.00 [18:55:01]line Безнал.: 0.00 [18:55:01]line Место: АЗС № 108 "Партнер Нефть" [18:55:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:55:01]line СНО: Общий режим [18:55:01]line Чек 246 15.04.2024 18:55 [18:55:01]line Смена: 117 ФФД: 1.0 [18:55:01]line ЗНМ: 0300000027 [18:55:01]line РНМ: 0000138879044617 [18:55:01]line Версия ККМ: 001 [18:55:01]line ФМ: 0000000000963154 [18:55:01]line ФД: 29652 [18:55:01]line ФПД: 45835740186727 [18:55:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T185500&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29652&fm=45835740186727&tin=02508201610067®Number=0000138879044617&sum=500000 [18:55:01]written 0, free lines is 4095 [18:55:01]Connected sock=10 [18:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 29 AD 04 01 98 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 04 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 73 00 00 35 04 06 00 29 AF F7 03 08 67 0E 8E 83 6B 83 DA EB 91 [18:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 66 47 00 5D 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 39 36 33 31 35 34 10 04 04 00 D4 73 00 00 F4 03 04 00 A4 22 1D 66 B6 04 01 00 00 56 0A B7 5B 9A 60 A9 9C [18:55:01]CommunicateWithHost err = 0 [18:55:01]CheckOFDResponse [18:55:01]1017 (14) - 77093643461234 [18:55:01]1041 (16) - 0000000000963154 [18:55:01]1040 (4) - 29652 [18:55:01]1012 (4) - 15.04.2024 12:50 [18:55:01]1206 (1) - 0 [18:55:01]OFD Sender: Remove packet 29652 [18:55:01]ProducePacketName [18:55:01]name=ofd_packets/00029652 [18:55:01]NVStorageDeleteData [18:55:01]Write to MH i2c: 01 00 00 E9 16 FF [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 CA 0C DC [18:55:01]RasterBufferAndPrint [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]line [18:55:01]written 0, free lines is 3280 [18:55:01]MH_Cut [18:55:01]Write to MH i2c: D1 01 00 F0 16 01 D8 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 01 00 [18:55:01]MH_I2C_Read... [18:55:01]Read from MH i2c: D1 01 00 F0 16 00 D7 [18:55:01]Write to MH i2c: 01 00 00 F1 16 07 [18:55:01]Write i2c OK [18:55:01]MH_I2C_Read... [18:55:01]OFD Sender: No OFD packet to send [18:55:02]*** Cut start [18:55:02]*** Partial cut [18:55:02]*** CUTSNS_PIN = 1 [18:55:02]*** CUTSNS_PIN = 0 [18:55:02]*** Brake cut motor [18:55:02]Read from MH i2c: 01 [18:55:02]MH_I2C_Read... [18:55:02]*** Stop cut motor [18:55:02]*** Cut end [18:55:02]Read from MH i2c: 01 07 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [18:55:02]process_action close_receipt done [18:55:02]requested_data is exist [18:55:02]produce_requested_data [18:55:02]requested_item fm.sn is exist - process it [18:55:02]wFMCommunicate request_size=4 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 11 00 00 [18:55:02]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:02]Read from MH i2c: E2 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 17 00 [18:55:02]MH_I2C_Read... [18:55:02]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [18:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:02]wFMCommunicate OK [18:55:02]requested_item fd.num is exist - process it [18:55:02]SAM_PROTO_GetFieldsCounters [18:55:02]wFMCommunicate request_size=4 [18:55:02]MH_SAM_APDU [18:55:02]CAPDU: 80 13 00 00 [18:55:02]Write to MH i2c: E2 08 00 F3 16 80 13 00 00 00 00 00 00 85 [18:55:02]Write i2c OK [18:55:02]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 62 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 62 00 F3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 73 00 00 0E 04 04 00 75 00 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 61 [18:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 73 00 00 0E 04 04 00 75 00 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 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetFieldsCounters done [18:55:03]requested_item shift.num is exist - process it [18:55:03]requested_item shift.opened is exist - process it [18:55:03]req_shift_opened [18:55:03]FM_GetShiftState [18:55:03]SAM_PROTO_GetShiftState [18:55:03]wFMCommunicate request_size=4 [18:55:03]MH_SAM_APDU [18:55:03]CAPDU: 80 13 01 00 [18:55:03]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [18:55:03]Write i2c OK [18:55:03]MH_I2C_Read... [18:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:03]Read from MH i2c: E2 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 [18:55:03]MH_I2C_Read... [18:55:03]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7B [18:55:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:55:03]wFMCommunicate OK [18:55:03]SAM_PROTO_GetShiftState done [18:55:03]FM_GetShiftState done [18:55:03]req_shift_opened done [18:55:03]requested_item shift.open_date is exist - process it [18:55:03]req_shift_open_date [18:55:03]req_shift_open_date done [18:55:03]produce_requested_data done [18:55:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29652,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:55:03]process_action_free close_receipt [18:55:03]json_value_free [18:55:03]json_value_free done [18:55:03]process_json_proto returns [18:55:03]Send response to host [18:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29652,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:55:03]free response buf [18:55:03]execute_script done [18:55:03]execute_script returns [18:55:03]free content buf [18:55:03]Sock 9.Close socket [18:55:03]Sock 9.Thread stoped [18:55:05]accept exits with 7 [18:55:05]New connection [18:55:05]New thread 3067108708 created [18:55:05]Thread 3066965348 joined [18:55:05]Waiting for new connection... [18:55:05] Sock 7.Parse request [18:55:05]Sock 7.Check first char [18:55:05]Sock 7.First char is OK [18:55:05]request: POST /json_proto HTTP/1.0 [18:55:05]Method: POST [18:55:05]URL: /json_proto [18:55:05]Method is POST - this is cgi request [18:55:05]url: /json_proto [18:55:05]query_string will be loaded in cgi processing [18:55:05]execute_cgi json_proto POST (null) [18:55:05]execute_cgi path=json_proto method=POST [18:55:05]POST find Content-Length [18:55:05]Host: 172.17.33.3:8080 [18:55:05]Content-Length: 735 [18:55:05]Content-Type: application/json [18:55:05] [18:55:05]POST finish read [18:55:05]Found Content-Length = 735 [18:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29652, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:05]execute_script... [18:55:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29652, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:05]POST & json_proto [18:55:05]process_json_proto [18:55:05]json parsed OK: [18:55:05]protocol is kg_v1.0 [18:55:05]action value=close_receipt [18:55:05]process_action close_receipt [18:55:05]cmd_close_receipt [18:55:05]MH_GetDate [18:55:05]Write to MH i2c: F0 00 00 F5 16 FA [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 09 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 09 00 F5 16 00 0A 78 1D 66 23 5B 8F 65 7A [18:55:05]GetLastDocTimeStamp 1713207300 [18:55:05]current date 1713207306 [18:55:05]FM_GetShiftState [18:55:05]SAM_PROTO_GetShiftState [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 13 01 00 [18:55:05]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0E 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [18:55:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:55:05]wFMCommunicate OK [18:55:05]SAM_PROTO_GetShiftState done [18:55:05]FM_GetShiftState done [18:55:05]opened in 1713140468 [18:55:05]opened+sec_in_day 1713226868 [18:55:05]quantity*price = 500021 [18:55:05]sum+1 = 500022 [18:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 247 15.04.2024 18:55 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29652 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29653 ФПД: 253828724502448 1/tax-web-control/client/api/v1/ticket?date=20240415T185506&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29653&fm=253828724502448&tin=02508201610067®Number=0000138879044617&sum=500000 [18:55:06]StoreToDocumentArchive [18:55:06]shift 117 fd 29653 [18:55:06]save to /storage/0117/doc_00029653 [18:55:06]save last doc name /storage/0117/doc_00029653 to /storage/kkm_last_doc_name [18:55:06]save OK [18:55:06]Clear old archive folders... [18:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:55:06]tlvbuf is 01A94FB0 [18:55:06]SAM_PROTO_ClearQueue [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 09 00 00 [18:55:06]Write to MH i2c: E2 08 00 05 17 80 09 00 00 00 00 00 00 8E [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]SAM_PROTO_ClearQueue done [18:55:06]KKMCreateOFDPacket [18:55:06]OFDProtocolAddRootSTLVToBuf [18:55:06]FM_MakeSignedData [18:55:06]FM_MakeSignedData [18:55:06]SAM_PROTO_SignData [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 01 02 [18:55:06]Write to MH i2c: E2 08 00 06 17 80 0D 01 02 00 00 00 00 96 [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]wFMCommunicate request_size=255 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 0A 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [18:55:06]Write to MH i2c: E2 02 01 07 17 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 0A 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 4C [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]OFD Sender: No OFD packet to send [18:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 03 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [18:55:07]RAPDU: 90 00 [18:55:07]wFMCommunicate OK [18:55:07]wFMCommunicate request_size=35 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 73 00 00 35 04 06 00 E6 DB 1A F5 2F B0 [18:55:07]Write to MH i2c: E2 26 00 08 17 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 73 00 00 35 04 06 00 E6 DB 1A F5 2F B0 00 00 7F [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 03 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [18:55:07]RAPDU: 90 00 [18:55:07]wFMCommunicate OK [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 0D 03 02 [18:55:07]Write to MH i2c: E2 08 00 09 17 80 0D 03 02 00 00 00 00 9B [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 0B 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 0B 00 09 17 00 2E 90 01 44 B4 9B 80 55 90 00 C3 [18:55:07]RAPDU: 2E 90 01 44 B4 9B 80 55 90 00 [18:55:07]wFMCommunicate OK [18:55:07]SAM_PROTO_SignData done [18:55:07]FM_MakeSignedData done [18:55:07]CreateOFDProtocolMessage [18:55:07]wFMCommunicate request_size=4 [18:55:07]MH_SAM_APDU [18:55:07]CAPDU: 80 11 00 00 [18:55:07]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:07]Read from MH i2c: E2 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [18:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:07]wFMCommunicate OK [18:55:07]CreateOFDProtocolMessage done [18:55:07]OFDSenderStorePacket 29653 [18:55:07]StoreOFDPacket docnum=29653 [18:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 AD 9E 20 01 04 F5 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 0A 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 73 00 00 35 04 06 00 E6 DB 1A F5 2F B0 2E 90 01 44 B4 9B 80 55 [18:55:07]CheckFolder [18:55:07]dirname=/storage/ofd_packets [18:55:07]CheckFolder done [18:55:07]ProducePacketName [18:55:07]name=ofd_packets/00029653 [18:55:07]NVStorageSaveData ofd_packets/00029653 [18:55:07]File name is /storage/ofd_packets/00029653 [18:55:07]Write 326 bytes [18:55:07]NVStorageSaveData done [18:55:07]OFDSenderStorePacket done [18:55:07]KKMCreateOFDPacket done [18:55:07]NVStorageSaveData kkm_last_timestamp [18:55:07]File name is /storage/kkm_last_timestamp [18:55:07]Write 4 bytes [18:55:07]NVStorageSaveData done [18:55:07]ExternCall_PrintAddStr [18:55:07]wPrintStart [18:55:07]Write to MH i2c: 01 00 00 0B 17 22 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [18:55:07]RasterBufferAndPrint [18:55:07]line Счет N : (1)348108 [18:55:07]line ИНН: 02508201610067 [18:55:07]line Контрольно-Кассовый Чек [18:55:07]line ВОЗВРАТ ПРОДАЖИ [18:55:07]line ТРК (МРК, ГНК) : 61 [18:55:07]line Товар: 2710194210 [18:55:07]line ДТ-К-5 [18:55:07]line 68.590 * 72.90 [18:55:07]line = 5000.21 [18:55:07]line НДС 12% НСП 1% [18:55:07]line > о реализуемом товаре [18:55:07]line ОКРУГЛЕНИЕ: -0.21 [18:55:07]line ИТОГО: 5000.00 [18:55:07]line НСП 1% : 44.25 [18:55:07]line НДС 12% : 531.00 [18:55:07]line Наличными: 5000.00 [18:55:07]line Безнал.: 0.00 [18:55:07]line Место: АЗС № 108 "Партнер Нефть" [18:55:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:55:07]line СНО: Общий режим [18:55:07]line Чек 247 15.04.2024 18:55 [18:55:07]line Смена: 117 ФФД: 1.0 [18:55:07]line ЗНМ: 0300000027 [18:55:07]line РНМ: 0000138879044617 [18:55:07]line Версия ККМ: 001 [18:55:07]line ФД осн.: 29652 [18:55:07]line ФМ осн.: 0000000000963154 [18:55:07]line ФМ: 0000000000963154 [18:55:07]line ФД: 29653 [18:55:07]line ФПД: 253828724502448 [18:55:07]line 1/tax-web-control/client/api/v1/ticket?date=20240415T185506&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29653&fm=253828724502448&tin=02508201610067®Number=0000138879044617&sum=500000 [18:55:07]written 0, free lines is 4095 [18:55:07]OFD Sender: Processing packet 29653 [packets to send 8, broken 7] [18:55:07]ProducePacketName [18:55:07]name=ofd_packets/00029653 [18:55:07]OFD Sender: To server: pG, [18:55:07]CommunicateWithHost lk.salyk.kg:30040 [18:55:07]ConnectInit lk.salyk.kg [18:55:07]Connected sock=10 [18:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 AD 9E 20 01 04 F5 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 0A 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 D4 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 73 00 00 35 04 06 00 E6 DB 1A F5 2F B0 2E 90 01 44 B4 9B 80 55 [18:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 95 B8 47 00 15 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 39 36 33 31 35 34 10 04 04 00 D5 73 00 00 F4 03 04 00 AB 22 1D 66 B6 04 01 00 00 2E 67 61 8D 98 1D E8 A5 [18:55:07]CommunicateWithHost err = 0 [18:55:07]CheckOFDResponse [18:55:07]1017 (14) - 77093643461234 [18:55:07]1041 (16) - 0000000000963154 [18:55:07]1040 (4) - 29653 [18:55:07]1012 (4) - 15.04.2024 12:50 [18:55:07]1206 (1) - 0 [18:55:07]OFD Sender: Remove packet 29653 [18:55:07]ProducePacketName [18:55:07]name=ofd_packets/00029653 [18:55:07]NVStorageDeleteData [18:55:07]Write to MH i2c: 01 00 00 35 17 4C [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 ED 0C 4C [18:55:07]RasterBufferAndPrint [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]written 0, free lines is 3323 [18:55:07]MH_Cut [18:55:07]Write to MH i2c: D1 01 00 3C 17 01 25 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 01 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 01 00 3C 17 00 24 [18:55:07]Write to MH i2c: 01 00 00 3D 17 54 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:08]OFD Sender: No OFD packet to send [18:55:08]*** Cut start [18:55:08]*** Partial cut [18:55:08]*** CUTSNS_PIN = 1 [18:55:08]*** CUTSNS_PIN = 0 [18:55:08]*** Brake cut motor [18:55:09]Read from MH i2c: 01 [18:55:09]MH_I2C_Read... [18:55:09]*** Stop cut motor [18:55:09]*** Cut end [18:55:09]Read from MH i2c: 01 07 00 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: 01 07 00 3D 17 00 00 00 00 00 FF 0F 69 [18:55:09]process_action close_receipt done [18:55:09]requested_data is exist [18:55:09]produce_requested_data [18:55:09]requested_item fm.sn is exist - process it [18:55:09]wFMCommunicate request_size=4 [18:55:09]MH_SAM_APDU [18:55:09]CAPDU: 80 11 00 00 [18:55:09]Write to MH i2c: E2 08 00 3E 17 80 11 00 00 00 00 00 00 CF [18:55:09]Write i2c OK [18:55:09]MH_I2C_Read... [18:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:09]Read from MH i2c: E2 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 17 00 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 17 00 3E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [18:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:55:09]wFMCommunicate OK [18:55:09]requested_item fd.num is exist - process it [18:55:09]SAM_PROTO_GetFieldsCounters [18:55:09]wFMCommunicate request_size=4 [18:55:09]MH_SAM_APDU [18:55:09]CAPDU: 80 13 00 00 [18:55:09]Write to MH i2c: E2 08 00 3F 17 80 13 00 00 00 00 00 00 D2 [18:55:09]Write i2c OK [18:55:09]MH_I2C_Read... [18:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:09]Read from MH i2c: E2 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 62 00 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 62 00 3F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 73 00 00 0E 04 04 00 75 00 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 B2 [18:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 73 00 00 0E 04 04 00 75 00 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 [18:55:09]wFMCommunicate OK [18:55:09]SAM_PROTO_GetFieldsCounters done [18:55:09]requested_item shift.num is exist - process it [18:55:09]requested_item shift.opened is exist - process it [18:55:09]req_shift_opened [18:55:09]FM_GetShiftState [18:55:09]SAM_PROTO_GetShiftState [18:55:09]wFMCommunicate request_size=4 [18:55:09]MH_SAM_APDU [18:55:09]CAPDU: 80 13 01 00 [18:55:09]Write to MH i2c: E2 08 00 40 17 80 13 01 00 00 00 00 00 D4 [18:55:09]Write i2c OK [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 [18:55:09]MH_I2C_Read... [18:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:09]Read from MH i2c: E2 0E 00 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 0E 00 40 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [18:55:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:55:09]wFMCommunicate OK [18:55:09]SAM_PROTO_GetShiftState done [18:55:09]FM_GetShiftState done [18:55:09]req_shift_opened done [18:55:09]requested_item shift.open_date is exist - process it [18:55:09]req_shift_open_date [18:55:09]req_shift_open_date done [18:55:09]produce_requested_data done [18:55:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29653,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:55:09]process_action_free close_receipt [18:55:09]json_value_free [18:55:09]json_value_free done [18:55:09]process_json_proto returns [18:55:09]Send response to host [18:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29653,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:55:09]free response buf [18:55:09]execute_script done [18:55:09]execute_script returns [18:55:09]free content buf [18:55:09]Sock 7.Close socket [18:55:09]Sock 7.Thread stoped [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [18:59:04]New connection [18:59:04]New thread 3066965348 created [18:59:04]Thread 3067108708 joined [18:59:04]Waiting for new connection... [18:59:04] Sock 9.Parse request [18:59:04]Sock 9.Check first char [18:59:04]Sock 9.First char is OK [18:59:04]request: POST /json_proto HTTP/1.0 [18:59:04]Method: POST [18:59:04]URL: /json_proto [18:59:04]Method is POST - this is cgi request [18:59:04]url: /json_proto [18:59:04]query_string will be loaded in cgi processing [18:59:04]execute_cgi json_proto POST (null) [18:59:04]execute_cgi path=json_proto method=POST [18:59:04]POST find Content-Length [18:59:04]Host: 172.17.33.3:8080 [18:59:04]Content-Length: 812 [18:59:04]Content-Type: application/json [18:59:04] [18:59:04]POST finish read [18:59:04]Found Content-Length = 812 [18:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]execute_script... [18:59:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]POST & json_proto [18:59:04]process_json_proto [18:59:04]json parsed OK: [18:59:04]protocol is kg_v1.0 [18:59:04]action value=close_receipt [18:59:04]process_action close_receipt [18:59:04]cmd_close_receipt [18:59:04]MH_GetDate [18:59:04]Write to MH i2c: F0 00 00 41 17 47 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 41 17 00 FA 78 1D 66 23 5B 8F 65 B7 [18:59:04]GetLastDocTimeStamp 1713207306 [18:59:04]current date 1713207546 [18:59:04]FM_GetShiftState [18:59:04]SAM_PROTO_GetShiftState [18:59:04]wFMCommunicate request_size=4 [18:59:04]MH_SAM_APDU [18:59:04]CAPDU: 80 13 01 00 [18:59:04]Write to MH i2c: E2 08 00 42 17 80 13 01 00 00 00 00 00 D6 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:04]Read from MH i2c: E2 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 42 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CA [18:59:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:59:04]wFMCommunicate OK [18:59:04]SAM_PROTO_GetShiftState done [18:59:04]FM_GetShiftState done [18:59:04]opened in 1713140468 [18:59:04]opened+sec_in_day 1713226868 [18:59:04]quantity*price = 100016 [18:59:04]sum+1 = 100017 [18:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 248 15.04.2024 18:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29654 ФПД: 27453075575860 1/tax-web-control/client/api/v1/ticket?date=20240415T185906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29654&fm=27453075575860&tin=02508201610067®Number=0000138879044617&sum=100016 [18:59:05]StoreToDocumentArchive [18:59:05]shift 117 fd 29654 [18:59:05]save to /storage/0117/doc_00029654 [18:59:05]save last doc name /storage/0117/doc_00029654 to /storage/kkm_last_doc_name [18:59:05]save OK [18:59:05]Clear old archive folders... [18:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:59:05]tlvbuf is 01A8A580 [18:59:05]SAM_PROTO_ClearQueue [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 09 00 00 [18:59:05]Write to MH i2c: E2 08 00 4F 17 80 09 00 00 00 00 00 00 D8 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [18:59:05]RAPDU: 90 00 [18:59:05]wFMCommunicate OK [18:59:05]SAM_PROTO_ClearQueue done [18:59:05]KKMCreateOFDPacket [18:59:05]OFDProtocolAddRootSTLVToBuf [18:59:05]FM_MakeSignedData [18:59:05]FM_MakeSignedData [18:59:05]SAM_PROTO_SignData [18:59:05]wFMCommunicate request_size=4 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 0D 01 02 [18:59:05]Write to MH i2c: E2 08 00 50 17 80 0D 01 02 00 00 00 00 E0 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [18:59:05]RAPDU: 90 00 [18:59:05]wFMCommunicate OK [18:59:05]wFMCommunicate request_size=255 [18:59:05]MH_SAM_APDU [18:59: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 FA 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 73 00 00 35 04 06 00 [18:59:05]Write to MH i2c: E2 02 01 51 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 FA 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 73 00 00 35 04 06 00 00 00 87 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:05]Read from MH i2c: E2 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 [18:59:05]MH_I2C_Read... [18:59:05]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [18:59:05]RAPDU: 90 00 [18:59:05]wFMCommunicate OK [18:59:05]wFMCommunicate request_size=11 [18:59:05]MH_SAM_APDU [18:59:05]CAPDU: 80 0D 02 02 06 18 F7 EA D1 54 34 [18:59:05]Write to MH i2c: E2 0E 00 52 17 80 0D 02 02 06 00 18 F7 EA D1 54 34 00 00 41 [18:59:05]Write i2c OK [18:59:05]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 03 02 [18:59:06]Write to MH i2c: E2 08 00 53 17 80 0D 03 02 00 00 00 00 E5 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 53 17 00 79 64 51 FA 19 38 68 69 90 00 30 [18:59:06]RAPDU: 79 64 51 FA 19 38 68 69 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_SignData done [18:59:06]FM_MakeSignedData done [18:59:06]CreateOFDProtocolMessage [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 11 00 00 [18:59:06]Write to MH i2c: E2 08 00 54 17 80 11 00 00 00 00 00 00 E5 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 54 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [18:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:06]wFMCommunicate OK [18:59:06]CreateOFDProtocolMessage done [18:59:06]OFDSenderStorePacket 29654 [18:59:06]StoreOFDPacket docnum=29654 [18:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9B 17 08 01 DB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 FA 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 73 00 00 35 04 06 00 18 F7 EA D1 54 34 79 64 51 FA 19 38 68 69 [18:59:06]CheckFolder [18:59:06]dirname=/storage/ofd_packets [18:59:06]CheckFolder done [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00029654 [18:59:06]NVStorageSaveData ofd_packets/00029654 [18:59:06]File name is /storage/ofd_packets/00029654 [18:59:06]Write 302 bytes [18:59:06]NVStorageSaveData done [18:59:06]OFDSenderStorePacket done [18:59:06]KKMCreateOFDPacket done [18:59:06]NVStorageSaveData kkm_last_timestamp [18:59:06]File name is /storage/kkm_last_timestamp [18:59:06]Write 4 bytes [18:59:06]NVStorageSaveData done [18:59:06]ExternCall_PrintAddStr [18:59:06]wPrintStart [18:59:06]Write to MH i2c: 01 00 00 55 17 6C [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 FF 0F 81 [18:59:06]RasterBufferAndPrint [18:59:06]line Счет N : (1)348110 [18:59:06]line ИНН: 02508201610067 [18:59:06]line Контрольно-Кассовый Чек [18:59:06]line ПРОДАЖА [18:59:06]line ТРК (МРК, ГНК) : 41 [18:59:06]line Товар: 2710124130 [18:59:06]line SUPER-92-К-5 [18:59:06]line 15.200 * 65.80 [18:59:06]line = 1000.16 [18:59:06]line НДС 12% НСП 1% [18:59:06]line > о реализуемом товаре [18:59:06]line ИТОГО: 1000.16 [18:59:06]line НСП 1% : 8.85 [18:59:06]line НДС 12% : 106.21 [18:59:06]line Наличными: 0.00 [18:59:06]line Безнал.: 1000.16 [18:59:06]line Место: АЗС № 108 "Партнер Нефть" [18:59:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:59:06]line СНО: Общий режим [18:59:06]line Чек 248 15.04.2024 18:59 [18:59:06]line Смена: 117 ФФД: 1.0 [18:59:06]line ЗНМ: 0300000027 [18:59:06]line РНМ: 0000138879044617 [18:59:06]line Версия ККМ: 001 [18:59:06]line Платежная система: Бакай Банк [18:59:06]line ФМ: 0000000000963154 [18:59:06]line ФД: 29654 [18:59:06]line ФПД: 27453075575860 [18:59:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T185906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29654&fm=27453075575860&tin=02508201610067®Number=0000138879044617&sum=100016 [18:59:06]OFD Sender: Processing packet 29654 [packets to send 8, broken 7] [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00029654 [18:59:06]OFD Sender: To server: pG, [18:59:06]CommunicateWithHost lk.salyk.kg:30040 [18:59:06]ConnectInit lk.salyk.kg [18:59:06]written 0, free lines is 4095 [18:59:06]Connected sock=10 [18:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9B 17 08 01 DB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 FA 78 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 73 00 00 35 04 06 00 18 F7 EA D1 54 34 79 64 51 FA 19 38 68 69 [18:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 DE 47 00 A5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 73 00 00 F4 03 04 00 9A 23 1D 66 B6 04 01 00 00 AD AB DF 50 B8 2E CA 40 [18:59:06]CommunicateWithHost err = 0 [18:59:06]CheckOFDResponse [18:59:06]1017 (14) - 77093643461234 [18:59:06]1041 (16) - 0000000000963154 [18:59:06]1040 (4) - 29654 [18:59:06]1012 (4) - 15.04.2024 12:54 [18:59:06]1206 (1) - 0 [18:59:06]OFD Sender: Remove packet 29654 [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00029654 [18:59:06]NVStorageDeleteData [18:59:06]Write to MH i2c: 01 00 00 7E 17 95 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 EA 0C 92 [18:59:06]RasterBufferAndPrint [18:59:06]line [18:59:06]line [18:59:06]line [18:59:06]line [18:59:06]line [18:59:06]written 0, free lines is 3312 [18:59:06]MH_Cut [18:59:06]Write to MH i2c: D1 01 00 85 17 01 6E [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: D1 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: D1 01 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: D1 01 00 85 17 00 6D [18:59:06]Write to MH i2c: 01 00 00 86 17 9D [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:07]OFD Sender: No OFD packet to send [18:59:07]*** Cut start [18:59:07]*** Partial cut [18:59:07]*** CUTSNS_PIN = 1 [18:59:07]*** CUTSNS_PIN = 0 [18:59:07]*** Brake cut motor [18:59:08]Read from MH i2c: 01 [18:59:08]MH_I2C_Read... [18:59:08]*** Stop cut motor [18:59:08]*** Cut end [18:59:08]Read from MH i2c: 01 07 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [18:59:08]process_action close_receipt done [18:59:08]requested_data is exist [18:59:08]produce_requested_data [18:59:08]requested_item fm.sn is exist - process it [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 11 00 00 [18:59:08]Write to MH i2c: E2 08 00 87 17 80 11 00 00 00 00 00 00 18 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 87 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [18:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:08]wFMCommunicate OK [18:59:08]requested_item fd.num is exist - process it [18:59:08]SAM_PROTO_GetFieldsCounters [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 13 00 00 [18:59:08]Write to MH i2c: E2 08 00 88 17 80 13 00 00 00 00 00 00 1B [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 62 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 62 00 88 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 73 00 00 0E 04 04 00 75 00 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 FF [18:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 73 00 00 0E 04 04 00 75 00 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 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_GetFieldsCounters done [18:59:08]requested_item shift.num is exist - process it [18:59:08]requested_item shift.opened is exist - process it [18:59:08]req_shift_opened [18:59:08]FM_GetShiftState [18:59:08]SAM_PROTO_GetShiftState [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 13 01 00 [18:59:08]Write to MH i2c: E2 08 00 89 17 80 13 01 00 00 00 00 00 1D [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0E 00 89 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 11 [18:59:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_GetShiftState done [18:59:08]FM_GetShiftState done [18:59:08]req_shift_opened done [18:59:08]requested_item shift.open_date is exist - process it [18:59:08]req_shift_open_date [18:59:08]req_shift_open_date done [18:59:08]produce_requested_data done [18:59:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29654,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:59:08]process_action_free close_receipt [18:59:08]json_value_free [18:59:08]json_value_free done [18:59:08]process_json_proto returns [18:59:08]Send response to host [18:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29654,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:59:08]free response buf [18:59:08]execute_script done [18:59:08]execute_script returns [18:59:08]free content buf [18:59:08]Sock 9.Close socket [18:59:08]Sock 9.Thread stoped [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:24]accept exits with 7 [18:59:24]New connection [18:59:24]New thread 3067108708 created [18:59:24]Thread 3066965348 joined [18:59:24]Waiting for new connection... [18:59:24] Sock 7.Parse request [18:59:24]Sock 7.Check first char [18:59:24]Sock 7.First char is OK [18:59:24]request: POST /json_proto HTTP/1.0 [18:59:24]Method: POST [18:59:24]URL: /json_proto [18:59:24]Method is POST - this is cgi request [18:59:24]url: /json_proto [18:59:24]query_string will be loaded in cgi processing [18:59:24]execute_cgi json_proto POST (null) [18:59:24]execute_cgi path=json_proto method=POST [18:59:24]POST find Content-Length [18:59:24]Host: 172.17.33.3:8080 [18:59:24]Content-Length: 805 [18:59:24]Content-Type: application/json [18:59:24] [18:59:24]POST finish read [18:59:24]Found Content-Length = 805 [18:59:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 75.450, "sum" : 5500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:24]execute_script... [18:59: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)348109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 75.450, "sum" : 5500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:24]POST & json_proto [18:59:24]process_json_proto [18:59:24]json parsed OK: [18:59:24]protocol is kg_v1.0 [18:59:24]action value=close_receipt [18:59:24]process_action close_receipt [18:59:24]cmd_close_receipt [18:59:24]MH_GetDate [18:59:24]Write to MH i2c: F0 00 00 8A 17 90 [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: F0 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: F0 09 00 [18:59:24]MH_I2C_Read... [18:59:24]Read from MH i2c: F0 09 00 8A 17 00 0E 79 1D 66 23 5B 8F 65 15 [18:59:24]GetLastDocTimeStamp 1713207546 [18:59:24]current date 1713207566 [18:59:24]FM_GetShiftState [18:59:24]SAM_PROTO_GetShiftState [18:59:24]wFMCommunicate request_size=4 [18:59:24]MH_SAM_APDU [18:59:24]CAPDU: 80 13 01 00 [18:59:24]Write to MH i2c: E2 08 00 8B 17 80 13 01 00 00 00 00 00 1F [18:59:24]Write i2c OK [18:59:24]MH_I2C_Read... [18:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:25]Read from MH i2c: E2 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 8B 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 13 [18:59:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:59:25]wFMCommunicate OK [18:59:25]SAM_PROTO_GetShiftState done [18:59:25]FM_GetShiftState done [18:59:25]opened in 1713140468 [18:59:25]opened+sec_in_day 1713226868 [18:59:25]quantity*price = 550030 [18:59:25]sum+1 = 550032 [18:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5500.31 НСП 1% : 48.67 НДС 12% : 584.10 Наличными: 0.00 Безнал.: 5500.31 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 249 15.04.2024 18:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29655 ФПД: 273222325732905 1/tax-web-control/client/api/v1/ticket?date=20240415T185926&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29655&fm=273222325732905&tin=02508201610067®Number=0000138879044617&sum=550031 [18:59:26]StoreToDocumentArchive [18:59:26]shift 117 fd 29655 [18:59:26]save to /storage/0117/doc_00029655 [18:59:26]save last doc name /storage/0117/doc_00029655 to /storage/kkm_last_doc_name [18:59:26]save OK [18:59:26]Clear old archive folders... [18:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:26]tlvbuf is 01A68480 [18:59:26]SAM_PROTO_ClearQueue [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 09 00 00 [18:59:26]Write to MH i2c: E2 08 00 98 17 80 09 00 00 00 00 00 00 21 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_ClearQueue done [18:59:26]KKMCreateOFDPacket [18:59:26]OFDProtocolAddRootSTLVToBuf [18:59:26]FM_MakeSignedData [18:59:26]FM_MakeSignedData [18:59:26]SAM_PROTO_SignData [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 01 02 [18:59:26]Write to MH i2c: E2 08 00 99 17 80 0D 01 02 00 00 00 00 29 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 99 17 00 90 00 24 [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=255 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0E 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 73 00 00 35 04 06 00 F8 7E 87 AB [18:59:26]Write to MH i2c: E2 02 01 9A 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0E 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 73 00 00 35 04 06 00 F8 7E 87 AB 00 00 99 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=7 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 02 02 02 86 29 [18:59:26]Write to MH i2c: E2 0A 00 9B 17 80 0D 02 02 02 00 86 29 00 00 DF [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 03 02 [18:59:26]Write to MH i2c: E2 08 00 9C 17 80 0D 03 02 00 00 00 00 2E [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0B 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0B 00 9C 17 00 34 2C 70 52 9A 94 D0 03 90 00 52 [18:59:26]RAPDU: 34 2C 70 52 9A 94 D0 03 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_SignData done [18:59:26]FM_MakeSignedData done [18:59:26]CreateOFDProtocolMessage [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 11 00 00 [18:59:26]Write to MH i2c: E2 08 00 9D 17 80 11 00 00 00 00 00 00 2E [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 9D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [18:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:26]wFMCommunicate OK [18:59:26]CreateOFDProtocolMessage done [18:59:26]OFDSenderStorePacket 29655 [18:59:26]StoreOFDPacket docnum=29655 [18:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F7 E5 04 01 3B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0E 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 73 00 00 35 04 06 00 F8 7E 87 AB 86 29 34 2C 70 52 9A 94 D0 03 [18:59:26]CheckFolder [18:59:26]dirname=/storage/ofd_packets [18:59:26]CheckFolder done [18:59:26]ProducePacketName [18:59:26]name=ofd_packets/00029655 [18:59:26]NVStorageSaveData ofd_packets/00029655 [18:59:26]File name is /storage/ofd_packets/00029655 [18:59:26]Write 298 bytes [18:59:26]NVStorageSaveData done [18:59:26]OFDSenderStorePacket done [18:59:26]KKMCreateOFDPacket done [18:59:26]NVStorageSaveData kkm_last_timestamp [18:59:26]File name is /storage/kkm_last_timestamp [18:59:26]Write 4 bytes [18:59:26]NVStorageSaveData done [18:59:26]ExternCall_PrintAddStr [18:59:26]wPrintStart [18:59:26]Write to MH i2c: 01 00 00 9E 17 B5 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 07 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0F CA [18:59:26]RasterBufferAndPrint [18:59:26]line Счет N : (1)348109 [18:59:26]line ИНН: 02508201610067 [18:59:26]line Контрольно-Кассовый Чек [18:59:26]line ПРОДАЖА [18:59:26]line ТРК (МРК, ГНК) : 21 [18:59:26]line Товар: 2710194210 [18:59:26]line ДТ-К-5 [18:59:26]line 75.450 * 72.90 [18:59:26]line = 5500.31 [18:59:26]line НДС 12% НСП 1% [18:59:26]line > о реализуемом товаре [18:59:26]line ИТОГО: 5500.31 [18:59:26]line НСП 1% : 48.67 [18:59:26]line НДС 12% : 584.10 [18:59:26]line Наличными: 0.00 [18:59:26]line Безнал.: 5500.31 [18:59:26]line Место: АЗС № 108 "Партнер Нефть" [18:59:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:59:26]line СНО: Общий режим [18:59:26]line Чек 249 15.04.2024 18:59 [18:59:26]line Смена: 117 ФФД: 1.0 [18:59:26]line ЗНМ: 0300000027 [18:59:26]line РНМ: 0000138879044617 [18:59:26]line Версия ККМ: 001 [18:59:26]line Платежная система: О! деньги [18:59:26]line ФМ: 0000000000963154 [18:59:26]line ФД: 29655 [18:59:26]line ФПД: 273222325732905 [18:59:27]line 1/tax-web-control/client/api/v1/ticket?date=20240415T185926&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29655&fm=273222325732905&tin=02508201610067®Number=0000138879044617&sum=550031 [18:59:27]OFD Sender: Processing packet 29655 [packets to send 8, broken 7] [18:59:27]ProducePacketName [18:59:27]name=ofd_packets/00029655 [18:59:27]OFD Sender: To server: pG, [18:59:27]CommunicateWithHost lk.salyk.kg:30040 [18:59:27]ConnectInit lk.salyk.kg [18:59:27]written 0, free lines is 4095 [18:59:27]Connected sock=10 [18:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F7 E5 04 01 3B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 0E 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 73 00 00 35 04 06 00 F8 7E 87 AB 86 29 34 2C 70 52 9A 94 D0 03 [18:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 8A 47 00 13 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 39 36 33 31 35 34 10 04 04 00 D7 73 00 00 F4 03 04 00 AE 23 1D 66 B6 04 01 00 00 39 E3 22 8B 8E 7C E5 BB [18:59:27]CommunicateWithHost err = 0 [18:59:27]CheckOFDResponse [18:59:27]1017 (14) - 77093643461234 [18:59:27]1041 (16) - 0000000000963154 [18:59:27]1040 (4) - 29655 [18:59:27]1012 (4) - 15.04.2024 12:55 [18:59:27]1206 (1) - 0 [18:59:27]OFD Sender: Remove packet 29655 [18:59:27]ProducePacketName [18:59:27]name=ofd_packets/00029655 [18:59:27]NVStorageDeleteData [18:59:27]Write to MH i2c: 01 00 00 C7 17 DE [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 07 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 07 00 C7 17 00 00 00 00 00 EC 0C DD [18:59:27]RasterBufferAndPrint [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]written 0, free lines is 3314 [18:59:27]MH_Cut [18:59:27]Write to MH i2c: D1 01 00 CE 17 01 B7 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 01 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 01 00 CE 17 00 B6 [18:59:27]Write to MH i2c: 01 00 00 CF 17 E6 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]OFD Sender: No OFD packet to send [18:59:28]*** Cut start [18:59:28]*** Partial cut [18:59:28]*** CUTSNS_PIN = 1 [18:59:28]*** CUTSNS_PIN = 0 [18:59:28]*** Brake cut motor [18:59:28]Read from MH i2c: 01 [18:59:28]MH_I2C_Read... [18:59:28]*** Stop cut motor [18:59:28]*** Cut end [18:59:28]Read from MH i2c: 01 07 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 CF 17 00 00 00 00 00 FF 0F FB [18:59:28]process_action close_receipt done [18:59:28]requested_data is exist [18:59:28]produce_requested_data [18:59:28]requested_item fm.sn is exist - process it [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 11 00 00 [18:59:28]Write to MH i2c: E2 08 00 D0 17 80 11 00 00 00 00 00 00 61 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 D0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [18:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:59:28]wFMCommunicate OK [18:59:28]requested_item fd.num is exist - process it [18:59:28]SAM_PROTO_GetFieldsCounters [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 13 00 00 [18:59:28]Write to MH i2c: E2 08 00 D1 17 80 13 00 00 00 00 00 00 64 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:29]Read from MH i2c: E2 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 62 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 62 00 D1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 73 00 00 0E 04 04 00 75 00 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 4C [18:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 73 00 00 0E 04 04 00 75 00 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 [18:59:29]wFMCommunicate OK [18:59:29]SAM_PROTO_GetFieldsCounters done [18:59:29]requested_item shift.num is exist - process it [18:59:29]requested_item shift.opened is exist - process it [18:59:29]req_shift_opened [18:59:29]FM_GetShiftState [18:59:29]SAM_PROTO_GetShiftState [18:59:29]wFMCommunicate request_size=4 [18:59:29]MH_SAM_APDU [18:59:29]CAPDU: 80 13 01 00 [18:59:29]Write to MH i2c: E2 08 00 D2 17 80 13 01 00 00 00 00 00 66 [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:29]Read from MH i2c: E2 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 0E 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: E2 0E 00 D2 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5A [18:59:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [18:59:29]wFMCommunicate OK [18:59:29]SAM_PROTO_GetShiftState done [18:59:29]FM_GetShiftState done [18:59:29]req_shift_opened done [18:59:29]requested_item shift.open_date is exist - process it [18:59:29]req_shift_open_date [18:59:29]req_shift_open_date done [18:59:29]produce_requested_data done [18:59:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29655,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [18:59:29]process_action_free close_receipt [18:59:29]json_value_free [18:59:29]json_value_free done [18:59:29]process_json_proto returns [18:59:29]Send response to host [18:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29655,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [18:59:29]free response buf [18:59:29]execute_script done [18:59:29]execute_script returns [18:59:29]free content buf [18:59:29]Sock 7.Close socket [18:59:29]Sock 7.Thread stoped [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]accept exits with 9 [19:02:02]New connection [19:02:02]New thread 3066965348 created [19:02:02]Thread 3067108708 joined [19:02:02]Waiting for new connection... [19:02:02] Sock 9.Parse request [19:02:02]Sock 9.Check first char [19:02:02]Sock 9.First char is OK [19:02:02]request: POST /json_proto HTTP/1.0 [19:02:02]Method: POST [19:02:02]URL: /json_proto [19:02:02]Method is POST - this is cgi request [19:02:02]url: /json_proto [19:02:02]query_string will be loaded in cgi processing [19:02:02]execute_cgi json_proto POST (null) [19:02:02]execute_cgi path=json_proto method=POST [19:02:02]POST find Content-Length [19:02:02]Host: 172.17.33.3:8080 [19:02:02]Content-Length: 819 [19:02:02]Content-Type: application/json [19:02:02] [19:02:02]POST finish read [19:02:02]Found Content-Length = 819 [19:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:02]execute_script... [19:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.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" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:02]POST & json_proto [19:02:02]process_json_proto [19:02:02]json parsed OK: [19:02:02]protocol is kg_v1.0 [19:02:02]action value=close_receipt [19:02:02]process_action close_receipt [19:02:02]cmd_close_receipt [19:02:02]MH_GetDate [19:02:02]Write to MH i2c: F0 00 00 D3 17 D9 [19:02:02]Write i2c OK [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 09 00 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 09 00 D3 17 00 AB 79 1D 66 23 5B 8F 65 FB [19:02:02]GetLastDocTimeStamp 1713207566 [19:02:02]current date 1713207723 [19:02:02]FM_GetShiftState [19:02:02]SAM_PROTO_GetShiftState [19:02:02]wFMCommunicate request_size=4 [19:02:02]MH_SAM_APDU [19:02:02]CAPDU: 80 13 01 00 [19:02:02]Write to MH i2c: E2 08 00 D4 17 80 13 01 00 00 00 00 00 68 [19:02:02]Write i2c OK [19:02:02]MH_I2C_Read... [19:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:02]Read from MH i2c: E2 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: E2 0E 00 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: E2 0E 00 D4 17 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [19:02:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:02:02]wFMCommunicate OK [19:02:02]SAM_PROTO_GetShiftState done [19:02:02]FM_GetShiftState done [19:02:02]opened in 1713140468 [19:02:02]opened+sec_in_day 1713226868 [19:02:02]quantity*price = 150012 [19:02:02]sum+1 = 150013 [19:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 250 15.04.2024 19:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29656 ФПД: 259564757739875 1/tax-web-control/client/api/v1/ticket?date=20240415T190203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29656&fm=259564757739875&tin=02508201610067®Number=0000138879044617&sum=150012 [19:02:03]StoreToDocumentArchive [19:02:03]shift 117 fd 29656 [19:02:03]save to /storage/0117/doc_00029656 [19:02:03]save last doc name /storage/0117/doc_00029656 to /storage/kkm_last_doc_name [19:02:03]save OK [19:02:03]Clear old archive folders... [19:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:03]tlvbuf is B6EE74E0 [19:02:03]SAM_PROTO_ClearQueue [19:02:03]wFMCommunicate request_size=4 [19:02:03]MH_SAM_APDU [19:02:03]CAPDU: 80 09 00 00 [19:02:03]Write to MH i2c: E2 08 00 E1 17 80 09 00 00 00 00 00 00 6A [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [19:02:03]RAPDU: 90 00 [19:02:03]wFMCommunicate OK [19:02:03]SAM_PROTO_ClearQueue done [19:02:03]KKMCreateOFDPacket [19:02:03]OFDProtocolAddRootSTLVToBuf [19:02:03]FM_MakeSignedData [19:02:03]FM_MakeSignedData [19:02:03]SAM_PROTO_SignData [19:02:03]wFMCommunicate request_size=4 [19:02:03]MH_SAM_APDU [19:02:03]CAPDU: 80 0D 01 02 [19:02:03]Write to MH i2c: E2 08 00 E2 17 80 0D 01 02 00 00 00 00 72 [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [19:02:03]RAPDU: 90 00 [19:02:03]wFMCommunicate OK [19:02:03]wFMCommunicate request_size=255 [19:02:03]MH_SAM_APDU [19:02: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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 AB 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 73 00 00 35 04 06 00 EC [19:02:03]Write to MH i2c: E2 02 01 E3 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 AB 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 73 00 00 35 04 06 00 EC 00 00 98 [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 E3 17 00 90 00 6E [19:02:03]RAPDU: 90 00 [19:02:03]wFMCommunicate OK [19:02:03]wFMCommunicate request_size=10 [19:02:03]MH_SAM_APDU [19:02:03]CAPDU: 80 0D 02 02 05 12 A1 2E 69 63 [19:02:03]Write to MH i2c: E2 0D 00 E4 17 80 0D 02 02 05 00 12 A1 2E 69 63 00 00 2C [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 03 00 E4 17 00 90 00 6F [19:02:03]RAPDU: 90 00 [19:02:03]wFMCommunicate OK [19:02:03]wFMCommunicate request_size=4 [19:02:03]MH_SAM_APDU [19:02:03]CAPDU: 80 0D 03 02 [19:02:03]Write to MH i2c: E2 08 00 E5 17 80 0D 03 02 00 00 00 00 77 [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 0B 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 0B 00 E5 17 00 87 DF 69 CF 50 7C 0A F9 90 00 E5 [19:02:03]RAPDU: 87 DF 69 CF 50 7C 0A F9 90 00 [19:02:03]wFMCommunicate OK [19:02:03]SAM_PROTO_SignData done [19:02:03]FM_MakeSignedData done [19:02:03]CreateOFDProtocolMessage [19:02:03]wFMCommunicate request_size=4 [19:02:03]MH_SAM_APDU [19:02:03]CAPDU: 80 11 00 00 [19:02:03]Write to MH i2c: E2 08 00 E6 17 80 11 00 00 00 00 00 00 77 [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 17 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 17 00 E6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [19:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:03]wFMCommunicate OK [19:02:03]CreateOFDProtocolMessage done [19:02:03]OFDSenderStorePacket 29656 [19:02:03]StoreOFDPacket docnum=29656 [19:02:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 75 DF 07 01 8E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 AB 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 73 00 00 35 04 06 00 EC 12 A1 2E 69 63 87 DF 69 CF 50 7C 0A F9 [19:02:03]CheckFolder [19:02:03]dirname=/storage/ofd_packets [19:02:03]CheckFolder done [19:02:03]ProducePacketName [19:02:03]name=ofd_packets/00029656 [19:02:03]NVStorageSaveData ofd_packets/00029656 [19:02:03]File name is /storage/ofd_packets/00029656 [19:02:03]Write 301 bytes [19:02:03]NVStorageSaveData done [19:02:03]OFDSenderStorePacket done [19:02:03]KKMCreateOFDPacket done [19:02:03]NVStorageSaveData kkm_last_timestamp [19:02:03]File name is /storage/kkm_last_timestamp [19:02:03]Write 4 bytes [19:02:03]NVStorageSaveData done [19:02:03]ExternCall_PrintAddStr [19:02:03]wPrintStart [19:02:03]Write to MH i2c: 01 00 00 E7 17 FE [19:02:03]Write i2c OK [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: 01 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: 01 07 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 FF 0F 13 [19:02:03]RasterBufferAndPrint [19:02:03]line Счет N : (1)348111 [19:02:03]line ИНН: 02508201610067 [19:02:03]line Контрольно-Кассовый Чек [19:02:03]line ПРОДАЖА [19:02:03]line ТРК (МРК, ГНК) : 32 [19:02:03]line Товар: 2710124130 [19:02:03]line Аи-92-К-5 [19:02:03]line 23.150 * 64.80 [19:02:03]line = 1500.12 [19:02:03]line НДС 12% НСП 1% [19:02:03]line > о реализуемом товаре [19:02:03]line ИТОГО: 1500.12 [19:02:03]line НСП 1% : 13.27 [19:02:03]line НДС 12% : 159.30 [19:02:03]line Наличными: 0.00 [19:02:03]line Безнал.: 1500.12 [19:02:03]line Место: АЗС № 108 "Партнер Нефть" [19:02:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:02:03]line СНО: Общий режим [19:02:03]line Чек 250 15.04.2024 19:02 [19:02:03]line Смена: 117 ФФД: 1.0 [19:02:03]line ЗНМ: 0300000027 [19:02:03]line РНМ: 0000138879044617 [19:02:03]line Версия ККМ: 001 [19:02:03]line Платежная система: Бакай Банк [19:02:03]line ФМ: 0000000000963154 [19:02:03]line ФД: 29656 [19:02:03]line ФПД: 259564757739875 [19:02:03]line 1/tax-web-control/client/api/v1/ticket?date=20240415T190203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29656&fm=259564757739875&tin=02508201610067®Number=0000138879044617&sum=150012 [19:02:04]OFD Sender: Processing packet 29656 [packets to send 8, broken 7] [19:02:04]ProducePacketName [19:02:04]name=ofd_packets/00029656 [19:02:04]OFD Sender: To server: pG, [19:02:04]CommunicateWithHost lk.salyk.kg:30040 [19:02:04]ConnectInit lk.salyk.kg [19:02:04]written 0, free lines is 4095 [19:02:04]Connected sock=10 [19:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 75 DF 07 01 8E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 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 FC 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 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 AB 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 73 00 00 35 04 06 00 EC 12 A1 2E 69 63 87 DF 69 CF 50 7C 0A F9 [19:02:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D BB 47 00 50 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 39 36 33 31 35 34 10 04 04 00 D8 73 00 00 F4 03 04 00 4B 24 1D 66 B6 04 01 00 00 D1 E3 30 AF 6A E2 5C 62 [19:02:04]CommunicateWithHost err = 0 [19:02:04]CheckOFDResponse [19:02:04]1017 (14) - 77093643461234 [19:02:04]1041 (16) - 0000000000963154 [19:02:04]1040 (4) - 29656 [19:02:04]1012 (4) - 15.04.2024 12:57 [19:02:04]1206 (1) - 0 [19:02:04]OFD Sender: Remove packet 29656 [19:02:04]ProducePacketName [19:02:04]name=ofd_packets/00029656 [19:02:04]NVStorageDeleteData [19:02:04]Write to MH i2c: 01 00 00 10 18 28 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 07 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 EF 0C 2A [19:02:04]RasterBufferAndPrint [19:02:04]line [19:02:04]line [19:02:04]line [19:02:04]line [19:02:04]line [19:02:04]written 0, free lines is 3318 [19:02:04]MH_Cut [19:02:04]Write to MH i2c: D1 01 00 17 18 01 01 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: D1 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: D1 01 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: D1 01 00 17 18 00 00 [19:02:04]Write to MH i2c: 01 00 00 18 18 30 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]OFD Sender: No OFD packet to send [19:02:05]*** Cut start [19:02:05]*** Partial cut [19:02:05]*** CUTSNS_PIN = 1 [19:02:05]*** CUTSNS_PIN = 0 [19:02:05]*** Brake cut motor [19:02:05]Read from MH i2c: 01 [19:02:05]MH_I2C_Read... [19:02:05]*** Stop cut motor [19:02:05]*** Cut end [19:02:05]Read from MH i2c: 01 07 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 18 18 00 00 00 00 00 FF 0F 45 [19:02:05]process_action close_receipt done [19:02:05]requested_data is exist [19:02:05]produce_requested_data [19:02:05]requested_item fm.sn is exist - process it [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 11 00 00 [19:02:05]Write to MH i2c: E2 08 00 19 18 80 11 00 00 00 00 00 00 AB [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 19 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [19:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:06]wFMCommunicate OK [19:02:06]requested_item fd.num is exist - process it [19:02:06]SAM_PROTO_GetFieldsCounters [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 13 00 00 [19:02:06]Write to MH i2c: E2 08 00 1A 18 80 13 00 00 00 00 00 00 AE [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 62 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 62 00 1A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 73 00 00 0E 04 04 00 75 00 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 9A [19:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 73 00 00 0E 04 04 00 75 00 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 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_GetFieldsCounters done [19:02:06]requested_item shift.num is exist - process it [19:02:06]requested_item shift.opened is exist - process it [19:02:06]req_shift_opened [19:02:06]FM_GetShiftState [19:02:06]SAM_PROTO_GetShiftState [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 13 01 00 [19:02:06]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0E 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A4 [19:02:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_GetShiftState done [19:02:06]FM_GetShiftState done [19:02:06]req_shift_opened done [19:02:06]requested_item shift.open_date is exist - process it [19:02:06]req_shift_open_date [19:02:06]req_shift_open_date done [19:02:06]produce_requested_data done [19:02:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29656,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:02:06]process_action_free close_receipt [19:02:06]json_value_free [19:02:06]json_value_free done [19:02:06]process_json_proto returns [19:02:06]Send response to host [19:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29656,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:02:06]free response buf [19:02:06]execute_script done [19:02:06]execute_script returns [19:02:06]free content buf [19:02:06]Sock 9.Close socket [19:02:06]Sock 9.Thread stoped [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:33]accept exits with 7 [19:02:33]New connection [19:02:33]New thread 3067108708 created [19:02:33]Thread 3066965348 joined [19:02:33]Waiting for new connection... [19:02:33] Sock 7.Parse request [19:02:33]Sock 7.Check first char [19:02:33]Sock 7.First char is OK [19:02:33]request: POST /json_proto HTTP/1.0 [19:02:33]Method: POST [19:02:33]URL: /json_proto [19:02:33]Method is POST - this is cgi request [19:02:33]url: /json_proto [19:02:33]query_string will be loaded in cgi processing [19:02:33]execute_cgi json_proto POST (null) [19:02:33]execute_cgi path=json_proto method=POST [19:02:33]POST find Content-Length [19:02:33]Host: 172.17.33.3:8080 [19:02:33]Content-Length: 677 [19:02:33]Content-Type: application/json [19:02:33] [19:02:33]POST finish read [19:02:33]Found Content-Length = 677 [19:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:33]execute_script... [19:02:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:33]POST & json_proto [19:02:33]process_json_proto [19:02:33]json parsed OK: [19:02:33]protocol is kg_v1.0 [19:02:33]action value=close_receipt [19:02:33]process_action close_receipt [19:02:33]cmd_close_receipt [19:02:33]MH_GetDate [19:02:33]Write to MH i2c: F0 00 00 1C 18 23 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 09 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: F0 09 00 1C 18 00 CA 79 1D 66 23 5B 8F 65 64 [19:02:33]GetLastDocTimeStamp 1713207723 [19:02:33]current date 1713207754 [19:02:33]FM_GetShiftState [19:02:33]SAM_PROTO_GetShiftState [19:02:33]wFMCommunicate request_size=4 [19:02:33]MH_SAM_APDU [19:02:33]CAPDU: 80 13 01 00 [19:02:33]Write to MH i2c: E2 08 00 1D 18 80 13 01 00 00 00 00 00 B2 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:33]Read from MH i2c: E2 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: E2 0E 00 1D 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A6 [19:02:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:02:33]wFMCommunicate OK [19:02:33]SAM_PROTO_GetShiftState done [19:02:33]FM_GetShiftState done [19:02:33]opened in 1713140468 [19:02:33]opened+sec_in_day 1713226868 [19:02:33]quantity*price = 50025 [19:02:33]sum+1 = 50027 [19:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 251 15.04.2024 19:02 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29657 ФПД: 46667790600952 1/tax-web-control/client/api/v1/ticket?date=20240415T190234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29657&fm=46667790600952&tin=02508201610067®Number=0000138879044617&sum=50000 [19:02:34]StoreToDocumentArchive [19:02:34]shift 117 fd 29657 [19:02:34]save to /storage/0117/doc_00029657 [19:02:34]save last doc name /storage/0117/doc_00029657 to /storage/kkm_last_doc_name [19:02:34]save OK [19:02:34]Clear old archive folders... [19:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:34]tlvbuf is B6EE7350 [19:02:34]SAM_PROTO_ClearQueue [19:02:34]wFMCommunicate request_size=4 [19:02:34]MH_SAM_APDU [19:02:34]CAPDU: 80 09 00 00 [19:02:34]Write to MH i2c: E2 08 00 2A 18 80 09 00 00 00 00 00 00 B4 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [19:02:34]RAPDU: 90 00 [19:02:34]wFMCommunicate OK [19:02:34]SAM_PROTO_ClearQueue done [19:02:34]KKMCreateOFDPacket [19:02:34]OFDProtocolAddRootSTLVToBuf [19:02:34]FM_MakeSignedData [19:02:34]FM_MakeSignedData [19:02:34]SAM_PROTO_SignData [19:02:34]wFMCommunicate request_size=4 [19:02:34]MH_SAM_APDU [19:02:34]CAPDU: 80 0D 01 02 [19:02:34]Write to MH i2c: E2 08 00 2B 18 80 0D 01 02 00 00 00 00 BC [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [19:02:34]RAPDU: 90 00 [19:02:34]wFMCommunicate OK [19:02:34]wFMCommunicate request_size=255 [19:02:34]MH_SAM_APDU [19:02: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CA 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 73 00 00 35 04 06 00 2A [19:02:34]Write to MH i2c: E2 02 01 2C 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CA 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 73 00 00 35 04 06 00 2A 00 00 21 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 2C 18 00 90 00 B8 [19:02:34]RAPDU: 90 00 [19:02:34]wFMCommunicate OK [19:02:34]wFMCommunicate request_size=10 [19:02:34]MH_SAM_APDU [19:02:34]CAPDU: 80 0D 02 02 05 71 B1 14 CA F8 [19:02:34]Write to MH i2c: E2 0D 00 2D 18 80 0D 02 02 05 00 71 B1 14 CA F8 00 00 C1 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 03 00 2D 18 00 90 00 B9 [19:02:34]RAPDU: 90 00 [19:02:34]wFMCommunicate OK [19:02:34]wFMCommunicate request_size=4 [19:02:34]MH_SAM_APDU [19:02:34]CAPDU: 80 0D 03 02 [19:02:34]Write to MH i2c: E2 08 00 2E 18 80 0D 03 02 00 00 00 00 C1 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 0B 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 0B 00 2E 18 00 F9 9D 1F B9 36 D7 50 D7 90 00 64 [19:02:34]RAPDU: F9 9D 1F B9 36 D7 50 D7 90 00 [19:02:34]wFMCommunicate OK [19:02:34]SAM_PROTO_SignData done [19:02:34]FM_MakeSignedData done [19:02:34]CreateOFDProtocolMessage [19:02:34]wFMCommunicate request_size=4 [19:02:34]MH_SAM_APDU [19:02:34]CAPDU: 80 11 00 00 [19:02:34]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:34]Read from MH i2c: E2 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 17 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [19:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:34]wFMCommunicate OK [19:02:34]CreateOFDProtocolMessage done [19:02:34]OFDSenderStorePacket 29657 [19:02:34]StoreOFDPacket docnum=29657 [19:02:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 61 01 07 01 A4 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CA 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 73 00 00 35 04 06 00 2A 71 B1 14 CA F8 F9 9D 1F B9 36 D7 50 D7 [19:02:34]CheckFolder [19:02:34]dirname=/storage/ofd_packets [19:02:34]CheckFolder done [19:02:34]ProducePacketName [19:02:34]name=ofd_packets/00029657 [19:02:34]NVStorageSaveData ofd_packets/00029657 [19:02:34]File name is /storage/ofd_packets/00029657 [19:02:34]Write 301 bytes [19:02:34]NVStorageSaveData done [19:02:34]OFDSenderStorePacket done [19:02:34]KKMCreateOFDPacket done [19:02:34]NVStorageSaveData kkm_last_timestamp [19:02:34]File name is /storage/kkm_last_timestamp [19:02:34]Write 4 bytes [19:02:34]NVStorageSaveData done [19:02:34]ExternCall_PrintAddStr [19:02:34]wPrintStart [19:02:34]Write to MH i2c: 01 00 00 30 18 48 [19:02:34]Write i2c OK [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 07 00 [19:02:34]MH_I2C_Read... [19:02:34]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 FF 0F 5D [19:02:34]RasterBufferAndPrint [19:02:34]line Счет N : (1)348112 [19:02:34]line ИНН: 02508201610067 [19:02:34]line Контрольно-Кассовый Чек [19:02:34]line ПРОДАЖА [19:02:34]line ТРК (МРК, ГНК) : 13 [19:02:34]line Товар: 2710124130 [19:02:34]line Аи-92-К-5 [19:02:34]line 7.720 * 64.80 [19:02:34]line = 500.26 [19:02:34]line НДС 12% НСП 1% [19:02:34]line > о реализуемом товаре [19:02:34]line ОКРУГЛЕНИЕ: -0.26 [19:02:34]line ИТОГО: 500.00 [19:02:34]line Внесено: 500.00 [19:02:34]line СДАЧА: 0.00 [19:02:34]line НСП 1% : 4.43 [19:02:34]line НДС 12% : 53.12 [19:02:34]line Наличными: 500.00 [19:02:34]line Безнал.: 0.00 [19:02:34]line Место: АЗС № 108 "Партнер Нефть" [19:02:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:02:34]line СНО: Общий режим [19:02:34]line Чек 251 15.04.2024 19:02 [19:02:34]line Смена: 117 ФФД: 1.0 [19:02:34]line ЗНМ: 0300000027 [19:02:34]line РНМ: 0000138879044617 [19:02:34]line Версия ККМ: 001 [19:02:34]line ФМ: 0000000000963154 [19:02:34]line ФД: 29657 [19:02:34]line ФПД: 46667790600952 [19:02:34]line 1/tax-web-control/client/api/v1/ticket?date=20240415T190234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29657&fm=46667790600952&tin=02508201610067®Number=0000138879044617&sum=50000 [19:02:35]OFD Sender: Processing packet 29657 [packets to send 8, broken 7] [19:02:35]ProducePacketName [19:02:35]name=ofd_packets/00029657 [19:02:35]OFD Sender: To server: pG, [19:02:35]CommunicateWithHost lk.salyk.kg:30040 [19:02:35]ConnectInit lk.salyk.kg [19:02:35]written 0, free lines is 4095 [19:02:35]Connected sock=10 [19:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 61 01 07 01 A4 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CA 79 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 73 00 00 35 04 06 00 2A 71 B1 14 CA F8 F9 9D 1F B9 36 D7 50 D7 [19:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 80 47 00 F4 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 39 36 33 31 35 34 10 04 04 00 D9 73 00 00 F4 03 04 00 6B 24 1D 66 B6 04 01 00 00 CB C0 DB 4B 39 33 C9 61 [19:02:35]CommunicateWithHost err = 0 [19:02:35]CheckOFDResponse [19:02:35]1017 (14) - 77093643461234 [19:02:35]1041 (16) - 0000000000963154 [19:02:35]1040 (4) - 29657 [19:02:35]1012 (4) - 15.04.2024 12:58 [19:02:35]1206 (1) - 0 [19:02:35]OFD Sender: Remove packet 29657 [19:02:35]ProducePacketName [19:02:35]name=ofd_packets/00029657 [19:02:35]NVStorageDeleteData [19:02:35]Write to MH i2c: 01 00 00 5A 18 72 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 5A 18 00 00 00 00 00 CC 0C 51 [19:02:35]RasterBufferAndPrint [19:02:35]line [19:02:35]line [19:02:35]line [19:02:35]line [19:02:35]line [19:02:35]written 0, free lines is 3282 [19:02:35]MH_Cut [19:02:35]Write to MH i2c: D1 01 00 61 18 01 4B [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: D1 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: D1 01 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: D1 01 00 61 18 00 4A [19:02:35]Write to MH i2c: 01 00 00 62 18 7A [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]OFD Sender: No OFD packet to send [19:02:36]*** Cut start [19:02:36]*** Partial cut [19:02:36]*** CUTSNS_PIN = 1 [19:02:36]*** CUTSNS_PIN = 0 [19:02:36]*** Brake cut motor [19:02:37]Read from MH i2c: 01 [19:02:37]MH_I2C_Read... [19:02:37]*** Stop cut motor [19:02:37]*** Cut end [19:02:37]Read from MH i2c: 01 07 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: 01 07 00 62 18 00 00 00 00 00 FF 0F 8F [19:02:37]process_action close_receipt done [19:02:37]requested_data is exist [19:02:37]produce_requested_data [19:02:37]requested_item fm.sn is exist - process it [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 11 00 00 [19:02:37]Write to MH i2c: E2 08 00 63 18 80 11 00 00 00 00 00 00 F5 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 63 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [19:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:37]wFMCommunicate OK [19:02:37]requested_item fd.num is exist - process it [19:02:37]SAM_PROTO_GetFieldsCounters [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 00 00 [19:02:37]Write to MH i2c: E2 08 00 64 18 80 13 00 00 00 00 00 00 F8 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 64 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 73 00 00 0E 04 04 00 75 00 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 E8 [19:02:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 73 00 00 0E 04 04 00 75 00 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 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetFieldsCounters done [19:02:37]requested_item shift.num is exist - process it [19:02:37]requested_item shift.opened is exist - process it [19:02:37]req_shift_opened [19:02:37]FM_GetShiftState [19:02:37]SAM_PROTO_GetShiftState [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 01 00 [19:02:37]Write to MH i2c: E2 08 00 65 18 80 13 01 00 00 00 00 00 FA [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0E 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0E 00 65 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 EE [19:02:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetShiftState done [19:02:37]FM_GetShiftState done [19:02:37]req_shift_opened done [19:02:37]requested_item shift.open_date is exist - process it [19:02:37]req_shift_open_date [19:02:37]req_shift_open_date done [19:02:37]produce_requested_data done [19:02:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29657,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:02:37]process_action_free close_receipt [19:02:37]json_value_free [19:02:37]json_value_free done [19:02:37]process_json_proto returns [19:02:37]Send response to host [19:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29657,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:02:37]free response buf [19:02:37]execute_script done [19:02:37]execute_script returns [19:02:37]free content buf [19:02:37]Sock 7.Close socket [19:02:37]Sock 7.Thread stoped [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04: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:48]accept exits with 9 [19:08:48]New connection [19:08:48]New thread 3066965348 created [19:08:48]Thread 3067108708 joined [19:08:48]Waiting for new connection... [19:08:48] Sock 9.Parse request [19:08:48]Sock 9.Check first char [19:08:48]Sock 9.First char is OK [19:08:48]request: POST /json_proto HTTP/1.0 [19:08:48]Method: POST [19:08:48]URL: /json_proto [19:08:48]Method is POST - this is cgi request [19:08:48]url: /json_proto [19:08:48]query_string will be loaded in cgi processing [19:08:48]execute_cgi json_proto POST (null) [19:08:48]execute_cgi path=json_proto method=POST [19:08:48]POST find Content-Length [19:08:48]Host: 172.17.33.3:8080 [19:08:48]Content-Length: 677 [19:08:48]Content-Type: application/json [19:08:48] [19:08:48]POST finish read [19:08:48]Found Content-Length = 677 [19:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:48]execute_script... [19:08:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:48]POST & json_proto [19:08:48]process_json_proto [19:08:48]json parsed OK: [19:08:48]protocol is kg_v1.0 [19:08:48]action value=close_receipt [19:08:48]process_action close_receipt [19:08:48]cmd_close_receipt [19:08:48]MH_GetDate [19:08:48]Write to MH i2c: F0 00 00 66 18 6D [19:08:48]Write i2c OK [19:08:48]MH_I2C_Read... [19:08:48]Read from MH i2c: F0 [19:08:48]MH_I2C_Read... [19:08:48]Read from MH i2c: F0 09 00 [19:08:48]MH_I2C_Read... [19:08:48]Read from MH i2c: F0 09 00 66 18 00 42 7B 1D 66 23 5B 8F 65 28 [19:08:48]GetLastDocTimeStamp 1713207754 [19:08:48]current date 1713208130 [19:08:48]FM_GetShiftState [19:08:48]SAM_PROTO_GetShiftState [19:08:48]wFMCommunicate request_size=4 [19:08:48]MH_SAM_APDU [19:08:48]CAPDU: 80 13 01 00 [19:08:48]Write to MH i2c: E2 08 00 67 18 80 13 01 00 00 00 00 00 FC [19:08:48]Write i2c OK [19:08:48]MH_I2C_Read... [19:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:48]Read from MH i2c: E2 [19:08:48]MH_I2C_Read... [19:08:48]Read from MH i2c: E2 0E 00 [19:08:48]MH_I2C_Read... [19:08:48]Read from MH i2c: E2 0E 00 67 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F0 [19:08:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:08:48]wFMCommunicate OK [19:08:48]SAM_PROTO_GetShiftState done [19:08:48]FM_GetShiftState done [19:08:48]opened in 1713140468 [19:08:48]opened+sec_in_day 1713226868 [19:08:48]quantity*price = 50025 [19:08:48]sum+1 = 50027 [19:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 252 15.04.2024 19:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29658 ФПД: 52127814699092 1/tax-web-control/client/api/v1/ticket?date=20240415T190850&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29658&fm=52127814699092&tin=02508201610067®Number=0000138879044617&sum=50000 [19:08:49]StoreToDocumentArchive [19:08:49]shift 117 fd 29658 [19:08:49]save to /storage/0117/doc_00029658 [19:08:49]save last doc name /storage/0117/doc_00029658 to /storage/kkm_last_doc_name [19:08:49]save OK [19:08:49]Clear old archive folders... [19:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:49]tlvbuf is B6F7B360 [19:08:49]SAM_PROTO_ClearQueue [19:08:49]wFMCommunicate request_size=4 [19:08:49]MH_SAM_APDU [19:08:49]CAPDU: 80 09 00 00 [19:08:49]Write to MH i2c: E2 08 00 74 18 80 09 00 00 00 00 00 00 FE [19:08:49]Write i2c OK [19:08:49]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [19:08:50]RAPDU: 90 00 [19:08:50]wFMCommunicate OK [19:08:50]SAM_PROTO_ClearQueue done [19:08:50]KKMCreateOFDPacket [19:08:50]OFDProtocolAddRootSTLVToBuf [19:08:50]FM_MakeSignedData [19:08:50]FM_MakeSignedData [19:08:50]SAM_PROTO_SignData [19:08:50]wFMCommunicate request_size=4 [19:08:50]MH_SAM_APDU [19:08:50]CAPDU: 80 0D 01 02 [19:08:50]Write to MH i2c: E2 08 00 75 18 80 0D 01 02 00 00 00 00 06 [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [19:08:50]RAPDU: 90 00 [19:08:50]wFMCommunicate OK [19:08:50]wFMCommunicate request_size=255 [19:08:50]MH_SAM_APDU [19:08:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 73 00 00 35 04 06 00 2F [19:08:50]Write to MH i2c: E2 02 01 76 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 73 00 00 35 04 06 00 2F 00 00 EC [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [19:08:50]RAPDU: 90 00 [19:08:50]wFMCommunicate OK [19:08:50]wFMCommunicate request_size=10 [19:08:50]MH_SAM_APDU [19:08:50]CAPDU: 80 0D 02 02 05 68 F3 E0 C8 54 [19:08:50]Write to MH i2c: E2 0D 00 77 18 80 0D 02 02 05 00 68 F3 E0 C8 54 00 00 6A [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [19:08:50]RAPDU: 90 00 [19:08:50]wFMCommunicate OK [19:08:50]wFMCommunicate request_size=4 [19:08:50]MH_SAM_APDU [19:08:50]CAPDU: 80 0D 03 02 [19:08:50]Write to MH i2c: E2 08 00 78 18 80 0D 03 02 00 00 00 00 0B [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 0B 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 0B 00 78 18 00 43 9E 66 60 96 6E B8 27 90 00 96 [19:08:50]RAPDU: 43 9E 66 60 96 6E B8 27 90 00 [19:08:50]wFMCommunicate OK [19:08:50]SAM_PROTO_SignData done [19:08:50]FM_MakeSignedData done [19:08:50]CreateOFDProtocolMessage [19:08:50]wFMCommunicate request_size=4 [19:08:50]MH_SAM_APDU [19:08:50]CAPDU: 80 11 00 00 [19:08:50]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:50]Read from MH i2c: E2 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 17 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [19:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:08:50]wFMCommunicate OK [19:08:50]CreateOFDProtocolMessage done [19:08:50]OFDSenderStorePacket 29658 [19:08:50]StoreOFDPacket docnum=29658 [19:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A 80 07 01 68 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 73 00 00 35 04 06 00 2F 68 F3 E0 C8 54 43 9E 66 60 96 6E B8 27 [19:08:50]CheckFolder [19:08:50]dirname=/storage/ofd_packets [19:08:50]CheckFolder done [19:08:50]ProducePacketName [19:08:50]name=ofd_packets/00029658 [19:08:50]NVStorageSaveData ofd_packets/00029658 [19:08:50]File name is /storage/ofd_packets/00029658 [19:08:50]Write 301 bytes [19:08:50]NVStorageSaveData done [19:08:50]OFDSenderStorePacket done [19:08:50]KKMCreateOFDPacket done [19:08:50]NVStorageSaveData kkm_last_timestamp [19:08:50]File name is /storage/kkm_last_timestamp [19:08:50]Write 4 bytes [19:08:50]NVStorageSaveData done [19:08:50]ExternCall_PrintAddStr [19:08:50]wPrintStart [19:08:50]Write to MH i2c: 01 00 00 7A 18 92 [19:08:50]Write i2c OK [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: 01 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: 01 07 00 [19:08:50]MH_I2C_Read... [19:08:50]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 FF 0F A7 [19:08:50]RasterBufferAndPrint [19:08:50]line Счет N : (1)348115 [19:08:50]line ИНН: 02508201610067 [19:08:50]line Контрольно-Кассовый Чек [19:08:50]line ПРОДАЖА [19:08:50]line ТРК (МРК, ГНК) : 42 [19:08:50]line Товар: 2710124130 [19:08:50]line Аи-92-К-5 [19:08:50]line 7.720 * 64.80 [19:08:50]line = 500.26 [19:08:50]line НДС 12% НСП 1% [19:08:50]line > о реализуемом товаре [19:08:50]line ОКРУГЛЕНИЕ: -0.26 [19:08:50]line ИТОГО: 500.00 [19:08:50]line Внесено: 500.00 [19:08:50]line СДАЧА: 0.00 [19:08:50]line НСП 1% : 4.43 [19:08:50]line НДС 12% : 53.12 [19:08:50]line Наличными: 500.00 [19:08:50]line Безнал.: 0.00 [19:08:50]line Место: АЗС № 108 "Партнер Нефть" [19:08:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:08:50]line СНО: Общий режим [19:08:50]line Чек 252 15.04.2024 19:08 [19:08:50]line Смена: 117 ФФД: 1.0 [19:08:50]line ЗНМ: 0300000027 [19:08:50]line РНМ: 0000138879044617 [19:08:50]line Версия ККМ: 001 [19:08:50]line ФМ: 0000000000963154 [19:08:50]line ФД: 29658 [19:08:50]line ФПД: 52127814699092 [19:08:50]line 1/tax-web-control/client/api/v1/ticket?date=20240415T190850&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29658&fm=52127814699092&tin=02508201610067®Number=0000138879044617&sum=50000 [19:08:50]OFD Sender: Processing packet 29658 [packets to send 8, broken 7] [19:08:50]ProducePacketName [19:08:50]name=ofd_packets/00029658 [19:08:50]OFD Sender: To server: pG, [19:08:50]CommunicateWithHost lk.salyk.kg:30040 [19:08:50]ConnectInit lk.salyk.kg [19:08:50]written 0, free lines is 4095 [19:08:50]Connected sock=10 [19:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8A 80 07 01 68 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 73 00 00 35 04 06 00 2F 68 F3 E0 C8 54 43 9E 66 60 96 6E B8 27 [19:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AE 52 47 00 9F 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 39 36 33 31 35 34 10 04 04 00 DA 73 00 00 F4 03 04 00 E2 25 1D 66 B6 04 01 00 00 2C 9F 73 6C 8F 24 5C D3 [19:08:51]CommunicateWithHost err = 0 [19:08:51]CheckOFDResponse [19:08:51]1017 (14) - 77093643461234 [19:08:51]1041 (16) - 0000000000963154 [19:08:51]1040 (4) - 29658 [19:08:51]1012 (4) - 15.04.2024 13:04 [19:08:51]1206 (1) - 0 [19:08:51]OFD Sender: Remove packet 29658 [19:08:51]ProducePacketName [19:08:51]name=ofd_packets/00029658 [19:08:51]NVStorageDeleteData [19:08:51]Write to MH i2c: 01 00 00 A4 18 BC [19:08:51]Write i2c OK [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: 01 [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: 01 07 00 [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: 01 07 00 A4 18 00 00 00 00 00 D7 0C A6 [19:08:51]RasterBufferAndPrint [19:08:51]line [19:08:51]line [19:08:51]line [19:08:51]line [19:08:51]line [19:08:51]written 0, free lines is 3294 [19:08:51]MH_Cut [19:08:51]Write to MH i2c: D1 01 00 AB 18 01 95 [19:08:51]Write i2c OK [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: D1 [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: D1 01 00 [19:08:51]MH_I2C_Read... [19:08:51]Read from MH i2c: D1 01 00 AB 18 00 94 [19:08:51]Write to MH i2c: 01 00 00 AC 18 C4 [19:08:51]Write i2c OK [19:08:51]MH_I2C_Read... [19:08:51]OFD Sender: No OFD packet to send [19:08:52]*** Cut start [19:08:52]*** Partial cut [19:08:52]*** CUTSNS_PIN = 1 [19:08:52]*** CUTSNS_PIN = 0 [19:08:52]*** Brake cut motor [19:08:52]Read from MH i2c: 01 [19:08:52]MH_I2C_Read... [19:08:52]*** Stop cut motor [19:08:52]*** Cut end [19:08:52]Read from MH i2c: 01 07 00 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 FF 0F D9 [19:08:52]process_action close_receipt done [19:08:52]requested_data is exist [19:08:52]produce_requested_data [19:08:52]requested_item fm.sn is exist - process it [19:08:52]wFMCommunicate request_size=4 [19:08:52]MH_SAM_APDU [19:08:52]CAPDU: 80 11 00 00 [19:08:52]Write to MH i2c: E2 08 00 AD 18 80 11 00 00 00 00 00 00 3F [19:08:52]Write i2c OK [19:08:52]MH_I2C_Read... [19:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:52]Read from MH i2c: E2 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 17 00 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 17 00 AD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [19:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:08:52]wFMCommunicate OK [19:08:52]requested_item fd.num is exist - process it [19:08:52]SAM_PROTO_GetFieldsCounters [19:08:52]wFMCommunicate request_size=4 [19:08:52]MH_SAM_APDU [19:08:52]CAPDU: 80 13 00 00 [19:08:52]Write to MH i2c: E2 08 00 AE 18 80 13 00 00 00 00 00 00 42 [19:08:52]Write i2c OK [19:08:52]MH_I2C_Read... [19:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:52]Read from MH i2c: E2 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 62 00 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 62 00 AE 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 73 00 00 0E 04 04 00 75 00 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 36 [19:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 73 00 00 0E 04 04 00 75 00 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 [19:08:52]wFMCommunicate OK [19:08:52]SAM_PROTO_GetFieldsCounters done [19:08:52]requested_item shift.num is exist - process it [19:08:52]requested_item shift.opened is exist - process it [19:08:52]req_shift_opened [19:08:52]FM_GetShiftState [19:08:52]SAM_PROTO_GetShiftState [19:08:52]wFMCommunicate request_size=4 [19:08:52]MH_SAM_APDU [19:08:52]CAPDU: 80 13 01 00 [19:08:52]Write to MH i2c: E2 08 00 AF 18 80 13 01 00 00 00 00 00 44 [19:08:52]Write i2c OK [19:08:52]MH_I2C_Read... [19:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:52]Read from MH i2c: E2 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 0E 00 [19:08:52]MH_I2C_Read... [19:08:52]Read from MH i2c: E2 0E 00 AF 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 38 [19:08:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:08:52]wFMCommunicate OK [19:08:52]SAM_PROTO_GetShiftState done [19:08:52]FM_GetShiftState done [19:08:52]req_shift_opened done [19:08:52]requested_item shift.open_date is exist - process it [19:08:52]req_shift_open_date [19:08:52]req_shift_open_date done [19:08:52]produce_requested_data done [19:08:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29658,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:08:52]process_action_free close_receipt [19:08:52]json_value_free [19:08:52]json_value_free done [19:08:52]process_json_proto returns [19:08:52]Send response to host [19:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29658,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:08:52]free response buf [19:08:52]execute_script done [19:08:52]execute_script returns [19:08:52]free content buf [19:08:52]Sock 9.Close socket [19:08:52]Sock 9.Thread stoped [19:08:56]accept exits with 7 [19:08:56]New connection [19:08:56]New thread 3067108708 created [19:08:56]Thread 3066965348 joined [19:08:56]Waiting for new connection... [19:08:56] Sock 7.Parse request [19:08:56]Sock 7.Check first char [19:08:56]Sock 7.First char is OK [19:08:56]request: POST /json_proto HTTP/1.0 [19:08:56]Method: POST [19:08:56]URL: /json_proto [19:08:56]Method is POST - this is cgi request [19:08:56]url: /json_proto [19:08:56]query_string will be loaded in cgi processing [19:08:56]execute_cgi json_proto POST (null) [19:08:56]execute_cgi path=json_proto method=POST [19:08:56]POST find Content-Length [19:08:56]Host: 172.17.33.3:8080 [19:08:56]Content-Length: 805 [19:08:56]Content-Type: application/json [19:08:56] [19:08:56]POST finish read [19:08:56]Found Content-Length = 805 [19:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:56]execute_script... [19:08:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 89.170, "sum" : 6500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:56]POST & json_proto [19:08:56]process_json_proto [19:08:56]json parsed OK: [19:08:56]protocol is kg_v1.0 [19:08:56]action value=close_receipt [19:08:56]process_action close_receipt [19:08:56]cmd_close_receipt [19:08:56]MH_GetDate [19:08:56]Write to MH i2c: F0 00 00 B0 18 B7 [19:08:56]Write i2c OK [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: F0 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: F0 09 00 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: F0 09 00 B0 18 00 4A 7B 1D 66 23 5B 8F 65 7A [19:08:56]GetLastDocTimeStamp 1713208130 [19:08:56]current date 1713208138 [19:08:56]FM_GetShiftState [19:08:56]SAM_PROTO_GetShiftState [19:08:56]wFMCommunicate request_size=4 [19:08:56]MH_SAM_APDU [19:08:56]CAPDU: 80 13 01 00 [19:08:56]Write to MH i2c: E2 08 00 B1 18 80 13 01 00 00 00 00 00 46 [19:08:56]Write i2c OK [19:08:56]MH_I2C_Read... [19:08:56]OFD Sender: No OFD packet to send [19:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:56]Read from MH i2c: E2 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: E2 0E 00 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: E2 0E 00 B1 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3A [19:08:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:08:56]wFMCommunicate OK [19:08:56]SAM_PROTO_GetShiftState done [19:08:56]FM_GetShiftState done [19:08:56]opened in 1713140468 [19:08:56]opened+sec_in_day 1713226868 [19:08:56]quantity*price = 650049 [19:08:56]sum+1 = 650050 [19:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6500.49 НСП 1% : 57.53 НДС 12% : 690.32 Наличными: 0.00 Безнал.: 6500.49 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 253 15.04.2024 19:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29659 ФПД: 54618545976290 1/tax-web-control/client/api/v1/ticket?date=20240415T190858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29659&fm=54618545976290&tin=02508201610067®Number=0000138879044617&sum=650049 [19:08:57]StoreToDocumentArchive [19:08:57]shift 117 fd 29659 [19:08:57]save to /storage/0117/doc_00029659 [19:08:57]save last doc name /storage/0117/doc_00029659 to /storage/kkm_last_doc_name [19:08:57]save OK [19:08:57]Clear old archive folders... [19:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:08:57]tlvbuf is 01AABAB0 [19:08:57]SAM_PROTO_ClearQueue [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 09 00 00 [19:08:57]Write to MH i2c: E2 08 00 BE 18 80 09 00 00 00 00 00 00 48 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 03 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [19:08:57]RAPDU: 90 00 [19:08:57]wFMCommunicate OK [19:08:57]SAM_PROTO_ClearQueue done [19:08:57]KKMCreateOFDPacket [19:08:57]OFDProtocolAddRootSTLVToBuf [19:08:57]FM_MakeSignedData [19:08:57]FM_MakeSignedData [19:08:57]SAM_PROTO_SignData [19:08:57]wFMCommunicate request_size=4 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 0D 01 02 [19:08:57]Write to MH i2c: E2 08 00 BF 18 80 0D 01 02 00 00 00 00 50 [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:57]Read from MH i2c: E2 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 03 00 [19:08:57]MH_I2C_Read... [19:08:57]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [19:08:57]RAPDU: 90 00 [19:08:57]wFMCommunicate OK [19:08:57]wFMCommunicate request_size=255 [19:08:57]MH_SAM_APDU [19:08:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 73 00 00 35 04 06 00 31 AC DF 07 [19:08:57]Write to MH i2c: E2 02 01 C0 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 73 00 00 35 04 06 00 31 AC DF 07 00 00 BE [19:08:57]Write i2c OK [19:08:57]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]wFMCommunicate request_size=7 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 0D 02 02 02 F3 E2 [19:08:58]Write to MH i2c: E2 0A 00 C1 18 80 0D 02 02 02 00 F3 E2 00 00 2C [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [19:08:58]RAPDU: 90 00 [19:08:58]wFMCommunicate OK [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 0D 03 02 [19:08:58]Write to MH i2c: E2 08 00 C2 18 80 0D 03 02 00 00 00 00 55 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0B 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 0B 00 C2 18 00 5A 3D 3C 3C 2A 12 C4 B1 90 00 16 [19:08:58]RAPDU: 5A 3D 3C 3C 2A 12 C4 B1 90 00 [19:08:58]wFMCommunicate OK [19:08:58]SAM_PROTO_SignData done [19:08:58]FM_MakeSignedData done [19:08:58]CreateOFDProtocolMessage [19:08:58]wFMCommunicate request_size=4 [19:08:58]MH_SAM_APDU [19:08:58]CAPDU: 80 11 00 00 [19:08:58]Write to MH i2c: E2 08 00 C3 18 80 11 00 00 00 00 00 00 55 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:58]Read from MH i2c: E2 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 17 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: E2 17 00 C3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [19:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:08:58]wFMCommunicate OK [19:08:58]CreateOFDProtocolMessage done [19:08:58]OFDSenderStorePacket 29659 [19:08:58]StoreOFDPacket docnum=29659 [19:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 67 61 04 01 8E BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 73 00 00 35 04 06 00 31 AC DF 07 F3 E2 5A 3D 3C 3C 2A 12 C4 B1 [19:08:58]CheckFolder [19:08:58]dirname=/storage/ofd_packets [19:08:58]CheckFolder done [19:08:58]ProducePacketName [19:08:58]name=ofd_packets/00029659 [19:08:58]NVStorageSaveData ofd_packets/00029659 [19:08:58]File name is /storage/ofd_packets/00029659 [19:08:58]Write 298 bytes [19:08:58]NVStorageSaveData done [19:08:58]OFDSenderStorePacket done [19:08:58]KKMCreateOFDPacket done [19:08:58]NVStorageSaveData kkm_last_timestamp [19:08:58]File name is /storage/kkm_last_timestamp [19:08:58]Write 4 bytes [19:08:58]NVStorageSaveData done [19:08:58]ExternCall_PrintAddStr [19:08:58]wPrintStart [19:08:58]Write to MH i2c: 01 00 00 C4 18 DC [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 C4 18 00 00 00 00 00 FF 0F F1 [19:08:58]RasterBufferAndPrint [19:08:58]line Счет N : (1)348113 [19:08:58]line ИНН: 02508201610067 [19:08:58]line Контрольно-Кассовый Чек [19:08:58]line ПРОДАЖА [19:08:58]line ТРК (МРК, ГНК) : 11 [19:08:58]line Товар: 2710194210 [19:08:58]line ДТ-К-5 [19:08:58]line 89.170 * 72.90 [19:08:58]line = 6500.49 [19:08:58]line НДС 12% НСП 1% [19:08:58]line > о реализуемом товаре [19:08:58]line ИТОГО: 6500.49 [19:08:58]line НСП 1% : 57.53 [19:08:58]line НДС 12% : 690.32 [19:08:58]line Наличными: 0.00 [19:08:58]line Безнал.: 6500.49 [19:08:58]line Место: АЗС № 108 "Партнер Нефть" [19:08:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:08:58]line СНО: Общий режим [19:08:58]line Чек 253 15.04.2024 19:08 [19:08:58]line Смена: 117 ФФД: 1.0 [19:08:58]line ЗНМ: 0300000027 [19:08:58]line РНМ: 0000138879044617 [19:08:58]line Версия ККМ: 001 [19:08:58]line Платежная система: О! деньги [19:08:58]line ФМ: 0000000000963154 [19:08:58]line ФД: 29659 [19:08:58]line ФПД: 54618545976290 [19:08:58]line 1/tax-web-control/client/api/v1/ticket?date=20240415T190858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29659&fm=54618545976290&tin=02508201610067®Number=0000138879044617&sum=650049 [19:08:58]written 0, free lines is 4095 [19:08:58]OFD Sender: Processing packet 29659 [packets to send 8, broken 7] [19:08:58]ProducePacketName [19:08:58]name=ofd_packets/00029659 [19:08:58]OFD Sender: To server: pG, [19:08:58]CommunicateWithHost lk.salyk.kg:30040 [19:08:58]ConnectInit lk.salyk.kg [19:08:58]Connected sock=10 [19:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 67 61 04 01 8E BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 5C 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 41 EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 73 00 00 35 04 06 00 31 AC DF 07 F3 E2 5A 3D 3C 3C 2A 12 C4 B1 [19:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E5 98 47 00 17 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 39 36 33 31 35 34 10 04 04 00 DB 73 00 00 F4 03 04 00 EA 25 1D 66 B6 04 01 00 00 C4 1E 6C E5 DC 66 1F 34 [19:08:58]CommunicateWithHost err = 0 [19:08:58]CheckOFDResponse [19:08:58]1017 (14) - 77093643461234 [19:08:58]1041 (16) - 0000000000963154 [19:08:58]1040 (4) - 29659 [19:08:58]1012 (4) - 15.04.2024 13:04 [19:08:58]1206 (1) - 0 [19:08:58]OFD Sender: Remove packet 29659 [19:08:58]ProducePacketName [19:08:58]name=ofd_packets/00029659 [19:08:58]NVStorageDeleteData [19:08:58]Write to MH i2c: 01 00 00 ED 18 05 [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: 01 07 00 ED 18 00 00 00 00 00 F3 0C 0B [19:08:58]RasterBufferAndPrint [19:08:58]line [19:08:58]line [19:08:58]line [19:08:58]line [19:08:58]line [19:08:58]written 0, free lines is 3326 [19:08:58]MH_Cut [19:08:58]Write to MH i2c: D1 01 00 F4 18 01 DE [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: D1 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: D1 01 00 [19:08:58]MH_I2C_Read... [19:08:58]Read from MH i2c: D1 01 00 F4 18 00 DD [19:08:58]Write to MH i2c: 01 00 00 F5 18 0D [19:08:58]Write i2c OK [19:08:58]MH_I2C_Read... [19:08:59]OFD Sender: No OFD packet to send [19:08:59]*** Cut start [19:08:59]*** Partial cut [19:08:59]*** CUTSNS_PIN = 1 [19:08:59]*** CUTSNS_PIN = 0 [19:08:59]*** Brake cut motor [19:09:00]Read from MH i2c: 01 [19:09:00]MH_I2C_Read... [19:09:00]*** Stop cut motor [19:09:00]*** Cut end [19:09:00]Read from MH i2c: 01 07 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: 01 07 00 F5 18 00 00 00 00 00 FF 0F 22 [19:09:00]process_action close_receipt done [19:09:00]requested_data is exist [19:09:00]produce_requested_data [19:09:00]requested_item fm.sn is exist - process it [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 11 00 00 [19:09:00]Write to MH i2c: E2 08 00 F6 18 80 11 00 00 00 00 00 00 88 [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 17 00 F6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [19:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:09:00]wFMCommunicate OK [19:09:00]requested_item fd.num is exist - process it [19:09:00]SAM_PROTO_GetFieldsCounters [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 13 00 00 [19:09:00]Write to MH i2c: E2 08 00 F7 18 80 13 00 00 00 00 00 00 8B [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 62 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 62 00 F7 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 73 00 00 0E 04 04 00 75 00 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 83 [19:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 73 00 00 0E 04 04 00 75 00 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 [19:09:00]wFMCommunicate OK [19:09:00]SAM_PROTO_GetFieldsCounters done [19:09:00]requested_item shift.num is exist - process it [19:09:00]requested_item shift.opened is exist - process it [19:09:00]req_shift_opened [19:09:00]FM_GetShiftState [19:09:00]SAM_PROTO_GetShiftState [19:09:00]wFMCommunicate request_size=4 [19:09:00]MH_SAM_APDU [19:09:00]CAPDU: 80 13 01 00 [19:09:00]Write to MH i2c: E2 08 00 F8 18 80 13 01 00 00 00 00 00 8D [19:09:00]Write i2c OK [19:09:00]MH_I2C_Read... [19:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:00]Read from MH i2c: E2 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 0E 00 [19:09:00]MH_I2C_Read... [19:09:00]Read from MH i2c: E2 0E 00 F8 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 81 [19:09:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:09:00]wFMCommunicate OK [19:09:00]SAM_PROTO_GetShiftState done [19:09:00]FM_GetShiftState done [19:09:00]req_shift_opened done [19:09:00]requested_item shift.open_date is exist - process it [19:09:00]req_shift_open_date [19:09:00]req_shift_open_date done [19:09:00]produce_requested_data done [19:09:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29659,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:09:00]process_action_free close_receipt [19:09:00]json_value_free [19:09:00]json_value_free done [19:09:00]process_json_proto returns [19:09:00]Send response to host [19:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29659,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:09:00]free response buf [19:09:00]execute_script done [19:09:00]execute_script returns [19:09:00]free content buf [19:09:00]Sock 7.Close socket [19:09:00]Sock 7.Thread stoped [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:13]accept exits with 9 [19:09:13]New connection [19:09:13]New thread 3066965348 created [19:09:13]Thread 3067108708 joined [19:09:13]Waiting for new connection... [19:09:13] Sock 9.Parse request [19:09:13]Sock 9.Check first char [19:09:13]Sock 9.First char is OK [19:09:13]request: POST /json_proto HTTP/1.0 [19:09:13]Method: POST [19:09:13]URL: /json_proto [19:09:13]Method is POST - this is cgi request [19:09:13]url: /json_proto [19:09:13]query_string will be loaded in cgi processing [19:09:13]execute_cgi json_proto POST (null) [19:09:13]execute_cgi path=json_proto method=POST [19:09:13]POST find Content-Length [19:09:13]Host: 172.17.33.3:8080 [19:09:13]Content-Length: 677 [19:09:13]Content-Type: application/json [19:09:13] [19:09:13]POST finish read [19:09:13]Found Content-Length = 677 [19:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:13]execute_script... [19:09:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:13]POST & json_proto [19:09:13]process_json_proto [19:09:13]json parsed OK: [19:09:13]protocol is kg_v1.0 [19:09:13]action value=close_receipt [19:09:13]process_action close_receipt [19:09:13]cmd_close_receipt [19:09:13]MH_GetDate [19:09:13]Write to MH i2c: F0 00 00 F9 18 00 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: F0 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: F0 09 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: F0 09 00 F9 18 00 5B 7B 1D 66 23 5B 8F 65 D4 [19:09:13]GetLastDocTimeStamp 1713208138 [19:09:13]current date 1713208155 [19:09:13]FM_GetShiftState [19:09:13]SAM_PROTO_GetShiftState [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 01 00 [19:09:13]Write to MH i2c: E2 08 00 FA 18 80 13 01 00 00 00 00 00 8F [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 FA 18 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 83 [19:09:14]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetShiftState done [19:09:14]FM_GetShiftState done [19:09:14]opened in 1713140468 [19:09:14]opened+sec_in_day 1713226868 [19:09:14]quantity*price = 30002 [19:09:14]sum+1 = 30003 [19:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 254 15.04.2024 19:09 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29660 ФПД: 121108663789229 1/tax-web-control/client/api/v1/ticket?date=20240415T190915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29660&fm=121108663789229&tin=02508201610067®Number=0000138879044617&sum=30000 [19:09:15]StoreToDocumentArchive [19:09:15]shift 117 fd 29660 [19:09:15]save to /storage/0117/doc_00029660 [19:09:15]save last doc name /storage/0117/doc_00029660 to /storage/kkm_last_doc_name [19:09:15]save OK [19:09:15]Clear old archive folders... [19:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:15]tlvbuf is 01A68190 [19:09:15]SAM_PROTO_ClearQueue [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 09 00 00 [19:09:15]Write to MH i2c: E2 08 00 07 19 80 09 00 00 00 00 00 00 92 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]SAM_PROTO_ClearQueue done [19:09:15]KKMCreateOFDPacket [19:09:15]OFDProtocolAddRootSTLVToBuf [19:09:15]FM_MakeSignedData [19:09:15]FM_MakeSignedData [19:09:15]SAM_PROTO_SignData [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 01 02 [19:09:15]Write to MH i2c: E2 08 00 08 19 80 0D 01 02 00 00 00 00 9A [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=255 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FE 00 00 00 F4 03 04 00 5B 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 73 00 00 35 04 06 00 6E [19:09:15]Write to MH i2c: E2 02 01 09 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FE 00 00 00 F4 03 04 00 5B 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 73 00 00 35 04 06 00 6E 00 00 54 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=10 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 02 02 05 25 CE E2 66 AD [19:09:15]Write to MH i2c: E2 0D 00 0A 19 80 0D 02 02 05 00 25 CE E2 66 AD 00 00 8F [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 0A 19 00 90 00 97 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 03 02 [19:09:15]Write to MH i2c: E2 08 00 0B 19 80 0D 03 02 00 00 00 00 9F [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0B 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0B 00 0B 19 00 5C 0F 67 FF 01 D2 D0 D6 90 00 EA [19:09:15]RAPDU: 5C 0F 67 FF 01 D2 D0 D6 90 00 [19:09:15]wFMCommunicate OK [19:09:15]SAM_PROTO_SignData done [19:09:15]FM_MakeSignedData done [19:09:15]CreateOFDProtocolMessage [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 11 00 00 [19:09:15]Write to MH i2c: E2 08 00 0C 19 80 11 00 00 00 00 00 00 9F [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 0C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [19:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:09:15]wFMCommunicate OK [19:09:15]CreateOFDProtocolMessage done [19:09:15]OFDSenderStorePacket 29660 [19:09:15]StoreOFDPacket docnum=29660 [19:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E 40 07 01 EC 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FE 00 00 00 F4 03 04 00 5B 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 73 00 00 35 04 06 00 6E 25 CE E2 66 AD 5C 0F 67 FF 01 D2 D0 D6 [19:09:15]CheckFolder [19:09:15]dirname=/storage/ofd_packets [19:09:15]CheckFolder done [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00029660 [19:09:15]NVStorageSaveData ofd_packets/00029660 [19:09:15]File name is /storage/ofd_packets/00029660 [19:09:15]Write 301 bytes [19:09:15]NVStorageSaveData done [19:09:15]OFDSenderStorePacket done [19:09:15]KKMCreateOFDPacket done [19:09:15]NVStorageSaveData kkm_last_timestamp [19:09:15]File name is /storage/kkm_last_timestamp [19:09:15]Write 4 bytes [19:09:15]NVStorageSaveData done [19:09:15]ExternCall_PrintAddStr [19:09:15]wPrintStart [19:09:15]Write to MH i2c: 01 00 00 0D 19 26 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 07 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 FF 0F 3B [19:09:15]RasterBufferAndPrint [19:09:15]line Счет N : (1)348114 [19:09:15]line ИНН: 02508201610067 [19:09:15]line Контрольно-Кассовый Чек [19:09:15]line ПРОДАЖА [19:09:15]line ТРК (МРК, ГНК) : 23 [19:09:15]line Товар: 2710124130 [19:09:15]line Аи-92-К-5 [19:09:15]line 4.630 * 64.80 [19:09:15]line = 300.02 [19:09:15]line НДС 12% НСП 1% [19:09:15]line > о реализуемом товаре [19:09:15]line ОКРУГЛЕНИЕ: -0.02 [19:09:15]line ИТОГО: 300.00 [19:09:15]line Внесено: 300.00 [19:09:15]line СДАЧА: 0.00 [19:09:15]line НСП 1% : 2.65 [19:09:15]line НДС 12% : 31.86 [19:09:15]line Наличными: 300.00 [19:09:15]line Безнал.: 0.00 [19:09:15]line Место: АЗС № 108 "Партнер Нефть" [19:09:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:09:15]line СНО: Общий режим [19:09:15]line Чек 254 15.04.2024 19:09 [19:09:15]line Смена: 117 ФФД: 1.0 [19:09:15]line ЗНМ: 0300000027 [19:09:15]line РНМ: 0000138879044617 [19:09:15]line Версия ККМ: 001 [19:09:15]line ФМ: 0000000000963154 [19:09:15]line ФД: 29660 [19:09:15]line ФПД: 121108663789229 [19:09:15]line 1/tax-web-control/client/api/v1/ticket?date=20240415T190915&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29660&fm=121108663789229&tin=02508201610067®Number=0000138879044617&sum=30000 [19:09:15]written 0, free lines is 4095 [19:09:15]OFD Sender: Processing packet 29660 [packets to send 8, broken 7] [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00029660 [19:09:15]OFD Sender: To server: pG, [19:09:15]CommunicateWithHost lk.salyk.kg:30040 [19:09:15]ConnectInit lk.salyk.kg [19:09:15]Connected sock=10 [19:09:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E 40 07 01 EC 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FE 00 00 00 F4 03 04 00 5B 7B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 73 00 00 35 04 06 00 6E 25 CE E2 66 AD 5C 0F 67 FF 01 D2 D0 D6 [19:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB CD 47 00 FD 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 39 36 33 31 35 34 10 04 04 00 DC 73 00 00 F4 03 04 00 FB 25 1D 66 B6 04 01 00 00 56 39 54 6E FA 18 2A 2F [19:09:15]CommunicateWithHost err = 0 [19:09:15]CheckOFDResponse [19:09:15]1017 (14) - 77093643461234 [19:09:15]1041 (16) - 0000000000963154 [19:09:15]1040 (4) - 29660 [19:09:15]1012 (4) - 15.04.2024 13:04 [19:09:15]1206 (1) - 0 [19:09:15]OFD Sender: Remove packet 29660 [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00029660 [19:09:15]NVStorageDeleteData [19:09:16]Write to MH i2c: 01 00 00 37 19 50 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 D5 0C 38 [19:09:16]RasterBufferAndPrint [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]written 0, free lines is 3295 [19:09:16]MH_Cut [19:09:16]Write to MH i2c: D1 01 00 3E 19 01 29 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 01 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 01 00 3E 19 00 28 [19:09:16]Write to MH i2c: 01 00 00 3F 19 58 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]OFD Sender: No OFD packet to send [19:09:16]*** Cut start [19:09:16]*** Partial cut [19:09:16]*** CUTSNS_PIN = 1 [19:09:16]*** CUTSNS_PIN = 0 [19:09:17]*** Brake cut motor [19:09:17]Read from MH i2c: 01 [19:09:17]MH_I2C_Read... [19:09:17]*** Stop cut motor [19:09:17]*** Cut end [19:09:17]Read from MH i2c: 01 07 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: 01 07 00 3F 19 00 00 00 00 00 FF 0F 6D [19:09:17]process_action close_receipt done [19:09:17]requested_data is exist [19:09:17]produce_requested_data [19:09:17]requested_item fm.sn is exist - process it [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 11 00 00 [19:09:17]Write to MH i2c: E2 08 00 40 19 80 11 00 00 00 00 00 00 D3 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 17 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 17 00 40 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [19:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:09:17]wFMCommunicate OK [19:09:17]requested_item fd.num is exist - process it [19:09:17]SAM_PROTO_GetFieldsCounters [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 13 00 00 [19:09:17]Write to MH i2c: E2 08 00 41 19 80 13 00 00 00 00 00 00 D6 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 62 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 62 00 41 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 D2 [19:09:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 [19:09:17]wFMCommunicate OK [19:09:17]SAM_PROTO_GetFieldsCounters done [19:09:17]requested_item shift.num is exist - process it [19:09:17]requested_item shift.opened is exist - process it [19:09:17]req_shift_opened [19:09:17]FM_GetShiftState [19:09:17]SAM_PROTO_GetShiftState [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 13 01 00 [19:09:17]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CC [19:09:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:09:17]wFMCommunicate OK [19:09:17]SAM_PROTO_GetShiftState done [19:09:17]FM_GetShiftState done [19:09:17]req_shift_opened done [19:09:17]requested_item shift.open_date is exist - process it [19:09:17]req_shift_open_date [19:09:17]req_shift_open_date done [19:09:17]produce_requested_data done [19:09:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:09:17]process_action_free close_receipt [19:09:17]json_value_free [19:09:17]json_value_free done [19:09:17]process_json_proto returns [19:09:17]Send response to host [19:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:09:17]free response buf [19:09:17]execute_script done [19:09:17]execute_script returns [19:09:17]free content buf [19:09:17]Sock 9.Close socket [19:09:17]Sock 9.Thread stoped [19:09: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:22]accept exits with 7 [19:10:22]New connection [19:10:22]New thread 3067108708 created [19:10:22]Thread 3066965348 joined [19:10:22]Waiting for new connection... [19:10:22] Sock 7.Parse request [19:10:22]Sock 7.Check first char [19:10:22]Sock 7.First char is OK [19:10:22]request: POST /json_proto HTTP/1.0 [19:10:22]Method: POST [19:10:22]URL: /json_proto [19:10:22]Method is POST - this is cgi request [19:10:22]url: /json_proto [19:10:22]query_string will be loaded in cgi processing [19:10:22]execute_cgi json_proto POST (null) [19:10:22]execute_cgi path=json_proto method=POST [19:10:22]POST find Content-Length [19:10:22]Host: 172.17.33.3:8080 [19:10:22]Content-Length: 1211 [19:10:22]Content-Type: application/json [19:10:22] [19:10:22]POST finish read [19:10:22]Found Content-Length = 1211 [19:10:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348116\u000A15.04.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3856975;3856976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:22]execute_script... [19:10:22]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348116\u000A15.04.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3856975;3856976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:22]POST & json_proto [19:10:22]process_json_proto [19:10:22]json parsed OK: [19:10:22]protocol is kg_v1.0 [19:10:22]action value=print_text [19:10:22]process_action print_text [19:10:22]cmd_print_text [19:10:22]ExternCall_PrintAddStr [19:10:22]wPrintStart [19:10:22]Write to MH i2c: 01 00 00 43 19 5C [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 43 19 00 00 00 00 00 FF 0F 71 [19:10:22]RasterBufferAndPrint [19:10:22]line *****ТОВАРНЫЙ ЧЕК***** [19:10:22]line АЗС 108 [19:10:22]line Партнер нефть [19:10:22]line 02508201610067 [19:10:22]line Кассир : Джумагулова Н. [19:10:22]line Счет N : (1)348116 [19:10:22]line 15.04.2024 18:51 [19:10:22]line ПРОДАЖА [19:10:22]line ТРК (МРК, ГНК): 32 [19:10:22]line Вид ГСМ : 2710124130 [19:10:22]line Аи-92-К-5 [19:10:22]line 20.000 x 64.80 [19:10:22]line ИТОГ: 1296.00 [19:10:22]line Тип оплаты: Талоны: Партнер нефть [19:10:22]line 3856975;3856976 [19:10:22]line ______________________ [19:10:22]line (подпись) [19:10:22]written 0, free lines is 4095 [19:10:22]Write to MH i2c: 01 00 00 58 19 71 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 58 19 00 00 00 00 00 FE 0D 83 [19:10:22]RasterBufferAndPrint [19:10:22]line [19:10:22]line [19:10:22]line [19:10:22]line [19:10:22]line [19:10:22]written 0, free lines is 3583 [19:10:22]MH_Cut [19:10:22]Write to MH i2c: D1 01 00 5F 19 01 4A [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: D1 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: D1 01 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: D1 01 00 5F 19 00 49 [19:10:22]Write to MH i2c: 01 00 00 60 19 79 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:23]*** Cut start [19:10:23]*** Partial cut [19:10:23]*** CUTSNS_PIN = 1 [19:10:23]*** CUTSNS_PIN = 0 [19:10:23]*** Brake cut motor [19:10:24]Read from MH i2c: 01 [19:10:24]MH_I2C_Read... [19:10:24]*** Stop cut motor [19:10:24]*** Cut end [19:10:24]Read from MH i2c: 01 07 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 FF 0F 8E [19:10:24]process_action print_text done [19:10:24]requested_data is exist [19:10:24]produce_requested_data [19:10:24]requested_item fm.sn is exist - process it [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 11 00 00 [19:10:24]Write to MH i2c: E2 08 00 61 19 80 11 00 00 00 00 00 00 F4 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 61 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [19:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:10:24]wFMCommunicate OK [19:10:24]requested_item fd.num is exist - process it [19:10:24]SAM_PROTO_GetFieldsCounters [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 13 00 00 [19:10:24]Write to MH i2c: E2 08 00 62 19 80 13 00 00 00 00 00 00 F7 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 62 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 62 00 62 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 F3 [19:10:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 [19:10:24]wFMCommunicate OK [19:10:24]SAM_PROTO_GetFieldsCounters done [19:10:24]requested_item shift.num is exist - process it [19:10:24]requested_item shift.opened is exist - process it [19:10:24]req_shift_opened [19:10:24]FM_GetShiftState [19:10:24]SAM_PROTO_GetShiftState [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 13 01 00 [19:10:24]Write to MH i2c: E2 08 00 63 19 80 13 01 00 00 00 00 00 F9 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 63 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 ED [19:10:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:10:24]wFMCommunicate OK [19:10:24]SAM_PROTO_GetShiftState done [19:10:24]FM_GetShiftState done [19:10:24]req_shift_opened done [19:10:24]requested_item shift.open_date is exist - process it [19:10:24]req_shift_open_date [19:10:24]req_shift_open_date done [19:10:24]produce_requested_data done [19:10:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:10:24]process_action_free print_text [19:10:24]json_value_free [19:10:24]json_value_free done [19:10:24]process_json_proto returns [19:10:24]Send response to host [19:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:10:24]free response buf [19:10:24]execute_script done [19:10:24]execute_script returns [19:10:24]free content buf [19:10:24]Sock 7.Close socket [19:10:24]Sock 7.Thread stoped [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:17]accept exits with 9 [19:12:17]New connection [19:12:17]New thread 3066965348 created [19:12:17]Thread 3067108708 joined [19:12:17]Waiting for new connection... [19:12:17] Sock 9.Parse request [19:12:17]Sock 9.Check first char [19:12:17]Sock 9.First char is OK [19:12:17]request: POST /json_proto HTTP/1.0 [19:12:17]Method: POST [19:12:17]URL: /json_proto [19:12:17]Method is POST - this is cgi request [19:12:17]url: /json_proto [19:12:17]query_string will be loaded in cgi processing [19:12:17]execute_cgi json_proto POST (null) [19:12:17]execute_cgi path=json_proto method=POST [19:12:17]POST find Content-Length [19:12:17]Host: 172.17.33.3:8080 [19:12:17]Content-Length: 1211 [19:12:17]Content-Type: application/json [19:12:17] [19:12:17]POST finish read [19:12:17]Found Content-Length = 1211 [19:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348117\u000A15.04.2024 18:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3858959;3858901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:17]execute_script... [19:12:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348117\u000A15.04.2024 18:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3858959;3858901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:17]POST & json_proto [19:12:17]process_json_proto [19:12:17]json parsed OK: [19:12:17]protocol is kg_v1.0 [19:12:17]action value=print_text [19:12:17]process_action print_text [19:12:17]cmd_print_text [19:12:17]ExternCall_PrintAddStr [19:12:17]wPrintStart [19:12:17]Write to MH i2c: 01 00 00 64 19 7D [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 64 19 00 00 00 00 00 FF 0F 92 [19:12:17]RasterBufferAndPrint [19:12:17]line *****ТОВАРНЫЙ ЧЕК***** [19:12:17]line АЗС 108 [19:12:17]line Партнер нефть [19:12:17]line 02508201610067 [19:12:17]line Кассир : Джумагулова Н. [19:12:17]line Счет N : (1)348117 [19:12:17]line 15.04.2024 18:53 [19:12:17]line ПРОДАЖА [19:12:17]line ТРК (МРК, ГНК): 23 [19:12:17]line Вид ГСМ : 2710124130 [19:12:17]line Аи-92-К-5 [19:12:17]line 20.000 x 64.80 [19:12:17]line ИТОГ: 1296.00 [19:12:17]line Тип оплаты: Талоны: Партнер нефть [19:12:17]line 3858959;3858901 [19:12:17]line ______________________ [19:12:17]line (подпись) [19:12:17]written 0, free lines is 4095 [19:12:17]Write to MH i2c: 01 00 00 79 19 92 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 FD 0D A3 [19:12:17]RasterBufferAndPrint [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]written 0, free lines is 3583 [19:12:17]MH_Cut [19:12:17]Write to MH i2c: D1 01 00 80 19 01 6B [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 01 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 01 00 80 19 00 6A [19:12:17]Write to MH i2c: 01 00 00 81 19 9A [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:18]*** Cut start [19:12:18]*** Partial cut [19:12:18]*** CUTSNS_PIN = 1 [19:12:18]*** CUTSNS_PIN = 0 [19:12:18]*** Brake cut motor [19:12:18]Read from MH i2c: 01 [19:12:18]MH_I2C_Read... [19:12:18]*** Stop cut motor [19:12:18]*** Cut end [19:12:18]Read from MH i2c: 01 07 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [19:12:18]process_action print_text done [19:12:18]requested_data is exist [19:12:18]produce_requested_data [19:12:18]requested_item fm.sn is exist - process it [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 11 00 00 [19:12:18]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [19:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:12:18]wFMCommunicate OK [19:12:18]requested_item fd.num is exist - process it [19:12:18]SAM_PROTO_GetFieldsCounters [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 13 00 00 [19:12:18]Write to MH i2c: E2 08 00 83 19 80 13 00 00 00 00 00 00 18 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 62 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 62 00 83 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 14 [19:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 73 00 00 0E 04 04 00 75 00 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 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_GetFieldsCounters done [19:12:18]requested_item shift.num is exist - process it [19:12:18]requested_item shift.opened is exist - process it [19:12:18]req_shift_opened [19:12:18]FM_GetShiftState [19:12:18]SAM_PROTO_GetShiftState [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 13 01 00 [19:12:18]Write to MH i2c: E2 08 00 84 19 80 13 01 00 00 00 00 00 1A [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0E 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0E 00 84 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0E [19:12:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_GetShiftState done [19:12:18]FM_GetShiftState done [19:12:18]req_shift_opened done [19:12:18]requested_item shift.open_date is exist - process it [19:12:18]req_shift_open_date [19:12:18]req_shift_open_date done [19:12:18]produce_requested_data done [19:12:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:12:18]process_action_free print_text [19:12:18]json_value_free [19:12:18]json_value_free done [19:12:18]process_json_proto returns [19:12:18]Send response to host [19:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29660,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:12:18]free response buf [19:12:18]execute_script done [19:12:18]execute_script returns [19:12:18]free content buf [19:12:18]Sock 9.Close socket [19:12:18]Sock 9.Thread stoped [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:04]accept exits with 7 [19:21:04]New connection [19:21:04]New thread 3067108708 created [19:21:04]Thread 3066965348 joined [19:21:04]Waiting for new connection... [19:21:04] Sock 7.Parse request [19:21:04]Sock 7.Check first char [19:21:04]Sock 7.First char is OK [19:21:04]request: POST /json_proto HTTP/1.0 [19:21:04]Method: POST [19:21:04]URL: /json_proto [19:21:04]Method is POST - this is cgi request [19:21:04]url: /json_proto [19:21:04]query_string will be loaded in cgi processing [19:21:04]execute_cgi json_proto POST (null) [19:21:04]execute_cgi path=json_proto method=POST [19:21:04]POST find Content-Length [19:21:04]Host: 172.17.33.3:8080 [19:21:04]Content-Length: 840 [19:21:04]Content-Type: application/json [19:21:04] [19:21:04]POST finish read [19:21:04]Found Content-Length = 840 [19:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 75.450, "sum" : 5500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:04]execute_script... [19: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)348118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 75.450, "sum" : 5500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:04]POST & json_proto [19:21:04]process_json_proto [19:21:04]json parsed OK: [19:21:04]protocol is kg_v1.0 [19:21:04]action value=close_receipt [19:21:04]process_action close_receipt [19:21:04]cmd_close_receipt [19:21:04]MH_GetDate [19:21:04]Write to MH i2c: F0 00 00 85 19 8D [19:21:04]Write i2c OK [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: F0 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: F0 09 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: F0 09 00 85 19 00 22 7E 1D 66 23 5B 8F 65 2B [19:21:04]GetLastDocTimeStamp 1713208155 [19:21:04]current date 1713208866 [19:21:04]FM_GetShiftState [19:21:04]SAM_PROTO_GetShiftState [19:21:04]wFMCommunicate request_size=4 [19:21:04]MH_SAM_APDU [19:21:04]CAPDU: 80 13 01 00 [19:21:04]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [19:21:04]Write i2c OK [19:21:04]MH_I2C_Read... [19:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:04]Read from MH i2c: E2 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 0E 00 [19:21:04]MH_I2C_Read... [19:21:04]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [19:21:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:21:04]wFMCommunicate OK [19:21:04]SAM_PROTO_GetShiftState done [19:21:04]FM_GetShiftState done [19:21:04]opened in 1713140468 [19:21:04]opened+sec_in_day 1713226868 [19:21:04]quantity*price = 550030 [19:21:04]sum+1 = 550032 [19:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5500.31 НСП 1% : 48.67 НДС 12% : 584.10 Наличными: 0.00 Безнал.: 5500.31 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 255 15.04.2024 19:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29661 ФПД: 32837674569707 1/tax-web-control/client/api/v1/ticket?date=20240415T192106&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29661&fm=32837674569707&tin=02508201610067®Number=0000138879044617&sum=550031 [19:21:05]StoreToDocumentArchive [19:21:05]shift 117 fd 29661 [19:21:05]save to /storage/0117/doc_00029661 [19:21:05]save last doc name /storage/0117/doc_00029661 to /storage/kkm_last_doc_name [19:21:05]save OK [19:21:05]Clear old archive folders... [19:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:05]tlvbuf is 01A8A760 [19:21:05]SAM_PROTO_ClearQueue [19:21:05]wFMCommunicate request_size=4 [19:21:05]MH_SAM_APDU [19:21:05]CAPDU: 80 09 00 00 [19:21:05]Write to MH i2c: E2 08 00 93 19 80 09 00 00 00 00 00 00 1E [19:21:05]Write i2c OK [19:21:05]MH_I2C_Read... [19:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:05]Read from MH i2c: E2 [19:21:05]MH_I2C_Read... [19:21:05]Read from MH i2c: E2 03 00 [19:21:05]MH_I2C_Read... [19:21:05]Read from MH i2c: E2 03 00 93 19 00 90 00 20 [19:21:05]RAPDU: 90 00 [19:21:05]wFMCommunicate OK [19:21:05]SAM_PROTO_ClearQueue done [19:21:05]KKMCreateOFDPacket [19:21:05]OFDProtocolAddRootSTLVToBuf [19:21:05]FM_MakeSignedData [19:21:05]FM_MakeSignedData [19:21:05]SAM_PROTO_SignData [19:21:05]wFMCommunicate request_size=4 [19:21:05]MH_SAM_APDU [19:21:05]CAPDU: 80 0D 01 02 [19:21:05]Write to MH i2c: E2 08 00 94 19 80 0D 01 02 00 00 00 00 26 [19:21:05]Write i2c OK [19:21:05]MH_I2C_Read... [19:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:05]Read from MH i2c: E2 [19:21:05]MH_I2C_Read... [19:21:05]Read from MH i2c: E2 03 00 [19:21:05]MH_I2C_Read... [19:21:05]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [19:21:05]RAPDU: 90 00 [19:21:05]wFMCommunicate OK [19:21:05]wFMCommunicate request_size=255 [19:21:05]MH_SAM_APDU [19:21:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 22 7E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 73 00 00 35 04 06 00 1D DD 9D ED [19:21:05]Write to MH i2c: E2 02 01 95 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 22 7E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 73 00 00 35 04 06 00 1D DD 9D ED 00 00 97 [19:21:05]Write i2c OK [19:21:05]MH_I2C_Read... [19:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:06]Read from MH i2c: E2 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 03 00 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [19:21:06]RAPDU: 90 00 [19:21:06]wFMCommunicate OK [19:21:06]wFMCommunicate request_size=7 [19:21:06]MH_SAM_APDU [19:21:06]CAPDU: 80 0D 02 02 02 8F EB [19:21:06]Write to MH i2c: E2 0A 00 96 19 80 0D 02 02 02 00 8F EB 00 00 A7 [19:21:06]Write i2c OK [19:21:06]MH_I2C_Read... [19:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:06]Read from MH i2c: E2 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 03 00 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [19:21:06]RAPDU: 90 00 [19:21:06]wFMCommunicate OK [19:21:06]wFMCommunicate request_size=4 [19:21:06]MH_SAM_APDU [19:21:06]CAPDU: 80 0D 03 02 [19:21:06]Write to MH i2c: E2 08 00 97 19 80 0D 03 02 00 00 00 00 2B [19:21:06]Write i2c OK [19:21:06]MH_I2C_Read... [19:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:06]Read from MH i2c: E2 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 0B 00 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 0B 00 97 19 00 27 F4 6C 9D F6 A3 13 CE 90 00 CA [19:21:06]RAPDU: 27 F4 6C 9D F6 A3 13 CE 90 00 [19:21:06]wFMCommunicate OK [19:21:06]SAM_PROTO_SignData done [19:21:06]FM_MakeSignedData done [19:21:06]CreateOFDProtocolMessage [19:21:06]wFMCommunicate request_size=4 [19:21:06]MH_SAM_APDU [19:21:06]CAPDU: 80 11 00 00 [19:21:06]Write to MH i2c: E2 08 00 98 19 80 11 00 00 00 00 00 00 2B [19:21:06]Write i2c OK [19:21:06]MH_I2C_Read... [19:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:06]Read from MH i2c: E2 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 17 00 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: E2 17 00 98 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [19:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:06]wFMCommunicate OK [19:21:06]CreateOFDProtocolMessage done [19:21:06]OFDSenderStorePacket 29661 [19:21:06]StoreOFDPacket docnum=29661 [19:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D4 C9 04 01 3B 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 22 7E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 73 00 00 35 04 06 00 1D DD 9D ED 8F EB 27 F4 6C 9D F6 A3 13 CE [19:21:06]CheckFolder [19:21:06]dirname=/storage/ofd_packets [19:21:06]CheckFolder done [19:21:06]ProducePacketName [19:21:06]name=ofd_packets/00029661 [19:21:06]NVStorageSaveData ofd_packets/00029661 [19:21:06]File name is /storage/ofd_packets/00029661 [19:21:06]Write 298 bytes [19:21:06]NVStorageSaveData done [19:21:06]OFDSenderStorePacket done [19:21:06]KKMCreateOFDPacket done [19:21:06]NVStorageSaveData kkm_last_timestamp [19:21:06]File name is /storage/kkm_last_timestamp [19:21:06]Write 4 bytes [19:21:06]NVStorageSaveData done [19:21:06]ExternCall_PrintAddStr [19:21:06]wPrintStart [19:21:06]Write to MH i2c: 01 00 00 99 19 B2 [19:21:06]Write i2c OK [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: 01 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: 01 07 00 [19:21:06]MH_I2C_Read... [19:21:06]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 FF 0F C7 [19:21:06]RasterBufferAndPrint [19:21:06]line Счет N : (1)348118 [19:21:06]line ИНН: 02508201610067 [19:21:06]line Контрольно-Кассовый Чек [19:21:06]line ПРОДАЖА [19:21:06]line ТРК (МРК, ГНК) : 11 [19:21:06]line Товар: 2710194210 [19:21:06]line ДТ-К-5 [19:21:06]line 75.450 * 72.90 [19:21:06]line = 5500.31 [19:21:06]line НДС 12% НСП 1% [19:21:06]line > о реализуемом товаре [19:21:06]line ИТОГО: 5500.31 [19:21:06]line НСП 1% : 48.67 [19:21:06]line НДС 12% : 584.10 [19:21:06]line Наличными: 0.00 [19:21:06]line Безнал.: 5500.31 [19:21:06]line Место: АЗС № 108 "Партнер Нефть" [19:21:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:21:06]line СНО: Общий режим [19:21:06]line Чек 255 15.04.2024 19:21 [19:21:06]line Смена: 117 ФФД: 1.0 [19:21:06]line ЗНМ: 0300000027 [19:21:06]line РНМ: 0000138879044617 [19:21:06]line Версия ККМ: 001 [19:21:06]line Платежная система: АКБ Кыргызстан [19:21:06]line ФМ: 0000000000963154 [19:21:06]line ФД: 29661 [19:21:06]line ФПД: 32837674569707 [19:21:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T192106&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29661&fm=32837674569707&tin=02508201610067®Number=0000138879044617&sum=550031 [19:21:06]OFD Sender: Processing packet 29661 [packets to send 8, broken 7] [19:21:06]ProducePacketName [19:21:06]name=ofd_packets/00029661 [19:21:06]OFD Sender: To server: pG, [19:21:06]CommunicateWithHost lk.salyk.kg:30040 [19:21:06]ConnectInit lk.salyk.kg [19:21:06]written 0, free lines is 4095 [19:21:06]Connected sock=10 [19:21:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D4 C9 04 01 3B 5D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 26 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8F 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 22 7E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 73 00 00 35 04 06 00 1D DD 9D ED 8F EB 27 F4 6C 9D F6 A3 13 CE [19:21:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 31 47 00 01 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 39 36 33 31 35 34 10 04 04 00 DD 73 00 00 F4 03 04 00 C2 28 1D 66 B6 04 01 00 00 F3 33 A2 2A F0 FE 1B 9A [19:21:06]CommunicateWithHost err = 0 [19:21:06]CheckOFDResponse [19:21:06]1017 (14) - 77093643461234 [19:21:06]1041 (16) - 0000000000963154 [19:21:06]1040 (4) - 29661 [19:21:06]1012 (4) - 15.04.2024 13:16 [19:21:06]1206 (1) - 0 [19:21:06]OFD Sender: Remove packet 29661 [19:21:06]ProducePacketName [19:21:06]name=ofd_packets/00029661 [19:21:06]NVStorageDeleteData [19:21:07]Write to MH i2c: 01 00 00 C2 19 DB [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: 01 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: 01 07 00 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: 01 07 00 C2 19 00 00 00 00 00 E8 0C D6 [19:21:07]RasterBufferAndPrint [19:21:07]line [19:21:07]line [19:21:07]line [19:21:07]line [19:21:07]line [19:21:07]written 0, free lines is 3313 [19:21:07]MH_Cut [19:21:07]Write to MH i2c: D1 01 00 C9 19 01 B4 [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: D1 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: D1 01 00 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: D1 01 00 C9 19 00 B3 [19:21:07]Write to MH i2c: 01 00 00 CA 19 E3 [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]OFD Sender: No OFD packet to send [19:21:07]*** Cut start [19:21:07]*** Partial cut [19:21:07]*** CUTSNS_PIN = 1 [19:21:07]*** CUTSNS_PIN = 0 [19:21:08]*** Brake cut motor [19:21:08]Read from MH i2c: 01 [19:21:08]MH_I2C_Read... [19:21:08]*** Stop cut motor [19:21:08]*** Cut end [19:21:08]Read from MH i2c: 01 07 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 FF 0F F8 [19:21:08]process_action close_receipt done [19:21:08]requested_data is exist [19:21:08]produce_requested_data [19:21:08]requested_item fm.sn is exist - process it [19:21:08]wFMCommunicate request_size=4 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 11 00 00 [19:21:08]Write to MH i2c: E2 08 00 CB 19 80 11 00 00 00 00 00 00 5E [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 17 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 17 00 CB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [19:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:08]wFMCommunicate OK [19:21:08]requested_item fd.num is exist - process it [19:21:08]SAM_PROTO_GetFieldsCounters [19:21:08]wFMCommunicate request_size=4 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 13 00 00 [19:21:08]Write to MH i2c: E2 08 00 CC 19 80 13 00 00 00 00 00 00 61 [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 62 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 62 00 CC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 73 00 00 0E 04 04 00 75 00 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 62 [19:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 73 00 00 0E 04 04 00 75 00 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 [19:21:08]wFMCommunicate OK [19:21:08]SAM_PROTO_GetFieldsCounters done [19:21:08]requested_item shift.num is exist - process it [19:21:08]requested_item shift.opened is exist - process it [19:21:08]req_shift_opened [19:21:08]FM_GetShiftState [19:21:08]SAM_PROTO_GetShiftState [19:21:08]wFMCommunicate request_size=4 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 13 01 00 [19:21:08]Write to MH i2c: E2 08 00 CD 19 80 13 01 00 00 00 00 00 63 [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 0E 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 0E 00 CD 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 57 [19:21:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:21:08]wFMCommunicate OK [19:21:08]SAM_PROTO_GetShiftState done [19:21:08]FM_GetShiftState done [19:21:08]req_shift_opened done [19:21:08]requested_item shift.open_date is exist - process it [19:21:08]req_shift_open_date [19:21:08]req_shift_open_date done [19:21:08]produce_requested_data done [19:21:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29661,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:21:08]process_action_free close_receipt [19:21:08]json_value_free [19:21:08]json_value_free done [19:21:08]process_json_proto returns [19:21:08]Send response to host [19:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29661,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:21:08]free response buf [19:21:08]execute_script done [19:21:08]execute_script returns [19:21:08]free content buf [19:21:08]Sock 7.Close socket [19:21:08]Sock 7.Thread stoped [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:25]int [19:25:25]Write to MH i2c: 01 00 00 CE 19 E7 [19:25:25]*** FLAG_PRN_KEY set [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 07 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 07 00 CE 19 00 08 00 00 00 FF 0F 04 [19:25:25]state=0 [19:25:25]Key pressed [19:25:25]Feed [19:25:25]Write to MH i2c: D8 00 00 CF 19 BF [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D8 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D8 01 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: D8 01 00 CF 19 00 C0 [19:25:25]int [19:25:25]Write to MH i2c: 01 00 00 D0 19 E9 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 07 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: 01 07 00 D0 19 00 48 00 00 00 3C 00 74 [19:25:25]state=2 [19:25:25]Key pressed [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D1 19 EA [19:25:26]*** FLAG_PRN_KEY reset [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 F7 0F F7 [19:25:26]state=2 [19:25:26]Stop feed [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D2 19 EB [19:25:26]*** FLAG_PRN_KEY set [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D2 19 00 08 00 00 00 FF 0F 08 [19:25:26]state=0 [19:25:26]Key pressed [19:25:26]Feed [19:25:26]Write to MH i2c: D8 00 00 D3 19 C3 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 01 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 01 00 D3 19 00 C4 [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D4 19 ED [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D4 19 00 48 00 00 00 3C 00 78 [19:25:26]state=2 [19:25:26]Key pressed [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D5 19 EE [19:25:26]*** FLAG_PRN_KEY reset [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 F6 0F FA [19:25:26]state=2 [19:25:26]Stop feed [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D6 19 EF [19:25:26]*** FLAG_PRN_KEY set [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D6 19 00 08 00 00 00 FF 0F 0C [19:25:26]state=0 [19:25:26]Key pressed [19:25:26]Feed [19:25:26]Write to MH i2c: D8 00 00 D7 19 C7 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 01 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: D8 01 00 D7 19 00 C8 [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D8 19 F1 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D8 19 00 48 00 00 00 3C 00 7C [19:25:26]state=2 [19:25:26]Key pressed [19:25:26]int [19:25:26]Write to MH i2c: 01 00 00 D9 19 F2 [19:25:26]*** FLAG_PRN_KEY reset [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 F5 0F FD [19:25:26]state=2 [19:25:26]Stop feed [19:25:27]int [19:25:27]Write to MH i2c: 01 00 00 DA 19 F3 [19:25:27]*** FLAG_PRN_KEY set [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 DA 19 00 08 00 00 00 FF 0F 10 [19:25:27]state=0 [19:25:27]Key pressed [19:25:27]Feed [19:25:27]Write to MH i2c: D8 00 00 DB 19 CB [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D8 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D8 01 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: D8 01 00 DB 19 00 CC [19:25:27]int [19:25:27]Write to MH i2c: 01 00 00 DC 19 F5 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 DC 19 00 48 00 00 00 3C 00 80 [19:25:27]state=2 [19:25:27]Key pressed [19:25:27]int [19:25:27]Write to MH i2c: 01 00 00 DD 19 F6 [19:25:27]*** FLAG_PRN_KEY reset [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 F5 0F 01 [19:25:27]state=2 [19:25:27]Stop feed [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:00]accept exits with 9 [19:26:00]New connection [19:26:00]New thread 3066965348 created [19:26:00]Thread 3067108708 joined [19:26:00]Waiting for new connection... [19:26:00] Sock 9.Parse request [19:26:00]Sock 9.Check first char [19:26:00]Sock 9.First char is OK [19:26:00]request: POST /json_proto HTTP/1.0 [19:26:00]Method: POST [19:26:00]URL: /json_proto [19:26:00]Method is POST - this is cgi request [19:26:00]url: /json_proto [19:26:00]query_string will be loaded in cgi processing [19:26:00]execute_cgi json_proto POST (null) [19:26:00]execute_cgi path=json_proto method=POST [19:26:00]POST find Content-Length [19:26:00]Host: 172.17.33.3:8080 [19:26:00]Content-Length: 1213 [19:26:00]Content-Type: application/json [19:26:00] [19:26:00]POST finish read [19:26:00]Found Content-Length = 1213 [19:26: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348119\u000A15.04.2024 19:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 4536.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\u000A32676\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:00]execute_script... [19:26: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348119\u000A15.04.2024 19:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 4536.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\u000A32676\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:00]POST & json_proto [19:26:00]process_json_proto [19:26:00]json parsed OK: [19:26:00]protocol is kg_v1.0 [19:26:00]action value=print_text [19:26:00]process_action print_text [19:26:00]cmd_print_text [19:26:00]ExternCall_PrintAddStr [19:26:00]wPrintStart [19:26:00]Write to MH i2c: 01 00 00 DE 19 F7 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 07 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 FF 0F 0C [19:26:00]RasterBufferAndPrint [19:26:00]line *****ТОВАРНЫЙ ЧЕК***** [19:26:00]line АЗС 108 [19:26:00]line Партнер нефть [19:26:00]line 02508201610067 [19:26:00]line Кассир : Джумагулова Н. [19:26:00]line Счет N : (1)348119 [19:26:00]line 15.04.2024 19:07 [19:26:00]line ПРОДАЖА [19:26:00]line ТРК (МРК, ГНК): 32 [19:26:00]line Вид ГСМ : 2710124130 [19:26:00]line Аи-92-К-5 [19:26:00]line 70.000 x 64.80 [19:26:00]line ИТОГ: 4536.00 [19:26:00]line Тип оплаты: Талоны: Топливная Карта [19:26:00]line 32676 [19:26:00]line ______________________ [19:26:00]line (подпись) [19:26:00]written 0, free lines is 4095 [19:26:00]Write to MH i2c: 01 00 00 F3 19 0C [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 07 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FA 0D 1A [19:26:00]RasterBufferAndPrint [19:26:00]line [19:26:00]line [19:26:00]line [19:26:00]line [19:26:00]line [19:26:00]written 0, free lines is 3580 [19:26:00]MH_Cut [19:26:00]Write to MH i2c: D1 01 00 FA 19 01 E5 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: D1 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: D1 01 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: D1 01 00 FA 19 00 E4 [19:26:00]Write to MH i2c: 01 00 00 FB 19 14 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:01]*** Cut start [19:26:01]*** Partial cut [19:26:01]*** CUTSNS_PIN = 1 [19:26:01]*** CUTSNS_PIN = 0 [19:26:01]*** Brake cut motor [19:26:01]Read from MH i2c: 01 [19:26:01]MH_I2C_Read... [19:26:01]*** Stop cut motor [19:26:01]*** Cut end [19:26:01]Read from MH i2c: 01 07 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [19:26:01]process_action print_text done [19:26:01]requested_data is exist [19:26:01]produce_requested_data [19:26:01]requested_item fm.sn is exist - process it [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 11 00 00 [19:26:01]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [19:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:26:01]wFMCommunicate OK [19:26:01]requested_item fd.num is exist - process it [19:26:01]SAM_PROTO_GetFieldsCounters [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 13 00 00 [19:26:01]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 62 00 [19:26:01]MH_I2C_Read... [19:26:02]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 73 00 00 0E 04 04 00 75 00 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 93 [19:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 73 00 00 0E 04 04 00 75 00 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 [19:26:02]wFMCommunicate OK [19:26:02]SAM_PROTO_GetFieldsCounters done [19:26:02]requested_item shift.num is exist - process it [19:26:02]requested_item shift.opened is exist - process it [19:26:02]req_shift_opened [19:26:02]FM_GetShiftState [19:26:02]SAM_PROTO_GetShiftState [19:26:02]wFMCommunicate request_size=4 [19:26:02]MH_SAM_APDU [19:26:02]CAPDU: 80 13 01 00 [19:26:02]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [19:26:02]Write i2c OK [19:26:02]MH_I2C_Read... [19:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:02]Read from MH i2c: E2 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: E2 0E 00 [19:26:02]MH_I2C_Read... [19:26:02]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 88 [19:26:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:26:02]wFMCommunicate OK [19:26:02]SAM_PROTO_GetShiftState done [19:26:02]FM_GetShiftState done [19:26:02]req_shift_opened done [19:26:02]requested_item shift.open_date is exist - process it [19:26:02]req_shift_open_date [19:26:02]req_shift_open_date done [19:26:02]produce_requested_data done [19:26:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29661,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:26:02]process_action_free print_text [19:26:02]json_value_free [19:26:02]json_value_free done [19:26:02]process_json_proto returns [19:26:02]Send response to host [19:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29661,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:26:02]free response buf [19:26:02]execute_script done [19:26:02]execute_script returns [19:26:02]free content buf [19:26:02]Sock 9.Close socket [19:26:02]Sock 9.Thread stoped [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:21]accept exits with 7 [19:32:21]New connection [19:32:21]New thread 3067108708 created [19:32:21]Thread 3066965348 joined [19:32:21]Waiting for new connection... [19:32:21] Sock 7.Parse request [19:32:21]Sock 7.Check first char [19:32:21]Sock 7.First char is OK [19:32:21]request: POST /json_proto HTTP/1.0 [19:32:21]Method: POST [19:32:21]URL: /json_proto [19:32:21]Method is POST - this is cgi request [19:32:21]url: /json_proto [19:32:21]query_string will be loaded in cgi processing [19:32:21]execute_cgi json_proto POST (null) [19:32:21]execute_cgi path=json_proto method=POST [19:32:21]POST find Content-Length [19:32:21]Host: 172.17.33.3:8080 [19:32:21]Content-Length: 670 [19:32:21]Content-Type: application/json [19:32:21] [19:32:21]POST finish read [19:32:21]Found Content-Length = 670 [19:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:21]execute_script... [19:32: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)348121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:21]POST & json_proto [19:32:21]process_json_proto [19:32:21]json parsed OK: [19:32:21]protocol is kg_v1.0 [19:32:21]action value=close_receipt [19:32:21]process_action close_receipt [19:32:21]cmd_close_receipt [19:32:21]MH_GetDate [19:32:21]Write to MH i2c: F0 00 00 FF 19 07 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 09 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: F0 09 00 FF 19 00 C7 80 1D 66 23 5B 8F 65 4C [19:32:21]GetLastDocTimeStamp 1713208866 [19:32:21]current date 1713209543 [19:32:21]FM_GetShiftState [19:32:21]SAM_PROTO_GetShiftState [19:32:21]wFMCommunicate request_size=4 [19:32:21]MH_SAM_APDU [19:32:21]CAPDU: 80 13 01 00 [19:32:21]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:21]Read from MH i2c: E2 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8B [19:32:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:32:21]wFMCommunicate OK [19:32:21]SAM_PROTO_GetShiftState done [19:32:21]FM_GetShiftState done [19:32:21]opened in 1713140468 [19:32:21]opened+sec_in_day 1713226868 [19:32:21]quantity*price = 50008 [19:32:21]sum+1 = 50009 [19:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 256 15.04.2024 19:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29662 ФПД: 74633214848674 1/tax-web-control/client/api/v1/ticket?date=20240415T193223&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29662&fm=74633214848674&tin=02508201610067®Number=0000138879044617&sum=50000 [19:32:22]StoreToDocumentArchive [19:32:22]shift 117 fd 29662 [19:32:22]save to /storage/0117/doc_00029662 [19:32:22]save last doc name /storage/0117/doc_00029662 to /storage/kkm_last_doc_name [19:32:22]save OK [19:32:22]Clear old archive folders... [19:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:32:22]tlvbuf is 01A8A300 [19:32:22]SAM_PROTO_ClearQueue [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 09 00 00 [19:32:22]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_ClearQueue done [19:32:22]KKMCreateOFDPacket [19:32:22]OFDProtocolAddRootSTLVToBuf [19:32:22]FM_MakeSignedData [19:32:22]FM_MakeSignedData [19:32:22]SAM_PROTO_SignData [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 0D 01 02 [19:32:22]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [19:32:22]RAPDU: 90 00 [19:32:22]wFMCommunicate OK [19:32:22]wFMCommunicate request_size=255 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C7 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 73 00 00 35 04 06 00 [19:32:22]Write to MH i2c: E2 02 01 0F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C7 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 73 00 00 35 04 06 00 00 00 6C [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]OFD Sender: No OFD packet to send [19:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 03 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [19:32:23]RAPDU: 90 00 [19:32:23]wFMCommunicate OK [19:32:23]wFMCommunicate request_size=11 [19:32:23]MH_SAM_APDU [19:32:23]CAPDU: 80 0D 02 02 06 43 E0 E6 42 6E A2 [19:32:23]Write to MH i2c: E2 0E 00 10 1A 80 0D 02 02 06 00 43 E0 E6 42 6E A2 00 00 0B [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 03 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [19:32:23]RAPDU: 90 00 [19:32:23]wFMCommunicate OK [19:32:23]wFMCommunicate request_size=4 [19:32:23]MH_SAM_APDU [19:32:23]CAPDU: 80 0D 03 02 [19:32:23]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 0B 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 0B 00 11 1A 00 8F 8A 54 D0 52 6F FF 8F 90 00 33 [19:32:23]RAPDU: 8F 8A 54 D0 52 6F FF 8F 90 00 [19:32:23]wFMCommunicate OK [19:32:23]SAM_PROTO_SignData done [19:32:23]FM_MakeSignedData done [19:32:23]CreateOFDProtocolMessage [19:32:23]wFMCommunicate request_size=4 [19:32:23]MH_SAM_APDU [19:32:23]CAPDU: 80 11 00 00 [19:32:23]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 17 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [19:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:32:23]wFMCommunicate OK [19:32:23]CreateOFDProtocolMessage done [19:32:23]OFDSenderStorePacket 29662 [19:32:23]StoreOFDPacket docnum=29662 [19:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E1 52 08 01 95 A9 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C7 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 73 00 00 35 04 06 00 43 E0 E6 42 6E A2 8F 8A 54 D0 52 6F FF 8F [19:32:23]CheckFolder [19:32:23]dirname=/storage/ofd_packets [19:32:23]CheckFolder done [19:32:23]ProducePacketName [19:32:23]name=ofd_packets/00029662 [19:32:23]NVStorageSaveData ofd_packets/00029662 [19:32:23]File name is /storage/ofd_packets/00029662 [19:32:23]Write 302 bytes [19:32:23]NVStorageSaveData done [19:32:23]OFDSenderStorePacket done [19:32:23]KKMCreateOFDPacket done [19:32:23]NVStorageSaveData kkm_last_timestamp [19:32:23]File name is /storage/kkm_last_timestamp [19:32:23]Write 4 bytes [19:32:23]NVStorageSaveData done [19:32:23]ExternCall_PrintAddStr [19:32:23]wPrintStart [19:32:23]Write to MH i2c: 01 00 00 13 1A 2D [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [19:32:23]RasterBufferAndPrint [19:32:23]line Счет N : (1)348121 [19:32:23]line ИНН: 02508201610067 [19:32:23]line Контрольно-Кассовый Чек [19:32:23]line ПРОДАЖА [19:32:23]line ТРК (МРК, ГНК) : 22 [19:32:23]line Товар: 2710124130 [19:32:23]line SUPER-92-К-5 [19:32:23]line 7.600 * 65.80 [19:32:23]line = 500.08 [19:32:23]line НДС 12% НСП 1% [19:32:23]line > о реализуемом товаре [19:32:23]line ОКРУГЛЕНИЕ: -0.08 [19:32:23]line ИТОГО: 500.00 [19:32:23]line Внесено: 500.00 [19:32:23]line СДАЧА: 0.00 [19:32:23]line НСП 1% : 4.42 [19:32:23]line НДС 12% : 53.11 [19:32:23]line Наличными: 500.00 [19:32:23]line Безнал.: 0.00 [19:32:23]line Место: АЗС № 108 "Партнер Нефть" [19:32:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:32:23]line СНО: Общий режим [19:32:23]line Чек 256 15.04.2024 19:32 [19:32:23]line Смена: 117 ФФД: 1.0 [19:32:23]line ЗНМ: 0300000027 [19:32:23]line РНМ: 0000138879044617 [19:32:23]line Версия ККМ: 001 [19:32:23]line ФМ: 0000000000963154 [19:32:23]line ФД: 29662 [19:32:23]line ФПД: 74633214848674 [19:32:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T193223&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29662&fm=74633214848674&tin=02508201610067®Number=0000138879044617&sum=50000 [19:32:23]OFD Sender: Processing packet 29662 [packets to send 8, broken 7] [19:32:23]ProducePacketName [19:32:23]name=ofd_packets/00029662 [19:32:23]OFD Sender: To server: pG, [19:32:23]CommunicateWithHost lk.salyk.kg:30040 [19:32:23]ConnectInit lk.salyk.kg [19:32:23]written 0, free lines is 4095 [19:32:23]Connected sock=10 [19:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E1 52 08 01 95 A9 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C7 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 73 00 00 35 04 06 00 43 E0 E6 42 6E A2 8F 8A 54 D0 52 6F FF 8F [19:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D6 AE 47 00 4A 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 39 36 33 31 35 34 10 04 04 00 DE 73 00 00 F4 03 04 00 67 2B 1D 66 B6 04 01 00 00 3F BC DB 7D 99 B8 73 84 [19:32:23]CommunicateWithHost err = 0 [19:32:23]CheckOFDResponse [19:32:23]1017 (14) - 77093643461234 [19:32:23]1041 (16) - 0000000000963154 [19:32:23]1040 (4) - 29662 [19:32:23]1012 (4) - 15.04.2024 13:28 [19:32:23]1206 (1) - 0 [19:32:23]OFD Sender: Remove packet 29662 [19:32:23]ProducePacketName [19:32:23]name=ofd_packets/00029662 [19:32:23]NVStorageDeleteData [19:32:23]Write to MH i2c: 01 00 00 3D 1A 57 [19:32:23]Write i2c OK [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 D9 0C 43 [19:32:23]RasterBufferAndPrint [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]line [19:32:23]written 0, free lines is 3296 [19:32:24]MH_Cut [19:32:24]Write to MH i2c: D1 01 00 44 1A 01 30 [19:32:24]Write i2c OK [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: D1 [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: D1 01 00 [19:32:24]MH_I2C_Read... [19:32:24]Read from MH i2c: D1 01 00 44 1A 00 2F [19:32:24]Write to MH i2c: 01 00 00 45 1A 5F [19:32:24]Write i2c OK [19:32:24]MH_I2C_Read... [19:32:24]OFD Sender: No OFD packet to send [19:32:24]*** Cut start [19:32:24]*** Partial cut [19:32:24]*** CUTSNS_PIN = 1 [19:32:24]*** CUTSNS_PIN = 0 [19:32:25]*** Brake cut motor [19:32:25]Read from MH i2c: 01 [19:32:25]MH_I2C_Read... [19:32:25]*** Stop cut motor [19:32:25]*** Cut end [19:32:25]Read from MH i2c: 01 07 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: 01 07 00 45 1A 00 00 00 00 00 FF 0F 74 [19:32:25]process_action close_receipt done [19:32:25]requested_data is exist [19:32:25]produce_requested_data [19:32:25]requested_item fm.sn is exist - process it [19:32:25]wFMCommunicate request_size=4 [19:32:25]MH_SAM_APDU [19:32:25]CAPDU: 80 11 00 00 [19:32:25]Write to MH i2c: E2 08 00 46 1A 80 11 00 00 00 00 00 00 DA [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 17 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 17 00 46 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [19:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:32:25]wFMCommunicate OK [19:32:25]requested_item fd.num is exist - process it [19:32:25]SAM_PROTO_GetFieldsCounters [19:32:25]wFMCommunicate request_size=4 [19:32:25]MH_SAM_APDU [19:32:25]CAPDU: 80 13 00 00 [19:32:25]Write to MH i2c: E2 08 00 47 1A 80 13 00 00 00 00 00 00 DD [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 62 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 62 00 47 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 73 00 00 0E 04 04 00 75 00 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 E4 [19:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 73 00 00 0E 04 04 00 75 00 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 [19:32:25]wFMCommunicate OK [19:32:25]SAM_PROTO_GetFieldsCounters done [19:32:25]requested_item shift.num is exist - process it [19:32:25]requested_item shift.opened is exist - process it [19:32:25]req_shift_opened [19:32:25]FM_GetShiftState [19:32:25]SAM_PROTO_GetShiftState [19:32:25]wFMCommunicate request_size=4 [19:32:25]MH_SAM_APDU [19:32:25]CAPDU: 80 13 01 00 [19:32:25]Write to MH i2c: E2 08 00 48 1A 80 13 01 00 00 00 00 00 DF [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 0E 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 0E 00 48 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D3 [19:32:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:32:25]wFMCommunicate OK [19:32:25]SAM_PROTO_GetShiftState done [19:32:25]FM_GetShiftState done [19:32:25]req_shift_opened done [19:32:25]requested_item shift.open_date is exist - process it [19:32:25]req_shift_open_date [19:32:25]req_shift_open_date done [19:32:25]produce_requested_data done [19:32:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29662,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:32:25]process_action_free close_receipt [19:32:25]json_value_free [19:32:25]json_value_free done [19:32:25]process_json_proto returns [19:32:25]Send response to host [19:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29662,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:32:25]free response buf [19:32:25]execute_script done [19:32:25]execute_script returns [19:32:25]free content buf [19:32:25]Sock 7.Close socket [19:32:25]Sock 7.Thread stoped [19:32:25]accept exits with 9 [19:32:25]New connection [19:32:25]New thread 3066965348 created [19:32:25]Thread 3067108708 joined [19:32:25]Waiting for new connection... [19:32:25] Sock 9.Parse request [19:32:25]Sock 9.Check first char [19:32:25]Sock 9.First char is OK [19:32:25]request: POST /json_proto HTTP/1.0 [19:32:25]Method: POST [19:32:25]URL: /json_proto [19:32:25]Method is POST - this is cgi request [19:32:25]url: /json_proto [19:32:25]query_string will be loaded in cgi processing [19:32:25]execute_cgi json_proto POST (null) [19:32:25]execute_cgi path=json_proto method=POST [19:32:25]POST find Content-Length [19:32:25]Host: 172.17.33.3:8080 [19:32:25]Content-Length: 640 [19:32:25]Content-Type: application/json [19:32:25] [19:32:25]POST finish read [19:32:25]Found Content-Length = 640 [19:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:25]execute_script... [19:32: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)348122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:25]POST & json_proto [19:32:25]process_json_proto [19:32:25]json parsed OK: [19:32:25]protocol is kg_v1.0 [19:32:25]action value=close_receipt [19:32:25]process_action close_receipt [19:32:25]cmd_close_receipt [19:32:25]MH_GetDate [19:32:25]Write to MH i2c: F0 00 00 49 1A 52 [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: F0 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: F0 09 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: F0 09 00 49 1A 00 CB 80 1D 66 23 5B 8F 65 9B [19:32:25]GetLastDocTimeStamp 1713209543 [19:32:25]current date 1713209547 [19:32:25]FM_GetShiftState [19:32:25]SAM_PROTO_GetShiftState [19:32:25]wFMCommunicate request_size=4 [19:32:25]MH_SAM_APDU [19:32:25]CAPDU: 80 13 01 00 [19:32:25]Write to MH i2c: E2 08 00 4A 1A 80 13 01 00 00 00 00 00 E1 [19:32:25]Write i2c OK [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 [19:32:25]MH_I2C_Read... [19:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:25]Read from MH i2c: E2 0E 00 [19:32:25]MH_I2C_Read... [19:32:25]Read from MH i2c: E2 0E 00 4A 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D5 [19:32:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:32:25]wFMCommunicate OK [19:32:25]SAM_PROTO_GetShiftState done [19:32:25]FM_GetShiftState done [19:32:25]opened in 1713140468 [19:32:25]opened+sec_in_day 1713226868 [19:32:25]quantity*price = 64800 [19:32:25]sum+1 = 64801 [19:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 648.00 НСП 1% : 5.73 НДС 12% : 68.81 Наличными: 648.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 257 15.04.2024 19:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29663 ФПД: 78116628527064 1/tax-web-control/client/api/v1/ticket?date=20240415T193227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29663&fm=78116628527064&tin=02508201610067®Number=0000138879044617&sum=64800 [19:32:27]StoreToDocumentArchive [19:32:27]shift 117 fd 29663 [19:32:27]save to /storage/0117/doc_00029663 [19:32:27]save last doc name /storage/0117/doc_00029663 to /storage/kkm_last_doc_name [19:32:27]save OK [19:32:27]Clear old archive folders... [19:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:27]tlvbuf is 01A4F750 [19:32:27]SAM_PROTO_ClearQueue [19:32:27]wFMCommunicate request_size=4 [19:32:27]MH_SAM_APDU [19:32:27]CAPDU: 80 09 00 00 [19:32:27]Write to MH i2c: E2 08 00 57 1A 80 09 00 00 00 00 00 00 E3 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 57 1A 00 90 00 E5 [19:32:27]RAPDU: 90 00 [19:32:27]wFMCommunicate OK [19:32:27]SAM_PROTO_ClearQueue done [19:32:27]KKMCreateOFDPacket [19:32:27]OFDProtocolAddRootSTLVToBuf [19:32:27]FM_MakeSignedData [19:32:27]FM_MakeSignedData [19:32:27]SAM_PROTO_SignData [19:32:27]wFMCommunicate request_size=4 [19:32:27]MH_SAM_APDU [19:32:27]CAPDU: 80 0D 01 02 [19:32:27]Write to MH i2c: E2 08 00 58 1A 80 0D 01 02 00 00 00 00 EB [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [19:32:27]RAPDU: 90 00 [19:32:27]wFMCommunicate OK [19:32:27]wFMCommunicate request_size=255 [19:32:27]MH_SAM_APDU [19:32: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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 01 01 00 00 F4 03 04 00 CB 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 73 00 00 35 04 06 00 47 [19:32:27]Write to MH i2c: E2 02 01 59 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 01 01 00 00 F4 03 04 00 CB 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 73 00 00 35 04 06 00 47 00 00 21 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [19:32:27]RAPDU: 90 00 [19:32:27]wFMCommunicate OK [19:32:27]wFMCommunicate request_size=10 [19:32:27]MH_SAM_APDU [19:32:27]CAPDU: 80 0D 02 02 05 0B F1 E4 F7 D8 [19:32:27]Write to MH i2c: E2 0D 00 5A 1A 80 0D 02 02 05 00 0B F1 E4 F7 D8 00 00 A7 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [19:32:27]RAPDU: 90 00 [19:32:27]wFMCommunicate OK [19:32:27]wFMCommunicate request_size=4 [19:32:27]MH_SAM_APDU [19:32:27]CAPDU: 80 0D 03 02 [19:32:27]Write to MH i2c: E2 08 00 5B 1A 80 0D 03 02 00 00 00 00 F0 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 0B 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 0B 00 5B 1A 00 AB 89 27 DE A6 40 1B 78 90 00 A3 [19:32:27]RAPDU: AB 89 27 DE A6 40 1B 78 90 00 [19:32:27]wFMCommunicate OK [19:32:27]SAM_PROTO_SignData done [19:32:27]FM_MakeSignedData done [19:32:27]CreateOFDProtocolMessage [19:32:27]wFMCommunicate request_size=4 [19:32:27]MH_SAM_APDU [19:32:27]CAPDU: 80 11 00 00 [19:32:27]Write to MH i2c: E2 08 00 5C 1A 80 11 00 00 00 00 00 00 F0 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:27]Read from MH i2c: E2 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 17 00 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: E2 17 00 5C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [19:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:32:27]wFMCommunicate OK [19:32:27]CreateOFDProtocolMessage done [19:32:27]OFDSenderStorePacket 29663 [19:32:27]StoreOFDPacket docnum=29663 [19:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B4 12 07 01 00 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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 01 01 00 00 F4 03 04 00 CB 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 73 00 00 35 04 06 00 47 0B F1 E4 F7 D8 AB 89 27 DE A6 40 1B 78 [19:32:27]CheckFolder [19:32:27]dirname=/storage/ofd_packets [19:32:27]CheckFolder done [19:32:27]ProducePacketName [19:32:27]name=ofd_packets/00029663 [19:32:27]NVStorageSaveData ofd_packets/00029663 [19:32:27]File name is /storage/ofd_packets/00029663 [19:32:27]Write 301 bytes [19:32:27]NVStorageSaveData done [19:32:27]OFDSenderStorePacket done [19:32:27]KKMCreateOFDPacket done [19:32:27]NVStorageSaveData kkm_last_timestamp [19:32:27]File name is /storage/kkm_last_timestamp [19:32:27]Write 4 bytes [19:32:27]NVStorageSaveData done [19:32:27]ExternCall_PrintAddStr [19:32:27]wPrintStart [19:32:27]Write to MH i2c: 01 00 00 5D 1A 77 [19:32:27]Write i2c OK [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: 01 [19:32:27]MH_I2C_Read... [19:32:27]Read from MH i2c: 01 07 00 [19:32:28]MH_I2C_Read... [19:32:28]OFD Sender: Processing packet 29663 [packets to send 8, broken 7] [19:32:28]ProducePacketName [19:32:28]name=ofd_packets/00029663 [19:32:28]OFD Sender: To server: pG, [19:32:28]CommunicateWithHost lk.salyk.kg:30040 [19:32:28]ConnectInit lk.salyk.kg [19:32:28]Read from MH i2c: 01 07 00 5D 1A 00 00 00 00 00 FF 0F 8C [19:32:28]RasterBufferAndPrint [19:32:28]line Счет N : (1)348122 [19:32:28]line ИНН: 02508201610067 [19:32:28]line Контрольно-Кассовый Чек [19:32:28]line ПРОДАЖА [19:32:28]line ТРК (МРК, ГНК) : 42 [19:32:28]line Товар: 2710124130 [19:32:28]line Аи-92-К-5 [19:32:28]line 10.000 * 64.80 [19:32:28]line = 648.00 [19:32:28]line НДС 12% НСП 1% [19:32:28]line > о реализуемом товаре [19:32:28]line ИТОГО: 648.00 [19:32:28]line НСП 1% : 5.73 [19:32:28]line НДС 12% : 68.81 [19:32:28]line Наличными: 648.00 [19:32:28]line Безнал.: 0.00 [19:32:28]line Место: АЗС № 108 "Партнер Нефть" [19:32:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:32:28]line СНО: Общий режим [19:32:28]line Чек 257 15.04.2024 19:32 [19:32:28]line Смена: 117 ФФД: 1.0 [19:32:28]line ЗНМ: 0300000027 [19:32:28]line РНМ: 0000138879044617 [19:32:28]line Версия ККМ: 001 [19:32:28]line ФМ: 0000000000963154 [19:32:28]line ФД: 29663 [19:32:28]line ФПД: 78116628527064 [19:32:28]line 1/tax-web-control/client/api/v1/ticket?date=20240415T193227&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29663&fm=78116628527064&tin=02508201610067®Number=0000138879044617&sum=64800 [19:32:28]written 0, free lines is 4095 [19:32:28]Connected sock=10 [19:32:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B4 12 07 01 00 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 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 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 01 01 00 00 F4 03 04 00 CB 80 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 73 00 00 35 04 06 00 47 0B F1 E4 F7 D8 AB 89 27 DE A6 40 1B 78 [19:32:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 09 27 47 00 F7 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 73 00 00 F4 03 04 00 6C 2B 1D 66 B6 04 01 00 00 9F F0 D7 33 78 3C D3 40 [19:32:28]CommunicateWithHost err = 0 [19:32:28]CheckOFDResponse [19:32:28]1017 (14) - 77093643461234 [19:32:28]1041 (16) - 0000000000963154 [19:32:28]1040 (4) - 29663 [19:32:28]1012 (4) - 15.04.2024 13:28 [19:32:28]1206 (1) - 0 [19:32:28]OFD Sender: Remove packet 29663 [19:32:28]ProducePacketName [19:32:28]name=ofd_packets/00029663 [19:32:28]NVStorageDeleteData [19:32:28]Write to MH i2c: 01 00 00 84 1A 9E [19:32:28]Write i2c OK [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: 01 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: 01 07 00 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 13 0D C5 [19:32:28]RasterBufferAndPrint [19:32:28]line [19:32:28]line [19:32:28]line [19:32:28]line [19:32:28]line [19:32:28]written 0, free lines is 3360 [19:32:28]MH_Cut [19:32:28]Write to MH i2c: D1 01 00 8B 1A 01 77 [19:32:28]Write i2c OK [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: D1 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: D1 01 00 [19:32:28]MH_I2C_Read... [19:32:28]Read from MH i2c: D1 01 00 8B 1A 00 76 [19:32:28]Write to MH i2c: 01 00 00 8C 1A A6 [19:32:28]Write i2c OK [19:32:28]MH_I2C_Read... [19:32:29]OFD Sender: No OFD packet to send [19:32:29]*** Cut start [19:32:29]*** Partial cut [19:32:29]*** CUTSNS_PIN = 1 [19:32:29]*** CUTSNS_PIN = 0 [19:32:29]*** Brake cut motor [19:32:30]Read from MH i2c: 01 [19:32:30]MH_I2C_Read... [19:32:30]*** Stop cut motor [19:32:30]*** Cut end [19:32:30]Read from MH i2c: 01 07 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 FF 0F BB [19:32:30]process_action close_receipt done [19:32:30]requested_data is exist [19:32:30]produce_requested_data [19:32:30]requested_item fm.sn is exist - process it [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 11 00 00 [19:32:30]Write to MH i2c: E2 08 00 8D 1A 80 11 00 00 00 00 00 00 21 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 17 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 17 00 8D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [19:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:32:30]wFMCommunicate OK [19:32:30]requested_item fd.num is exist - process it [19:32:30]SAM_PROTO_GetFieldsCounters [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 13 00 00 [19:32:30]Write to MH i2c: E2 08 00 8E 1A 80 13 00 00 00 00 00 00 24 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 62 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 62 00 8E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 73 00 00 0E 04 04 00 75 00 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 2F [19:32:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 73 00 00 0E 04 04 00 75 00 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 [19:32:30]wFMCommunicate OK [19:32:30]SAM_PROTO_GetFieldsCounters done [19:32:30]requested_item shift.num is exist - process it [19:32:30]requested_item shift.opened is exist - process it [19:32:30]req_shift_opened [19:32:30]FM_GetShiftState [19:32:30]SAM_PROTO_GetShiftState [19:32:30]wFMCommunicate request_size=4 [19:32:30]MH_SAM_APDU [19:32:30]CAPDU: 80 13 01 00 [19:32:30]Write to MH i2c: E2 08 00 8F 1A 80 13 01 00 00 00 00 00 26 [19:32:30]Write i2c OK [19:32:30]MH_I2C_Read... [19:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:30]Read from MH i2c: E2 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0E 00 [19:32:30]MH_I2C_Read... [19:32:30]Read from MH i2c: E2 0E 00 8F 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1A [19:32:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:32:30]wFMCommunicate OK [19:32:30]SAM_PROTO_GetShiftState done [19:32:30]FM_GetShiftState done [19:32:30]req_shift_opened done [19:32:30]requested_item shift.open_date is exist - process it [19:32:30]req_shift_open_date [19:32:30]req_shift_open_date done [19:32:30]produce_requested_data done [19:32:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29663,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:32:30]process_action_free close_receipt [19:32:30]json_value_free [19:32:30]json_value_free done [19:32:30]process_json_proto returns [19:32:30]Send response to host [19:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29663,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:32:30]free response buf [19:32:30]execute_script done [19:32:30]execute_script returns [19:32:30]free content buf [19:32:30]Sock 9.Close socket [19:32:30]Sock 9.Thread stoped [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:35]accept exits with 7 [19:34:35]New connection [19:34:35]New thread 3067108708 created [19:34:35]Thread 3066965348 joined [19:34:35]Waiting for new connection... [19:34:35] Sock 7.Parse request [19:34:35]Sock 7.Check first char [19:34:35]Sock 7.First char is OK [19:34:35]request: POST /json_proto HTTP/1.0 [19:34:35]Method: POST [19:34:35]URL: /json_proto [19:34:35]Method is POST - this is cgi request [19:34:35]url: /json_proto [19:34:35]query_string will be loaded in cgi processing [19:34:35]execute_cgi json_proto POST (null) [19:34:35]execute_cgi path=json_proto method=POST [19:34:35]POST find Content-Length [19:34:35]Host: 172.17.33.3:8080 [19:34:35]Content-Length: 677 [19:34:35]Content-Type: application/json [19:34:35] [19:34:35]POST finish read [19:34:35]Found Content-Length = 677 [19:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:35]execute_script... [19:34: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)348123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:35]POST & json_proto [19:34:35]process_json_proto [19:34:35]json parsed OK: [19:34:35]protocol is kg_v1.0 [19:34:35]action value=close_receipt [19:34:35]process_action close_receipt [19:34:35]cmd_close_receipt [19:34:35]MH_GetDate [19:34:35]Write to MH i2c: F0 00 00 90 1A 99 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: F0 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: F0 09 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: F0 09 00 90 1A 00 4D 81 1D 66 23 5B 8F 65 65 [19:34:35]GetLastDocTimeStamp 1713209547 [19:34:35]current date 1713209677 [19:34:35]FM_GetShiftState [19:34:35]SAM_PROTO_GetShiftState [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 13 01 00 [19:34:35]Write to MH i2c: E2 08 00 91 1A 80 13 01 00 00 00 00 00 28 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0E 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0E 00 91 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1C [19:34:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:34:35]wFMCommunicate OK [19:34:35]SAM_PROTO_GetShiftState done [19:34:35]FM_GetShiftState done [19:34:35]opened in 1713140468 [19:34:35]opened+sec_in_day 1713226868 [19:34:35]quantity*price = 40046 [19:34:35]sum+1 = 40047 [19:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 258 15.04.2024 19:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29664 ФПД: 137344768984195 1/tax-web-control/client/api/v1/ticket?date=20240415T193437&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29664&fm=137344768984195&tin=02508201610067®Number=0000138879044617&sum=40000 [19:34:36]StoreToDocumentArchive [19:34:36]shift 117 fd 29664 [19:34:36]save to /storage/0117/doc_00029664 [19:34:36]save last doc name /storage/0117/doc_00029664 to /storage/kkm_last_doc_name [19:34:36]save OK [19:34:36]Clear old archive folders... [19:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:36]tlvbuf is 01A833F0 [19:34:36]SAM_PROTO_ClearQueue [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 09 00 00 [19:34:36]Write to MH i2c: E2 08 00 9E 1A 80 09 00 00 00 00 00 00 2A [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [19:34:36]RAPDU: 90 00 [19:34:36]wFMCommunicate OK [19:34:36]SAM_PROTO_ClearQueue done [19:34:36]KKMCreateOFDPacket [19:34:36]OFDProtocolAddRootSTLVToBuf [19:34:36]FM_MakeSignedData [19:34:36]FM_MakeSignedData [19:34:36]SAM_PROTO_SignData [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 0D 01 02 [19:34:36]Write to MH i2c: E2 08 00 9F 1A 80 0D 01 02 00 00 00 00 32 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [19:34:36]RAPDU: 90 00 [19:34:36]wFMCommunicate OK [19:34:36]wFMCommunicate request_size=255 [19:34:36]MH_SAM_APDU [19:34: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4D 81 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 73 00 00 35 04 06 00 7C [19:34:36]Write to MH i2c: E2 02 01 A0 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4D 81 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 73 00 00 35 04 06 00 7C 00 00 68 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [19:34:36]RAPDU: 90 00 [19:34:36]wFMCommunicate OK [19:34:36]wFMCommunicate request_size=10 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 0D 02 02 05 EA 12 2A C4 83 [19:34:36]Write to MH i2c: E2 0D 00 A1 1A 80 0D 02 02 05 00 EA 12 2A C4 83 00 00 AC [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 03 00 A1 1A 00 90 00 2F [19:34:36]RAPDU: 90 00 [19:34:36]wFMCommunicate OK [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 0D 03 02 [19:34:36]Write to MH i2c: E2 08 00 A2 1A 80 0D 03 02 00 00 00 00 37 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0B 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0B 00 A2 1A 00 79 03 08 B3 F2 7A 41 E6 90 00 02 [19:34:36]RAPDU: 79 03 08 B3 F2 7A 41 E6 90 00 [19:34:36]wFMCommunicate OK [19:34:36]SAM_PROTO_SignData done [19:34:36]FM_MakeSignedData done [19:34:36]CreateOFDProtocolMessage [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 11 00 00 [19:34:36]Write to MH i2c: E2 08 00 A3 1A 80 11 00 00 00 00 00 00 37 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 17 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 17 00 A3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [19:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:36]wFMCommunicate OK [19:34:36]CreateOFDProtocolMessage done [19:34:36]OFDSenderStorePacket 29664 [19:34:36]StoreOFDPacket docnum=29664 [19:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 99 07 01 7A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4D 81 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 73 00 00 35 04 06 00 7C EA 12 2A C4 83 79 03 08 B3 F2 7A 41 E6 [19:34:36]CheckFolder [19:34:36]dirname=/storage/ofd_packets [19:34:36]CheckFolder done [19:34:36]ProducePacketName [19:34:36]name=ofd_packets/00029664 [19:34:36]NVStorageSaveData ofd_packets/00029664 [19:34:36]File name is /storage/ofd_packets/00029664 [19:34:36]Write 301 bytes [19:34:36]NVStorageSaveData done [19:34:36]OFDSenderStorePacket done [19:34:36]KKMCreateOFDPacket done [19:34:36]NVStorageSaveData kkm_last_timestamp [19:34:36]File name is /storage/kkm_last_timestamp [19:34:36]Write 4 bytes [19:34:36]NVStorageSaveData done [19:34:36]ExternCall_PrintAddStr [19:34:36]wPrintStart [19:34:36]Write to MH i2c: 01 00 00 A4 1A BE [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 07 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 FF 0F D3 [19:34:36]RasterBufferAndPrint [19:34:36]line Счет N : (1)348123 [19:34:36]line ИНН: 02508201610067 [19:34:36]line Контрольно-Кассовый Чек [19:34:36]line ПРОДАЖА [19:34:36]line ТРК (МРК, ГНК) : 42 [19:34:36]line Товар: 2710124130 [19:34:36]line Аи-92-К-5 [19:34:36]line 6.180 * 64.80 [19:34:36]line = 400.46 [19:34:36]line НДС 12% НСП 1% [19:34:36]line > о реализуемом товаре [19:34:36]line ОКРУГЛЕНИЕ: -0.46 [19:34:36]line ИТОГО: 400.00 [19:34:36]line Внесено: 400.00 [19:34:36]line СДАЧА: 0.00 [19:34:36]line НСП 1% : 3.54 [19:34:36]line НДС 12% : 42.53 [19:34:36]line Наличными: 400.00 [19:34:36]line Безнал.: 0.00 [19:34:36]line Место: АЗС № 108 "Партнер Нефть" [19:34:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:34:36]line СНО: Общий режим [19:34:36]line Чек 258 15.04.2024 19:34 [19:34:36]line Смена: 117 ФФД: 1.0 [19:34:37]line ЗНМ: 0300000027 [19:34:37]line РНМ: 0000138879044617 [19:34:37]line Версия ККМ: 001 [19:34:37]line ФМ: 0000000000963154 [19:34:37]line ФД: 29664 [19:34:37]line ФПД: 137344768984195 [19:34:37]line 1/tax-web-control/client/api/v1/ticket?date=20240415T193437&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29664&fm=137344768984195&tin=02508201610067®Number=0000138879044617&sum=40000 [19:34:37]OFD Sender: Processing packet 29664 [packets to send 8, broken 7] [19:34:37]ProducePacketName [19:34:37]name=ofd_packets/00029664 [19:34:37]OFD Sender: To server: pG, [19:34:37]CommunicateWithHost lk.salyk.kg:30040 [19:34:37]ConnectInit lk.salyk.kg [19:34:37]written 0, free lines is 4095 [19:34:37]Connected sock=10 [19:34:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 99 07 01 7A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 4D 81 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 73 00 00 35 04 06 00 7C EA 12 2A C4 83 79 03 08 B3 F2 7A 41 E6 [19:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 22 2E 47 00 A5 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 73 00 00 F4 03 04 00 ED 2B 1D 66 B6 04 01 00 00 6A EF 27 A9 57 FB F4 77 [19:34:37]CommunicateWithHost err = 0 [19:34:37]CheckOFDResponse [19:34:37]1017 (14) - 77093643461234 [19:34:37]1041 (16) - 0000000000963154 [19:34:37]1040 (4) - 29664 [19:34:37]1012 (4) - 15.04.2024 13:30 [19:34:37]1206 (1) - 0 [19:34:37]OFD Sender: Remove packet 29664 [19:34:37]ProducePacketName [19:34:37]name=ofd_packets/00029664 [19:34:37]NVStorageDeleteData [19:34:37]Write to MH i2c: 01 00 00 CE 1A E8 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: 01 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: 01 07 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: 01 07 00 CE 1A 00 00 00 00 00 CB 0C C6 [19:34:37]RasterBufferAndPrint [19:34:37]line [19:34:37]line [19:34:37]line [19:34:37]line [19:34:37]line [19:34:37]written 0, free lines is 3282 [19:34:37]MH_Cut [19:34:37]Write to MH i2c: D1 01 00 D5 1A 01 C1 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: D1 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: D1 01 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: D1 01 00 D5 1A 00 C0 [19:34:37]Write to MH i2c: 01 00 00 D6 1A F0 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:38]OFD Sender: No OFD packet to send [19:34:38]*** Cut start [19:34:38]*** Partial cut [19:34:38]*** CUTSNS_PIN = 1 [19:34:38]*** CUTSNS_PIN = 0 [19:34:38]*** Brake cut motor [19:34:39]Read from MH i2c: 01 [19:34:39]MH_I2C_Read... [19:34:39]*** Stop cut motor [19:34:39]*** Cut end [19:34:39]Read from MH i2c: 01 07 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 07 00 D6 1A 00 00 00 00 00 FF 0F 05 [19:34:39]process_action close_receipt done [19:34:39]requested_data is exist [19:34:39]produce_requested_data [19:34:39]requested_item fm.sn is exist - process it [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 11 00 00 [19:34:39]Write to MH i2c: E2 08 00 D7 1A 80 11 00 00 00 00 00 00 6B [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 17 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 17 00 D7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [19:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:39]wFMCommunicate OK [19:34:39]requested_item fd.num is exist - process it [19:34:39]SAM_PROTO_GetFieldsCounters [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 13 00 00 [19:34:39]Write to MH i2c: E2 08 00 D8 1A 80 13 00 00 00 00 00 00 6E [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 62 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 62 00 D8 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 73 00 00 0E 04 04 00 75 00 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 7D [19:34:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 73 00 00 0E 04 04 00 75 00 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 [19:34:39]wFMCommunicate OK [19:34:39]SAM_PROTO_GetFieldsCounters done [19:34:39]requested_item shift.num is exist - process it [19:34:39]requested_item shift.opened is exist - process it [19:34:39]req_shift_opened [19:34:39]FM_GetShiftState [19:34:39]SAM_PROTO_GetShiftState [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 13 01 00 [19:34:39]Write to MH i2c: E2 08 00 D9 1A 80 13 01 00 00 00 00 00 70 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 0E 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 0E 00 D9 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 64 [19:34:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:34:39]wFMCommunicate OK [19:34:39]SAM_PROTO_GetShiftState done [19:34:39]FM_GetShiftState done [19:34:39]req_shift_opened done [19:34:39]requested_item shift.open_date is exist - process it [19:34:39]req_shift_open_date [19:34:39]req_shift_open_date done [19:34:39]produce_requested_data done [19:34:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29664,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:34:39]process_action_free close_receipt [19:34:39]json_value_free [19:34:39]json_value_free done [19:34:39]process_json_proto returns [19:34:39]Send response to host [19:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29664,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:34:39]free response buf [19:34:39]execute_script done [19:34:39]execute_script returns [19:34:39]free content buf [19:34:39]Sock 7.Close socket [19:34:39]Sock 7.Thread stoped [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:43]accept exits with 9 [19:37:43]New connection [19:37:43]New thread 3066965348 created [19:37:43]Thread 3067108708 joined [19:37:43]Waiting for new connection... [19:37:43] Sock 9.Parse request [19:37:43]Sock 9.Check first char [19:37:43]Sock 9.First char is OK [19:37:43]request: POST /json_proto HTTP/1.0 [19:37:43]Method: POST [19:37:43]URL: /json_proto [19:37:43]Method is POST - this is cgi request [19:37:43]url: /json_proto [19:37:43]query_string will be loaded in cgi processing [19:37:43]execute_cgi json_proto POST (null) [19:37:43]execute_cgi path=json_proto method=POST [19:37:43]POST find Content-Length [19:37:43]Host: 172.17.33.3:8080 [19:37:43]Content-Length: 1210 [19:37:43]Content-Type: application/json [19:37:43] [19:37:43]POST finish read [19:37:43]Found Content-Length = 1210 [19:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348124\u000A15.04.2024 19:19\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-\u041A-5\u000A 23.610 x 72.90\u000A\u0418\u0422\u041E\u0413: 1721.17\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:43]execute_script... [19:37:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348124\u000A15.04.2024 19:19\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-\u041A-5\u000A 23.610 x 72.90\u000A\u0418\u0422\u041E\u0413: 1721.17\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:43]POST & json_proto [19:37:43]process_json_proto [19:37:43]json parsed OK: [19:37:43]protocol is kg_v1.0 [19:37:43]action value=print_text [19:37:43]process_action print_text [19:37:43]cmd_print_text [19:37:43]ExternCall_PrintAddStr [19:37:43]wPrintStart [19:37:43]Write to MH i2c: 01 00 00 DA 1A F4 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 DA 1A 00 00 00 00 00 FF 0F 09 [19:37:43]RasterBufferAndPrint [19:37:43]line *****ТОВАРНЫЙ ЧЕК***** [19:37:43]line АЗС 108 [19:37:43]line Партнер нефть [19:37:43]line 02508201610067 [19:37:43]line Кассир : Джумагулова Н. [19:37:43]line Счет N : (1)348124 [19:37:43]line 15.04.2024 19:19 [19:37:43]line ПРОДАЖА [19:37:43]line ТРК (МРК, ГНК): 11 [19:37:43]line Вид ГСМ : 2710194210 [19:37:43]line ДТ-К-5 [19:37:43]line 23.610 x 72.90 [19:37:43]line ИТОГ: 1721.17 [19:37:43]line Тип оплаты: Талоны: Топливная Карта [19:37:43]line 02136 [19:37:43]line ______________________ [19:37:43]line (подпись) [19:37:43]written 0, free lines is 4095 [19:37:44]Write to MH i2c: 01 00 00 EF 1A 09 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 EF 1A 00 00 00 00 00 F3 0D 10 [19:37:44]RasterBufferAndPrint [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]written 0, free lines is 3573 [19:37:44]MH_Cut [19:37:44]Write to MH i2c: D1 01 00 F6 1A 01 E2 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 01 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 01 00 F6 1A 00 E1 [19:37:44]Write to MH i2c: 01 00 00 F7 1A 11 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** Cut start [19:37:44]*** Partial cut [19:37:44]*** CUTSNS_PIN = 1 [19:37:44]*** CUTSNS_PIN = 0 [19:37:44]*** Brake cut motor [19:37:45]Read from MH i2c: 01 [19:37:45]MH_I2C_Read... [19:37:45]*** Stop cut motor [19:37:45]*** Cut end [19:37:45]Read from MH i2c: 01 07 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [19:37:45]process_action print_text done [19:37:45]requested_data is exist [19:37:45]produce_requested_data [19:37:45]requested_item fm.sn is exist - process it [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 11 00 00 [19:37:45]Write to MH i2c: E2 08 00 F8 1A 80 11 00 00 00 00 00 00 8C [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 F8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [19:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:37:45]wFMCommunicate OK [19:37:45]requested_item fd.num is exist - process it [19:37:45]SAM_PROTO_GetFieldsCounters [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 00 00 [19:37:45]Write to MH i2c: E2 08 00 F9 1A 80 13 00 00 00 00 00 00 8F [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 F9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 73 00 00 0E 04 04 00 75 00 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 9E [19:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 73 00 00 0E 04 04 00 75 00 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 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetFieldsCounters done [19:37:45]requested_item shift.num is exist - process it [19:37:45]requested_item shift.opened is exist - process it [19:37:45]req_shift_opened [19:37:45]FM_GetShiftState [19:37:45]SAM_PROTO_GetShiftState [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 01 00 [19:37:45]Write to MH i2c: E2 08 00 FA 1A 80 13 01 00 00 00 00 00 91 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 FA 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [19:37:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetShiftState done [19:37:45]FM_GetShiftState done [19:37:45]req_shift_opened done [19:37:45]requested_item shift.open_date is exist - process it [19:37:45]req_shift_open_date [19:37:45]req_shift_open_date done [19:37:45]produce_requested_data done [19:37:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29664,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:37:45]process_action_free print_text [19:37:45]json_value_free [19:37:45]json_value_free done [19:37:45]process_json_proto returns [19:37:45]Send response to host [19:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29664,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:37:45]free response buf [19:37:45]execute_script done [19:37:45]execute_script returns [19:37:45]free content buf [19:37:45]Sock 9.Close socket [19:37:45]Sock 9.Thread stoped [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:00]accept exits with 7 [19:39:00]New connection [19:39:00]New thread 3067108708 created [19:39:00]Thread 3066965348 joined [19:39:00]Waiting for new connection... [19:39:00] Sock 7.Parse request [19:39:00]Sock 7.Check first char [19:39:00]Sock 7.First char is OK [19:39:00]request: POST /json_proto HTTP/1.0 [19:39:00]Method: POST [19:39:00]URL: /json_proto [19:39:00]Method is POST - this is cgi request [19:39:00]url: /json_proto [19:39:00]query_string will be loaded in cgi processing [19:39:00]execute_cgi json_proto POST (null) [19:39:00]execute_cgi path=json_proto method=POST [19:39:00]POST find Content-Length [19:39:00]Host: 172.17.33.3:8080 [19:39:00]Content-Length: 677 [19:39:00]Content-Type: application/json [19:39:00] [19:39:00]POST finish read [19:39:00]Found Content-Length = 677 [19:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:00]execute_script... [19:39:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:00]POST & json_proto [19:39:00]process_json_proto [19:39:00]json parsed OK: [19:39:00]protocol is kg_v1.0 [19:39:00]action value=close_receipt [19:39:00]process_action close_receipt [19:39:00]cmd_close_receipt [19:39:00]MH_GetDate [19:39:00]Write to MH i2c: F0 00 00 FB 1A 04 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: F0 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: F0 09 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: F0 09 00 FB 1A 00 56 82 1D 66 23 5B 8F 65 DA [19:39:00]GetLastDocTimeStamp 1713209677 [19:39:00]current date 1713209942 [19:39:00]FM_GetShiftState [19:39:00]SAM_PROTO_GetShiftState [19:39:00]wFMCommunicate request_size=4 [19:39:00]MH_SAM_APDU [19:39:00]CAPDU: 80 13 01 00 [19:39:00]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:00]Read from MH i2c: E2 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 87 [19:39:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:39:00]wFMCommunicate OK [19:39:00]SAM_PROTO_GetShiftState done [19:39:00]FM_GetShiftState done [19:39:00]opened in 1713140468 [19:39:00]opened+sec_in_day 1713226868 [19:39:00]quantity*price = 40046 [19:39:00]sum+1 = 40047 [19:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 259 15.04.2024 19:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29665 ФПД: 222574294999817 1/tax-web-control/client/api/v1/ticket?date=20240415T193902&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29665&fm=222574294999817&tin=02508201610067®Number=0000138879044617&sum=40000 [19:39:01]StoreToDocumentArchive [19:39:01]shift 117 fd 29665 [19:39:01]save to /storage/0117/doc_00029665 [19:39:01]save last doc name /storage/0117/doc_00029665 to /storage/kkm_last_doc_name [19:39:01]save OK [19:39:01]Clear old archive folders... [19:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:01]tlvbuf is 01A83120 [19:39:01]SAM_PROTO_ClearQueue [19:39:01]wFMCommunicate request_size=4 [19:39:01]MH_SAM_APDU [19:39:01]CAPDU: 80 09 00 00 [19:39:01]Write to MH i2c: E2 08 00 09 1B 80 09 00 00 00 00 00 00 96 [19:39:01]Write i2c OK [19:39:01]MH_I2C_Read... [19:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:01]Read from MH i2c: E2 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 03 00 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [19:39:01]RAPDU: 90 00 [19:39:01]wFMCommunicate OK [19:39:01]SAM_PROTO_ClearQueue done [19:39:01]KKMCreateOFDPacket [19:39:01]OFDProtocolAddRootSTLVToBuf [19:39:01]FM_MakeSignedData [19:39:01]FM_MakeSignedData [19:39:01]SAM_PROTO_SignData [19:39:01]wFMCommunicate request_size=4 [19:39:01]MH_SAM_APDU [19:39:01]CAPDU: 80 0D 01 02 [19:39:01]Write to MH i2c: E2 08 00 0A 1B 80 0D 01 02 00 00 00 00 9E [19:39:01]Write i2c OK [19:39:01]MH_I2C_Read... [19:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:01]Read from MH i2c: E2 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 03 00 [19:39:01]MH_I2C_Read... [19:39:01]Read from MH i2c: E2 03 00 0A 1B 00 90 00 99 [19:39:01]RAPDU: 90 00 [19:39:01]wFMCommunicate OK [19:39:01]wFMCommunicate request_size=255 [19:39:01]MH_SAM_APDU [19:39:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 56 82 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 73 00 00 35 04 06 00 CA [19:39:01]Write to MH i2c: E2 02 01 0B 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 56 82 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 73 00 00 35 04 06 00 CA 00 00 2E [19:39:01]Write i2c OK [19:39:01]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 03 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [19:39:02]RAPDU: 90 00 [19:39:02]wFMCommunicate OK [19:39:02]wFMCommunicate request_size=10 [19:39:02]MH_SAM_APDU [19:39:02]CAPDU: 80 0D 02 02 05 6E 1D CA 23 09 [19:39:02]Write to MH i2c: E2 0D 00 0C 1B 80 0D 02 02 05 00 6E 1D CA 23 09 00 00 2C [19:39:02]Write i2c OK [19:39:02]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 03 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [19:39:02]RAPDU: 90 00 [19:39:02]wFMCommunicate OK [19:39:02]wFMCommunicate request_size=4 [19:39:02]MH_SAM_APDU [19:39:02]CAPDU: 80 0D 03 02 [19:39:02]Write to MH i2c: E2 08 00 0D 1B 80 0D 03 02 00 00 00 00 A3 [19:39:02]Write i2c OK [19:39:02]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 0B 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 0B 00 0D 1B 00 E6 6E 43 77 3A 5A 79 58 90 00 17 [19:39:02]RAPDU: E6 6E 43 77 3A 5A 79 58 90 00 [19:39:02]wFMCommunicate OK [19:39:02]SAM_PROTO_SignData done [19:39:02]FM_MakeSignedData done [19:39:02]CreateOFDProtocolMessage [19:39:02]wFMCommunicate request_size=4 [19:39:02]MH_SAM_APDU [19:39:02]CAPDU: 80 11 00 00 [19:39:02]Write to MH i2c: E2 08 00 0E 1B 80 11 00 00 00 00 00 00 A3 [19:39:02]Write i2c OK [19:39:02]MH_I2C_Read... [19:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:02]Read from MH i2c: E2 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 17 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: E2 17 00 0E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [19:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:39:02]wFMCommunicate OK [19:39:02]CreateOFDProtocolMessage done [19:39:02]OFDSenderStorePacket 29665 [19:39:02]StoreOFDPacket docnum=29665 [19:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A C0 07 01 2A 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 56 82 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 73 00 00 35 04 06 00 CA 6E 1D CA 23 09 E6 6E 43 77 3A 5A 79 58 [19:39:02]CheckFolder [19:39:02]dirname=/storage/ofd_packets [19:39:02]CheckFolder done [19:39:02]ProducePacketName [19:39:02]name=ofd_packets/00029665 [19:39:02]NVStorageSaveData ofd_packets/00029665 [19:39:02]File name is /storage/ofd_packets/00029665 [19:39:02]Write 301 bytes [19:39:02]NVStorageSaveData done [19:39:02]OFDSenderStorePacket done [19:39:02]KKMCreateOFDPacket done [19:39:02]NVStorageSaveData kkm_last_timestamp [19:39:02]File name is /storage/kkm_last_timestamp [19:39:02]Write 4 bytes [19:39:02]NVStorageSaveData done [19:39:02]ExternCall_PrintAddStr [19:39:02]wPrintStart [19:39:02]Write to MH i2c: 01 00 00 0F 1B 2A [19:39:02]Write i2c OK [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: 01 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: 01 07 00 [19:39:02]MH_I2C_Read... [19:39:02]Read from MH i2c: 01 07 00 0F 1B 00 00 00 00 00 FF 0F 3F [19:39:02]RasterBufferAndPrint [19:39:02]line Счет N : (1)348125 [19:39:02]line ИНН: 02508201610067 [19:39:02]line Контрольно-Кассовый Чек [19:39:02]line ПРОДАЖА [19:39:02]line ТРК (МРК, ГНК) : 42 [19:39:02]line Товар: 2710124130 [19:39:02]line Аи-92-К-5 [19:39:02]line 6.180 * 64.80 [19:39:02]line = 400.46 [19:39:02]line НДС 12% НСП 1% [19:39:02]line > о реализуемом товаре [19:39:02]line ОКРУГЛЕНИЕ: -0.46 [19:39:02]line ИТОГО: 400.00 [19:39:02]line Внесено: 400.00 [19:39:02]line СДАЧА: 0.00 [19:39:02]line НСП 1% : 3.54 [19:39:02]line НДС 12% : 42.53 [19:39:02]line Наличными: 400.00 [19:39:02]line Безнал.: 0.00 [19:39:02]line Место: АЗС № 108 "Партнер Нефть" [19:39:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:39:02]line СНО: Общий режим [19:39:02]line Чек 259 15.04.2024 19:39 [19:39:02]line Смена: 117 ФФД: 1.0 [19:39:02]line ЗНМ: 0300000027 [19:39:02]line РНМ: 0000138879044617 [19:39:02]line Версия ККМ: 001 [19:39:02]line ФМ: 0000000000963154 [19:39:02]line ФД: 29665 [19:39:02]line ФПД: 222574294999817 [19:39:02]line 1/tax-web-control/client/api/v1/ticket?date=20240415T193902&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29665&fm=222574294999817&tin=02508201610067®Number=0000138879044617&sum=40000 [19:39:02]OFD Sender: Processing packet 29665 [packets to send 8, broken 7] [19:39:02]ProducePacketName [19:39:02]name=ofd_packets/00029665 [19:39:02]OFD Sender: To server: pG, [19:39:02]CommunicateWithHost lk.salyk.kg:30040 [19:39:02]ConnectInit lk.salyk.kg [19:39:02]written 0, free lines is 4095 [19:39:02]Connected sock=10 [19:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A C0 07 01 2A 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 56 82 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 73 00 00 35 04 06 00 CA 6E 1D CA 23 09 E6 6E 43 77 3A 5A 79 58 [19:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 6F 47 00 B2 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 39 36 33 31 35 34 10 04 04 00 E1 73 00 00 F4 03 04 00 F6 2C 1D 66 B6 04 01 00 00 52 B7 25 BC FE C2 D1 A6 [19:39:02]CommunicateWithHost err = 0 [19:39:02]CheckOFDResponse [19:39:02]1017 (14) - 77093643461234 [19:39:02]1041 (16) - 0000000000963154 [19:39:02]1040 (4) - 29665 [19:39:02]1012 (4) - 15.04.2024 13:34 [19:39:02]1206 (1) - 0 [19:39:02]OFD Sender: Remove packet 29665 [19:39:02]ProducePacketName [19:39:02]name=ofd_packets/00029665 [19:39:02]NVStorageDeleteData [19:39:03]Write to MH i2c: 01 00 00 39 1B 54 [19:39:03]Write i2c OK [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: 01 [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: 01 07 00 [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 DC 0C 43 [19:39:03]RasterBufferAndPrint [19:39:03]line [19:39:03]line [19:39:03]line [19:39:03]line [19:39:03]line [19:39:03]written 0, free lines is 3299 [19:39:03]MH_Cut [19:39:03]Write to MH i2c: D1 01 00 40 1B 01 2D [19:39:03]Write i2c OK [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: D1 [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: D1 01 00 [19:39:03]MH_I2C_Read... [19:39:03]Read from MH i2c: D1 01 00 40 1B 00 2C [19:39:03]Write to MH i2c: 01 00 00 41 1B 5C [19:39:03]Write i2c OK [19:39:03]MH_I2C_Read... [19:39:03]OFD Sender: No OFD packet to send [19:39:03]*** Cut start [19:39:03]*** Partial cut [19:39:03]*** CUTSNS_PIN = 1 [19:39:04]*** CUTSNS_PIN = 0 [19:39:04]*** Brake cut motor [19:39:04]Read from MH i2c: 01 [19:39:04]MH_I2C_Read... [19:39:04]*** Stop cut motor [19:39:04]*** Cut end [19:39:04]Read from MH i2c: 01 07 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 FF 0F 71 [19:39:04]process_action close_receipt done [19:39:04]requested_data is exist [19:39:04]produce_requested_data [19:39:04]requested_item fm.sn is exist - process it [19:39:04]wFMCommunicate request_size=4 [19:39:04]MH_SAM_APDU [19:39:04]CAPDU: 80 11 00 00 [19:39:04]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:04]Read from MH i2c: E2 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 17 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [19:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:39:04]wFMCommunicate OK [19:39:04]requested_item fd.num is exist - process it [19:39:04]SAM_PROTO_GetFieldsCounters [19:39:04]wFMCommunicate request_size=4 [19:39:04]MH_SAM_APDU [19:39:04]CAPDU: 80 13 00 00 [19:39:04]Write to MH i2c: E2 08 00 43 1B 80 13 00 00 00 00 00 00 DA [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:04]Read from MH i2c: E2 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 62 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 62 00 43 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 73 00 00 0E 04 04 00 75 00 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 ED [19:39:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 73 00 00 0E 04 04 00 75 00 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 [19:39:04]wFMCommunicate OK [19:39:04]SAM_PROTO_GetFieldsCounters done [19:39:04]requested_item shift.num is exist - process it [19:39:04]requested_item shift.opened is exist - process it [19:39:04]req_shift_opened [19:39:04]FM_GetShiftState [19:39:04]SAM_PROTO_GetShiftState [19:39:04]wFMCommunicate request_size=4 [19:39:04]MH_SAM_APDU [19:39:04]CAPDU: 80 13 01 00 [19:39:04]Write to MH i2c: E2 08 00 44 1B 80 13 01 00 00 00 00 00 DC [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:04]Read from MH i2c: E2 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 44 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D0 [19:39:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:39:04]wFMCommunicate OK [19:39:04]SAM_PROTO_GetShiftState done [19:39:04]FM_GetShiftState done [19:39:04]req_shift_opened done [19:39:04]requested_item shift.open_date is exist - process it [19:39:04]req_shift_open_date [19:39:04]req_shift_open_date done [19:39:04]produce_requested_data done [19:39:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29665,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:39:04]process_action_free close_receipt [19:39:04]json_value_free [19:39:04]json_value_free done [19:39:04]process_json_proto returns [19:39:04]Send response to host [19:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29665,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:39:04]free response buf [19:39:04]execute_script done [19:39:04]execute_script returns [19:39:04]free content buf [19:39:04]Sock 7.Close socket [19:39:04]Sock 7.Thread stoped [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:25]accept exits with 9 [19:46:25]New connection [19:46:25]New thread 3066965348 created [19:46:25]Thread 3067108708 joined [19:46:25]Waiting for new connection... [19:46:25] Sock 9.Parse request [19:46:25]Sock 9.Check first char [19:46:25]Sock 9.First char is OK [19:46:25]request: POST /json_proto HTTP/1.0 [19:46:25]Method: POST [19:46:25]URL: /json_proto [19:46:25]Method is POST - this is cgi request [19:46:25]url: /json_proto [19:46:25]query_string will be loaded in cgi processing [19:46:25]execute_cgi json_proto POST (null) [19:46:25]execute_cgi path=json_proto method=POST [19:46:25]POST find Content-Length [19:46:25]Host: 172.17.33.3:8080 [19:46:25]Content-Length: 1212 [19:46:25]Content-Type: application/json [19:46:25] [19:46:25]POST finish read [19:46:25]Found Content-Length = 1212 [19:46:25]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348127\u000A15.04.2024 19:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.340 x 64.80\u000A\u0418\u0422\u041E\u0413: 929.23\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\u000A03363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:25]execute_script... [19:46:25]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348127\u000A15.04.2024 19:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.340 x 64.80\u000A\u0418\u0422\u041E\u0413: 929.23\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\u000A03363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:25]POST & json_proto [19:46:25]process_json_proto [19:46:25]json parsed OK: [19:46:25]protocol is kg_v1.0 [19:46:25]action value=print_text [19:46:25]process_action print_text [19:46:25]cmd_print_text [19:46:25]ExternCall_PrintAddStr [19:46:25]wPrintStart [19:46:25]Write to MH i2c: 01 00 00 45 1B 60 [19:46:25]Write i2c OK [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 07 00 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 FF 0F 75 [19:46:25]RasterBufferAndPrint [19:46:25]line *****ТОВАРНЫЙ ЧЕК***** [19:46:25]line АЗС 108 [19:46:25]line Партнер нефть [19:46:25]line 02508201610067 [19:46:25]line Кассир : Джумагулова Н. [19:46:25]line Счет N : (1)348127 [19:46:25]line 15.04.2024 19:27 [19:46:25]line ПРОДАЖА [19:46:25]line ТРК (МРК, ГНК): 13 [19:46:25]line Вид ГСМ : 2710124130 [19:46:25]line Аи-92-К-5 [19:46:25]line 14.340 x 64.80 [19:46:25]line ИТОГ: 929.23 [19:46:25]line Тип оплаты: Талоны: Топливная Карта [19:46:25]line 03363 [19:46:25]line ______________________ [19:46:25]line (подпись) [19:46:25]written 0, free lines is 4095 [19:46:25]Write to MH i2c: 01 00 00 5A 1B 75 [19:46:25]Write i2c OK [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 07 00 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: 01 07 00 5A 1B 00 00 00 00 00 F6 0D 7F [19:46:25]RasterBufferAndPrint [19:46:25]line [19:46:25]line [19:46:25]line [19:46:25]line [19:46:25]line [19:46:25]written 0, free lines is 3576 [19:46:25]MH_Cut [19:46:25]Write to MH i2c: D1 01 00 61 1B 01 4E [19:46:25]Write i2c OK [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: D1 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: D1 01 00 [19:46:25]MH_I2C_Read... [19:46:25]Read from MH i2c: D1 01 00 61 1B 00 4D [19:46:25]Write to MH i2c: 01 00 00 62 1B 7D [19:46:25]Write i2c OK [19:46:25]MH_I2C_Read... [19:46:26]*** Cut start [19:46:26]*** Partial cut [19:46:26]*** CUTSNS_PIN = 1 [19:46:26]*** CUTSNS_PIN = 0 [19:46:26]*** Brake cut motor [19:46:26]Read from MH i2c: 01 [19:46:26]MH_I2C_Read... [19:46:26]*** Stop cut motor [19:46:26]*** Cut end [19:46:26]Read from MH i2c: 01 07 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: 01 07 00 62 1B 00 00 00 00 00 FF 0F 92 [19:46:26]process_action print_text done [19:46:26]requested_data is exist [19:46:26]produce_requested_data [19:46:26]requested_item fm.sn is exist - process it [19:46:26]wFMCommunicate request_size=4 [19:46:26]MH_SAM_APDU [19:46:26]CAPDU: 80 11 00 00 [19:46:26]Write to MH i2c: E2 08 00 63 1B 80 11 00 00 00 00 00 00 F8 [19:46:26]Write i2c OK [19:46:26]MH_I2C_Read... [19:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:26]Read from MH i2c: E2 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 17 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 17 00 63 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [19:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:46:26]wFMCommunicate OK [19:46:26]requested_item fd.num is exist - process it [19:46:26]SAM_PROTO_GetFieldsCounters [19:46:26]wFMCommunicate request_size=4 [19:46:26]MH_SAM_APDU [19:46:26]CAPDU: 80 13 00 00 [19:46:26]Write to MH i2c: E2 08 00 64 1B 80 13 00 00 00 00 00 00 FB [19:46:26]Write i2c OK [19:46:26]MH_I2C_Read... [19:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:26]Read from MH i2c: E2 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 62 00 [19:46:26]MH_I2C_Read... [19:46:26]Read from MH i2c: E2 62 00 64 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 73 00 00 0E 04 04 00 75 00 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 0E [19:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 73 00 00 0E 04 04 00 75 00 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 [19:46:27]wFMCommunicate OK [19:46:27]SAM_PROTO_GetFieldsCounters done [19:46:27]requested_item shift.num is exist - process it [19:46:27]requested_item shift.opened is exist - process it [19:46:27]req_shift_opened [19:46:27]FM_GetShiftState [19:46:27]SAM_PROTO_GetShiftState [19:46:27]wFMCommunicate request_size=4 [19:46:27]MH_SAM_APDU [19:46:27]CAPDU: 80 13 01 00 [19:46:27]Write to MH i2c: E2 08 00 65 1B 80 13 01 00 00 00 00 00 FD [19:46:27]Write i2c OK [19:46:27]MH_I2C_Read... [19:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:27]Read from MH i2c: E2 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: E2 0E 00 [19:46:27]MH_I2C_Read... [19:46:27]Read from MH i2c: E2 0E 00 65 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F1 [19:46:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:46:27]wFMCommunicate OK [19:46:27]SAM_PROTO_GetShiftState done [19:46:27]FM_GetShiftState done [19:46:27]req_shift_opened done [19:46:27]requested_item shift.open_date is exist - process it [19:46:27]req_shift_open_date [19:46:27]req_shift_open_date done [19:46:27]produce_requested_data done [19:46:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29665,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:46:27]process_action_free print_text [19:46:27]json_value_free [19:46:27]json_value_free done [19:46:27]process_json_proto returns [19:46:27]Send response to host [19:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29665,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:46:27]free response buf [19:46:27]execute_script done [19:46:27]execute_script returns [19:46:27]free content buf [19:46:27]Sock 9.Close socket [19:46:27]Sock 9.Thread stoped [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]accept exits with 7 [19:48:23]New connection [19:48:23]New thread 3067108708 created [19:48:23]Thread 3066965348 joined [19:48:23]Waiting for new connection... [19:48:23] Sock 7.Parse request [19:48:23]Sock 7.Check first char [19:48:23]Sock 7.First char is OK [19:48:23]request: POST /json_proto HTTP/1.0 [19:48:23]Method: POST [19:48:23]URL: /json_proto [19:48:23]Method is POST - this is cgi request [19:48:23]url: /json_proto [19:48:23]query_string will be loaded in cgi processing [19:48:23]execute_cgi json_proto POST (null) [19:48:23]execute_cgi path=json_proto method=POST [19:48:23]POST find Content-Length [19:48:23]Host: 172.17.33.3:8080 [19:48:23]Content-Length: 675 [19:48:23]Content-Type: application/json [19:48:23] [19:48:23]POST finish read [19:48:23]Found Content-Length = 675 [19:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:23]execute_script... [19:48:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:23]POST & json_proto [19:48:23]process_json_proto [19:48:23]json parsed OK: [19:48:23]protocol is kg_v1.0 [19:48:23]action value=close_receipt [19:48:23]process_action close_receipt [19:48:23]cmd_close_receipt [19:48:23]MH_GetDate [19:48:23]Write to MH i2c: F0 00 00 66 1B 70 [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: F0 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: F0 09 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: F0 09 00 66 1B 00 88 84 1D 66 23 5B 8F 65 7A [19:48:23]GetLastDocTimeStamp 1713209942 [19:48:23]current date 1713210504 [19:48:23]FM_GetShiftState [19:48:23]SAM_PROTO_GetShiftState [19:48:23]wFMCommunicate request_size=4 [19:48:23]MH_SAM_APDU [19:48:23]CAPDU: 80 13 01 00 [19:48:23]Write to MH i2c: E2 08 00 67 1B 80 13 01 00 00 00 00 00 FF [19:48:23]Write i2c OK [19:48:23]MH_I2C_Read... [19:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:23]Read from MH i2c: E2 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0E 00 [19:48:23]MH_I2C_Read... [19:48:23]Read from MH i2c: E2 0E 00 67 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F3 [19:48:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:48:23]wFMCommunicate OK [19:48:23]SAM_PROTO_GetShiftState done [19:48:23]FM_GetShiftState done [19:48:23]opened in 1713140468 [19:48:23]opened+sec_in_day 1713226868 [19:48:23]quantity*price = 100016 [19:48:23]sum+1 = 100017 [19:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 260 15.04.2024 19:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29666 ФПД: 277594022729822 1/tax-web-control/client/api/v1/ticket?date=20240415T194824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29666&fm=277594022729822&tin=02508201610067®Number=0000138879044617&sum=100000 [19:48:24]StoreToDocumentArchive [19:48:24]shift 117 fd 29666 [19:48:24]save to /storage/0117/doc_00029666 [19:48:24]save last doc name /storage/0117/doc_00029666 to /storage/kkm_last_doc_name [19:48:24]save OK [19:48:24]Clear old archive folders... [19:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:48:24]tlvbuf is B6DCE660 [19:48:24]SAM_PROTO_ClearQueue [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 09 00 00 [19:48:24]Write to MH i2c: E2 08 00 74 1B 80 09 00 00 00 00 00 00 01 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [19:48:24]RAPDU: 90 00 [19:48:24]wFMCommunicate OK [19:48:24]SAM_PROTO_ClearQueue done [19:48:24]KKMCreateOFDPacket [19:48:24]OFDProtocolAddRootSTLVToBuf [19:48:24]FM_MakeSignedData [19:48:24]FM_MakeSignedData [19:48:24]SAM_PROTO_SignData [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 0D 01 02 [19:48:24]Write to MH i2c: E2 08 00 75 1B 80 0D 01 02 00 00 00 00 09 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [19:48:24]RAPDU: 90 00 [19:48:24]wFMCommunicate OK [19:48:24]wFMCommunicate request_size=255 [19:48:24]MH_SAM_APDU [19:48: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 84 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 73 00 00 35 04 06 00 [19:48:24]Write to MH i2c: E2 02 01 76 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 84 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 73 00 00 35 04 06 00 00 00 43 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [19:48:24]RAPDU: 90 00 [19:48:24]wFMCommunicate OK [19:48:24]wFMCommunicate request_size=11 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 0D 02 02 06 FC 78 65 1D D8 5E [19:48:24]Write to MH i2c: E2 0E 00 77 1B 80 0D 02 02 06 00 FC 78 65 1D D8 5E 00 00 44 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [19:48:24]RAPDU: 90 00 [19:48:24]wFMCommunicate OK [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 0D 03 02 [19:48:24]Write to MH i2c: E2 08 00 78 1B 80 0D 03 02 00 00 00 00 0E [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 0B 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 0B 00 78 1B 00 72 43 87 37 BE B2 E5 E7 90 00 BE [19:48:24]RAPDU: 72 43 87 37 BE B2 E5 E7 90 00 [19:48:24]wFMCommunicate OK [19:48:24]SAM_PROTO_SignData done [19:48:24]FM_MakeSignedData done [19:48:24]CreateOFDProtocolMessage [19:48:24]wFMCommunicate request_size=4 [19:48:24]MH_SAM_APDU [19:48:24]CAPDU: 80 11 00 00 [19:48:24]Write to MH i2c: E2 08 00 79 1B 80 11 00 00 00 00 00 00 0E [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:24]Read from MH i2c: E2 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 17 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: E2 17 00 79 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [19:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:48:24]wFMCommunicate OK [19:48:24]CreateOFDProtocolMessage done [19:48:24]OFDSenderStorePacket 29666 [19:48:24]StoreOFDPacket docnum=29666 [19:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 59 D6 08 01 64 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 84 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 73 00 00 35 04 06 00 FC 78 65 1D D8 5E 72 43 87 37 BE B2 E5 E7 [19:48:24]CheckFolder [19:48:24]dirname=/storage/ofd_packets [19:48:24]CheckFolder done [19:48:24]ProducePacketName [19:48:24]name=ofd_packets/00029666 [19:48:24]NVStorageSaveData ofd_packets/00029666 [19:48:24]File name is /storage/ofd_packets/00029666 [19:48:24]Write 302 bytes [19:48:24]NVStorageSaveData done [19:48:24]OFDSenderStorePacket done [19:48:24]KKMCreateOFDPacket done [19:48:24]NVStorageSaveData kkm_last_timestamp [19:48:24]File name is /storage/kkm_last_timestamp [19:48:24]Write 4 bytes [19:48:24]NVStorageSaveData done [19:48:24]ExternCall_PrintAddStr [19:48:24]wPrintStart [19:48:24]Write to MH i2c: 01 00 00 7A 1B 95 [19:48:24]Write i2c OK [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 [19:48:24]MH_I2C_Read... [19:48:24]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [19:48:24]RasterBufferAndPrint [19:48:24]line Счет N : (1)348128 [19:48:24]line ИНН: 02508201610067 [19:48:24]line Контрольно-Кассовый Чек [19:48:24]line ПРОДАЖА [19:48:24]line ТРК (МРК, ГНК) : 22 [19:48:24]line Товар: 2710124130 [19:48:24]line SUPER-92-К-5 [19:48:24]line 15.200 * 65.80 [19:48:24]line = 1000.16 [19:48:24]line НДС 12% НСП 1% [19:48:24]line > о реализуемом товаре [19:48:24]line ОКРУГЛЕНИЕ: -0.16 [19:48:24]line ИТОГО: 1000.00 [19:48:24]line Внесено: 1000.00 [19:48:24]line СДАЧА: 0.00 [19:48:24]line НСП 1% : 8.85 [19:48:24]line НДС 12% : 106.21 [19:48:24]line Наличными: 1000.00 [19:48:24]line Безнал.: 0.00 [19:48:24]line Место: АЗС № 108 "Партнер Нефть" [19:48:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:48:24]line СНО: Общий режим [19:48:24]line Чек 260 15.04.2024 19:48 [19:48:24]line Смена: 117 ФФД: 1.0 [19:48:24]line ЗНМ: 0300000027 [19:48:24]line РНМ: 0000138879044617 [19:48:24]line Версия ККМ: 001 [19:48:24]line ФМ: 0000000000963154 [19:48:24]line ФД: 29666 [19:48:24]line ФПД: 277594022729822 [19:48:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T194824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29666&fm=277594022729822&tin=02508201610067®Number=0000138879044617&sum=100000 [19:48:25]OFD Sender: Processing packet 29666 [packets to send 8, broken 7] [19:48:25]ProducePacketName [19:48:25]name=ofd_packets/00029666 [19:48:25]OFD Sender: To server: pG, [19:48:25]CommunicateWithHost lk.salyk.kg:30040 [19:48:25]ConnectInit lk.salyk.kg [19:48:25]written 0, free lines is 4095 [19:48:25]Connected sock=10 [19:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 59 D6 08 01 64 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 88 84 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 73 00 00 35 04 06 00 FC 78 65 1D D8 5E 72 43 87 37 BE B2 E5 E7 [19:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 0D 47 00 F3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 73 00 00 F4 03 04 00 29 2F 1D 66 B6 04 01 00 00 7B 32 B2 93 54 21 BA 37 [19:48:25]CommunicateWithHost err = 0 [19:48:25]CheckOFDResponse [19:48:25]1017 (14) - 77093643461234 [19:48:25]1041 (16) - 0000000000963154 [19:48:25]1040 (4) - 29666 [19:48:25]1012 (4) - 15.04.2024 13:44 [19:48:25]1206 (1) - 0 [19:48:25]OFD Sender: Remove packet 29666 [19:48:25]ProducePacketName [19:48:25]name=ofd_packets/00029666 [19:48:25]NVStorageDeleteData [19:48:25]Write to MH i2c: 01 00 00 A4 1B BF [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: 01 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: 01 07 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 CF 0C A1 [19:48:25]RasterBufferAndPrint [19:48:25]line [19:48:25]line [19:48:25]line [19:48:25]line [19:48:25]line [19:48:25]written 0, free lines is 3285 [19:48:25]MH_Cut [19:48:25]Write to MH i2c: D1 01 00 AB 1B 01 98 [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: D1 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: D1 01 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: D1 01 00 AB 1B 00 97 [19:48:25]Write to MH i2c: 01 00 00 AC 1B C7 [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]OFD Sender: No OFD packet to send [19:48:26]*** Cut start [19:48:26]*** Partial cut [19:48:26]*** CUTSNS_PIN = 1 [19:48:26]*** CUTSNS_PIN = 0 [19:48:26]*** Brake cut motor [19:48:26]Read from MH i2c: 01 [19:48:26]MH_I2C_Read... [19:48:26]*** Stop cut motor [19:48:26]*** Cut end [19:48:26]Read from MH i2c: 01 07 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [19:48:26]process_action close_receipt done [19:48:26]requested_data is exist [19:48:26]produce_requested_data [19:48:26]requested_item fm.sn is exist - process it [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 11 00 00 [19:48:26]Write to MH i2c: E2 08 00 AD 1B 80 11 00 00 00 00 00 00 42 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 AD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [19:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:48:26]wFMCommunicate OK [19:48:26]requested_item fd.num is exist - process it [19:48:26]SAM_PROTO_GetFieldsCounters [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 13 00 00 [19:48:26]Write to MH i2c: E2 08 00 AE 1B 80 13 00 00 00 00 00 00 45 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 62 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 62 00 AE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 5C [19:48:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 [19:48:27]wFMCommunicate OK [19:48:27]SAM_PROTO_GetFieldsCounters done [19:48:27]requested_item shift.num is exist - process it [19:48:27]requested_item shift.opened is exist - process it [19:48:27]req_shift_opened [19:48:27]FM_GetShiftState [19:48:27]SAM_PROTO_GetShiftState [19:48:27]wFMCommunicate request_size=4 [19:48:27]MH_SAM_APDU [19:48:27]CAPDU: 80 13 01 00 [19:48:27]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:27]Read from MH i2c: E2 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 0E 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3B [19:48:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:48:27]wFMCommunicate OK [19:48:27]SAM_PROTO_GetShiftState done [19:48:27]FM_GetShiftState done [19:48:27]req_shift_opened done [19:48:27]requested_item shift.open_date is exist - process it [19:48:27]req_shift_open_date [19:48:27]req_shift_open_date done [19:48:27]produce_requested_data done [19:48:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:48:27]process_action_free close_receipt [19:48:27]json_value_free [19:48:27]json_value_free done [19:48:27]process_json_proto returns [19:48:27]Send response to host [19:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:48:27]free response buf [19:48:27]execute_script done [19:48:27]execute_script returns [19:48:27]free content buf [19:48:27]Sock 7.Close socket [19:48:27]Sock 7.Thread stoped [19:48:30]OFD Sender: No OFD packet to send [19:48:31]accept exits with 9 [19:48:31]New connection [19:48:31]New thread 3066965348 created [19:48:31]Thread 3067108708 joined [19:48:31]Waiting for new connection... [19:48:31] Sock 9.Parse request [19:48:31]Sock 9.Check first char [19:48:31]Sock 9.First char is OK [19:48:31]request: POST /json_proto HTTP/1.0 [19:48:31]Method: POST [19:48:31]URL: /json_proto [19:48:31]Method is POST - this is cgi request [19:48:31]url: /json_proto [19:48:31]query_string will be loaded in cgi processing [19:48:31]execute_cgi json_proto POST (null) [19:48:31]execute_cgi path=json_proto method=POST [19:48:31]POST find Content-Length [19:48:31]Host: 172.17.33.3:8080 [19:48:31]Content-Length: 1210 [19:48:31]Content-Type: application/json [19:48:31] [19:48:31]POST finish read [19:48:31]Found Content-Length = 1210 [19:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348126\u000A15.04.2024 19:30\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-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:31]execute_script... [19:48:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348126\u000A15.04.2024 19:30\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-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.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\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:31]POST & json_proto [19:48:31]process_json_proto [19:48:31]json parsed OK: [19:48:31]protocol is kg_v1.0 [19:48:31]action value=print_text [19:48:31]process_action print_text [19:48:31]cmd_print_text [19:48:31]ExternCall_PrintAddStr [19:48:31]wPrintStart [19:48:31]Write to MH i2c: 01 00 00 B0 1B CB [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 07 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [19:48:31]RasterBufferAndPrint [19:48:31]line *****ТОВАРНЫЙ ЧЕК***** [19:48:31]line АЗС 108 [19:48:31]line Партнер нефть [19:48:31]line 02508201610067 [19:48:31]line Кассир : Джумагулова Н. [19:48:31]line Счет N : (1)348126 [19:48:31]line 15.04.2024 19:30 [19:48:31]line ПРОДАЖА [19:48:31]line ТРК (МРК, ГНК): 51 [19:48:31]line Вид ГСМ : 2710194210 [19:48:31]line ДТ-К-5 [19:48:31]line 50.000 x 72.90 [19:48:31]line ИТОГ: 3645.00 [19:48:31]line Тип оплаты: Талоны: Топливная Карта [19:48:31]line 02137 [19:48:31]line ______________________ [19:48:31]line (подпись) [19:48:31]written 0, free lines is 4095 [19:48:31]Write to MH i2c: 01 00 00 C5 1B E0 [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 07 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 07 00 C5 1B 00 00 00 00 00 F4 0D E8 [19:48:31]RasterBufferAndPrint [19:48:31]line [19:48:31]line [19:48:31]line [19:48:31]line [19:48:31]line [19:48:31]written 0, free lines is 3575 [19:48:31]MH_Cut [19:48:31]Write to MH i2c: D1 01 00 CC 1B 01 B9 [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: D1 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: D1 01 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: D1 01 00 CC 1B 00 B8 [19:48:31]Write to MH i2c: 01 00 00 CD 1B E8 [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:32]*** Cut start [19:48:32]*** Partial cut [19:48:32]*** CUTSNS_PIN = 1 [19:48:32]*** CUTSNS_PIN = 0 [19:48:32]*** Brake cut motor [19:48:32]Read from MH i2c: 01 [19:48:32]MH_I2C_Read... [19:48:32]*** Stop cut motor [19:48:32]*** Cut end [19:48:32]Read from MH i2c: 01 07 00 [19:48:32]MH_I2C_Read... [19:48:32]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [19:48:32]process_action print_text done [19:48:32]requested_data is exist [19:48:32]produce_requested_data [19:48:32]requested_item fm.sn is exist - process it [19:48:32]wFMCommunicate request_size=4 [19:48:32]MH_SAM_APDU [19:48:32]CAPDU: 80 11 00 00 [19:48:32]Write to MH i2c: E2 08 00 CE 1B 80 11 00 00 00 00 00 00 63 [19:48:32]Write i2c OK [19:48:32]MH_I2C_Read... [19:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:32]Read from MH i2c: E2 [19:48:32]MH_I2C_Read... [19:48:32]Read from MH i2c: E2 17 00 [19:48:32]MH_I2C_Read... [19:48:32]Read from MH i2c: E2 17 00 CE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [19:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:48:32]wFMCommunicate OK [19:48:32]requested_item fd.num is exist - process it [19:48:32]SAM_PROTO_GetFieldsCounters [19:48:32]wFMCommunicate request_size=4 [19:48:32]MH_SAM_APDU [19:48:32]CAPDU: 80 13 00 00 [19:48:32]Write to MH i2c: E2 08 00 CF 1B 80 13 00 00 00 00 00 00 66 [19:48:32]Write i2c OK [19:48:32]MH_I2C_Read... [19:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:33]Read from MH i2c: E2 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: E2 62 00 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: E2 62 00 CF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 7D [19:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 [19:48:33]wFMCommunicate OK [19:48:33]SAM_PROTO_GetFieldsCounters done [19:48:33]requested_item shift.num is exist - process it [19:48:33]requested_item shift.opened is exist - process it [19:48:33]req_shift_opened [19:48:33]FM_GetShiftState [19:48:33]SAM_PROTO_GetShiftState [19:48:33]wFMCommunicate request_size=4 [19:48:33]MH_SAM_APDU [19:48:33]CAPDU: 80 13 01 00 [19:48:33]Write to MH i2c: E2 08 00 D0 1B 80 13 01 00 00 00 00 00 68 [19:48:33]Write i2c OK [19:48:33]MH_I2C_Read... [19:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:33]Read from MH i2c: E2 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: E2 0E 00 [19:48:33]MH_I2C_Read... [19:48:33]Read from MH i2c: E2 0E 00 D0 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [19:48:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:48:33]wFMCommunicate OK [19:48:33]SAM_PROTO_GetShiftState done [19:48:33]FM_GetShiftState done [19:48:33]req_shift_opened done [19:48:33]requested_item shift.open_date is exist - process it [19:48:33]req_shift_open_date [19:48:33]req_shift_open_date done [19:48:33]produce_requested_data done [19:48:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:48:33]process_action_free print_text [19:48:33]json_value_free [19:48:33]json_value_free done [19:48:33]process_json_proto returns [19:48:33]Send response to host [19:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:48:33]free response buf [19:48:33]execute_script done [19:48:33]execute_script returns [19:48:33]free content buf [19:48:33]Sock 9.Close socket [19:48:33]Sock 9.Thread stoped [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51: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:11]OFD Sender: No OFD packet to send [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:55]accept exits with 7 [19:52:55]New connection [19:52:55]New thread 3067108708 created [19:52:55]Thread 3066965348 joined [19:52:55]Waiting for new connection... [19:52:55] Sock 7.Parse request [19:52:55]Sock 7.Check first char [19:52:55]Sock 7.First char is OK [19:52:55]request: POST /json_proto HTTP/1.0 [19:52:55]Method: POST [19:52:55]URL: /json_proto [19:52:55]Method is POST - this is cgi request [19:52:55]url: /json_proto [19:52:55]query_string will be loaded in cgi processing [19:52:55]execute_cgi json_proto POST (null) [19:52:55]execute_cgi path=json_proto method=POST [19:52:55]POST find Content-Length [19:52:55]Host: 172.17.33.3:8080 [19:52:55]Content-Length: 1209 [19:52:55]Content-Type: application/json [19:52:55] [19:52:55]POST finish read [19:52:55]Found Content-Length = 1209 [19:52:55]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348129\u000A15.04.2024 19:34\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-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:55]execute_script... [19:52:55]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348129\u000A15.04.2024 19:34\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-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:55]POST & json_proto [19:52:55]process_json_proto [19:52:55]json parsed OK: [19:52:55]protocol is kg_v1.0 [19:52:55]action value=print_text [19:52:55]process_action print_text [19:52:55]cmd_print_text [19:52:55]ExternCall_PrintAddStr [19:52:55]wPrintStart [19:52:55]Write to MH i2c: 01 00 00 D1 1B EC [19:52:55]Write i2c OK [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: 01 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: 01 07 00 [19:52:55]MH_I2C_Read... [19:52:55]Read from MH i2c: 01 07 00 D1 1B 00 00 00 00 00 FF 0F 01 [19:52:55]RasterBufferAndPrint [19:52:55]line *****ТОВАРНЫЙ ЧЕК***** [19:52:55]line АЗС 108 [19:52:55]line Партнер нефть [19:52:55]line 02508201610067 [19:52:55]line Кассир : Джумагулова Н. [19:52:55]line Счет N : (1)348129 [19:52:55]line 15.04.2024 19:34 [19:52:55]line ПРОДАЖА [19:52:55]line ТРК (МРК, ГНК): 51 [19:52:55]line Вид ГСМ : 2710194210 [19:52:55]line ДТ-К-5 [19:52:55]line 10.000 x 72.90 [19:52:55]line ИТОГ: 729.00 [19:52:55]line Тип оплаты: Талоны: Топливная Карта [19:52:55]line 02136 [19:52:55]line ______________________ [19:52:55]line (подпись) [19:52:55]written 0, free lines is 4095 [19:52:56]Write to MH i2c: 01 00 00 E6 1B 01 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: 01 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: 01 07 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: 01 07 00 E6 1B 00 00 00 00 00 F3 0D 08 [19:52:56]RasterBufferAndPrint [19:52:56]line [19:52:56]line [19:52:56]line [19:52:56]line [19:52:56]line [19:52:56]written 0, free lines is 3572 [19:52:56]MH_Cut [19:52:56]Write to MH i2c: D1 01 00 ED 1B 01 DA [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: D1 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: D1 01 00 [19:52:56]MH_I2C_Read... [19:52:56]Read from MH i2c: D1 01 00 ED 1B 00 D9 [19:52:56]Write to MH i2c: 01 00 00 EE 1B 09 [19:52:56]Write i2c OK [19:52:56]MH_I2C_Read... [19:52:56]OFD Sender: No OFD packet to send [19:52:56]*** Cut start [19:52:56]*** Partial cut [19:52:56]*** CUTSNS_PIN = 1 [19:52:56]*** CUTSNS_PIN = 0 [19:52:56]*** Brake cut motor [19:52:57]Read from MH i2c: 01 [19:52:57]MH_I2C_Read... [19:52:57]*** Stop cut motor [19:52:57]*** Cut end [19:52:57]Read from MH i2c: 01 07 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: 01 07 00 EE 1B 00 00 00 00 00 FF 0F 1E [19:52:57]process_action print_text done [19:52:57]requested_data is exist [19:52:57]produce_requested_data [19:52:57]requested_item fm.sn is exist - process it [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 11 00 00 [19:52:57]Write to MH i2c: E2 08 00 EF 1B 80 11 00 00 00 00 00 00 84 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 17 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 17 00 EF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [19:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:52:57]wFMCommunicate OK [19:52:57]requested_item fd.num is exist - process it [19:52:57]SAM_PROTO_GetFieldsCounters [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 13 00 00 [19:52:57]Write to MH i2c: E2 08 00 F0 1B 80 13 00 00 00 00 00 00 87 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 62 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 62 00 F0 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 9E [19:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 73 00 00 0E 04 04 00 75 00 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 [19:52:57]wFMCommunicate OK [19:52:57]SAM_PROTO_GetFieldsCounters done [19:52:57]requested_item shift.num is exist - process it [19:52:57]requested_item shift.opened is exist - process it [19:52:57]req_shift_opened [19:52:57]FM_GetShiftState [19:52:57]SAM_PROTO_GetShiftState [19:52:57]wFMCommunicate request_size=4 [19:52:57]MH_SAM_APDU [19:52:57]CAPDU: 80 13 01 00 [19:52:57]Write to MH i2c: E2 08 00 F1 1B 80 13 01 00 00 00 00 00 89 [19:52:57]Write i2c OK [19:52:57]MH_I2C_Read... [19:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:57]Read from MH i2c: E2 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 0E 00 [19:52:57]MH_I2C_Read... [19:52:57]Read from MH i2c: E2 0E 00 F1 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [19:52:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:52:57]wFMCommunicate OK [19:52:57]SAM_PROTO_GetShiftState done [19:52:57]FM_GetShiftState done [19:52:57]req_shift_opened done [19:52:57]requested_item shift.open_date is exist - process it [19:52:57]req_shift_open_date [19:52:57]req_shift_open_date done [19:52:57]produce_requested_data done [19:52:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:52:57]process_action_free print_text [19:52:57]json_value_free [19:52:57]json_value_free done [19:52:57]process_json_proto returns [19:52:57]Send response to host [19:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29666,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:52:57]free response buf [19:52:57]execute_script done [19:52:57]execute_script returns [19:52:57]free content buf [19:52:57]Sock 7.Close socket [19:52:57]Sock 7.Thread stoped [19:53:01]OFD Sender: No OFD packet to send [19:53:05]accept exits with 9 [19:53:05]New connection [19:53:05]New thread 3066965348 created [19:53:05]Thread 3067108708 joined [19:53:05]Waiting for new connection... [19:53:05] Sock 9.Parse request [19:53:05]Sock 9.Check first char [19:53:05]Sock 9.First char is OK [19:53:05]request: POST /json_proto HTTP/1.0 [19:53:05]Method: POST [19:53:05]URL: /json_proto [19:53:05]Method is POST - this is cgi request [19:53:05]url: /json_proto [19:53:05]query_string will be loaded in cgi processing [19:53:05]execute_cgi json_proto POST (null) [19:53:05]execute_cgi path=json_proto method=POST [19:53:05]POST find Content-Length [19:53:05]Host: 172.17.33.3:8080 [19:53:05]Content-Length: 682 [19:53:05]Content-Type: application/json [19:53:05] [19:53:05]POST finish read [19:53:05]Found Content-Length = 682 [19:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:05]execute_script... [19:53: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)348130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:05]POST & json_proto [19:53:05]process_json_proto [19:53:05]json parsed OK: [19:53:05]protocol is kg_v1.0 [19:53:05]action value=close_receipt [19:53:05]process_action close_receipt [19:53:05]cmd_close_receipt [19:53:05]MH_GetDate [19:53:05]Write to MH i2c: F0 00 00 F2 1B FC [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: F0 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: F0 09 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: F0 09 00 F2 1B 00 A3 85 1D 66 23 5B 8F 65 22 [19:53:05]GetLastDocTimeStamp 1713210504 [19:53:05]current date 1713210787 [19:53:05]FM_GetShiftState [19:53:05]SAM_PROTO_GetShiftState [19:53:05]wFMCommunicate request_size=4 [19:53:05]MH_SAM_APDU [19:53:05]CAPDU: 80 13 01 00 [19:53:05]Write to MH i2c: E2 08 00 F3 1B 80 13 01 00 00 00 00 00 8B [19:53:05]Write i2c OK [19:53:05]MH_I2C_Read... [19:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:05]Read from MH i2c: E2 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0E 00 [19:53:05]MH_I2C_Read... [19:53:05]Read from MH i2c: E2 0E 00 F3 1B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7F [19:53:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:53:05]wFMCommunicate OK [19:53:05]SAM_PROTO_GetShiftState done [19:53:05]FM_GetShiftState done [19:53:05]opened in 1713140468 [19:53:05]opened+sec_in_day 1713226868 [19:53:05]quantity*price = 120009 [19:53:05]sum+1 = 120011 [19:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 261 15.04.2024 19:53 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29667 ФПД: 249914523198897 1/tax-web-control/client/api/v1/ticket?date=20240415T195307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29667&fm=249914523198897&tin=02508201610067®Number=0000138879044617&sum=120000 [19:53:06]StoreToDocumentArchive [19:53:06]shift 117 fd 29667 [19:53:06]save to /storage/0117/doc_00029667 [19:53:06]save last doc name /storage/0117/doc_00029667 to /storage/kkm_last_doc_name [19:53:06]save OK [19:53:06]Clear old archive folders... [19:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:06]tlvbuf is 01A9A0A0 [19:53:06]SAM_PROTO_ClearQueue [19:53:06]wFMCommunicate request_size=4 [19:53:06]MH_SAM_APDU [19:53:06]CAPDU: 80 09 00 00 [19:53:06]Write to MH i2c: E2 08 00 00 1C 80 09 00 00 00 00 00 00 8E [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:06]Read from MH i2c: E2 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 03 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 03 00 00 1C 00 90 00 90 [19:53:06]RAPDU: 90 00 [19:53:06]wFMCommunicate OK [19:53:06]SAM_PROTO_ClearQueue done [19:53:06]KKMCreateOFDPacket [19:53:06]OFDProtocolAddRootSTLVToBuf [19:53:06]FM_MakeSignedData [19:53:06]FM_MakeSignedData [19:53:06]SAM_PROTO_SignData [19:53:06]wFMCommunicate request_size=4 [19:53:06]MH_SAM_APDU [19:53:06]CAPDU: 80 0D 01 02 [19:53:06]Write to MH i2c: E2 08 00 01 1C 80 0D 01 02 00 00 00 00 96 [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:06]Read from MH i2c: E2 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 03 00 [19:53:06]MH_I2C_Read... [19:53:06]Read from MH i2c: E2 03 00 01 1C 00 90 00 91 [19:53:06]RAPDU: 90 00 [19:53:06]wFMCommunicate OK [19:53:06]wFMCommunicate request_size=255 [19:53:06]MH_SAM_APDU [19:53: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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A3 85 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 73 00 00 35 04 06 00 E3 [19:53:06]Write to MH i2c: E2 02 01 02 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 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A3 85 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 73 00 00 35 04 06 00 E3 00 00 11 [19:53:06]Write i2c OK [19:53:06]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 02 1C 00 90 00 92 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]wFMCommunicate request_size=10 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 02 02 05 4B C2 61 25 B1 [19:53:07]Write to MH i2c: E2 0D 00 03 1C 80 0D 02 02 05 00 4B C2 61 25 B1 00 00 E7 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 03 00 03 1C 00 90 00 93 [19:53:07]RAPDU: 90 00 [19:53:07]wFMCommunicate OK [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 0D 03 02 [19:53:07]Write to MH i2c: E2 08 00 04 1C 80 0D 03 02 00 00 00 00 9B [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0B 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0B 00 04 1C 00 B2 C6 BF 80 4C 8F 26 B3 90 00 07 [19:53:07]RAPDU: B2 C6 BF 80 4C 8F 26 B3 90 00 [19:53:07]wFMCommunicate OK [19:53:07]SAM_PROTO_SignData done [19:53:07]FM_MakeSignedData done [19:53:07]CreateOFDProtocolMessage [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 11 00 00 [19:53:07]Write to MH i2c: E2 08 00 05 1C 80 11 00 00 00 00 00 00 9B [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 17 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 17 00 05 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [19:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:07]wFMCommunicate OK [19:53:07]CreateOFDProtocolMessage done [19:53:07]OFDSenderStorePacket 29667 [19:53:07]StoreOFDPacket docnum=29667 [19:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA FF 07 01 AF ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A3 85 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 73 00 00 35 04 06 00 E3 4B C2 61 25 B1 B2 C6 BF 80 4C 8F 26 B3 [19:53:07]CheckFolder [19:53:07]dirname=/storage/ofd_packets [19:53:07]CheckFolder done [19:53:07]ProducePacketName [19:53:07]name=ofd_packets/00029667 [19:53:07]NVStorageSaveData ofd_packets/00029667 [19:53:07]File name is /storage/ofd_packets/00029667 [19:53:07]Write 301 bytes [19:53:07]NVStorageSaveData done [19:53:07]OFDSenderStorePacket done [19:53:07]KKMCreateOFDPacket done [19:53:07]NVStorageSaveData kkm_last_timestamp [19:53:07]File name is /storage/kkm_last_timestamp [19:53:07]Write 4 bytes [19:53:07]NVStorageSaveData done [19:53:07]ExternCall_PrintAddStr [19:53:07]wPrintStart [19:53:07]Write to MH i2c: 01 00 00 06 1C 22 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 07 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 FF 0F 37 [19:53:07]RasterBufferAndPrint [19:53:07]line Счет N : (1)348130 [19:53:07]line ИНН: 02508201610067 [19:53:07]line Контрольно-Кассовый Чек [19:53:07]line ПРОДАЖА [19:53:07]line ТРК (МРК, ГНК) : 32 [19:53:07]line Товар: 2710124130 [19:53:07]line Аи-92-К-5 [19:53:07]line 18.520 * 64.80 [19:53:07]line = 1200.10 [19:53:07]line НДС 12% НСП 1% [19:53:07]line > о реализуемом товаре [19:53:07]line ОКРУГЛЕНИЕ: -0.10 [19:53:07]line ИТОГО: 1200.00 [19:53:07]line Внесено: 1200.00 [19:53:07]line СДАЧА: 0.00 [19:53:07]line НСП 1% : 10.62 [19:53:07]line НДС 12% : 127.44 [19:53:07]line Наличными: 1200.00 [19:53:07]line Безнал.: 0.00 [19:53:07]line Место: АЗС № 108 "Партнер Нефть" [19:53:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:53:07]line СНО: Общий режим [19:53:07]line Чек 261 15.04.2024 19:53 [19:53:07]line Смена: 117 ФФД: 1.0 [19:53:07]line ЗНМ: 0300000027 [19:53:07]line РНМ: 0000138879044617 [19:53:07]line Версия ККМ: 001 [19:53:07]line ФМ: 0000000000963154 [19:53:07]line ФД: 29667 [19:53:07]line ФПД: 249914523198897 [19:53:07]line 1/tax-web-control/client/api/v1/ticket?date=20240415T195307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29667&fm=249914523198897&tin=02508201610067®Number=0000138879044617&sum=120000 [19:53:07]OFD Sender: Processing packet 29667 [packets to send 8, broken 7] [19:53:07]ProducePacketName [19:53:07]name=ofd_packets/00029667 [19:53:07]OFD Sender: To server: pG, [19:53:07]CommunicateWithHost lk.salyk.kg:30040 [19:53:07]ConnectInit lk.salyk.kg [19:53:07]written 0, free lines is 4095 [19:53:07]Connected sock=10 [19:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FA FF 07 01 AF ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A3 85 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 73 00 00 35 04 06 00 E3 4B C2 61 25 B1 B2 C6 BF 80 4C 8F 26 B3 [19:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC 5B 47 00 15 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 39 36 33 31 35 34 10 04 04 00 E3 73 00 00 F4 03 04 00 43 30 1D 66 B6 04 01 00 00 62 90 90 57 11 07 A4 44 [19:53:07]CommunicateWithHost err = 0 [19:53:07]CheckOFDResponse [19:53:07]1017 (14) - 77093643461234 [19:53:07]1041 (16) - 0000000000963154 [19:53:07]1040 (4) - 29667 [19:53:07]1012 (4) - 15.04.2024 13:48 [19:53:07]1206 (1) - 0 [19:53:07]OFD Sender: Remove packet 29667 [19:53:07]ProducePacketName [19:53:07]name=ofd_packets/00029667 [19:53:07]NVStorageDeleteData [19:53:07]Write to MH i2c: 01 00 00 30 1C 4C [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 07 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: 01 07 00 30 1C 00 00 00 00 00 C7 0C 26 [19:53:07]RasterBufferAndPrint [19:53:07]line [19:53:07]line [19:53:07]line [19:53:07]line [19:53:07]line [19:53:07]written 0, free lines is 3277 [19:53:07]MH_Cut [19:53:07]Write to MH i2c: D1 01 00 37 1C 01 25 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: D1 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: D1 01 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: D1 01 00 37 1C 00 24 [19:53:07]Write to MH i2c: 01 00 00 38 1C 54 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:08]OFD Sender: No OFD packet to send [19:53:08]*** Cut start [19:53:08]*** Partial cut [19:53:08]*** CUTSNS_PIN = 1 [19:53:08]*** CUTSNS_PIN = 0 [19:53:09]*** Brake cut motor [19:53:09]Read from MH i2c: 01 [19:53:09]MH_I2C_Read... [19:53:09]*** Stop cut motor [19:53:09]*** Cut end [19:53:09]Read from MH i2c: 01 07 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 38 1C 00 00 00 00 00 FF 0F 69 [19:53:09]process_action close_receipt done [19:53:09]requested_data is exist [19:53:09]produce_requested_data [19:53:09]requested_item fm.sn is exist - process it [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 11 00 00 [19:53:09]Write to MH i2c: E2 08 00 39 1C 80 11 00 00 00 00 00 00 CF [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 17 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 17 00 39 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [19:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:09]wFMCommunicate OK [19:53:09]requested_item fd.num is exist - process it [19:53:09]SAM_PROTO_GetFieldsCounters [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 13 00 00 [19:53:09]Write to MH i2c: E2 08 00 3A 1C 80 13 00 00 00 00 00 00 D2 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 62 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 62 00 3A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 73 00 00 0E 04 04 00 75 00 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 ED [19:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 73 00 00 0E 04 04 00 75 00 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 [19:53:09]wFMCommunicate OK [19:53:09]SAM_PROTO_GetFieldsCounters done [19:53:09]requested_item shift.num is exist - process it [19:53:09]requested_item shift.opened is exist - process it [19:53:09]req_shift_opened [19:53:09]FM_GetShiftState [19:53:09]SAM_PROTO_GetShiftState [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 13 01 00 [19:53:09]Write to MH i2c: E2 08 00 3B 1C 80 13 01 00 00 00 00 00 D4 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 0E 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 0E 00 3B 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [19:53:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:53:09]wFMCommunicate OK [19:53:09]SAM_PROTO_GetShiftState done [19:53:09]FM_GetShiftState done [19:53:09]req_shift_opened done [19:53:09]requested_item shift.open_date is exist - process it [19:53:09]req_shift_open_date [19:53:09]req_shift_open_date done [19:53:09]produce_requested_data done [19:53:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29667,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:53:09]process_action_free close_receipt [19:53:09]json_value_free [19:53:09]json_value_free done [19:53:09]process_json_proto returns [19:53:09]Send response to host [19:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29667,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:53:09]free response buf [19:53:09]execute_script done [19:53:09]execute_script returns [19:53:09]free content buf [19:53:09]Sock 9.Close socket [19:53:09]Sock 9.Thread stoped [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:49]accept exits with 7 [19:53:49]New connection [19:53:49]New thread 3067108708 created [19:53:49]Thread 3066965348 joined [19:53:49]Waiting for new connection... [19:53:49] Sock 7.Parse request [19:53:49]Sock 7.Check first char [19:53:49]Sock 7.First char is OK [19:53:49]request: POST /json_proto HTTP/1.0 [19:53:49]Method: POST [19:53:49]URL: /json_proto [19:53:49]Method is POST - this is cgi request [19:53:49]url: /json_proto [19:53:49]query_string will be loaded in cgi processing [19:53:49]execute_cgi json_proto POST (null) [19:53:49]execute_cgi path=json_proto method=POST [19:53:49]POST find Content-Length [19:53:49]Host: 172.17.33.3:8080 [19:53:49]Content-Length: 1211 [19:53:49]Content-Type: application/json [19:53:49] [19:53:49]POST finish read [19:53:49]Found Content-Length = 1211 [19:53:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348131\u000A15.04.2024 19:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3859255;3859254\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:49]execute_script... [19:53:49]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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348131\u000A15.04.2024 19:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.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\u000A3859255;3859254\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:49]POST & json_proto [19:53:49]process_json_proto [19:53:49]json parsed OK: [19:53:49]protocol is kg_v1.0 [19:53:49]action value=print_text [19:53:49]process_action print_text [19:53:49]cmd_print_text [19:53:49]ExternCall_PrintAddStr [19:53:49]wPrintStart [19:53:49]Write to MH i2c: 01 00 00 3C 1C 58 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 3C 1C 00 00 00 00 00 FF 0F 6D [19:53:49]RasterBufferAndPrint [19:53:49]line *****ТОВАРНЫЙ ЧЕК***** [19:53:49]line АЗС 108 [19:53:49]line Партнер нефть [19:53:49]line 02508201610067 [19:53:49]line Кассир : Джумагулова Н. [19:53:49]line Счет N : (1)348131 [19:53:49]line 15.04.2024 19:35 [19:53:49]line ПРОДАЖА [19:53:49]line ТРК (МРК, ГНК): 13 [19:53:49]line Вид ГСМ : 2710124130 [19:53:49]line Аи-92-К-5 [19:53:49]line 20.000 x 64.80 [19:53:49]line ИТОГ: 1296.00 [19:53:49]line Тип оплаты: Талоны: Партнер нефть [19:53:49]line 3859255;3859254 [19:53:49]line ______________________ [19:53:49]line (подпись) [19:53:49]written 0, free lines is 4095 [19:53:49]Write to MH i2c: 01 00 00 51 1C 6D [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FC 0D 7D [19:53:49]RasterBufferAndPrint [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]line [19:53:49]written 0, free lines is 3582 [19:53:49]MH_Cut [19:53:49]Write to MH i2c: D1 01 00 58 1C 01 46 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 01 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: D1 01 00 58 1C 00 45 [19:53:49]Write to MH i2c: 01 00 00 59 1C 75 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** Cut start [19:53:49]*** Partial cut [19:53:49]*** CUTSNS_PIN = 1 [19:53:49]*** CUTSNS_PIN = 0 [19:53:50]*** Brake cut motor [19:53:50]Read from MH i2c: 01 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 07 00 [19:53:50]MH_I2C_Read... [19:53:50]*** Stop cut motor [19:53:50]*** Cut end [19:53:50]Read from MH i2c: 01 07 00 59 1C 00 00 00 00 00 FF 0F 8A [19:53:50]process_action print_text done [19:53:50]requested_data is exist [19:53:50]produce_requested_data [19:53:50]requested_item fm.sn is exist - process it [19:53:50]wFMCommunicate request_size=4 [19:53:50]MH_SAM_APDU [19:53:50]CAPDU: 80 11 00 00 [19:53:50]Write to MH i2c: E2 08 00 5A 1C 80 11 00 00 00 00 00 00 F0 [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:50]Read from MH i2c: E2 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 17 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 17 00 5A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [19:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:53:50]wFMCommunicate OK [19:53:50]requested_item fd.num is exist - process it [19:53:50]SAM_PROTO_GetFieldsCounters [19:53:50]wFMCommunicate request_size=4 [19:53:50]MH_SAM_APDU [19:53:50]CAPDU: 80 13 00 00 [19:53:50]Write to MH i2c: E2 08 00 5B 1C 80 13 00 00 00 00 00 00 F3 [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:50]Read from MH i2c: E2 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 62 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 62 00 5B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 73 00 00 0E 04 04 00 75 00 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 0E [19:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 73 00 00 0E 04 04 00 75 00 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 [19:53:50]wFMCommunicate OK [19:53:50]SAM_PROTO_GetFieldsCounters done [19:53:50]requested_item shift.num is exist - process it [19:53:50]requested_item shift.opened is exist - process it [19:53:50]req_shift_opened [19:53:50]FM_GetShiftState [19:53:50]SAM_PROTO_GetShiftState [19:53:50]wFMCommunicate request_size=4 [19:53:50]MH_SAM_APDU [19:53:50]CAPDU: 80 13 01 00 [19:53:50]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:50]Read from MH i2c: E2 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 0E 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E9 [19:53:50]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [19:53:50]wFMCommunicate OK [19:53:50]SAM_PROTO_GetShiftState done [19:53:50]FM_GetShiftState done [19:53:50]req_shift_opened done [19:53:50]requested_item shift.open_date is exist - process it [19:53:50]req_shift_open_date [19:53:50]req_shift_open_date done [19:53:50]produce_requested_data done [19:53:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29667,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [19:53:50]process_action_free print_text [19:53:50]json_value_free [19:53:50]json_value_free done [19:53:50]process_json_proto returns [19:53:50]Send response to host [19:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29667,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [19:53:50]free response buf [19:53:50]execute_script done [19:53:50]execute_script returns [19:53:50]free content buf [19:53:50]Sock 7.Close socket [19:53:50]Sock 7.Thread stoped [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:44]int [19:54:44]Write to MH i2c: 01 00 00 5D 1C 79 [19:54:44]*** FLAG_PRN_KEY set [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 07 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 07 00 5D 1C 00 08 00 00 00 FF 0F 96 [19:54:44]state=0 [19:54:44]Key pressed [19:54:44]Feed [19:54:44]Write to MH i2c: D8 00 00 5E 1C 51 [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: D8 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: D8 01 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: D8 01 00 5E 1C 00 52 [19:54:44]int [19:54:44]Write to MH i2c: 01 00 00 5F 1C 7B [19:54:44]Write i2c OK [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 07 00 [19:54:44]MH_I2C_Read... [19:54:44]Read from MH i2c: 01 07 00 5F 1C 00 48 00 00 00 3C 00 06 [19:54:44]state=2 [19:54:44]Key pressed [19:54:45]int [19:54:45]Write to MH i2c: 01 00 00 60 1C 7C [19:54:45]*** FLAG_PRN_KEY reset [19:54:45]Write i2c OK [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 [19:54:45]MH_I2C_Read... [19:54:45]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 F6 0F 88 [19:54:45]state=2 [19:54:45]Stop feed [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:04]int [19:55:04]Write to MH i2c: 01 00 00 61 1C 7D [19:55:04]*** FLAG_PRN_KEY set [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 61 1C 00 08 00 00 00 FF 0F 9A [19:55:04]state=0 [19:55:04]Key pressed [19:55:04]Feed [19:55:04]Write to MH i2c: D8 00 00 62 1C 55 [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D8 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D8 01 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: D8 01 00 62 1C 00 56 [19:55:04]int [19:55:04]Write to MH i2c: 01 00 00 63 1C 7F [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 63 1C 00 48 00 00 00 3D 00 0B [19:55:04]state=2 [19:55:04]Key pressed [19:55:04]int [19:55:04]Write to MH i2c: 01 00 00 64 1C 80 [19:55:04]*** FLAG_PRN_KEY reset [19:55:04]Write i2c OK [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 [19:55:04]MH_I2C_Read... [19:55:04]Read from MH i2c: 01 07 00 64 1C 00 00 00 00 00 F6 0F 8C [19:55:04]state=2 [19:55:04]Stop feed [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:17]accept exits with 9 [20:00:17]New connection [20:00:17]New thread 3066965348 created [20:00:17]Thread 3067108708 joined [20:00:17]Waiting for new connection... [20:00:17] Sock 9.Parse request [20:00:17]Sock 9.Check first char [20:00:17]Sock 9.First char is OK [20:00:17]request: POST /json_proto HTTP/1.0 [20:00:17]Method: POST [20:00:17]URL: /json_proto [20:00:17]Method is POST - this is cgi request [20:00:17]url: /json_proto [20:00:17]query_string will be loaded in cgi processing [20:00:17]execute_cgi json_proto POST (null) [20:00:17]execute_cgi path=json_proto method=POST [20:00:17]POST find Content-Length [20:00:17]Host: 172.17.33.3:8080 [20:00:17]Content-Length: 677 [20:00:17]Content-Type: application/json [20:00:17] [20:00:17]POST finish read [20:00:17]Found Content-Length = 677 [20:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:17]execute_script... [20:00: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)348132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:17]POST & json_proto [20:00:17]process_json_proto [20:00:17]json parsed OK: [20:00:17]protocol is kg_v1.0 [20:00:17]action value=close_receipt [20:00:17]process_action close_receipt [20:00:17]cmd_close_receipt [20:00:17]MH_GetDate [20:00:17]Write to MH i2c: F0 00 00 65 1C 70 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 09 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: F0 09 00 65 1C 00 53 87 1D 66 23 5B 8F 65 48 [20:00:17]GetLastDocTimeStamp 1713210787 [20:00:17]current date 1713211219 [20:00:17]FM_GetShiftState [20:00:17]SAM_PROTO_GetShiftState [20:00:17]wFMCommunicate request_size=4 [20:00:17]MH_SAM_APDU [20:00:17]CAPDU: 80 13 01 00 [20:00:17]Write to MH i2c: E2 08 00 66 1C 80 13 01 00 00 00 00 00 FF [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:17]Read from MH i2c: E2 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: E2 0E 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: E2 0E 00 66 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F3 [20:00:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:00:17]wFMCommunicate OK [20:00:17]SAM_PROTO_GetShiftState done [20:00:17]FM_GetShiftState done [20:00:17]opened in 1713140468 [20:00:17]opened+sec_in_day 1713226868 [20:00:17]quantity*price = 50025 [20:00:17]sum+1 = 50027 [20:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 262 15.04.2024 20:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29668 ФПД: 3098327226874 1/tax-web-control/client/api/v1/ticket?date=20240415T200019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29668&fm=3098327226874&tin=02508201610067®Number=0000138879044617&sum=50000 [20:00:18]StoreToDocumentArchive [20:00:18]shift 117 fd 29668 [20:00:18]save to /storage/0117/doc_00029668 [20:00:18]save last doc name /storage/0117/doc_00029668 to /storage/kkm_last_doc_name [20:00:18]save OK [20:00:18]Clear old archive folders... [20:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:18]tlvbuf is B6F7E4A0 [20:00:18]SAM_PROTO_ClearQueue [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 09 00 00 [20:00:18]Write to MH i2c: E2 08 00 73 1C 80 09 00 00 00 00 00 00 01 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]SAM_PROTO_ClearQueue done [20:00:18]KKMCreateOFDPacket [20:00:18]OFDProtocolAddRootSTLVToBuf [20:00:18]FM_MakeSignedData [20:00:18]FM_MakeSignedData [20:00:18]SAM_PROTO_SignData [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 01 02 [20:00:18]Write to MH i2c: E2 08 00 74 1C 80 0D 01 02 00 00 00 00 09 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 74 1C 00 90 00 04 [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=255 [20:00:18]MH_SAM_APDU [20:00: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 73 00 00 35 04 06 00 02 [20:00:18]Write to MH i2c: E2 02 01 75 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 73 00 00 35 04 06 00 02 00 00 F4 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]OFD Sender: No OFD packet to send [20:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 75 1C 00 90 00 05 [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=10 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 02 02 05 D1 62 B1 99 FA [20:00:18]Write to MH i2c: E2 0D 00 76 1C 80 0D 02 02 05 00 D1 62 B1 99 FA 00 00 8D [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:18]Read from MH i2c: E2 03 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 03 00 76 1C 00 90 00 06 [20:00:18]RAPDU: 90 00 [20:00:18]wFMCommunicate OK [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 0D 03 02 [20:00:18]Write to MH i2c: E2 08 00 77 1C 80 0D 03 02 00 00 00 00 0E [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 0B 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 0B 00 77 1C 00 1F BD 7C 6A 90 A2 68 D1 90 00 3C [20:00:18]RAPDU: 1F BD 7C 6A 90 A2 68 D1 90 00 [20:00:18]wFMCommunicate OK [20:00:18]SAM_PROTO_SignData done [20:00:18]FM_MakeSignedData done [20:00:18]CreateOFDProtocolMessage [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 11 00 00 [20:00:18]Write to MH i2c: E2 08 00 78 1C 80 11 00 00 00 00 00 00 0E [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:18]Read from MH i2c: E2 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 17 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: E2 17 00 78 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [20:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:00:18]wFMCommunicate OK [20:00:18]CreateOFDProtocolMessage done [20:00:18]OFDSenderStorePacket 29668 [20:00:18]StoreOFDPacket docnum=29668 [20:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9C 2D 07 01 0C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 73 00 00 35 04 06 00 02 D1 62 B1 99 FA 1F BD 7C 6A 90 A2 68 D1 [20:00:18]CheckFolder [20:00:18]dirname=/storage/ofd_packets [20:00:18]CheckFolder done [20:00:18]ProducePacketName [20:00:18]name=ofd_packets/00029668 [20:00:18]NVStorageSaveData ofd_packets/00029668 [20:00:18]File name is /storage/ofd_packets/00029668 [20:00:18]Write 301 bytes [20:00:18]NVStorageSaveData done [20:00:18]OFDSenderStorePacket done [20:00:18]KKMCreateOFDPacket done [20:00:18]NVStorageSaveData kkm_last_timestamp [20:00:18]File name is /storage/kkm_last_timestamp [20:00:18]Write 4 bytes [20:00:18]NVStorageSaveData done [20:00:18]ExternCall_PrintAddStr [20:00:18]wPrintStart [20:00:18]Write to MH i2c: 01 00 00 79 1C 95 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: 01 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: 01 07 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: 01 07 00 79 1C 00 00 00 00 00 FF 0F AA [20:00:18]RasterBufferAndPrint [20:00:18]line Счет N : (1)348132 [20:00:18]line ИНН: 02508201610067 [20:00:18]line Контрольно-Кассовый Чек [20:00:18]line ПРОДАЖА [20:00:18]line ТРК (МРК, ГНК) : 13 [20:00:18]line Товар: 2710124130 [20:00:18]line Аи-92-К-5 [20:00:18]line 7.720 * 64.80 [20:00:18]line = 500.26 [20:00:18]line НДС 12% НСП 1% [20:00:18]line > о реализуемом товаре [20:00:18]line ОКРУГЛЕНИЕ: -0.26 [20:00:18]line ИТОГО: 500.00 [20:00:18]line Внесено: 500.00 [20:00:18]line СДАЧА: 0.00 [20:00:18]line НСП 1% : 4.43 [20:00:18]line НДС 12% : 53.12 [20:00:18]line Наличными: 500.00 [20:00:18]line Безнал.: 0.00 [20:00:18]line Место: АЗС № 108 "Партнер Нефть" [20:00:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:00:18]line СНО: Общий режим [20:00:18]line Чек 262 15.04.2024 20:00 [20:00:18]line Смена: 117 ФФД: 1.0 [20:00:18]line ЗНМ: 0300000027 [20:00:18]line РНМ: 0000138879044617 [20:00:18]line Версия ККМ: 001 [20:00:18]line ФМ: 0000000000963154 [20:00:18]line ФД: 29668 [20:00:18]line ФПД: 3098327226874 [20:00:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T200019&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29668&fm=3098327226874&tin=02508201610067®Number=0000138879044617&sum=50000 [20:00:18]written 0, free lines is 4095 [20:00:18]OFD Sender: Processing packet 29668 [packets to send 8, broken 7] [20:00:18]ProducePacketName [20:00:18]name=ofd_packets/00029668 [20:00:18]OFD Sender: To server: pG, [20:00:18]CommunicateWithHost lk.salyk.kg:30040 [20:00:18]ConnectInit lk.salyk.kg [20:00:19]Connected sock=11 [20:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9C 2D 07 01 0C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 53 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 73 00 00 35 04 06 00 02 D1 62 B1 99 FA 1F BD 7C 6A 90 A2 68 D1 [20:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C5 39 47 00 85 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 39 36 33 31 35 34 10 04 04 00 E4 73 00 00 F4 03 04 00 F2 31 1D 66 B6 04 01 00 00 3B 9F 01 19 18 59 F3 EE [20:00:19]CommunicateWithHost err = 0 [20:00:19]CheckOFDResponse [20:00:19]1017 (14) - 77093643461234 [20:00:19]1041 (16) - 0000000000963154 [20:00:19]1040 (4) - 29668 [20:00:19]1012 (4) - 15.04.2024 13:56 [20:00:19]1206 (1) - 0 [20:00:19]OFD Sender: Remove packet 29668 [20:00:19]ProducePacketName [20:00:19]name=ofd_packets/00029668 [20:00:19]NVStorageDeleteData [20:00:19]Write to MH i2c: 01 00 00 A3 1C BF [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: 01 07 00 A3 1C 00 00 00 00 00 E0 0C B2 [20:00:19]RasterBufferAndPrint [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]line [20:00:19]written 0, free lines is 3302 [20:00:19]MH_Cut [20:00:19]Write to MH i2c: D1 01 00 AA 1C 01 98 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 01 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: D1 01 00 AA 1C 00 97 [20:00:19]Write to MH i2c: 01 00 00 AB 1C C7 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]OFD Sender: No OFD packet to send [20:00:20]*** Cut start [20:00:20]*** Partial cut [20:00:20]*** CUTSNS_PIN = 1 [20:00:20]*** CUTSNS_PIN = 0 [20:00:20]*** Brake cut motor [20:00:20]Read from MH i2c: 01 [20:00:20]MH_I2C_Read... [20:00:20]*** Stop cut motor [20:00:20]*** Cut end [20:00:20]Read from MH i2c: 01 07 00 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 FF 0F DC [20:00:20]process_action close_receipt done [20:00:20]requested_data is exist [20:00:20]produce_requested_data [20:00:20]requested_item fm.sn is exist - process it [20:00:20]wFMCommunicate request_size=4 [20:00:20]MH_SAM_APDU [20:00:20]CAPDU: 80 11 00 00 [20:00:20]Write to MH i2c: E2 08 00 AC 1C 80 11 00 00 00 00 00 00 42 [20:00:20]Write i2c OK [20:00:20]MH_I2C_Read... [20:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:20]Read from MH i2c: E2 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 17 00 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 17 00 AC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [20:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:00:20]wFMCommunicate OK [20:00:20]requested_item fd.num is exist - process it [20:00:20]SAM_PROTO_GetFieldsCounters [20:00:20]wFMCommunicate request_size=4 [20:00:20]MH_SAM_APDU [20:00:20]CAPDU: 80 13 00 00 [20:00:20]Write to MH i2c: E2 08 00 AD 1C 80 13 00 00 00 00 00 00 45 [20:00:20]Write i2c OK [20:00:20]MH_I2C_Read... [20:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:20]Read from MH i2c: E2 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 62 00 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 62 00 AD 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 73 00 00 0E 04 04 00 75 00 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 64 [20:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 73 00 00 0E 04 04 00 75 00 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 [20:00:20]wFMCommunicate OK [20:00:20]SAM_PROTO_GetFieldsCounters done [20:00:20]requested_item shift.num is exist - process it [20:00:20]requested_item shift.opened is exist - process it [20:00:20]req_shift_opened [20:00:20]FM_GetShiftState [20:00:20]SAM_PROTO_GetShiftState [20:00:20]wFMCommunicate request_size=4 [20:00:20]MH_SAM_APDU [20:00:20]CAPDU: 80 13 01 00 [20:00:20]Write to MH i2c: E2 08 00 AE 1C 80 13 01 00 00 00 00 00 47 [20:00:20]Write i2c OK [20:00:20]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0E 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0E 00 AE 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3B [20:00:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:00:21]wFMCommunicate OK [20:00:21]SAM_PROTO_GetShiftState done [20:00:21]FM_GetShiftState done [20:00:21]req_shift_opened done [20:00:21]requested_item shift.open_date is exist - process it [20:00:21]req_shift_open_date [20:00:21]req_shift_open_date done [20:00:21]produce_requested_data done [20:00:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29668,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:00:21]process_action_free close_receipt [20:00:21]json_value_free [20:00:21]json_value_free done [20:00:21]process_json_proto returns [20:00:21]Send response to host [20:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29668,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:00:21]free response buf [20:00:21]execute_script done [20:00:21]execute_script returns [20:00:21]free content buf [20:00:21]Sock 9.Close socket [20:00:21]Sock 9.Thread stoped [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:56]accept exits with 7 [20:00:56]New connection [20:00:56]New thread 3067108708 created [20:00:56]Thread 3066965348 joined [20:00:56]Waiting for new connection... [20:00:56] Sock 7.Parse request [20:00:56]Sock 7.Check first char [20:00:56]Sock 7.First char is OK [20:00:56]request: POST /json_proto HTTP/1.0 [20:00:56]Method: POST [20:00:56]URL: /json_proto [20:00:56]Method is POST - this is cgi request [20:00:56]url: /json_proto [20:00:56]query_string will be loaded in cgi processing [20:00:56]execute_cgi json_proto POST (null) [20:00:56]execute_cgi path=json_proto method=POST [20:00:56]POST find Content-Length [20:00:56]Host: 172.17.33.3:8080 [20:00:56]Content-Length: 677 [20:00:56]Content-Type: application/json [20:00:56] [20:00:56]POST finish read [20:00:56]Found Content-Length = 677 [20:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:56]execute_script... [20:00: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)348133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:56]POST & json_proto [20:00:56]process_json_proto [20:00:56]json parsed OK: [20:00:56]protocol is kg_v1.0 [20:00:56]action value=close_receipt [20:00:56]process_action close_receipt [20:00:56]cmd_close_receipt [20:00:56]MH_GetDate [20:00:56]Write to MH i2c: F0 00 00 AF 1C BA [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: F0 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: F0 09 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: F0 09 00 AF 1C 00 7A 87 1D 66 23 5B 8F 65 B9 [20:00:56]GetLastDocTimeStamp 1713211219 [20:00:56]current date 1713211258 [20:00:56]FM_GetShiftState [20:00:56]SAM_PROTO_GetShiftState [20:00:56]wFMCommunicate request_size=4 [20:00:56]MH_SAM_APDU [20:00:56]CAPDU: 80 13 01 00 [20:00:56]Write to MH i2c: E2 08 00 B0 1C 80 13 01 00 00 00 00 00 49 [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:56]Read from MH i2c: E2 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 0E 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 0E 00 B0 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3D [20:00:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:00:56]wFMCommunicate OK [20:00:56]SAM_PROTO_GetShiftState done [20:00:56]FM_GetShiftState done [20:00:56]opened in 1713140468 [20:00:56]opened+sec_in_day 1713226868 [20:00:56]quantity*price = 40046 [20:00:56]sum+1 = 40047 [20:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 263 15.04.2024 20:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29669 ФПД: 212834665263498 1/tax-web-control/client/api/v1/ticket?date=20240415T200058&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29669&fm=212834665263498&tin=02508201610067®Number=0000138879044617&sum=40000 [20:00:57]StoreToDocumentArchive [20:00:57]shift 117 fd 29669 [20:00:57]save to /storage/0117/doc_00029669 [20:00:57]save last doc name /storage/0117/doc_00029669 to /storage/kkm_last_doc_name [20:00:57]save OK [20:00:57]Clear old archive folders... [20:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:57]tlvbuf is B6F005F0 [20:00:57]SAM_PROTO_ClearQueue [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 09 00 00 [20:00:57]Write to MH i2c: E2 08 00 BD 1C 80 09 00 00 00 00 00 00 4B [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [20:00:57]RAPDU: 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_ClearQueue done [20:00:57]KKMCreateOFDPacket [20:00:57]OFDProtocolAddRootSTLVToBuf [20:00:57]FM_MakeSignedData [20:00:57]FM_MakeSignedData [20:00:57]SAM_PROTO_SignData [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 0D 01 02 [20:00:57]Write to MH i2c: E2 08 00 BE 1C 80 0D 01 02 00 00 00 00 53 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [20:00:57]RAPDU: 90 00 [20:00:57]wFMCommunicate OK [20:00:57]wFMCommunicate request_size=255 [20:00:57]MH_SAM_APDU [20:00: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 07 01 00 00 F4 03 04 00 7A 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 73 00 00 35 04 06 00 C1 [20:00:57]Write to MH i2c: E2 02 01 BF 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 07 01 00 00 F4 03 04 00 7A 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 73 00 00 35 04 06 00 C1 00 00 0B [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 BF 1C 00 90 00 4F [20:00:57]RAPDU: 90 00 [20:00:57]wFMCommunicate OK [20:00:57]wFMCommunicate request_size=10 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 0D 02 02 05 92 6E 9E 71 8A [20:00:57]Write to MH i2c: E2 0D 00 C0 1C 80 0D 02 02 05 00 92 6E 9E 71 8A 00 00 F9 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 03 00 C0 1C 00 90 00 50 [20:00:57]RAPDU: 90 00 [20:00:57]wFMCommunicate OK [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 0D 03 02 [20:00:57]Write to MH i2c: E2 08 00 C1 1C 80 0D 03 02 00 00 00 00 58 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0B 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0B 00 C1 1C 00 02 02 AD D7 D2 C7 4D 48 90 00 0F [20:00:57]RAPDU: 02 02 AD D7 D2 C7 4D 48 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_SignData done [20:00:57]FM_MakeSignedData done [20:00:57]CreateOFDProtocolMessage [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 11 00 00 [20:00:57]Write to MH i2c: E2 08 00 C2 1C 80 11 00 00 00 00 00 00 58 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 C2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [20:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:00:57]wFMCommunicate OK [20:00:57]CreateOFDProtocolMessage done [20:00:57]OFDSenderStorePacket 29669 [20:00:57]StoreOFDPacket docnum=29669 [20:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 BB 07 01 FF 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 07 01 00 00 F4 03 04 00 7A 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 73 00 00 35 04 06 00 C1 92 6E 9E 71 8A 02 02 AD D7 D2 C7 4D 48 [20:00:57]CheckFolder [20:00:57]dirname=/storage/ofd_packets [20:00:57]CheckFolder done [20:00:57]ProducePacketName [20:00:57]name=ofd_packets/00029669 [20:00:57]NVStorageSaveData ofd_packets/00029669 [20:00:57]File name is /storage/ofd_packets/00029669 [20:00:57]Write 301 bytes [20:00:57]NVStorageSaveData done [20:00:57]OFDSenderStorePacket done [20:00:57]KKMCreateOFDPacket done [20:00:57]NVStorageSaveData kkm_last_timestamp [20:00:57]File name is /storage/kkm_last_timestamp [20:00:57]Write 4 bytes [20:00:57]NVStorageSaveData done [20:00:57]ExternCall_PrintAddStr [20:00:57]wPrintStart [20:00:57]Write to MH i2c: 01 00 00 C3 1C DF [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: 01 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: 01 07 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: 01 07 00 C3 1C 00 00 00 00 00 FF 0F F4 [20:00:57]RasterBufferAndPrint [20:00:57]line Счет N : (1)348133 [20:00:57]line ИНН: 02508201610067 [20:00:57]line Контрольно-Кассовый Чек [20:00:57]line ПРОДАЖА [20:00:57]line ТРК (МРК, ГНК) : 32 [20:00:57]line Товар: 2710124130 [20:00:57]line Аи-92-К-5 [20:00:57]line 6.180 * 64.80 [20:00:57]line = 400.46 [20:00:57]line НДС 12% НСП 1% [20:00:57]line > о реализуемом товаре [20:00:57]line ОКРУГЛЕНИЕ: -0.46 [20:00:57]line ИТОГО: 400.00 [20:00:57]line Внесено: 400.00 [20:00:57]line СДАЧА: 0.00 [20:00:57]line НСП 1% : 3.54 [20:00:57]line НДС 12% : 42.53 [20:00:57]line Наличными: 400.00 [20:00:57]line Безнал.: 0.00 [20:00:57]line Место: АЗС № 108 "Партнер Нефть" [20:00:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:00:57]line СНО: Общий режим [20:00:57]line Чек 263 15.04.2024 20:00 [20:00:57]line Смена: 117 ФФД: 1.0 [20:00:57]line ЗНМ: 0300000027 [20:00:57]line РНМ: 0000138879044617 [20:00:57]line Версия ККМ: 001 [20:00:57]line ФМ: 0000000000963154 [20:00:57]line ФД: 29669 [20:00:57]line ФПД: 212834665263498 [20:00:57]line 1/tax-web-control/client/api/v1/ticket?date=20240415T200058&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29669&fm=212834665263498&tin=02508201610067®Number=0000138879044617&sum=40000 [20:00:58]OFD Sender: Processing packet 29669 [packets to send 8, broken 7] [20:00:58]ProducePacketName [20:00:58]name=ofd_packets/00029669 [20:00:58]OFD Sender: To server: pG, [20:00:58]CommunicateWithHost lk.salyk.kg:30040 [20:00:58]ConnectInit lk.salyk.kg [20:00:58]written 0, free lines is 4095 [20:00:58]Connected sock=10 [20:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 05 BB 07 01 FF 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 07 01 00 00 F4 03 04 00 7A 87 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 73 00 00 35 04 06 00 C1 92 6E 9E 71 8A 02 02 AD D7 D2 C7 4D 48 [20:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 BE 47 00 67 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 39 36 33 31 35 34 10 04 04 00 E5 73 00 00 F4 03 04 00 1A 32 1D 66 B6 04 01 00 00 A3 09 92 9F 00 9B 53 10 [20:00:58]CommunicateWithHost err = 0 [20:00:58]CheckOFDResponse [20:00:58]1017 (14) - 77093643461234 [20:00:58]1041 (16) - 0000000000963154 [20:00:58]1040 (4) - 29669 [20:00:58]1012 (4) - 15.04.2024 13:56 [20:00:58]1206 (1) - 0 [20:00:58]OFD Sender: Remove packet 29669 [20:00:58]ProducePacketName [20:00:58]name=ofd_packets/00029669 [20:00:58]NVStorageDeleteData [20:00:58]Write to MH i2c: 01 00 00 ED 1C 09 [20:00:58]Write i2c OK [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: 01 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: 01 07 00 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: 01 07 00 ED 1C 00 00 00 00 00 E1 0C FD [20:00:58]RasterBufferAndPrint [20:00:58]line [20:00:58]line [20:00:58]line [20:00:58]line [20:00:58]line [20:00:58]written 0, free lines is 3304 [20:00:58]MH_Cut [20:00:58]Write to MH i2c: D1 01 00 F4 1C 01 E2 [20:00:58]Write i2c OK [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: D1 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: D1 01 00 [20:00:58]MH_I2C_Read... [20:00:58]Read from MH i2c: D1 01 00 F4 1C 00 E1 [20:00:58]Write to MH i2c: 01 00 00 F5 1C 11 [20:00:58]Write i2c OK [20:00:58]MH_I2C_Read... [20:00:59]OFD Sender: No OFD packet to send [20:00:59]*** Cut start [20:00:59]*** Partial cut [20:00:59]*** CUTSNS_PIN = 1 [20:00:59]*** CUTSNS_PIN = 0 [20:00:59]*** Brake cut motor [20:01:00]Read from MH i2c: 01 [20:01:00]MH_I2C_Read... [20:01:00]*** Stop cut motor [20:01:00]*** Cut end [20:01:00]Read from MH i2c: 01 07 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 FF 0F 26 [20:01:00]process_action close_receipt done [20:01:00]requested_data is exist [20:01:00]produce_requested_data [20:01:00]requested_item fm.sn is exist - process it [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 11 00 00 [20:01:00]Write to MH i2c: E2 08 00 F6 1C 80 11 00 00 00 00 00 00 8C [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 17 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 17 00 F6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [20:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:01:00]wFMCommunicate OK [20:01:00]requested_item fd.num is exist - process it [20:01:00]SAM_PROTO_GetFieldsCounters [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 13 00 00 [20:01:00]Write to MH i2c: E2 08 00 F7 1C 80 13 00 00 00 00 00 00 8F [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 62 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 62 00 F7 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 73 00 00 0E 04 04 00 75 00 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 B2 [20:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 73 00 00 0E 04 04 00 75 00 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 [20:01:00]wFMCommunicate OK [20:01:00]SAM_PROTO_GetFieldsCounters done [20:01:00]requested_item shift.num is exist - process it [20:01:00]requested_item shift.opened is exist - process it [20:01:00]req_shift_opened [20:01:00]FM_GetShiftState [20:01:00]SAM_PROTO_GetShiftState [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 13 01 00 [20:01:00]Write to MH i2c: E2 08 00 F8 1C 80 13 01 00 00 00 00 00 91 [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0E 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0E 00 F8 1C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [20:01:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:01:00]wFMCommunicate OK [20:01:00]SAM_PROTO_GetShiftState done [20:01:00]FM_GetShiftState done [20:01:00]req_shift_opened done [20:01:00]requested_item shift.open_date is exist - process it [20:01:00]req_shift_open_date [20:01:00]req_shift_open_date done [20:01:00]produce_requested_data done [20:01:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29669,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:01:00]process_action_free close_receipt [20:01:00]json_value_free [20:01:00]json_value_free done [20:01:00]process_json_proto returns [20:01:00]Send response to host [20:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29669,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:01:00]free response buf [20:01:00]execute_script done [20:01:00]execute_script returns [20:01:00]free content buf [20:01:00]Sock 7.Close socket [20:01:00]Sock 7.Thread stoped [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:14]accept exits with 9 [20:02:14]New connection [20:02:14]New thread 3066965348 created [20:02:14]Thread 3067108708 joined [20:02:14]Waiting for new connection... [20:02:14] Sock 9.Parse request [20:02:14]Sock 9.Check first char [20:02:14]Sock 9.First char is OK [20:02:14]request: POST /json_proto HTTP/1.0 [20:02:14]Method: POST [20:02:14]URL: /json_proto [20:02:14]Method is POST - this is cgi request [20:02:14]url: /json_proto [20:02:14]query_string will be loaded in cgi processing [20:02:14]execute_cgi json_proto POST (null) [20:02:14]execute_cgi path=json_proto method=POST [20:02:14]POST find Content-Length [20:02:14]Host: 172.17.33.3:8080 [20:02:14]Content-Length: 1211 [20:02:14]Content-Type: application/json [20:02:14] [20:02:14]POST finish read [20:02:14]Found Content-Length = 1211 [20:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348134\u000A15.04.2024 19:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.660 x 64.80\u000A\u0418\u0422\u041E\u0413: 366.77\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\u000A03363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:14]execute_script... [20:02:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348134\u000A15.04.2024 19:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.660 x 64.80\u000A\u0418\u0422\u041E\u0413: 366.77\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\u000A03363\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:14]POST & json_proto [20:02:14]process_json_proto [20:02:14]json parsed OK: [20:02:14]protocol is kg_v1.0 [20:02:14]action value=print_text [20:02:14]process_action print_text [20:02:14]cmd_print_text [20:02:14]ExternCall_PrintAddStr [20:02:14]wPrintStart [20:02:14]Write to MH i2c: 01 00 00 F9 1C 15 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [20:02:14]RasterBufferAndPrint [20:02:14]line *****ТОВАРНЫЙ ЧЕК***** [20:02:14]line АЗС 108 [20:02:14]line Партнер нефть [20:02:14]line 02508201610067 [20:02:14]line Кассир : Джумагулова Н. [20:02:14]line Счет N : (1)348134 [20:02:14]line 15.04.2024 19:43 [20:02:14]line ПРОДАЖА [20:02:14]line ТРК (МРК, ГНК): 23 [20:02:14]line Вид ГСМ : 2710124130 [20:02:14]line Аи-92-К-5 [20:02:14]line 5.660 x 64.80 [20:02:14]line ИТОГ: 366.77 [20:02:14]line Тип оплаты: Талоны: Топливная Карта [20:02:14]line 03363 [20:02:14]line ______________________ [20:02:14]line (подпись) [20:02:14]written 0, free lines is 4095 [20:02:14]Write to MH i2c: 01 00 00 0E 1D 2B [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: 01 07 00 0E 1D 00 00 00 00 00 F6 0D 35 [20:02:14]RasterBufferAndPrint [20:02:14]line [20:02:14]line [20:02:14]line [20:02:14]line [20:02:14]line [20:02:14]written 0, free lines is 3576 [20:02:14]MH_Cut [20:02:14]Write to MH i2c: D1 01 00 15 1D 01 04 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: D1 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: D1 01 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: D1 01 00 15 1D 00 03 [20:02:14]Write to MH i2c: 01 00 00 16 1D 33 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** Cut start [20:02:14]*** Partial cut [20:02:14]*** CUTSNS_PIN = 1 [20:02:15]*** CUTSNS_PIN = 0 [20:02:15]*** Brake cut motor [20:02:15]Read from MH i2c: 01 [20:02:15]MH_I2C_Read... [20:02:15]*** Stop cut motor [20:02:15]*** Cut end [20:02:15]Read from MH i2c: 01 07 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 FF 0F 48 [20:02:15]process_action print_text done [20:02:15]requested_data is exist [20:02:15]produce_requested_data [20:02:15]requested_item fm.sn is exist - process it [20:02:15]wFMCommunicate request_size=4 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 11 00 00 [20:02:15]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 17 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 17 00 17 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [20:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:02:15]wFMCommunicate OK [20:02:15]requested_item fd.num is exist - process it [20:02:15]SAM_PROTO_GetFieldsCounters [20:02:15]wFMCommunicate request_size=4 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 13 00 00 [20:02:15]Write to MH i2c: E2 08 00 18 1D 80 13 00 00 00 00 00 00 B1 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 62 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 62 00 18 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 73 00 00 0E 04 04 00 75 00 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 D4 [20:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 73 00 00 0E 04 04 00 75 00 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 [20:02:15]wFMCommunicate OK [20:02:15]SAM_PROTO_GetFieldsCounters done [20:02:15]requested_item shift.num is exist - process it [20:02:15]requested_item shift.opened is exist - process it [20:02:15]req_shift_opened [20:02:15]FM_GetShiftState [20:02:15]SAM_PROTO_GetShiftState [20:02:15]wFMCommunicate request_size=4 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 13 01 00 [20:02:15]Write to MH i2c: E2 08 00 19 1D 80 13 01 00 00 00 00 00 B3 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 0E 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 0E 00 19 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A7 [20:02:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:02:15]wFMCommunicate OK [20:02:15]SAM_PROTO_GetShiftState done [20:02:15]FM_GetShiftState done [20:02:15]req_shift_opened done [20:02:15]requested_item shift.open_date is exist - process it [20:02:15]req_shift_open_date [20:02:15]req_shift_open_date done [20:02:15]produce_requested_data done [20:02:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29669,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:02:15]process_action_free print_text [20:02:15]json_value_free [20:02:15]json_value_free done [20:02:15]process_json_proto returns [20:02:15]Send response to host [20:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29669,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:02:15]free response buf [20:02:15]execute_script done [20:02:15]execute_script returns [20:02:15]free content buf [20:02:15]Sock 9.Close socket [20:02:15]Sock 9.Thread stoped [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:33]accept exits with 10 [20:08:33]New connection [20:08:33]New thread 3067108708 created [20:08:33]Thread 3066965348 joined [20:08:33]Waiting for new connection... [20:08:33] Sock 10.Parse request [20:08:33]Sock 10.Check first char [20:08:33]Sock 10.First char is OK [20:08:33]request: POST /json_proto HTTP/1.0 [20:08:33]Method: POST [20:08:33]URL: /json_proto [20:08:33]Method is POST - this is cgi request [20:08:33]url: /json_proto [20:08:33]query_string will be loaded in cgi processing [20:08:33]execute_cgi json_proto POST (null) [20:08:33]execute_cgi path=json_proto method=POST [20:08:33]POST find Content-Length [20:08:33]Host: 172.17.33.3:8080 [20:08:33]Content-Length: 819 [20:08:33]Content-Type: application/json [20:08:33] [20:08:33]POST finish read [20:08:33]Found Content-Length = 819 [20:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:33]execute_script... [20:08: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)348136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:33]POST & json_proto [20:08:33]process_json_proto [20:08:33]json parsed OK: [20:08:33]protocol is kg_v1.0 [20:08:33]action value=close_receipt [20:08:33]process_action close_receipt [20:08:33]cmd_close_receipt [20:08:33]MH_GetDate [20:08:33]Write to MH i2c: F0 00 00 1A 1D 26 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 09 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: F0 09 00 1A 1D 00 43 89 1D 66 23 5B 8F 65 F0 [20:08:33]GetLastDocTimeStamp 1713211258 [20:08:33]current date 1713211715 [20:08:33]FM_GetShiftState [20:08:33]SAM_PROTO_GetShiftState [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 13 01 00 [20:08:33]Write to MH i2c: E2 08 00 1B 1D 80 13 01 00 00 00 00 00 B5 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0E 00 1B 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A9 [20:08:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:08:33]wFMCommunicate OK [20:08:33]SAM_PROTO_GetShiftState done [20:08:33]FM_GetShiftState done [20:08:33]opened in 1713140468 [20:08:33]opened+sec_in_day 1713226868 [20:08:33]quantity*price = 100018 [20:08:33]sum+1 = 100020 [20:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 264 15.04.2024 20:08 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29670 ФПД: 79071759291450 1/tax-web-control/client/api/v1/ticket?date=20240415T200835&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29670&fm=79071759291450&tin=02508201610067®Number=0000138879044617&sum=100019 [20:08:34]StoreToDocumentArchive [20:08:34]shift 117 fd 29670 [20:08:34]save to /storage/0117/doc_00029670 [20:08:34]save last doc name /storage/0117/doc_00029670 to /storage/kkm_last_doc_name [20:08:34]save OK [20:08:34]Clear old archive folders... [20:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:34]tlvbuf is B6ECE090 [20:08:34]SAM_PROTO_ClearQueue [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 09 00 00 [20:08:34]Write to MH i2c: E2 08 00 28 1D 80 09 00 00 00 00 00 00 B7 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 28 1D 00 90 00 B9 [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]SAM_PROTO_ClearQueue done [20:08:34]KKMCreateOFDPacket [20:08:34]OFDProtocolAddRootSTLVToBuf [20:08:34]FM_MakeSignedData [20:08:34]FM_MakeSignedData [20:08:34]SAM_PROTO_SignData [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 01 02 [20:08:34]Write to MH i2c: E2 08 00 29 1D 80 0D 01 02 00 00 00 00 BF [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=255 [20:08:34]MH_SAM_APDU [20:08: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 43 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 73 00 00 35 04 06 00 47 [20:08:34]Write to MH i2c: E2 02 01 2A 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 43 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 73 00 00 35 04 06 00 47 00 00 86 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=10 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 02 02 05 EA 54 1F D4 3A [20:08:34]Write to MH i2c: E2 0D 00 2B 1D 80 0D 02 02 05 00 EA 54 1F D4 3A 00 00 37 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:34]Read from MH i2c: E2 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 [20:08:34]MH_I2C_Read... [20:08:34]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [20:08:34]RAPDU: 90 00 [20:08:34]wFMCommunicate OK [20:08:34]wFMCommunicate request_size=4 [20:08:34]MH_SAM_APDU [20:08:34]CAPDU: 80 0D 03 02 [20:08:34]Write to MH i2c: E2 08 00 2C 1D 80 0D 03 02 00 00 00 00 C4 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:35]Read from MH i2c: E2 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 0B 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 0B 00 2C 1D 00 3E F8 6F 7A BE BE ED D3 90 00 20 [20:08:35]RAPDU: 3E F8 6F 7A BE BE ED D3 90 00 [20:08:35]wFMCommunicate OK [20:08:35]SAM_PROTO_SignData done [20:08:35]FM_MakeSignedData done [20:08:35]CreateOFDProtocolMessage [20:08:35]wFMCommunicate request_size=4 [20:08:35]MH_SAM_APDU [20:08:35]CAPDU: 80 11 00 00 [20:08:35]Write to MH i2c: E2 08 00 2D 1D 80 11 00 00 00 00 00 00 C4 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:35]Read from MH i2c: E2 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 17 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 17 00 2D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [20:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:08:35]wFMCommunicate OK [20:08:35]CreateOFDProtocolMessage done [20:08:35]OFDSenderStorePacket 29670 [20:08:35]StoreOFDPacket docnum=29670 [20:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 48 07 01 32 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 43 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 73 00 00 35 04 06 00 47 EA 54 1F D4 3A 3E F8 6F 7A BE BE ED D3 [20:08:35]CheckFolder [20:08:35]dirname=/storage/ofd_packets [20:08:35]CheckFolder done [20:08:35]ProducePacketName [20:08:35]name=ofd_packets/00029670 [20:08:35]NVStorageSaveData ofd_packets/00029670 [20:08:35]File name is /storage/ofd_packets/00029670 [20:08:35]Write 301 bytes [20:08:35]NVStorageSaveData done [20:08:35]OFDSenderStorePacket done [20:08:35]KKMCreateOFDPacket done [20:08:35]NVStorageSaveData kkm_last_timestamp [20:08:35]File name is /storage/kkm_last_timestamp [20:08:35]Write 4 bytes [20:08:35]NVStorageSaveData done [20:08:35]ExternCall_PrintAddStr [20:08:35]wPrintStart [20:08:35]Write to MH i2c: 01 00 00 2E 1D 4B [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 FF 0F 60 [20:08:35]RasterBufferAndPrint [20:08:35]line Счет N : (1)348136 [20:08:35]line ИНН: 02508201610067 [20:08:35]line Контрольно-Кассовый Чек [20:08:35]line ПРОДАЖА [20:08:35]line ТРК (МРК, ГНК) : 33 [20:08:35]line Товар: 2710124500 [20:08:35]line Аи-95-К-5 [20:08:35]line 13.720 * 72.90 [20:08:35]line = 1000.19 [20:08:35]line НДС 12% НСП 1% [20:08:35]line > о реализуемом товаре [20:08:35]line ИТОГО: 1000.19 [20:08:35]line НСП 1% : 8.85 [20:08:35]line НДС 12% : 106.21 [20:08:35]line Наличными: 0.00 [20:08:35]line Безнал.: 1000.19 [20:08:35]line Место: АЗС № 108 "Партнер Нефть" [20:08:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:08:35]line СНО: Общий режим [20:08:35]line Чек 264 15.04.2024 20:08 [20:08:35]line Смена: 117 ФФД: 1.0 [20:08:35]line ЗНМ: 0300000027 [20:08:35]line РНМ: 0000138879044617 [20:08:35]line Версия ККМ: 001 [20:08:35]line Платежная система: Бакай Банк [20:08:35]line ФМ: 0000000000963154 [20:08:35]line ФД: 29670 [20:08:35]line ФПД: 79071759291450 [20:08:35]line 1/tax-web-control/client/api/v1/ticket?date=20240415T200835&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29670&fm=79071759291450&tin=02508201610067®Number=0000138879044617&sum=100019 [20:08:35]written 0, free lines is 4095 [20:08:35]OFD Sender: Processing packet 29670 [packets to send 8, broken 7] [20:08:35]ProducePacketName [20:08:35]name=ofd_packets/00029670 [20:08:35]OFD Sender: To server: pG, [20:08:35]CommunicateWithHost lk.salyk.kg:30040 [20:08:35]ConnectInit lk.salyk.kg [20:08:35]Connected sock=9 [20:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 48 07 01 32 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 43 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 73 00 00 35 04 06 00 47 EA 54 1F D4 3A 3E F8 6F 7A BE BE ED D3 [20:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 41 78 47 00 85 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 39 36 33 31 35 34 10 04 04 00 E6 73 00 00 F4 03 04 00 E3 33 1D 66 B6 04 01 00 00 AC 84 F2 BF B2 E6 BA AB [20:08:35]CommunicateWithHost err = 0 [20:08:35]CheckOFDResponse [20:08:35]1017 (14) - 77093643461234 [20:08:35]1041 (16) - 0000000000963154 [20:08:35]1040 (4) - 29670 [20:08:35]1012 (4) - 15.04.2024 14:04 [20:08:35]1206 (1) - 0 [20:08:35]OFD Sender: Remove packet 29670 [20:08:35]ProducePacketName [20:08:35]name=ofd_packets/00029670 [20:08:35]NVStorageDeleteData [20:08:35]Write to MH i2c: 01 00 00 57 1D 74 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 57 1D 00 00 00 00 00 E7 0C 6E [20:08:35]RasterBufferAndPrint [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]line [20:08:35]written 0, free lines is 3312 [20:08:35]MH_Cut [20:08:35]Write to MH i2c: D1 01 00 5E 1D 01 4D [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 01 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: D1 01 00 5E 1D 00 4C [20:08:35]Write to MH i2c: 01 00 00 5F 1D 7C [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:36]OFD Sender: No OFD packet to send [20:08:36]*** Cut start [20:08:36]*** Partial cut [20:08:36]*** CUTSNS_PIN = 1 [20:08:36]*** CUTSNS_PIN = 0 [20:08:36]*** Brake cut motor [20:08:37]Read from MH i2c: 01 [20:08:37]MH_I2C_Read... [20:08:37]*** Stop cut motor [20:08:37]*** Cut end [20:08:37]Read from MH i2c: 01 07 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: 01 07 00 5F 1D 00 00 00 00 00 FF 0F 91 [20:08:37]process_action close_receipt done [20:08:37]requested_data is exist [20:08:37]produce_requested_data [20:08:37]requested_item fm.sn is exist - process it [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 11 00 00 [20:08:37]Write to MH i2c: E2 08 00 60 1D 80 11 00 00 00 00 00 00 F7 [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 17 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 17 00 60 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [20:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:08:37]wFMCommunicate OK [20:08:37]requested_item fd.num is exist - process it [20:08:37]SAM_PROTO_GetFieldsCounters [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 13 00 00 [20:08:37]Write to MH i2c: E2 08 00 61 1D 80 13 00 00 00 00 00 00 FA [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 62 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 62 00 61 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 73 00 00 0E 04 04 00 75 00 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 [20:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 73 00 00 0E 04 04 00 75 00 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 [20:08:37]wFMCommunicate OK [20:08:37]SAM_PROTO_GetFieldsCounters done [20:08:37]requested_item shift.num is exist - process it [20:08:37]requested_item shift.opened is exist - process it [20:08:37]req_shift_opened [20:08:37]FM_GetShiftState [20:08:37]SAM_PROTO_GetShiftState [20:08:37]wFMCommunicate request_size=4 [20:08:37]MH_SAM_APDU [20:08:37]CAPDU: 80 13 01 00 [20:08:37]Write to MH i2c: E2 08 00 62 1D 80 13 01 00 00 00 00 00 FC [20:08:37]Write i2c OK [20:08:37]MH_I2C_Read... [20:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:37]Read from MH i2c: E2 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 0E 00 [20:08:37]MH_I2C_Read... [20:08:37]Read from MH i2c: E2 0E 00 62 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F0 [20:08:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:08:37]wFMCommunicate OK [20:08:37]SAM_PROTO_GetShiftState done [20:08:37]FM_GetShiftState done [20:08:37]req_shift_opened done [20:08:37]requested_item shift.open_date is exist - process it [20:08:37]req_shift_open_date [20:08:37]req_shift_open_date done [20:08:37]produce_requested_data done [20:08:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29670,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:08:37]process_action_free close_receipt [20:08:37]json_value_free [20:08:37]json_value_free done [20:08:37]process_json_proto returns [20:08:37]Send response to host [20:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29670,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:08:37]free response buf [20:08:37]execute_script done [20:08:37]execute_script returns [20:08:37]free content buf [20:08:37]Sock 10.Close socket [20:08:37]Sock 10.Thread stoped [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:53]accept exits with 7 [20:10:53]New connection [20:10:53]New thread 3066965348 created [20:10:53]Thread 3067108708 joined [20:10:53]Waiting for new connection... [20:10:53] Sock 7.Parse request [20:10:53]Sock 7.Check first char [20:10:53]Sock 7.First char is OK [20:10:53]request: POST /json_proto HTTP/1.0 [20:10:53]Method: POST [20:10:53]URL: /json_proto [20:10:53]Method is POST - this is cgi request [20:10:53]url: /json_proto [20:10:53]query_string will be loaded in cgi processing [20:10:53]execute_cgi json_proto POST (null) [20:10:53]execute_cgi path=json_proto method=POST [20:10:53]POST find Content-Length [20:10:53]Host: 172.17.33.3:8080 [20:10:53]Content-Length: 809 [20:10:53]Content-Type: application/json [20:10:53] [20:10:53]POST finish read [20:10:53]Found Content-Length = 809 [20:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:53]execute_script... [20:10: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)348137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:53]POST & json_proto [20:10:53]process_json_proto [20:10:53]json parsed OK: [20:10:53]protocol is kg_v1.0 [20:10:53]action value=close_receipt [20:10:53]process_action close_receipt [20:10:53]cmd_close_receipt [20:10:53]MH_GetDate [20:10:53]Write to MH i2c: F0 00 00 63 1D 6F [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 09 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 09 00 63 1D 00 CF 89 1D 66 23 5B 8F 65 C5 [20:10:53]GetLastDocTimeStamp 1713211715 [20:10:53]current date 1713211855 [20:10:53]FM_GetShiftState [20:10:53]SAM_PROTO_GetShiftState [20:10:53]wFMCommunicate request_size=4 [20:10:53]MH_SAM_APDU [20:10:53]CAPDU: 80 13 01 00 [20:10:53]Write to MH i2c: E2 08 00 64 1D 80 13 01 00 00 00 00 00 FE [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0E 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0E 00 64 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F2 [20:10:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:10:53]wFMCommunicate OK [20:10:53]SAM_PROTO_GetShiftState done [20:10:53]FM_GetShiftState done [20:10:53]opened in 1713140468 [20:10:53]opened+sec_in_day 1713226868 [20:10:53]quantity*price = 50008 [20:10:53]sum+1 = 50009 [20:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 265 15.04.2024 20:10 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29671 ФПД: 164713767743191 1/tax-web-control/client/api/v1/ticket?date=20240415T201055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29671&fm=164713767743191&tin=02508201610067®Number=0000138879044617&sum=50008 [20:10:54]StoreToDocumentArchive [20:10:54]shift 117 fd 29671 [20:10:54]save to /storage/0117/doc_00029671 [20:10:54]save last doc name /storage/0117/doc_00029671 to /storage/kkm_last_doc_name [20:10:54]save OK [20:10:54]Clear old archive folders... [20:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:10:54]tlvbuf is B6F7BA90 [20:10:54]SAM_PROTO_ClearQueue [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 09 00 00 [20:10:54]Write to MH i2c: E2 08 00 71 1D 80 09 00 00 00 00 00 00 00 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]SAM_PROTO_ClearQueue done [20:10:54]KKMCreateOFDPacket [20:10:54]OFDProtocolAddRootSTLVToBuf [20:10:54]FM_MakeSignedData [20:10:54]FM_MakeSignedData [20:10:54]SAM_PROTO_SignData [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 01 02 [20:10:54]Write to MH i2c: E2 08 00 72 1D 80 0D 01 02 00 00 00 00 08 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 72 1D 00 90 00 03 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=255 [20:10:54]MH_SAM_APDU [20:10: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 CF 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 73 00 00 35 04 06 00 [20:10:54]Write to MH i2c: E2 02 01 73 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 CF 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 73 00 00 35 04 06 00 00 00 06 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 73 1D 00 90 00 04 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=11 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 02 02 06 95 CE 69 9D AE D7 [20:10:54]Write to MH i2c: E2 0E 00 74 1D 80 0D 02 02 06 00 95 CE 69 9D AE D7 00 00 05 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 74 1D 00 90 00 05 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 03 02 [20:10:54]Write to MH i2c: E2 08 00 75 1D 80 0D 03 02 00 00 00 00 0D [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 0B 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 0B 00 75 1D 00 40 86 63 13 2C 5B 3F 19 90 00 29 [20:10:54]RAPDU: 40 86 63 13 2C 5B 3F 19 90 00 [20:10:54]wFMCommunicate OK [20:10:54]SAM_PROTO_SignData done [20:10:54]FM_MakeSignedData done [20:10:54]CreateOFDProtocolMessage [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 11 00 00 [20:10:54]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 17 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [20:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:10:54]wFMCommunicate OK [20:10:54]CreateOFDProtocolMessage done [20:10:54]OFDSenderStorePacket 29671 [20:10:54]StoreOFDPacket docnum=29671 [20:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 36 AB 08 01 42 AD 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 CF 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 73 00 00 35 04 06 00 95 CE 69 9D AE D7 40 86 63 13 2C 5B 3F 19 [20:10:54]CheckFolder [20:10:54]dirname=/storage/ofd_packets [20:10:54]CheckFolder done [20:10:54]ProducePacketName [20:10:54]name=ofd_packets/00029671 [20:10:54]NVStorageSaveData ofd_packets/00029671 [20:10:54]File name is /storage/ofd_packets/00029671 [20:10:54]Write 302 bytes [20:10:54]NVStorageSaveData done [20:10:54]OFDSenderStorePacket done [20:10:54]KKMCreateOFDPacket done [20:10:54]NVStorageSaveData kkm_last_timestamp [20:10:54]File name is /storage/kkm_last_timestamp [20:10:54]Write 4 bytes [20:10:54]NVStorageSaveData done [20:10:54]ExternCall_PrintAddStr [20:10:54]wPrintStart [20:10:54]Write to MH i2c: 01 00 00 77 1D 94 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 77 1D 00 00 00 00 00 FF 0F A9 [20:10:54]RasterBufferAndPrint [20:10:54]line Счет N : (1)348137 [20:10:54]line ИНН: 02508201610067 [20:10:54]line Контрольно-Кассовый Чек [20:10:54]line ПРОДАЖА [20:10:54]line ТРК (МРК, ГНК) : 22 [20:10:54]line Товар: 2710124130 [20:10:54]line SUPER-92-К-5 [20:10:54]line 7.600 * 65.80 [20:10:54]line = 500.08 [20:10:54]line НДС 12% НСП 1% [20:10:54]line > о реализуемом товаре [20:10:54]line ИТОГО: 500.08 [20:10:54]line НСП 1% : 4.42 [20:10:54]line НДС 12% : 53.11 [20:10:54]line Наличными: 0.00 [20:10:54]line Безнал.: 500.08 [20:10:54]line Место: АЗС № 108 "Партнер Нефть" [20:10:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:10:54]line СНО: Общий режим [20:10:54]line Чек 265 15.04.2024 20:10 [20:10:54]line Смена: 117 ФФД: 1.0 [20:10:54]line ЗНМ: 0300000027 [20:10:54]line РНМ: 0000138879044617 [20:10:54]line Версия ККМ: 001 [20:10:54]line Платежная система: Бакай Банк [20:10:54]line ФМ: 0000000000963154 [20:10:54]line ФД: 29671 [20:10:54]line ФПД: 164713767743191 [20:10:54]line 1/tax-web-control/client/api/v1/ticket?date=20240415T201055&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29671&fm=164713767743191&tin=02508201610067®Number=0000138879044617&sum=50008 [20:10:55]OFD Sender: Processing packet 29671 [packets to send 8, broken 7] [20:10:55]ProducePacketName [20:10:55]name=ofd_packets/00029671 [20:10:55]OFD Sender: To server: pG, [20:10:55]CommunicateWithHost lk.salyk.kg:30040 [20:10:55]ConnectInit lk.salyk.kg [20:10:55]written 0, free lines is 4095 [20:10:55]Connected sock=10 [20:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 36 AB 08 01 42 AD 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 CF 89 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 73 00 00 35 04 06 00 95 CE 69 9D AE D7 40 86 63 13 2C 5B 3F 19 [20:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 69 F0 47 00 65 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 39 36 33 31 35 34 10 04 04 00 E7 73 00 00 F4 03 04 00 6F 34 1D 66 B6 04 01 00 00 7B 26 4E B9 8C D2 6D 8F [20:10:55]CommunicateWithHost err = 0 [20:10:55]CheckOFDResponse [20:10:55]1017 (14) - 77093643461234 [20:10:55]1041 (16) - 0000000000963154 [20:10:55]1040 (4) - 29671 [20:10:55]1012 (4) - 15.04.2024 14:06 [20:10:55]1206 (1) - 0 [20:10:55]OFD Sender: Remove packet 29671 [20:10:55]ProducePacketName [20:10:55]name=ofd_packets/00029671 [20:10:55]NVStorageDeleteData [20:10:55]Write to MH i2c: 01 00 00 A0 1D BD [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 A0 1D 00 00 00 00 00 E7 0C B7 [20:10:55]RasterBufferAndPrint [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]written 0, free lines is 3312 [20:10:55]MH_Cut [20:10:55]Write to MH i2c: D1 01 00 A7 1D 01 96 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: D1 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: D1 01 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: D1 01 00 A7 1D 00 95 [20:10:55]Write to MH i2c: 01 00 00 A8 1D C5 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:56]OFD Sender: No OFD packet to send [20:10:56]*** Cut start [20:10:56]*** Partial cut [20:10:56]*** CUTSNS_PIN = 1 [20:10:56]*** CUTSNS_PIN = 0 [20:10:56]*** Brake cut motor [20:10:57]Read from MH i2c: 01 [20:10:57]MH_I2C_Read... [20:10:57]*** Stop cut motor [20:10:57]*** Cut end [20:10:57]Read from MH i2c: 01 07 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: 01 07 00 A8 1D 00 00 00 00 00 FF 0F DA [20:10:57]process_action close_receipt done [20:10:57]requested_data is exist [20:10:57]produce_requested_data [20:10:57]requested_item fm.sn is exist - process it [20:10:57]wFMCommunicate request_size=4 [20:10:57]MH_SAM_APDU [20:10:57]CAPDU: 80 11 00 00 [20:10:57]Write to MH i2c: E2 08 00 A9 1D 80 11 00 00 00 00 00 00 40 [20:10:57]Write i2c OK [20:10:57]MH_I2C_Read... [20:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:57]Read from MH i2c: E2 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 17 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 17 00 A9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [20:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:10:57]wFMCommunicate OK [20:10:57]requested_item fd.num is exist - process it [20:10:57]SAM_PROTO_GetFieldsCounters [20:10:57]wFMCommunicate request_size=4 [20:10:57]MH_SAM_APDU [20:10:57]CAPDU: 80 13 00 00 [20:10:57]Write to MH i2c: E2 08 00 AA 1D 80 13 00 00 00 00 00 00 43 [20:10:57]Write i2c OK [20:10:57]MH_I2C_Read... [20:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:57]Read from MH i2c: E2 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 62 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 62 00 AA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 73 00 00 0E 04 04 00 75 00 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 6E [20:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 73 00 00 0E 04 04 00 75 00 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 [20:10:57]wFMCommunicate OK [20:10:57]SAM_PROTO_GetFieldsCounters done [20:10:57]requested_item shift.num is exist - process it [20:10:57]requested_item shift.opened is exist - process it [20:10:57]req_shift_opened [20:10:57]FM_GetShiftState [20:10:57]SAM_PROTO_GetShiftState [20:10:57]wFMCommunicate request_size=4 [20:10:57]MH_SAM_APDU [20:10:57]CAPDU: 80 13 01 00 [20:10:57]Write to MH i2c: E2 08 00 AB 1D 80 13 01 00 00 00 00 00 45 [20:10:57]Write i2c OK [20:10:57]MH_I2C_Read... [20:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:57]Read from MH i2c: E2 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 0E 00 [20:10:57]MH_I2C_Read... [20:10:57]Read from MH i2c: E2 0E 00 AB 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 39 [20:10:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:10:57]wFMCommunicate OK [20:10:57]SAM_PROTO_GetShiftState done [20:10:57]FM_GetShiftState done [20:10:57]req_shift_opened done [20:10:57]requested_item shift.open_date is exist - process it [20:10:57]req_shift_open_date [20:10:57]req_shift_open_date done [20:10:57]produce_requested_data done [20:10:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29671,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:10:57]process_action_free close_receipt [20:10:57]json_value_free [20:10:57]json_value_free done [20:10:57]process_json_proto returns [20:10:57]Send response to host [20:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29671,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:10:57]free response buf [20:10:57]execute_script done [20:10:57]execute_script returns [20:10:57]free content buf [20:10:57]Sock 7.Close socket [20:10:57]Sock 7.Thread stoped [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:47]accept exits with 9 [20:15:47]New connection [20:15:47]New thread 3067108708 created [20:15:47]Thread 3066965348 joined [20:15:47]Waiting for new connection... [20:15:47] Sock 9.Parse request [20:15:47]Sock 9.Check first char [20:15:47]Sock 9.First char is OK [20:15:47]request: POST /json_proto HTTP/1.0 [20:15:47]Method: POST [20:15:47]URL: /json_proto [20:15:47]Method is POST - this is cgi request [20:15:47]url: /json_proto [20:15:47]query_string will be loaded in cgi processing [20:15:47]execute_cgi json_proto POST (null) [20:15:47]execute_cgi path=json_proto method=POST [20:15:47]POST find Content-Length [20:15:47]Host: 172.17.33.3:8080 [20:15:47]Content-Length: 679 [20:15:47]Content-Type: application/json [20:15:47] [20:15:47]POST finish read [20:15:47]Found Content-Length = 679 [20:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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" ] } } [20:15:47]execute_script... [20:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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" ] } } [20:15:47]POST & json_proto [20:15:47]process_json_proto [20:15:47]json parsed OK: [20:15:47]protocol is kg_v1.0 [20:15:47]action value=close_receipt [20:15:47]process_action close_receipt [20:15:47]cmd_close_receipt [20:15:47]MH_GetDate [20:15:47]Write to MH i2c: F0 00 00 AC 1D B8 [20:15:47]Write i2c OK [20:15:47]MH_I2C_Read... [20:15:47]Read from MH i2c: F0 [20:15:47]MH_I2C_Read... [20:15:47]Read from MH i2c: F0 09 00 [20:15:47]MH_I2C_Read... [20:15:47]Read from MH i2c: F0 09 00 AC 1D 00 F5 8A 1D 66 23 5B 8F 65 35 [20:15:47]GetLastDocTimeStamp 1713211855 [20:15:47]current date 1713212149 [20:15:47]FM_GetShiftState [20:15:47]SAM_PROTO_GetShiftState [20:15:47]wFMCommunicate request_size=4 [20:15:47]MH_SAM_APDU [20:15:47]CAPDU: 80 13 01 00 [20:15:47]Write to MH i2c: E2 08 00 AD 1D 80 13 01 00 00 00 00 00 47 [20:15:47]Write i2c OK [20:15:47]MH_I2C_Read... [20:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:47]Read from MH i2c: E2 [20:15:47]MH_I2C_Read... [20:15:47]Read from MH i2c: E2 0E 00 [20:15:47]MH_I2C_Read... [20:15:47]Read from MH i2c: E2 0E 00 AD 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3B [20:15:47]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:15:47]wFMCommunicate OK [20:15:47]SAM_PROTO_GetShiftState done [20:15:47]FM_GetShiftState done [20:15:47]opened in 1713140468 [20:15:47]opened+sec_in_day 1713226868 [20:15:47]quantity*price = 300056 [20:15:47]sum+1 = 300057 [20:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 266 15.04.2024 20:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29672 ФПД: 275489356206041 1/tax-web-control/client/api/v1/ticket?date=20240415T201549&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29672&fm=275489356206041&tin=02508201610067®Number=0000138879044617&sum=300000 [20:15:48]StoreToDocumentArchive [20:15:48]shift 117 fd 29672 [20:15:48]save to /storage/0117/doc_00029672 [20:15:48]save last doc name /storage/0117/doc_00029672 to /storage/kkm_last_doc_name [20:15:48]save OK [20:15:48]Clear old archive folders... [20:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:48]tlvbuf is 01A60DC0 [20:15:48]SAM_PROTO_ClearQueue [20:15:48]wFMCommunicate request_size=4 [20:15:48]MH_SAM_APDU [20:15:48]CAPDU: 80 09 00 00 [20:15:48]Write to MH i2c: E2 08 00 BA 1D 80 09 00 00 00 00 00 00 49 [20:15:48]Write i2c OK [20:15:48]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 BA 1D 00 90 00 4B [20:15:49]RAPDU: 90 00 [20:15:49]wFMCommunicate OK [20:15:49]SAM_PROTO_ClearQueue done [20:15:49]KKMCreateOFDPacket [20:15:49]OFDProtocolAddRootSTLVToBuf [20:15:49]FM_MakeSignedData [20:15:49]FM_MakeSignedData [20:15:49]SAM_PROTO_SignData [20:15:49]wFMCommunicate request_size=4 [20:15:49]MH_SAM_APDU [20:15:49]CAPDU: 80 0D 01 02 [20:15:49]Write to MH i2c: E2 08 00 BB 1D 80 0D 01 02 00 00 00 00 51 [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 BB 1D 00 90 00 4C [20:15:49]RAPDU: 90 00 [20:15:49]wFMCommunicate OK [20:15:49]wFMCommunicate request_size=255 [20:15:49]MH_SAM_APDU [20:15:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0A 01 00 00 F4 03 04 00 F5 8A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 73 00 00 35 04 06 00 FA 8E 5D 37 [20:15:49]Write to MH i2c: E2 02 01 BC 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0A 01 00 00 F4 03 04 00 F5 8A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 73 00 00 35 04 06 00 FA 8E 5D 37 00 00 BD [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 BC 1D 00 90 00 4D [20:15:49]RAPDU: 90 00 [20:15:49]wFMCommunicate OK [20:15:49]wFMCommunicate request_size=7 [20:15:49]MH_SAM_APDU [20:15:49]CAPDU: 80 0D 02 02 02 4F D9 [20:15:49]Write to MH i2c: E2 0A 00 BD 1D 80 0D 02 02 02 00 4F D9 00 00 80 [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [20:15:49]RAPDU: 90 00 [20:15:49]wFMCommunicate OK [20:15:49]wFMCommunicate request_size=4 [20:15:49]MH_SAM_APDU [20:15:49]CAPDU: 80 0D 03 02 [20:15:49]Write to MH i2c: E2 08 00 BE 1D 80 0D 03 02 00 00 00 00 56 [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 0B 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 0B 00 BE 1D 00 32 EC D3 37 BB B6 50 73 90 00 B3 [20:15:49]RAPDU: 32 EC D3 37 BB B6 50 73 90 00 [20:15:49]wFMCommunicate OK [20:15:49]SAM_PROTO_SignData done [20:15:49]FM_MakeSignedData done [20:15:49]CreateOFDProtocolMessage [20:15:49]wFMCommunicate request_size=4 [20:15:49]MH_SAM_APDU [20:15:49]CAPDU: 80 11 00 00 [20:15:49]Write to MH i2c: E2 08 00 BF 1D 80 11 00 00 00 00 00 00 56 [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:49]Read from MH i2c: E2 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 17 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: E2 17 00 BF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [20:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:15:49]wFMCommunicate OK [20:15:49]CreateOFDProtocolMessage done [20:15:49]OFDSenderStorePacket 29672 [20:15:49]StoreOFDPacket docnum=29672 [20:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C5 60 04 01 C4 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0A 01 00 00 F4 03 04 00 F5 8A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 73 00 00 35 04 06 00 FA 8E 5D 37 4F D9 32 EC D3 37 BB B6 50 73 [20:15:49]CheckFolder [20:15:49]dirname=/storage/ofd_packets [20:15:49]CheckFolder done [20:15:49]ProducePacketName [20:15:49]name=ofd_packets/00029672 [20:15:49]NVStorageSaveData ofd_packets/00029672 [20:15:49]File name is /storage/ofd_packets/00029672 [20:15:49]Write 298 bytes [20:15:49]NVStorageSaveData done [20:15:49]OFDSenderStorePacket done [20:15:49]KKMCreateOFDPacket done [20:15:49]NVStorageSaveData kkm_last_timestamp [20:15:49]File name is /storage/kkm_last_timestamp [20:15:49]Write 4 bytes [20:15:49]NVStorageSaveData done [20:15:49]ExternCall_PrintAddStr [20:15:49]wPrintStart [20:15:49]Write to MH i2c: 01 00 00 C0 1D DD [20:15:49]OFD Sender: Processing packet 29672 [packets to send 8, broken 7] [20:15:49]ProducePacketName [20:15:49]name=ofd_packets/00029672 [20:15:49]OFD Sender: To server: pG, [20:15:49]CommunicateWithHost lk.salyk.kg:30040 [20:15:49]ConnectInit lk.salyk.kg [20:15:49]Write i2c OK [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: 01 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: 01 07 00 [20:15:49]MH_I2C_Read... [20:15:49]Read from MH i2c: 01 07 00 C0 1D 00 00 00 00 00 FF 0F F2 [20:15:49]RasterBufferAndPrint [20:15:49]line Счет N : (1)348139 [20:15:49]line ИНН: 02508201610067 [20:15:49]line Контрольно-Кассовый Чек [20:15:49]line ПРОДАЖА [20:15:49]line ТРК (МРК, ГНК) : 21 [20:15:49]line Товар: 2710194210 [20:15:49]line ДТ-К-5 [20:15:49]line 41.160 * 72.90 [20:15:49]line = 3000.56 [20:15:49]line НДС 12% НСП 1% [20:15:49]line > о реализуемом товаре [20:15:49]line ОКРУГЛЕНИЕ: -0.56 [20:15:49]line ИТОГО: 3000.00 [20:15:49]line Внесено: 3000.00 [20:15:49]line СДАЧА: 0.00 [20:15:49]line НСП 1% : 26.55 [20:15:49]line НДС 12% : 318.64 [20:15:49]line Наличными: 3000.00 [20:15:49]line Безнал.: 0.00 [20:15:49]line Место: АЗС № 108 "Партнер Нефть" [20:15:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:15:49]line СНО: Общий режим [20:15:49]line Чек 266 15.04.2024 20:15 [20:15:49]line Смена: 117 ФФД: 1.0 [20:15:49]line ЗНМ: 0300000027 [20:15:49]line РНМ: 0000138879044617 [20:15:49]line Версия ККМ: 001 [20:15:49]line ФМ: 0000000000963154 [20:15:49]line ФД: 29672 [20:15:49]line ФПД: 275489356206041 [20:15:49]line 1/tax-web-control/client/api/v1/ticket?date=20240415T201549&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29672&fm=275489356206041&tin=02508201610067®Number=0000138879044617&sum=300000 [20:15:49]Connected sock=10 [20:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C5 60 04 01 C4 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0A 01 00 00 F4 03 04 00 F5 8A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 73 00 00 35 04 06 00 FA 8E 5D 37 4F D9 32 EC D3 37 BB B6 50 73 [20:15:49]written 0, free lines is 4095 [20:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E F9 47 00 38 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 73 00 00 F4 03 04 00 95 35 1D 66 B6 04 01 00 00 88 13 E6 48 BA 9A 15 18 [20:15:50]CommunicateWithHost err = 0 [20:15:50]CheckOFDResponse [20:15:50]1017 (14) - 77093643461234 [20:15:50]1041 (16) - 0000000000963154 [20:15:50]1040 (4) - 29672 [20:15:50]1012 (4) - 15.04.2024 14:11 [20:15:50]1206 (1) - 0 [20:15:50]OFD Sender: Remove packet 29672 [20:15:50]ProducePacketName [20:15:50]name=ofd_packets/00029672 [20:15:50]NVStorageDeleteData [20:15:50]Write to MH i2c: 01 00 00 EA 1D 07 [20:15:50]Write i2c OK [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 07 00 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 D2 0C EC [20:15:50]RasterBufferAndPrint [20:15:50]line [20:15:50]line [20:15:50]line [20:15:50]line [20:15:50]line [20:15:50]written 0, free lines is 3288 [20:15:50]MH_Cut [20:15:50]Write to MH i2c: D1 01 00 F1 1D 01 E0 [20:15:50]Write i2c OK [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: D1 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: D1 01 00 [20:15:50]MH_I2C_Read... [20:15:50]Read from MH i2c: D1 01 00 F1 1D 00 DF [20:15:50]Write to MH i2c: 01 00 00 F2 1D 0F [20:15:50]Write i2c OK [20:15:50]MH_I2C_Read... [20:15:50]OFD Sender: No OFD packet to send [20:15:51]*** Cut start [20:15:51]*** Partial cut [20:15:51]*** CUTSNS_PIN = 1 [20:15:51]*** CUTSNS_PIN = 0 [20:15:51]*** Brake cut motor [20:15:51]Read from MH i2c: 01 [20:15:51]MH_I2C_Read... [20:15:51]*** Stop cut motor [20:15:51]*** Cut end [20:15:51]Read from MH i2c: 01 07 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 FF 0F 24 [20:15:51]process_action close_receipt done [20:15:51]requested_data is exist [20:15:51]produce_requested_data [20:15:51]requested_item fm.sn is exist - process it [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 11 00 00 [20:15:51]Write to MH i2c: E2 08 00 F3 1D 80 11 00 00 00 00 00 00 8A [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 17 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 17 00 F3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D9 [20:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:15:51]wFMCommunicate OK [20:15:51]requested_item fd.num is exist - process it [20:15:51]SAM_PROTO_GetFieldsCounters [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 00 00 [20:15:51]Write to MH i2c: E2 08 00 F4 1D 80 13 00 00 00 00 00 00 8D [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 62 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 62 00 F4 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 73 00 00 0E 04 04 00 75 00 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 BC [20:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 73 00 00 0E 04 04 00 75 00 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 [20:15:51]wFMCommunicate OK [20:15:51]SAM_PROTO_GetFieldsCounters done [20:15:51]requested_item shift.num is exist - process it [20:15:51]requested_item shift.opened is exist - process it [20:15:51]req_shift_opened [20:15:51]FM_GetShiftState [20:15:51]SAM_PROTO_GetShiftState [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 01 00 [20:15:51]Write to MH i2c: E2 08 00 F5 1D 80 13 01 00 00 00 00 00 8F [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 0E 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 0E 00 F5 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 83 [20:15:52]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:15:52]wFMCommunicate OK [20:15:52]SAM_PROTO_GetShiftState done [20:15:52]FM_GetShiftState done [20:15:52]req_shift_opened done [20:15:52]requested_item shift.open_date is exist - process it [20:15:52]req_shift_open_date [20:15:52]req_shift_open_date done [20:15:52]produce_requested_data done [20:15:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29672,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:15:52]process_action_free close_receipt [20:15:52]json_value_free [20:15:52]json_value_free done [20:15:52]process_json_proto returns [20:15:52]Send response to host [20:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29672,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:15:52]free response buf [20:15:52]execute_script done [20:15:52]execute_script returns [20:15:52]free content buf [20:15:52]Sock 9.Close socket [20:15:52]Sock 9.Thread stoped [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:19]accept exits with 7 [20:17:19]New connection [20:17:19]New thread 3066965348 created [20:17:19]Thread 3067108708 joined [20:17:19]Waiting for new connection... [20:17:19] Sock 7.Parse request [20:17:19]Sock 7.Check first char [20:17:19]Sock 7.First char is OK [20:17:19]request: POST /json_proto HTTP/1.0 [20:17:19]Method: POST [20:17:19]URL: /json_proto [20:17:19]Method is POST - this is cgi request [20:17:19]url: /json_proto [20:17:19]query_string will be loaded in cgi processing [20:17:19]execute_cgi json_proto POST (null) [20:17:19]execute_cgi path=json_proto method=POST [20:17:19]POST find Content-Length [20:17:19]Host: 172.17.33.3:8080 [20:17:19]Content-Length: 805 [20:17:19]Content-Type: application/json [20:17:19] [20:17:19]POST finish read [20:17:19]Found Content-Length = 805 [20:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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: \u041E! \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" ] } } [20:17:19]execute_script... [20: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)348138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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: \u041E! \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" ] } } [20:17:19]POST & json_proto [20:17:19]process_json_proto [20:17:19]json parsed OK: [20:17:19]protocol is kg_v1.0 [20:17:19]action value=close_receipt [20:17:19]process_action close_receipt [20:17:19]cmd_close_receipt [20:17:19]MH_GetDate [20:17:19]Write to MH i2c: F0 00 00 F6 1D 02 [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 09 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 09 00 F6 1D 00 51 8B 1D 66 23 5B 8F 65 DC [20:17:19]GetLastDocTimeStamp 1713212149 [20:17:19]current date 1713212241 [20:17:19]FM_GetShiftState [20:17:19]SAM_PROTO_GetShiftState [20:17:19]wFMCommunicate request_size=4 [20:17:19]MH_SAM_APDU [20:17:19]CAPDU: 80 13 01 00 [20:17:19]Write to MH i2c: E2 08 00 F7 1D 80 13 01 00 00 00 00 00 91 [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:19]Read from MH i2c: E2 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 F7 1D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 85 [20:17:19]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:17:19]wFMCommunicate OK [20:17:19]SAM_PROTO_GetShiftState done [20:17:19]FM_GetShiftState done [20:17:19]opened in 1713140468 [20:17:19]opened+sec_in_day 1713226868 [20:17:19]quantity*price = 300056 [20:17:19]sum+1 = 300057 [20:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 267 15.04.2024 20:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29673 ФПД: 247587494262346 1/tax-web-control/client/api/v1/ticket?date=20240415T201721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29673&fm=247587494262346&tin=02508201610067®Number=0000138879044617&sum=300056 [20:17:20]StoreToDocumentArchive [20:17:20]shift 117 fd 29673 [20:17:20]save to /storage/0117/doc_00029673 [20:17:20]save last doc name /storage/0117/doc_00029673 to /storage/kkm_last_doc_name [20:17:20]save OK [20:17:20]Clear old archive folders... [20:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:17:20]tlvbuf is 01A60E60 [20:17:20]SAM_PROTO_ClearQueue [20:17:20]wFMCommunicate request_size=4 [20:17:20]MH_SAM_APDU [20:17:20]CAPDU: 80 09 00 00 [20:17:20]Write to MH i2c: E2 08 00 04 1E 80 09 00 00 00 00 00 00 94 [20:17:20]Write i2c OK [20:17:20]MH_I2C_Read... [20:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:20]Read from MH i2c: E2 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: E2 03 00 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: E2 03 00 04 1E 00 90 00 96 [20:17:20]RAPDU: 90 00 [20:17:20]wFMCommunicate OK [20:17:20]SAM_PROTO_ClearQueue done [20:17:20]KKMCreateOFDPacket [20:17:20]OFDProtocolAddRootSTLVToBuf [20:17:20]FM_MakeSignedData [20:17:20]FM_MakeSignedData [20:17:20]SAM_PROTO_SignData [20:17:20]wFMCommunicate request_size=4 [20:17:20]MH_SAM_APDU [20:17:20]CAPDU: 80 0D 01 02 [20:17:20]Write to MH i2c: E2 08 00 05 1E 80 0D 01 02 00 00 00 00 9C [20:17:20]Write i2c OK [20:17:20]MH_I2C_Read... [20:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:20]Read from MH i2c: E2 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: E2 03 00 [20:17:20]MH_I2C_Read... [20:17:20]Read from MH i2c: E2 03 00 05 1E 00 90 00 97 [20:17:20]RAPDU: 90 00 [20:17:20]wFMCommunicate OK [20:17:20]wFMCommunicate request_size=255 [20:17:20]MH_SAM_APDU [20:17:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0B 01 00 00 F4 03 04 00 51 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 73 00 00 35 04 06 00 E1 2D F4 A5 [20:17:20]Write to MH i2c: E2 02 01 06 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0B 01 00 00 F4 03 04 00 51 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 73 00 00 35 04 06 00 E1 2D F4 A5 00 00 64 [20:17:20]Write i2c OK [20:17:20]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 06 1E 00 90 00 98 [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]wFMCommunicate request_size=7 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 0D 02 02 02 76 4A [20:17:21]Write to MH i2c: E2 0A 00 07 1E 80 0D 02 02 02 00 76 4A 00 00 63 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 07 1E 00 90 00 99 [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]wFMCommunicate request_size=4 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 0D 03 02 [20:17:21]Write to MH i2c: E2 08 00 08 1E 80 0D 03 02 00 00 00 00 A1 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 0B 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 0B 00 08 1E 00 F5 B3 C5 6A 07 ED CD 01 90 00 3B [20:17:21]RAPDU: F5 B3 C5 6A 07 ED CD 01 90 00 [20:17:21]wFMCommunicate OK [20:17:21]SAM_PROTO_SignData done [20:17:21]FM_MakeSignedData done [20:17:21]CreateOFDProtocolMessage [20:17:21]wFMCommunicate request_size=4 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 11 00 00 [20:17:21]Write to MH i2c: E2 08 00 09 1E 80 11 00 00 00 00 00 00 A1 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 17 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 17 00 09 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [20:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:17:21]wFMCommunicate OK [20:17:21]CreateOFDProtocolMessage done [20:17:21]OFDSenderStorePacket 29673 [20:17:21]StoreOFDPacket docnum=29673 [20:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2B CC 04 01 95 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0B 01 00 00 F4 03 04 00 51 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 73 00 00 35 04 06 00 E1 2D F4 A5 76 4A F5 B3 C5 6A 07 ED CD 01 [20:17:21]CheckFolder [20:17:21]dirname=/storage/ofd_packets [20:17:21]CheckFolder done [20:17:21]ProducePacketName [20:17:21]name=ofd_packets/00029673 [20:17:21]NVStorageSaveData ofd_packets/00029673 [20:17:21]File name is /storage/ofd_packets/00029673 [20:17:21]Write 298 bytes [20:17:21]NVStorageSaveData done [20:17:21]OFDSenderStorePacket done [20:17:21]KKMCreateOFDPacket done [20:17:21]NVStorageSaveData kkm_last_timestamp [20:17:21]File name is /storage/kkm_last_timestamp [20:17:21]Write 4 bytes [20:17:21]NVStorageSaveData done [20:17:21]ExternCall_PrintAddStr [20:17:21]wPrintStart [20:17:21]Write to MH i2c: 01 00 00 0A 1E 28 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [20:17:21]RasterBufferAndPrint [20:17:21]line Счет N : (1)348138 [20:17:21]line ИНН: 02508201610067 [20:17:21]line Контрольно-Кассовый Чек [20:17:21]line ПРОДАЖА [20:17:21]line ТРК (МРК, ГНК) : 11 [20:17:21]line Товар: 2710194210 [20:17:21]line ДТ-К-5 [20:17:21]line 41.160 * 72.90 [20:17:21]line = 3000.56 [20:17:21]line НДС 12% НСП 1% [20:17:21]line > о реализуемом товаре [20:17:21]line ИТОГО: 3000.56 [20:17:21]line НСП 1% : 26.55 [20:17:21]line НДС 12% : 318.64 [20:17:21]line Наличными: 0.00 [20:17:21]line Безнал.: 3000.56 [20:17:21]line Место: АЗС № 108 "Партнер Нефть" [20:17:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:17:21]line СНО: Общий режим [20:17:21]line Чек 267 15.04.2024 20:17 [20:17:21]line Смена: 117 ФФД: 1.0 [20:17:21]line ЗНМ: 0300000027 [20:17:21]line РНМ: 0000138879044617 [20:17:21]line Версия ККМ: 001 [20:17:21]line Платежная система: О! деньги [20:17:21]line ФМ: 0000000000963154 [20:17:21]line ФД: 29673 [20:17:21]line ФПД: 247587494262346 [20:17:21]line 1/tax-web-control/client/api/v1/ticket?date=20240415T201721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29673&fm=247587494262346&tin=02508201610067®Number=0000138879044617&sum=300056 [20:17:21]OFD Sender: Processing packet 29673 [packets to send 8, broken 7] [20:17:21]ProducePacketName [20:17:21]name=ofd_packets/00029673 [20:17:21]OFD Sender: To server: pG, [20:17:21]CommunicateWithHost lk.salyk.kg:30040 [20:17:21]ConnectInit lk.salyk.kg [20:17:21]written 0, free lines is 4095 [20:17:21]Connected sock=11 [20:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2B CC 04 01 95 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0B 01 00 00 F4 03 04 00 51 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 73 00 00 35 04 06 00 E1 2D F4 A5 76 4A F5 B3 C5 6A 07 ED CD 01 [20:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 07 47 00 C8 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 73 00 00 F4 03 04 00 F1 35 1D 66 B6 04 01 00 00 12 C4 D8 3D 11 71 70 19 [20:17:21]CommunicateWithHost err = 0 [20:17:21]CheckOFDResponse [20:17:21]1017 (14) - 77093643461234 [20:17:21]1041 (16) - 0000000000963154 [20:17:21]1040 (4) - 29673 [20:17:21]1012 (4) - 15.04.2024 14:13 [20:17:21]1206 (1) - 0 [20:17:21]OFD Sender: Remove packet 29673 [20:17:21]ProducePacketName [20:17:21]name=ofd_packets/00029673 [20:17:21]NVStorageDeleteData [20:17:22]Write to MH i2c: 01 00 00 33 1E 51 [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 07 00 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 07 00 33 1E 00 00 00 00 00 EC 0C 50 [20:17:22]RasterBufferAndPrint [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]written 0, free lines is 3314 [20:17:22]MH_Cut [20:17:22]Write to MH i2c: D1 01 00 3A 1E 01 2A [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 01 00 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 01 00 3A 1E 00 29 [20:17:22]Write to MH i2c: 01 00 00 3B 1E 59 [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]OFD Sender: No OFD packet to send [20:17:22]*** Cut start [20:17:22]*** Partial cut [20:17:22]*** CUTSNS_PIN = 1 [20:17:22]*** CUTSNS_PIN = 0 [20:17:23]*** Brake cut motor [20:17:23]Read from MH i2c: 01 [20:17:23]MH_I2C_Read... [20:17:23]*** Stop cut motor [20:17:23]*** Cut end [20:17:23]Read from MH i2c: 01 07 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: 01 07 00 3B 1E 00 00 00 00 00 FF 0F 6E [20:17:23]process_action close_receipt done [20:17:23]requested_data is exist [20:17:23]produce_requested_data [20:17:23]requested_item fm.sn is exist - process it [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 11 00 00 [20:17:23]Write to MH i2c: E2 08 00 3C 1E 80 11 00 00 00 00 00 00 D4 [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 17 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 17 00 3C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [20:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:17:23]wFMCommunicate OK [20:17:23]requested_item fd.num is exist - process it [20:17:23]SAM_PROTO_GetFieldsCounters [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 13 00 00 [20:17:23]Write to MH i2c: E2 08 00 3D 1E 80 13 00 00 00 00 00 00 D7 [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 62 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 62 00 3D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 73 00 00 0E 04 04 00 75 00 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 0A [20:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 73 00 00 0E 04 04 00 75 00 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 [20:17:23]wFMCommunicate OK [20:17:23]SAM_PROTO_GetFieldsCounters done [20:17:23]requested_item shift.num is exist - process it [20:17:23]requested_item shift.opened is exist - process it [20:17:23]req_shift_opened [20:17:23]FM_GetShiftState [20:17:23]SAM_PROTO_GetShiftState [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 13 01 00 [20:17:23]Write to MH i2c: E2 08 00 3E 1E 80 13 01 00 00 00 00 00 D9 [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 0E 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 0E 00 3E 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CD [20:17:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:17:23]wFMCommunicate OK [20:17:23]SAM_PROTO_GetShiftState done [20:17:23]FM_GetShiftState done [20:17:23]req_shift_opened done [20:17:23]requested_item shift.open_date is exist - process it [20:17:23]req_shift_open_date [20:17:23]req_shift_open_date done [20:17:23]produce_requested_data done [20:17:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29673,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:17:23]process_action_free close_receipt [20:17:23]json_value_free [20:17:23]json_value_free done [20:17:23]process_json_proto returns [20:17:23]Send response to host [20:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29673,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:17:23]free response buf [20:17:23]execute_script done [20:17:23]execute_script returns [20:17:23]free content buf [20:17:23]Sock 7.Close socket [20:17:23]Sock 7.Thread stoped [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:22]accept exits with 9 [20:18:22]New connection [20:18:22]New thread 3067108708 created [20:18:22]Thread 3066965348 joined [20:18:22]Waiting for new connection... [20:18:22] Sock 9.Parse request [20:18:22]Sock 9.Check first char [20:18:22]Sock 9.First char is OK [20:18:22]request: POST /json_proto HTTP/1.0 [20:18:22]Method: POST [20:18:22]URL: /json_proto [20:18:22]Method is POST - this is cgi request [20:18:22]url: /json_proto [20:18:22]query_string will be loaded in cgi processing [20:18:22]execute_cgi json_proto POST (null) [20:18:22]execute_cgi path=json_proto method=POST [20:18:22]POST find Content-Length [20:18:22]Host: 172.17.33.3:8080 [20:18:22]Content-Length: 677 [20:18:22]Content-Type: application/json [20:18:22] [20:18:22]POST finish read [20:18:22]Found Content-Length = 677 [20:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:18:22]execute_script... [20:18: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)348140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:18:22]POST & json_proto [20:18:22]process_json_proto [20:18:22]json parsed OK: [20:18:22]protocol is kg_v1.0 [20:18:22]action value=close_receipt [20:18:22]process_action close_receipt [20:18:22]cmd_close_receipt [20:18:22]MH_GetDate [20:18:22]Write to MH i2c: F0 00 00 3F 1E 4C [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 09 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 09 00 3F 1E 00 90 8B 1D 66 23 5B 8F 65 65 [20:18:22]GetLastDocTimeStamp 1713212241 [20:18:22]current date 1713212304 [20:18:22]FM_GetShiftState [20:18:22]SAM_PROTO_GetShiftState [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 13 01 00 [20:18:22]Write to MH i2c: E2 08 00 40 1E 80 13 01 00 00 00 00 00 DB [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0E 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0E 00 40 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 CF [20:18:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:18:22]wFMCommunicate OK [20:18:22]SAM_PROTO_GetShiftState done [20:18:22]FM_GetShiftState done [20:18:22]opened in 1713140468 [20:18:22]opened+sec_in_day 1713226868 [20:18:22]quantity*price = 30002 [20:18:22]sum+1 = 30003 [20:18:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 268 15.04.2024 20:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29674 ФПД: 264430430859048 1/tax-web-control/client/api/v1/ticket?date=20240415T201824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29674&fm=264430430859048&tin=02508201610067®Number=0000138879044617&sum=30000 [20:18:23]StoreToDocumentArchive [20:18:23]shift 117 fd 29674 [20:18:23]save to /storage/0117/doc_00029674 [20:18:23]save last doc name /storage/0117/doc_00029674 to /storage/kkm_last_doc_name [20:18:23]save OK [20:18:23]Clear old archive folders... [20:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:23]tlvbuf is 01A25850 [20:18:23]SAM_PROTO_ClearQueue [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 09 00 00 [20:18:23]Write to MH i2c: E2 08 00 4D 1E 80 09 00 00 00 00 00 00 DD [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_ClearQueue done [20:18:23]KKMCreateOFDPacket [20:18:23]OFDProtocolAddRootSTLVToBuf [20:18:23]FM_MakeSignedData [20:18:23]FM_MakeSignedData [20:18:23]SAM_PROTO_SignData [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 0D 01 02 [20:18:23]Write to MH i2c: E2 08 00 4E 1E 80 0D 01 02 00 00 00 00 E5 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 4E 1E 00 90 00 E0 [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]wFMCommunicate request_size=255 [20:18:23]MH_SAM_APDU [20:18: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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0C 01 00 00 F4 03 04 00 90 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 73 00 00 35 04 06 00 F0 [20:18:23]Write to MH i2c: E2 02 01 4F 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0C 01 00 00 F4 03 04 00 90 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 73 00 00 35 04 06 00 F0 00 00 83 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 03 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 03 00 4F 1E 00 90 00 E1 [20:18:24]RAPDU: 90 00 [20:18:24]wFMCommunicate OK [20:18:24]wFMCommunicate request_size=10 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 0D 02 02 05 7F 81 E6 2F 28 [20:18:24]Write to MH i2c: E2 0D 00 50 1E 80 0D 02 02 05 00 7F 81 E6 2F 28 00 00 2F [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 03 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 03 00 50 1E 00 90 00 E2 [20:18:24]RAPDU: 90 00 [20:18:24]wFMCommunicate OK [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 0D 03 02 [20:18:24]Write to MH i2c: E2 08 00 51 1E 80 0D 03 02 00 00 00 00 EA [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 0B 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 0B 00 51 1E 00 54 36 B0 E8 F5 11 F2 A7 90 00 AC [20:18:24]RAPDU: 54 36 B0 E8 F5 11 F2 A7 90 00 [20:18:24]wFMCommunicate OK [20:18:24]SAM_PROTO_SignData done [20:18:24]FM_MakeSignedData done [20:18:24]CreateOFDProtocolMessage [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 11 00 00 [20:18:24]Write to MH i2c: E2 08 00 52 1E 80 11 00 00 00 00 00 00 EA [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 17 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 17 00 52 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 39 [20:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:24]wFMCommunicate OK [20:18:24]CreateOFDProtocolMessage done [20:18:24]OFDSenderStorePacket 29674 [20:18:24]StoreOFDPacket docnum=29674 [20:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B AF 07 01 33 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0C 01 00 00 F4 03 04 00 90 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 73 00 00 35 04 06 00 F0 7F 81 E6 2F 28 54 36 B0 E8 F5 11 F2 A7 [20:18:24]CheckFolder [20:18:24]dirname=/storage/ofd_packets [20:18:24]CheckFolder done [20:18:24]ProducePacketName [20:18:24]name=ofd_packets/00029674 [20:18:24]NVStorageSaveData ofd_packets/00029674 [20:18:24]File name is /storage/ofd_packets/00029674 [20:18:24]Write 301 bytes [20:18:24]NVStorageSaveData done [20:18:24]OFDSenderStorePacket done [20:18:24]KKMCreateOFDPacket done [20:18:24]NVStorageSaveData kkm_last_timestamp [20:18:24]File name is /storage/kkm_last_timestamp [20:18:24]Write 4 bytes [20:18:24]NVStorageSaveData done [20:18:24]ExternCall_PrintAddStr [20:18:24]wPrintStart [20:18:24]Write to MH i2c: 01 00 00 53 1E 71 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 53 1E 00 00 00 00 00 FF 0F 86 [20:18:24]RasterBufferAndPrint [20:18:24]line Счет N : (1)348140 [20:18:24]line ИНН: 02508201610067 [20:18:24]line Контрольно-Кассовый Чек [20:18:24]line ПРОДАЖА [20:18:24]line ТРК (МРК, ГНК) : 42 [20:18:24]line Товар: 2710124130 [20:18:24]line Аи-92-К-5 [20:18:24]line 4.630 * 64.80 [20:18:24]line = 300.02 [20:18:24]line НДС 12% НСП 1% [20:18:24]line > о реализуемом товаре [20:18:24]line ОКРУГЛЕНИЕ: -0.02 [20:18:24]line ИТОГО: 300.00 [20:18:24]line Внесено: 300.00 [20:18:24]line СДАЧА: 0.00 [20:18:24]line НСП 1% : 2.65 [20:18:24]line НДС 12% : 31.86 [20:18:24]line Наличными: 300.00 [20:18:24]line Безнал.: 0.00 [20:18:24]line Место: АЗС № 108 "Партнер Нефть" [20:18:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:18:24]line СНО: Общий режим [20:18:24]line Чек 268 15.04.2024 20:18 [20:18:24]line Смена: 117 ФФД: 1.0 [20:18:24]line ЗНМ: 0300000027 [20:18:24]line РНМ: 0000138879044617 [20:18:24]line Версия ККМ: 001 [20:18:24]line ФМ: 0000000000963154 [20:18:24]line ФД: 29674 [20:18:24]line ФПД: 264430430859048 [20:18:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T201824&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29674&fm=264430430859048&tin=02508201610067®Number=0000138879044617&sum=30000 [20:18:24]OFD Sender: Processing packet 29674 [packets to send 8, broken 7] [20:18:24]ProducePacketName [20:18:24]name=ofd_packets/00029674 [20:18:24]OFD Sender: To server: pG, [20:18:24]CommunicateWithHost lk.salyk.kg:30040 [20:18:24]ConnectInit lk.salyk.kg [20:18:24]written 0, free lines is 4095 [20:18:24]Connected sock=10 [20:18:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B AF 07 01 33 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0C 01 00 00 F4 03 04 00 90 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 73 00 00 35 04 06 00 F0 7F 81 E6 2F 28 54 36 B0 E8 F5 11 F2 A7 [20:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F 12 47 00 57 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 39 36 33 31 35 34 10 04 04 00 EA 73 00 00 F4 03 04 00 30 36 1D 66 B6 04 01 00 00 30 88 EE CF BF ED D3 55 [20:18:24]CommunicateWithHost err = 0 [20:18:24]CheckOFDResponse [20:18:24]1017 (14) - 77093643461234 [20:18:24]1041 (16) - 0000000000963154 [20:18:24]1040 (4) - 29674 [20:18:24]1012 (4) - 15.04.2024 14:14 [20:18:24]1206 (1) - 0 [20:18:24]OFD Sender: Remove packet 29674 [20:18:24]ProducePacketName [20:18:24]name=ofd_packets/00029674 [20:18:24]NVStorageDeleteData [20:18:25]Write to MH i2c: 01 00 00 7D 1E 9B [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: 01 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: 01 07 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: 01 07 00 7D 1E 00 00 00 00 00 D0 0C 7E [20:18:25]RasterBufferAndPrint [20:18:25]line [20:18:25]line [20:18:25]line [20:18:25]line [20:18:25]line [20:18:25]written 0, free lines is 3286 [20:18:25]MH_Cut [20:18:25]Write to MH i2c: D1 01 00 84 1E 01 74 [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: D1 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: D1 01 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: D1 01 00 84 1E 00 73 [20:18:25]Write to MH i2c: 01 00 00 85 1E A3 [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]OFD Sender: No OFD packet to send [20:18:25]*** Cut start [20:18:25]*** Partial cut [20:18:25]*** CUTSNS_PIN = 1 [20:18:25]*** CUTSNS_PIN = 0 [20:18:26]*** Brake cut motor [20:18:26]Read from MH i2c: 01 [20:18:26]MH_I2C_Read... [20:18:26]*** Stop cut motor [20:18:26]*** Cut end [20:18:26]Read from MH i2c: 01 07 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 85 1E 00 00 00 00 00 FF 0F B8 [20:18:26]process_action close_receipt done [20:18:26]requested_data is exist [20:18:26]produce_requested_data [20:18:26]requested_item fm.sn is exist - process it [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 11 00 00 [20:18:26]Write to MH i2c: E2 08 00 86 1E 80 11 00 00 00 00 00 00 1E [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 17 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 17 00 86 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [20:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:26]wFMCommunicate OK [20:18:26]requested_item fd.num is exist - process it [20:18:26]SAM_PROTO_GetFieldsCounters [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 13 00 00 [20:18:26]Write to MH i2c: E2 08 00 87 1E 80 13 00 00 00 00 00 00 21 [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 62 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 62 00 87 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 73 00 00 0E 04 04 00 75 00 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 58 [20:18:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 73 00 00 0E 04 04 00 75 00 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 [20:18:26]wFMCommunicate OK [20:18:26]SAM_PROTO_GetFieldsCounters done [20:18:26]requested_item shift.num is exist - process it [20:18:26]requested_item shift.opened is exist - process it [20:18:26]req_shift_opened [20:18:26]FM_GetShiftState [20:18:26]SAM_PROTO_GetShiftState [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 13 01 00 [20:18:26]Write to MH i2c: E2 08 00 88 1E 80 13 01 00 00 00 00 00 23 [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 0E 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 0E 00 88 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 17 [20:18:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:18:26]wFMCommunicate OK [20:18:26]SAM_PROTO_GetShiftState done [20:18:26]FM_GetShiftState done [20:18:26]req_shift_opened done [20:18:26]requested_item shift.open_date is exist - process it [20:18:26]req_shift_open_date [20:18:26]req_shift_open_date done [20:18:26]produce_requested_data done [20:18:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29674,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:18:26]process_action_free close_receipt [20:18:26]json_value_free [20:18:26]json_value_free done [20:18:26]process_json_proto returns [20:18:26]Send response to host [20:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29674,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:18:26]free response buf [20:18:26]execute_script done [20:18:26]execute_script returns [20:18:26]free content buf [20:18:26]Sock 9.Close socket [20:18:26]Sock 9.Thread stoped [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:27]accept exits with 7 [20:19:27]New connection [20:19:27]New thread 3066965348 created [20:19:27]Thread 3067108708 joined [20:19:27]Waiting for new connection... [20:19:27] Sock 7.Parse request [20:19:27]Sock 7.Check first char [20:19:27]Sock 7.First char is OK [20:19:27]request: POST /json_proto HTTP/1.0 [20:19:27]Method: POST [20:19:27]URL: /json_proto [20:19:27]Method is POST - this is cgi request [20:19:27]url: /json_proto [20:19:27]query_string will be loaded in cgi processing [20:19:27]execute_cgi json_proto POST (null) [20:19:27]execute_cgi path=json_proto method=POST [20:19:27]POST find Content-Length [20:19:27]Host: 172.17.33.3:8080 [20:19:27]Content-Length: 735 [20:19:27]Content-Type: application/json [20:19:27] [20:19:27]POST finish read [20:19:27]Found Content-Length = 735 [20:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29672, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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" ] } } [20:19:27]execute_script... [20:19:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 29672, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "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" ] } } [20:19:27]POST & json_proto [20:19:27]process_json_proto [20:19:27]json parsed OK: [20:19:27]protocol is kg_v1.0 [20:19:27]action value=close_receipt [20:19:27]process_action close_receipt [20:19:27]cmd_close_receipt [20:19:27]MH_GetDate [20:19:27]Write to MH i2c: F0 00 00 89 1E 96 [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: F0 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: F0 09 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: F0 09 00 89 1E 00 D1 8B 1D 66 23 5B 8F 65 F0 [20:19:27]GetLastDocTimeStamp 1713212304 [20:19:27]current date 1713212369 [20:19:27]FM_GetShiftState [20:19:27]SAM_PROTO_GetShiftState [20:19:27]wFMCommunicate request_size=4 [20:19:27]MH_SAM_APDU [20:19:27]CAPDU: 80 13 01 00 [20:19:27]Write to MH i2c: E2 08 00 8A 1E 80 13 01 00 00 00 00 00 25 [20:19:27]Write i2c OK [20:19:27]MH_I2C_Read... [20:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:27]Read from MH i2c: E2 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 0E 00 [20:19:27]MH_I2C_Read... [20:19:27]Read from MH i2c: E2 0E 00 8A 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 19 [20:19:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:19:27]wFMCommunicate OK [20:19:27]SAM_PROTO_GetShiftState done [20:19:27]FM_GetShiftState done [20:19:27]opened in 1713140468 [20:19:27]opened+sec_in_day 1713226868 [20:19:27]quantity*price = 300056 [20:19:27]sum+1 = 300057 [20:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 269 15.04.2024 20:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 29672 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 29675 ФПД: 74578530002681 1/tax-web-control/client/api/v1/ticket?date=20240415T201929&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29675&fm=74578530002681&tin=02508201610067®Number=0000138879044617&sum=300000 [20:19:28]StoreToDocumentArchive [20:19:28]shift 117 fd 29675 [20:19:28]save to /storage/0117/doc_00029675 [20:19:28]save last doc name /storage/0117/doc_00029675 to /storage/kkm_last_doc_name [20:19:28]save OK [20:19:28]Clear old archive folders... [20:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:19:28]tlvbuf is 01A8AB80 [20:19:28]SAM_PROTO_ClearQueue [20:19:28]wFMCommunicate request_size=4 [20:19:28]MH_SAM_APDU [20:19:28]CAPDU: 80 09 00 00 [20:19:28]Write to MH i2c: E2 08 00 99 1E 80 09 00 00 00 00 00 00 29 [20:19:28]Write i2c OK [20:19:28]MH_I2C_Read... [20:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:28]Read from MH i2c: E2 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: E2 03 00 [20:19:28]MH_I2C_Read... [20:19:28]Read from MH i2c: E2 03 00 99 1E 00 90 00 2B [20:19:28]RAPDU: 90 00 [20:19:28]wFMCommunicate OK [20:19:28]SAM_PROTO_ClearQueue done [20:19:28]KKMCreateOFDPacket [20:19:28]OFDProtocolAddRootSTLVToBuf [20:19:28]FM_MakeSignedData [20:19:28]FM_MakeSignedData [20:19:28]SAM_PROTO_SignData [20:19:28]wFMCommunicate request_size=4 [20:19:28]MH_SAM_APDU [20:19:28]CAPDU: 80 0D 01 02 [20:19:28]Write to MH i2c: E2 08 00 9A 1E 80 0D 01 02 00 00 00 00 31 [20:19:28]Write i2c OK [20:19:28]MH_I2C_Read... [20:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:29]Read from MH i2c: E2 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 9A 1E 00 90 00 2C [20:19:29]RAPDU: 90 00 [20:19:29]wFMCommunicate OK [20:19:29]wFMCommunicate request_size=255 [20:19:29]MH_SAM_APDU [20:19:29]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0D 01 00 00 F4 03 04 00 D1 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E8 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [20:19:29]Write to MH i2c: E2 02 01 9B 1E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0D 01 00 00 F4 03 04 00 D1 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E8 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 53 [20:19:29]Write i2c OK [20:19:29]MH_I2C_Read... [20:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:29]Read from MH i2c: E2 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 9B 1E 00 90 00 2D [20:19:29]RAPDU: 90 00 [20:19:29]wFMCommunicate OK [20:19:29]wFMCommunicate request_size=35 [20:19:29]MH_SAM_APDU [20:19:29]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 73 00 00 35 04 06 00 43 D4 2A C9 E6 F9 [20:19:29]Write to MH i2c: E2 26 00 9C 1E 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 73 00 00 35 04 06 00 43 D4 2A C9 E6 F9 00 00 6A [20:19:29]Write i2c OK [20:19:29]MH_I2C_Read... [20:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:29]Read from MH i2c: E2 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [20:19:29]RAPDU: 90 00 [20:19:29]wFMCommunicate OK [20:19:29]wFMCommunicate request_size=4 [20:19:29]MH_SAM_APDU [20:19:29]CAPDU: 80 0D 03 02 [20:19:29]Write to MH i2c: E2 08 00 9D 1E 80 0D 03 02 00 00 00 00 36 [20:19:29]Write i2c OK [20:19:29]MH_I2C_Read... [20:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:29]Read from MH i2c: E2 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 0B 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 0B 00 9D 1E 00 94 35 31 94 E5 24 B8 05 90 00 8B [20:19:29]RAPDU: 94 35 31 94 E5 24 B8 05 90 00 [20:19:29]wFMCommunicate OK [20:19:29]SAM_PROTO_SignData done [20:19:29]FM_MakeSignedData done [20:19:29]CreateOFDProtocolMessage [20:19:29]wFMCommunicate request_size=4 [20:19:29]MH_SAM_APDU [20:19:29]CAPDU: 80 11 00 00 [20:19:29]Write to MH i2c: E2 08 00 9E 1E 80 11 00 00 00 00 00 00 36 [20:19:29]Write i2c OK [20:19:29]MH_I2C_Read... [20:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:29]Read from MH i2c: E2 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 17 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: E2 17 00 9E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [20:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:19:29]wFMCommunicate OK [20:19:29]CreateOFDProtocolMessage done [20:19:29]OFDSenderStorePacket 29675 [20:19:29]StoreOFDPacket docnum=29675 [20:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 31 F8 20 01 88 C0 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0D 01 00 00 F4 03 04 00 D1 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E8 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 73 00 00 35 04 06 00 43 D4 2A C9 E6 F9 94 35 31 94 E5 24 B8 05 [20:19:29]CheckFolder [20:19:29]dirname=/storage/ofd_packets [20:19:29]CheckFolder done [20:19:29]ProducePacketName [20:19:29]name=ofd_packets/00029675 [20:19:29]NVStorageSaveData ofd_packets/00029675 [20:19:29]File name is /storage/ofd_packets/00029675 [20:19:29]Write 326 bytes [20:19:29]NVStorageSaveData done [20:19:29]OFDSenderStorePacket done [20:19:29]KKMCreateOFDPacket done [20:19:29]NVStorageSaveData kkm_last_timestamp [20:19:29]File name is /storage/kkm_last_timestamp [20:19:29]Write 4 bytes [20:19:29]NVStorageSaveData done [20:19:29]ExternCall_PrintAddStr [20:19:29]wPrintStart [20:19:29]Write to MH i2c: 01 00 00 9F 1E BD [20:19:29]Write i2c OK [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: 01 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: 01 07 00 [20:19:29]MH_I2C_Read... [20:19:29]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 FF 0F D2 [20:19:29]RasterBufferAndPrint [20:19:29]line Счет N : (1)348139 [20:19:29]line ИНН: 02508201610067 [20:19:29]line Контрольно-Кассовый Чек [20:19:29]line ВОЗВРАТ ПРОДАЖИ [20:19:29]line ТРК (МРК, ГНК) : 21 [20:19:29]line Товар: 2710194210 [20:19:29]line ДТ-К-5 [20:19:29]line 41.160 * 72.90 [20:19:29]line = 3000.56 [20:19:29]line НДС 12% НСП 1% [20:19:29]line > о реализуемом товаре [20:19:29]line ОКРУГЛЕНИЕ: -0.56 [20:19:29]line ИТОГО: 3000.00 [20:19:29]line НСП 1% : 26.55 [20:19:29]line НДС 12% : 318.64 [20:19:29]line Наличными: 3000.00 [20:19:29]line Безнал.: 0.00 [20:19:29]line Место: АЗС № 108 "Партнер Нефть" [20:19:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:19:29]line СНО: Общий режим [20:19:29]line Чек 269 15.04.2024 20:19 [20:19:29]line Смена: 117 ФФД: 1.0 [20:19:29]line ЗНМ: 0300000027 [20:19:29]line РНМ: 0000138879044617 [20:19:29]line Версия ККМ: 001 [20:19:29]line ФД осн.: 29672 [20:19:29]line ФМ осн.: 0000000000963154 [20:19:29]line ФМ: 0000000000963154 [20:19:29]line ФД: 29675 [20:19:29]line ФПД: 74578530002681 [20:19:29]line 1/tax-web-control/client/api/v1/ticket?date=20240415T201929&type=2&operation_type=1&fn_number=0000000000963154&fd_number=29675&fm=74578530002681&tin=02508201610067®Number=0000138879044617&sum=300000 [20:19:29]OFD Sender: Processing packet 29675 [packets to send 8, broken 7] [20:19:29]ProducePacketName [20:19:29]name=ofd_packets/00029675 [20:19:29]OFD Sender: To server: pG, [20:19:29]CommunicateWithHost lk.salyk.kg:30040 [20:19:29]ConnectInit lk.salyk.kg [20:19:29]written 0, free lines is 4095 [20:19:29]Connected sock=10 [20:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 31 F8 20 01 88 C0 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 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 0D 01 00 00 F4 03 04 00 D1 8B 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 E8 73 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 73 00 00 35 04 06 00 43 D4 2A C9 E6 F9 94 35 31 94 E5 24 B8 05 [20:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B4 DD 47 00 7E 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 39 36 33 31 35 34 10 04 04 00 EB 73 00 00 F4 03 04 00 71 36 1D 66 B6 04 01 00 00 E4 6B 33 25 3B 82 21 43 [20:19:30]CommunicateWithHost err = 0 [20:19:30]CheckOFDResponse [20:19:30]1017 (14) - 77093643461234 [20:19:30]1041 (16) - 0000000000963154 [20:19:30]1040 (4) - 29675 [20:19:30]1012 (4) - 15.04.2024 14:15 [20:19:30]1206 (1) - 0 [20:19:30]OFD Sender: Remove packet 29675 [20:19:30]ProducePacketName [20:19:30]name=ofd_packets/00029675 [20:19:30]NVStorageDeleteData [20:19:30]Write to MH i2c: 01 00 00 C9 1E E7 [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: 01 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: 01 07 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: 01 07 00 C9 1E 00 00 00 00 00 D8 0C D2 [20:19:30]RasterBufferAndPrint [20:19:30]line [20:19:30]line [20:19:30]line [20:19:30]line [20:19:30]line [20:19:30]written 0, free lines is 3297 [20:19:30]MH_Cut [20:19:30]Write to MH i2c: D1 01 00 D0 1E 01 C0 [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: D1 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: D1 01 00 [20:19:30]MH_I2C_Read... [20:19:30]Read from MH i2c: D1 01 00 D0 1E 00 BF [20:19:30]Write to MH i2c: 01 00 00 D1 1E EF [20:19:30]Write i2c OK [20:19:30]MH_I2C_Read... [20:19:30]OFD Sender: No OFD packet to send [20:19:31]*** Cut start [20:19:31]*** Partial cut [20:19:31]*** CUTSNS_PIN = 1 [20:19:31]*** CUTSNS_PIN = 0 [20:19:31]*** Brake cut motor [20:19:31]Read from MH i2c: 01 [20:19:31]MH_I2C_Read... [20:19:31]*** Stop cut motor [20:19:31]*** Cut end [20:19:31]Read from MH i2c: 01 07 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: 01 07 00 D1 1E 00 00 00 00 00 FF 0F 04 [20:19:31]process_action close_receipt done [20:19:31]requested_data is exist [20:19:31]produce_requested_data [20:19:31]requested_item fm.sn is exist - process it [20:19:31]wFMCommunicate request_size=4 [20:19:31]MH_SAM_APDU [20:19:31]CAPDU: 80 11 00 00 [20:19:31]Write to MH i2c: E2 08 00 D2 1E 80 11 00 00 00 00 00 00 6A [20:19:31]Write i2c OK [20:19:31]MH_I2C_Read... [20:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:31]Read from MH i2c: E2 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 17 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 17 00 D2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [20:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:19:31]wFMCommunicate OK [20:19:31]requested_item fd.num is exist - process it [20:19:31]SAM_PROTO_GetFieldsCounters [20:19:31]wFMCommunicate request_size=4 [20:19:31]MH_SAM_APDU [20:19:31]CAPDU: 80 13 00 00 [20:19:31]Write to MH i2c: E2 08 00 D3 1E 80 13 00 00 00 00 00 00 6D [20:19:31]Write i2c OK [20:19:31]MH_I2C_Read... [20:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:31]Read from MH i2c: E2 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 62 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 62 00 D3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 73 00 00 0E 04 04 00 75 00 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 A8 [20:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 73 00 00 0E 04 04 00 75 00 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 [20:19:31]wFMCommunicate OK [20:19:31]SAM_PROTO_GetFieldsCounters done [20:19:31]requested_item shift.num is exist - process it [20:19:31]requested_item shift.opened is exist - process it [20:19:31]req_shift_opened [20:19:31]FM_GetShiftState [20:19:31]SAM_PROTO_GetShiftState [20:19:31]wFMCommunicate request_size=4 [20:19:31]MH_SAM_APDU [20:19:31]CAPDU: 80 13 01 00 [20:19:31]Write to MH i2c: E2 08 00 D4 1E 80 13 01 00 00 00 00 00 6F [20:19:31]Write i2c OK [20:19:31]MH_I2C_Read... [20:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:31]Read from MH i2c: E2 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 0E 00 [20:19:31]MH_I2C_Read... [20:19:31]Read from MH i2c: E2 0E 00 D4 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 63 [20:19:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:19:31]wFMCommunicate OK [20:19:31]SAM_PROTO_GetShiftState done [20:19:31]FM_GetShiftState done [20:19:31]req_shift_opened done [20:19:31]requested_item shift.open_date is exist - process it [20:19:31]req_shift_open_date [20:19:31]req_shift_open_date done [20:19:31]produce_requested_data done [20:19:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29675,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:19:31]process_action_free close_receipt [20:19:31]json_value_free [20:19:31]json_value_free done [20:19:31]process_json_proto returns [20:19:31]Send response to host [20:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29675,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:19:31]free response buf [20:19:31]execute_script done [20:19:31]execute_script returns [20:19:31]free content buf [20:19:31]Sock 7.Close socket [20:19:31]Sock 7.Thread stoped [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:34]accept exits with 9 [20:20:34]New connection [20:20:34]New thread 3067108708 created [20:20:34]Thread 3066965348 joined [20:20:34]Waiting for new connection... [20:20:34] Sock 9.Parse request [20:20:34]Sock 9.Check first char [20:20:34]Sock 9.First char is OK [20:20:34]request: POST /json_proto HTTP/1.0 [20:20:34]Method: POST [20:20:34]URL: /json_proto [20:20:34]Method is POST - this is cgi request [20:20:34]url: /json_proto [20:20:34]query_string will be loaded in cgi processing [20:20:34]execute_cgi json_proto POST (null) [20:20:34]execute_cgi path=json_proto method=POST [20:20:34]POST find Content-Length [20:20:34]Host: 172.17.33.3:8080 [20:20:34]Content-Length: 816 [20:20:34]Content-Type: application/json [20:20:34] [20:20:34]POST finish read [20:20:34]Found Content-Length = 816 [20:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:34]execute_script... [20:20: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)348141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:34]POST & json_proto [20:20:34]process_json_proto [20:20:34]json parsed OK: [20:20:34]protocol is kg_v1.0 [20:20:34]action value=close_receipt [20:20:34]process_action close_receipt [20:20:34]cmd_close_receipt [20:20:34]MH_GetDate [20:20:34]Write to MH i2c: F0 00 00 D5 1E E2 [20:20:34]Write i2c OK [20:20:34]MH_I2C_Read... [20:20:34]Read from MH i2c: F0 [20:20:34]MH_I2C_Read... [20:20:34]Read from MH i2c: F0 09 00 [20:20:34]MH_I2C_Read... [20:20:34]Read from MH i2c: F0 09 00 D5 1E 00 14 8C 1D 66 23 5B 8F 65 80 [20:20:34]GetLastDocTimeStamp 1713212369 [20:20:34]current date 1713212436 [20:20:34]FM_GetShiftState [20:20:34]SAM_PROTO_GetShiftState [20:20:34]wFMCommunicate request_size=4 [20:20:34]MH_SAM_APDU [20:20:34]CAPDU: 80 13 01 00 [20:20:34]Write to MH i2c: E2 08 00 D6 1E 80 13 01 00 00 00 00 00 71 [20:20:34]Write i2c OK [20:20:34]MH_I2C_Read... [20:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:34]Read from MH i2c: E2 [20:20:34]MH_I2C_Read... [20:20:34]Read from MH i2c: E2 0E 00 [20:20:34]MH_I2C_Read... [20:20:34]Read from MH i2c: E2 0E 00 D6 1E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 65 [20:20:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:20:34]wFMCommunicate OK [20:20:34]SAM_PROTO_GetShiftState done [20:20:34]FM_GetShiftState done [20:20:34]opened in 1713140468 [20:20:34]opened+sec_in_day 1713226868 [20:20:34]quantity*price = 200037 [20:20:34]sum+1 = 200039 [20:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 270 15.04.2024 20:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29676 ФПД: 214397779880642 1/tax-web-control/client/api/v1/ticket?date=20240415T202036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29676&fm=214397779880642&tin=02508201610067®Number=0000138879044617&sum=200038 [20:20:36]StoreToDocumentArchive [20:20:36]shift 117 fd 29676 [20:20:36]save to /storage/0117/doc_00029676 [20:20:36]save last doc name /storage/0117/doc_00029676 to /storage/kkm_last_doc_name [20:20:36]save OK [20:20:36]Clear old archive folders... [20:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:36]tlvbuf is 01A6EC20 [20:20:36]SAM_PROTO_ClearQueue [20:20:36]wFMCommunicate request_size=4 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 09 00 00 [20:20:36]Write to MH i2c: E2 08 00 E3 1E 80 09 00 00 00 00 00 00 73 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [20:20:36]RAPDU: 90 00 [20:20:36]wFMCommunicate OK [20:20:36]SAM_PROTO_ClearQueue done [20:20:36]KKMCreateOFDPacket [20:20:36]OFDProtocolAddRootSTLVToBuf [20:20:36]FM_MakeSignedData [20:20:36]FM_MakeSignedData [20:20:36]SAM_PROTO_SignData [20:20:36]wFMCommunicate request_size=4 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 0D 01 02 [20:20:36]Write to MH i2c: E2 08 00 E4 1E 80 0D 01 02 00 00 00 00 7B [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [20:20:36]RAPDU: 90 00 [20:20:36]wFMCommunicate OK [20:20:36]wFMCommunicate request_size=255 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 14 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 73 00 00 35 04 06 00 C2 FE 5F 82 [20:20:36]Write to MH i2c: E2 02 01 E5 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 14 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 73 00 00 35 04 06 00 C2 FE 5F 82 00 00 6C [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 E5 1E 00 90 00 77 [20:20:36]RAPDU: 90 00 [20:20:36]wFMCommunicate OK [20:20:36]wFMCommunicate request_size=7 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 0D 02 02 02 AA C2 [20:20:36]Write to MH i2c: E2 0A 00 E6 1E 80 0D 02 02 02 00 AA C2 00 00 EE [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [20:20:36]RAPDU: 90 00 [20:20:36]wFMCommunicate OK [20:20:36]wFMCommunicate request_size=4 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 0D 03 02 [20:20:36]Write to MH i2c: E2 08 00 E7 1E 80 0D 03 02 00 00 00 00 80 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 0B 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 0B 00 E7 1E 00 87 77 57 87 D0 F8 58 FE 90 00 7B [20:20:36]RAPDU: 87 77 57 87 D0 F8 58 FE 90 00 [20:20:36]wFMCommunicate OK [20:20:36]SAM_PROTO_SignData done [20:20:36]FM_MakeSignedData done [20:20:36]CreateOFDProtocolMessage [20:20:36]wFMCommunicate request_size=4 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 11 00 00 [20:20:36]Write to MH i2c: E2 08 00 E8 1E 80 11 00 00 00 00 00 00 80 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 17 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 17 00 E8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [20:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:20:36]wFMCommunicate OK [20:20:36]CreateOFDProtocolMessage done [20:20:36]OFDSenderStorePacket 29676 [20:20:36]StoreOFDPacket docnum=29676 [20:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E3 79 04 01 CE B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 14 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 73 00 00 35 04 06 00 C2 FE 5F 82 AA C2 87 77 57 87 D0 F8 58 FE [20:20:36]CheckFolder [20:20:36]dirname=/storage/ofd_packets [20:20:36]CheckFolder done [20:20:36]ProducePacketName [20:20:36]name=ofd_packets/00029676 [20:20:36]NVStorageSaveData ofd_packets/00029676 [20:20:36]File name is /storage/ofd_packets/00029676 [20:20:36]Write 298 bytes [20:20:36]NVStorageSaveData done [20:20:36]OFDSenderStorePacket done [20:20:36]KKMCreateOFDPacket done [20:20:36]NVStorageSaveData kkm_last_timestamp [20:20:36]File name is /storage/kkm_last_timestamp [20:20:36]Write 4 bytes [20:20:36]NVStorageSaveData done [20:20:36]ExternCall_PrintAddStr [20:20:36]wPrintStart [20:20:36]Write to MH i2c: 01 00 00 E9 1E 07 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: 01 07 00 E9 1E 00 00 00 00 00 FF 0F 1C [20:20:36]RasterBufferAndPrint [20:20:36]line Счет N : (1)348141 [20:20:36]line ИНН: 02508201610067 [20:20:36]line Контрольно-Кассовый Чек [20:20:36]line ПРОДАЖА [20:20:36]line ТРК (МРК, ГНК) : 51 [20:20:36]line Товар: 2710194210 [20:20:36]line ДТ-К-5 [20:20:36]line 27.440 * 72.90 [20:20:36]line = 2000.38 [20:20:36]line НДС 12% НСП 1% [20:20:36]line > о реализуемом товаре [20:20:36]line ИТОГО: 2000.38 [20:20:36]line НСП 1% : 17.70 [20:20:36]line НДС 12% : 212.43 [20:20:36]line Наличными: 0.00 [20:20:36]line Безнал.: 2000.38 [20:20:36]line Место: АЗС № 108 "Партнер Нефть" [20:20:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:20:36]line СНО: Общий режим [20:20:36]line Чек 270 15.04.2024 20:20 [20:20:36]line Смена: 117 ФФД: 1.0 [20:20:36]line ЗНМ: 0300000027 [20:20:36]line РНМ: 0000138879044617 [20:20:36]line Версия ККМ: 001 [20:20:36]line Платежная система: Бакай Банк [20:20:36]line ФМ: 0000000000963154 [20:20:36]line ФД: 29676 [20:20:36]line ФПД: 214397779880642 [20:20:36]line 1/tax-web-control/client/api/v1/ticket?date=20240415T202036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29676&fm=214397779880642&tin=02508201610067®Number=0000138879044617&sum=200038 [20:20:36]OFD Sender: Processing packet 29676 [packets to send 8, broken 7] [20:20:36]ProducePacketName [20:20:36]name=ofd_packets/00029676 [20:20:36]OFD Sender: To server: pG, [20:20:36]CommunicateWithHost lk.salyk.kg:30040 [20:20:36]ConnectInit lk.salyk.kg [20:20:36]written 0, free lines is 4095 [20:20:36]Connected sock=10 [20:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E3 79 04 01 CE B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 14 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 73 00 00 35 04 06 00 C2 FE 5F 82 AA C2 87 77 57 87 D0 F8 58 FE [20:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E9 0B 47 00 13 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 73 00 00 F4 03 04 00 B4 36 1D 66 B6 04 01 00 00 88 0E 11 F2 BB 82 2E 29 [20:20:37]CommunicateWithHost err = 0 [20:20:37]CheckOFDResponse [20:20:37]1017 (14) - 77093643461234 [20:20:37]1041 (16) - 0000000000963154 [20:20:37]1040 (4) - 29676 [20:20:37]1012 (4) - 15.04.2024 14:16 [20:20:37]1206 (1) - 0 [20:20:37]OFD Sender: Remove packet 29676 [20:20:37]ProducePacketName [20:20:37]name=ofd_packets/00029676 [20:20:37]NVStorageDeleteData [20:20:37]Write to MH i2c: 01 00 00 12 1F 31 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 07 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 F2 0C 36 [20:20:37]RasterBufferAndPrint [20:20:37]line [20:20:37]line [20:20:37]line [20:20:37]line [20:20:37]line [20:20:37]written 0, free lines is 3320 [20:20:37]MH_Cut [20:20:37]Write to MH i2c: D1 01 00 19 1F 01 0A [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: D1 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: D1 01 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: D1 01 00 19 1F 00 09 [20:20:37]Write to MH i2c: 01 00 00 1A 1F 39 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]OFD Sender: No OFD packet to send [20:20:38]*** Cut start [20:20:38]*** Partial cut [20:20:38]*** CUTSNS_PIN = 1 [20:20:38]*** CUTSNS_PIN = 0 [20:20:38]*** Brake cut motor [20:20:38]Read from MH i2c: 01 [20:20:38]MH_I2C_Read... [20:20:38]*** Stop cut motor [20:20:38]*** Cut end [20:20:38]Read from MH i2c: 01 07 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 1A 1F 00 00 00 00 00 FF 0F 4E [20:20:38]process_action close_receipt done [20:20:38]requested_data is exist [20:20:38]produce_requested_data [20:20:38]requested_item fm.sn is exist - process it [20:20:38]wFMCommunicate request_size=4 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 11 00 00 [20:20:38]Write to MH i2c: E2 08 00 1B 1F 80 11 00 00 00 00 00 00 B4 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 17 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 17 00 1B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [20:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:20:38]wFMCommunicate OK [20:20:38]requested_item fd.num is exist - process it [20:20:38]SAM_PROTO_GetFieldsCounters [20:20:38]wFMCommunicate request_size=4 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 13 00 00 [20:20:38]Write to MH i2c: E2 08 00 1C 1F 80 13 00 00 00 00 00 00 B7 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 62 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 62 00 1C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 73 00 00 0E 04 04 00 75 00 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 F6 [20:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 73 00 00 0E 04 04 00 75 00 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 [20:20:38]wFMCommunicate OK [20:20:38]SAM_PROTO_GetFieldsCounters done [20:20:38]requested_item shift.num is exist - process it [20:20:38]requested_item shift.opened is exist - process it [20:20:38]req_shift_opened [20:20:38]FM_GetShiftState [20:20:38]SAM_PROTO_GetShiftState [20:20:38]wFMCommunicate request_size=4 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 13 01 00 [20:20:38]Write to MH i2c: E2 08 00 1D 1F 80 13 01 00 00 00 00 00 B9 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 0E 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 0E 00 1D 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AD [20:20:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:20:38]wFMCommunicate OK [20:20:38]SAM_PROTO_GetShiftState done [20:20:38]FM_GetShiftState done [20:20:38]req_shift_opened done [20:20:38]requested_item shift.open_date is exist - process it [20:20:38]req_shift_open_date [20:20:38]req_shift_open_date done [20:20:38]produce_requested_data done [20:20:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29676,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:20:38]process_action_free close_receipt [20:20:38]json_value_free [20:20:38]json_value_free done [20:20:38]process_json_proto returns [20:20:38]Send response to host [20:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29676,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:20:38]free response buf [20:20:38]execute_script done [20:20:38]execute_script returns [20:20:38]free content buf [20:20:38]Sock 9.Close socket [20:20:38]Sock 9.Thread stoped [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:07]accept exits with 7 [20:21:07]New connection [20:21:07]New thread 3066965348 created [20:21:07]Thread 3067108708 joined [20:21:07]Waiting for new connection... [20:21:07] Sock 7.Parse request [20:21:07]Sock 7.Check first char [20:21:07]Sock 7.First char is OK [20:21:07]request: POST /json_proto HTTP/1.0 [20:21:07]Method: POST [20:21:07]URL: /json_proto [20:21:07]Method is POST - this is cgi request [20:21:07]url: /json_proto [20:21:07]query_string will be loaded in cgi processing [20:21:07]execute_cgi json_proto POST (null) [20:21:07]execute_cgi path=json_proto method=POST [20:21:07]POST find Content-Length [20:21:07]Host: 172.17.33.3:8080 [20:21:07]Content-Length: 816 [20:21:07]Content-Type: application/json [20:21:07] [20:21:07]POST finish read [20:21:07]Found Content-Length = 816 [20:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:07]execute_script... [20:21: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)348142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:07]POST & json_proto [20:21:07]process_json_proto [20:21:07]json parsed OK: [20:21:07]protocol is kg_v1.0 [20:21:07]action value=close_receipt [20:21:07]process_action close_receipt [20:21:07]cmd_close_receipt [20:21:07]MH_GetDate [20:21:07]Write to MH i2c: F0 00 00 1E 1F 2C [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: F0 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: F0 09 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: F0 09 00 1E 1F 00 35 8C 1D 66 23 5B 8F 65 EB [20:21:07]GetLastDocTimeStamp 1713212436 [20:21:07]current date 1713212469 [20:21:07]FM_GetShiftState [20:21:07]SAM_PROTO_GetShiftState [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 13 01 00 [20:21:07]Write to MH i2c: E2 08 00 1F 1F 80 13 01 00 00 00 00 00 BB [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0E 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0E 00 1F 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AF [20:21:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_GetShiftState done [20:21:07]FM_GetShiftState done [20:21:07]opened in 1713140468 [20:21:07]opened+sec_in_day 1713226868 [20:21:07]quantity*price = 50025 [20:21:07]sum+1 = 50027 [20:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 271 15.04.2024 20:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29677 ФПД: 205684542526114 1/tax-web-control/client/api/v1/ticket?date=20240415T202109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29677&fm=205684542526114&tin=02508201610067®Number=0000138879044617&sum=50026 [20:21:08]StoreToDocumentArchive [20:21:08]shift 117 fd 29677 [20:21:08]save to /storage/0117/doc_00029677 [20:21:08]save last doc name /storage/0117/doc_00029677 to /storage/kkm_last_doc_name [20:21:08]save OK [20:21:08]Clear old archive folders... [20:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:08]tlvbuf is 01A9A410 [20:21:08]SAM_PROTO_ClearQueue [20:21:08]wFMCommunicate request_size=4 [20:21:08]MH_SAM_APDU [20:21:08]CAPDU: 80 09 00 00 [20:21:08]Write to MH i2c: E2 08 00 2C 1F 80 09 00 00 00 00 00 00 BD [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [20:21:09]RAPDU: 90 00 [20:21:09]wFMCommunicate OK [20:21:09]SAM_PROTO_ClearQueue done [20:21:09]KKMCreateOFDPacket [20:21:09]OFDProtocolAddRootSTLVToBuf [20:21:09]FM_MakeSignedData [20:21:09]FM_MakeSignedData [20:21:09]SAM_PROTO_SignData [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 0D 01 02 [20:21:09]Write to MH i2c: E2 08 00 2D 1F 80 0D 01 02 00 00 00 00 C5 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [20:21:09]RAPDU: 90 00 [20:21:09]wFMCommunicate OK [20:21:09]wFMCommunicate request_size=255 [20:21:09]MH_SAM_APDU [20:21: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 73 00 00 35 04 06 00 BB [20:21:09]Write to MH i2c: E2 02 01 2E 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 73 00 00 35 04 06 00 BB 00 00 96 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [20:21:09]RAPDU: 90 00 [20:21:09]wFMCommunicate OK [20:21:09]wFMCommunicate request_size=10 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 0D 02 02 05 11 AA 17 D2 A2 [20:21:09]Write to MH i2c: E2 0D 00 2F 1F 80 0D 02 02 05 00 11 AA 17 D2 A2 00 00 18 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [20:21:09]RAPDU: 90 00 [20:21:09]wFMCommunicate OK [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 0D 03 02 [20:21:09]Write to MH i2c: E2 08 00 30 1F 80 0D 03 02 00 00 00 00 CA [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 0B 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 0B 00 30 1F 00 CB FF 62 B4 6B 90 52 AB 90 00 A3 [20:21:09]RAPDU: CB FF 62 B4 6B 90 52 AB 90 00 [20:21:09]wFMCommunicate OK [20:21:09]SAM_PROTO_SignData done [20:21:09]FM_MakeSignedData done [20:21:09]CreateOFDProtocolMessage [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 11 00 00 [20:21:09]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [20:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:09]wFMCommunicate OK [20:21:09]CreateOFDProtocolMessage done [20:21:09]OFDSenderStorePacket 29677 [20:21:09]StoreOFDPacket docnum=29677 [20:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D 66 07 01 F3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 73 00 00 35 04 06 00 BB 11 AA 17 D2 A2 CB FF 62 B4 6B 90 52 AB [20:21:09]CheckFolder [20:21:09]dirname=/storage/ofd_packets [20:21:09]CheckFolder done [20:21:09]ProducePacketName [20:21:09]name=ofd_packets/00029677 [20:21:09]NVStorageSaveData ofd_packets/00029677 [20:21:09]File name is /storage/ofd_packets/00029677 [20:21:09]Write 301 bytes [20:21:09]NVStorageSaveData done [20:21:09]OFDSenderStorePacket done [20:21:09]KKMCreateOFDPacket done [20:21:09]NVStorageSaveData kkm_last_timestamp [20:21:09]File name is /storage/kkm_last_timestamp [20:21:09]Write 4 bytes [20:21:09]NVStorageSaveData done [20:21:09]ExternCall_PrintAddStr [20:21:09]wPrintStart [20:21:09]Write to MH i2c: 01 00 00 32 1F 51 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: 01 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: 01 07 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: 01 07 00 32 1F 00 00 00 00 00 FF 0F 66 [20:21:09]RasterBufferAndPrint [20:21:09]line Счет N : (1)348142 [20:21:09]line ИНН: 02508201610067 [20:21:09]line Контрольно-Кассовый Чек [20:21:09]line ПРОДАЖА [20:21:09]line ТРК (МРК, ГНК) : 32 [20:21:09]line Товар: 2710124130 [20:21:09]line Аи-92-К-5 [20:21:09]line 7.720 * 64.80 [20:21:09]line = 500.26 [20:21:09]line НДС 12% НСП 1% [20:21:09]line > о реализуемом товаре [20:21:09]line ИТОГО: 500.26 [20:21:09]line НСП 1% : 4.43 [20:21:09]line НДС 12% : 53.12 [20:21:09]line Наличными: 0.00 [20:21:09]line Безнал.: 500.26 [20:21:09]line Место: АЗС № 108 "Партнер Нефть" [20:21:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:21:09]line СНО: Общий режим [20:21:09]line Чек 271 15.04.2024 20:21 [20:21:09]line Смена: 117 ФФД: 1.0 [20:21:09]line ЗНМ: 0300000027 [20:21:09]line РНМ: 0000138879044617 [20:21:09]line Версия ККМ: 001 [20:21:09]line Платежная система: Бакай Банк [20:21:09]line ФМ: 0000000000963154 [20:21:09]line ФД: 29677 [20:21:09]line ФПД: 205684542526114 [20:21:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T202109&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29677&fm=205684542526114&tin=02508201610067®Number=0000138879044617&sum=50026 [20:21:09]OFD Sender: Processing packet 29677 [packets to send 8, broken 7] [20:21:09]ProducePacketName [20:21:09]name=ofd_packets/00029677 [20:21:09]OFD Sender: To server: pG, [20:21:09]CommunicateWithHost lk.salyk.kg:30040 [20:21:09]ConnectInit lk.salyk.kg [20:21:09]written 0, free lines is 4095 [20:21:09]Connected sock=10 [20:21:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D 66 07 01 F3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 35 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 73 00 00 35 04 06 00 BB 11 AA 17 D2 A2 CB FF 62 B4 6B 90 52 AB [20:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A4 49 47 00 E1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 73 00 00 F4 03 04 00 D5 36 1D 66 B6 04 01 00 00 66 9D F0 57 0F 35 76 56 [20:21:10]CommunicateWithHost err = 0 [20:21:10]CheckOFDResponse [20:21:10]1017 (14) - 77093643461234 [20:21:10]1041 (16) - 0000000000963154 [20:21:10]1040 (4) - 29677 [20:21:10]1012 (4) - 15.04.2024 14:16 [20:21:10]1206 (1) - 0 [20:21:10]OFD Sender: Remove packet 29677 [20:21:10]ProducePacketName [20:21:10]name=ofd_packets/00029677 [20:21:10]NVStorageDeleteData [20:21:10]Write to MH i2c: 01 00 00 5B 1F 7A [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: 01 [20:21:10]MH_I2C_Read... [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 5B 1F 00 00 00 00 00 F1 0C 7E [20:21:10]RasterBufferAndPrint [20:21:10]line [20:21:10]line [20:21:10]line [20:21:10]line [20:21:10]line [20:21:10]written 0, free lines is 3320 [20:21:10]MH_Cut [20:21:10]Write to MH i2c: D1 01 00 62 1F 01 53 [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: D1 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: D1 01 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: D1 01 00 62 1F 00 52 [20:21:10]Write to MH i2c: 01 00 00 63 1F 82 [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]OFD Sender: No OFD packet to send [20:21:11]*** Cut start [20:21:11]*** Partial cut [20:21:11]*** CUTSNS_PIN = 1 [20:21:11]*** CUTSNS_PIN = 0 [20:21:11]*** Brake cut motor [20:21:11]Read from MH i2c: 01 [20:21:11]MH_I2C_Read... [20:21:11]*** Stop cut motor [20:21:11]*** Cut end [20:21:11]Read from MH i2c: 01 07 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 63 1F 00 00 00 00 00 FF 0F 97 [20:21:11]process_action close_receipt done [20:21:11]requested_data is exist [20:21:11]produce_requested_data [20:21:11]requested_item fm.sn is exist - process it [20:21:11]wFMCommunicate request_size=4 [20:21:11]MH_SAM_APDU [20:21:11]CAPDU: 80 11 00 00 [20:21:11]Write to MH i2c: E2 08 00 64 1F 80 11 00 00 00 00 00 00 FD [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:11]Read from MH i2c: E2 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 17 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 17 00 64 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [20:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:11]wFMCommunicate OK [20:21:11]requested_item fd.num is exist - process it [20:21:11]SAM_PROTO_GetFieldsCounters [20:21:11]wFMCommunicate request_size=4 [20:21:11]MH_SAM_APDU [20:21:11]CAPDU: 80 13 00 00 [20:21:11]Write to MH i2c: E2 08 00 65 1F 80 13 00 00 00 00 00 00 00 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:11]Read from MH i2c: E2 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 62 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 62 00 65 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 73 00 00 0E 04 04 00 75 00 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 43 [20:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 73 00 00 0E 04 04 00 75 00 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 [20:21:11]wFMCommunicate OK [20:21:11]SAM_PROTO_GetFieldsCounters done [20:21:11]requested_item shift.num is exist - process it [20:21:11]requested_item shift.opened is exist - process it [20:21:11]req_shift_opened [20:21:11]FM_GetShiftState [20:21:11]SAM_PROTO_GetShiftState [20:21:11]wFMCommunicate request_size=4 [20:21:11]MH_SAM_APDU [20:21:11]CAPDU: 80 13 01 00 [20:21:11]Write to MH i2c: E2 08 00 66 1F 80 13 01 00 00 00 00 00 02 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:11]Read from MH i2c: E2 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 66 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F6 [20:21:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:21:11]wFMCommunicate OK [20:21:11]SAM_PROTO_GetShiftState done [20:21:11]FM_GetShiftState done [20:21:11]req_shift_opened done [20:21:11]requested_item shift.open_date is exist - process it [20:21:11]req_shift_open_date [20:21:11]req_shift_open_date done [20:21:11]produce_requested_data done [20:21:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29677,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:21:11]process_action_free close_receipt [20:21:11]json_value_free [20:21:11]json_value_free done [20:21:11]process_json_proto returns [20:21:11]Send response to host [20:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29677,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:21:11]free response buf [20:21:11]execute_script done [20:21:11]execute_script returns [20:21:11]free content buf [20:21:11]Sock 7.Close socket [20:21:11]Sock 7.Thread stoped [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:29]accept exits with 9 [20:21:29]New connection [20:21:29]New thread 3067108708 created [20:21:29]Thread 3066965348 joined [20:21:29]Waiting for new connection... [20:21:29] Sock 9.Parse request [20:21:29]Sock 9.Check first char [20:21:29]Sock 9.First char is OK [20:21:29]request: POST /json_proto HTTP/1.0 [20:21:29]Method: POST [20:21:29]URL: /json_proto [20:21:29]Method is POST - this is cgi request [20:21:29]url: /json_proto [20:21:29]query_string will be loaded in cgi processing [20:21:29]execute_cgi json_proto POST (null) [20:21:29]execute_cgi path=json_proto method=POST [20:21:29]POST find Content-Length [20:21:29]Host: 172.17.33.3:8080 [20:21:29]Content-Length: 816 [20:21:29]Content-Type: application/json [20:21:29] [20:21:29]POST finish read [20:21:29]Found Content-Length = 816 [20:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:29]execute_script... [20:21: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)348143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:29]POST & json_proto [20:21:29]process_json_proto [20:21:29]json parsed OK: [20:21:29]protocol is kg_v1.0 [20:21:29]action value=close_receipt [20:21:29]process_action close_receipt [20:21:29]cmd_close_receipt [20:21:29]MH_GetDate [20:21:29]Write to MH i2c: F0 00 00 67 1F 75 [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: F0 09 00 67 1F 00 4A 8C 1D 66 23 5B 8F 65 49 [20:21:29]GetLastDocTimeStamp 1713212469 [20:21:29]current date 1713212490 [20:21:29]FM_GetShiftState [20:21:29]SAM_PROTO_GetShiftState [20:21:29]wFMCommunicate request_size=4 [20:21:29]MH_SAM_APDU [20:21:29]CAPDU: 80 13 01 00 [20:21:29]Write to MH i2c: E2 08 00 68 1F 80 13 01 00 00 00 00 00 04 [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:29]Read from MH i2c: E2 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: E2 0E 00 68 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F8 [20:21:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:21:29]wFMCommunicate OK [20:21:29]SAM_PROTO_GetShiftState done [20:21:29]FM_GetShiftState done [20:21:29]opened in 1713140468 [20:21:29]opened+sec_in_day 1713226868 [20:21:29]quantity*price = 50025 [20:21:29]sum+1 = 50027 [20:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 272 15.04.2024 20:21 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29678 ФПД: 54324755211523 1/tax-web-control/client/api/v1/ticket?date=20240415T202130&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29678&fm=54324755211523&tin=02508201610067®Number=0000138879044617&sum=50026 [20:21:30]StoreToDocumentArchive [20:21:30]shift 117 fd 29678 [20:21:30]save to /storage/0117/doc_00029678 [20:21:30]save last doc name /storage/0117/doc_00029678 to /storage/kkm_last_doc_name [20:21:30]save OK [20:21:30]Clear old archive folders... [20:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:30]tlvbuf is B6DCE840 [20:21:30]SAM_PROTO_ClearQueue [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 09 00 00 [20:21:30]Write to MH i2c: E2 08 00 75 1F 80 09 00 00 00 00 00 00 06 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]SAM_PROTO_ClearQueue done [20:21:30]KKMCreateOFDPacket [20:21:30]OFDProtocolAddRootSTLVToBuf [20:21:30]FM_MakeSignedData [20:21:30]FM_MakeSignedData [20:21:30]SAM_PROTO_SignData [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 0D 01 02 [20:21:30]Write to MH i2c: E2 08 00 76 1F 80 0D 01 02 00 00 00 00 0E [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]wFMCommunicate request_size=255 [20:21:30]MH_SAM_APDU [20:21: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 4A 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 73 00 00 35 04 06 00 31 [20:21:30]Write to MH i2c: E2 02 01 77 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 4A 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 73 00 00 35 04 06 00 31 00 00 6C [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]wFMCommunicate request_size=10 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 0D 02 02 05 68 77 BC A5 03 [20:21:30]Write to MH i2c: E2 0D 00 78 1F 80 0D 02 02 05 00 68 77 BC A5 03 00 00 5E [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 03 00 78 1F 00 90 00 0B [20:21:30]RAPDU: 90 00 [20:21:30]wFMCommunicate OK [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 0D 03 02 [20:21:30]Write to MH i2c: E2 08 00 79 1F 80 0D 03 02 00 00 00 00 13 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:30]OFD Sender: No OFD packet to send [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 0B 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 0B 00 79 1F 00 41 1C F0 37 30 FB 9E 13 90 00 74 [20:21:30]RAPDU: 41 1C F0 37 30 FB 9E 13 90 00 [20:21:30]wFMCommunicate OK [20:21:30]SAM_PROTO_SignData done [20:21:30]FM_MakeSignedData done [20:21:30]CreateOFDProtocolMessage [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 11 00 00 [20:21:30]Write to MH i2c: E2 08 00 7A 1F 80 11 00 00 00 00 00 00 13 [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 17 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 17 00 7A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [20:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:30]wFMCommunicate OK [20:21:30]CreateOFDProtocolMessage done [20:21:30]OFDSenderStorePacket 29678 [20:21:30]StoreOFDPacket docnum=29678 [20:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 11 74 07 01 8C 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 4A 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 73 00 00 35 04 06 00 31 68 77 BC A5 03 41 1C F0 37 30 FB 9E 13 [20:21:30]CheckFolder [20:21:30]dirname=/storage/ofd_packets [20:21:30]CheckFolder done [20:21:30]ProducePacketName [20:21:30]name=ofd_packets/00029678 [20:21:30]NVStorageSaveData ofd_packets/00029678 [20:21:30]File name is /storage/ofd_packets/00029678 [20:21:30]Write 301 bytes [20:21:30]NVStorageSaveData done [20:21:30]OFDSenderStorePacket done [20:21:30]KKMCreateOFDPacket done [20:21:30]NVStorageSaveData kkm_last_timestamp [20:21:30]File name is /storage/kkm_last_timestamp [20:21:30]Write 4 bytes [20:21:30]NVStorageSaveData done [20:21:30]ExternCall_PrintAddStr [20:21:30]wPrintStart [20:21:30]Write to MH i2c: 01 00 00 7B 1F 9A [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 7B 1F 00 00 00 00 00 FF 0F AF [20:21:30]RasterBufferAndPrint [20:21:30]line Счет N : (1)348143 [20:21:30]line ИНН: 02508201610067 [20:21:30]line Контрольно-Кассовый Чек [20:21:30]line ПРОДАЖА [20:21:30]line ТРК (МРК, ГНК) : 23 [20:21:30]line Товар: 2710124130 [20:21:30]line Аи-92-К-5 [20:21:30]line 7.720 * 64.80 [20:21:30]line = 500.26 [20:21:30]line НДС 12% НСП 1% [20:21:30]line > о реализуемом товаре [20:21:30]line ИТОГО: 500.26 [20:21:30]line НСП 1% : 4.43 [20:21:30]line НДС 12% : 53.12 [20:21:30]line Наличными: 0.00 [20:21:30]line Безнал.: 500.26 [20:21:30]line Место: АЗС № 108 "Партнер Нефть" [20:21:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:21:30]line СНО: Общий режим [20:21:30]line Чек 272 15.04.2024 20:21 [20:21:30]line Смена: 117 ФФД: 1.0 [20:21:30]line ЗНМ: 0300000027 [20:21:30]line РНМ: 0000138879044617 [20:21:30]line Версия ККМ: 001 [20:21:30]line Платежная система: Бакай Банк [20:21:30]line ФМ: 0000000000963154 [20:21:30]line ФД: 29678 [20:21:30]line ФПД: 54324755211523 [20:21:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T202130&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29678&fm=54324755211523&tin=02508201610067®Number=0000138879044617&sum=50026 [20:21:31]OFD Sender: Processing packet 29678 [packets to send 8, broken 7] [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00029678 [20:21:31]OFD Sender: To server: pG, [20:21:31]CommunicateWithHost lk.salyk.kg:30040 [20:21:31]ConnectInit lk.salyk.kg [20:21:31]written 0, free lines is 4095 [20:21:31]Connected sock=10 [20:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 11 74 07 01 8C 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 4A 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 73 00 00 35 04 06 00 31 68 77 BC A5 03 41 1C F0 37 30 FB 9E 13 [20:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C7 23 47 00 95 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 39 36 33 31 35 34 10 04 04 00 EE 73 00 00 F4 03 04 00 EB 36 1D 66 B6 04 01 00 00 EA D3 93 25 D3 62 B9 A4 [20:21:31]CommunicateWithHost err = 0 [20:21:31]CheckOFDResponse [20:21:31]1017 (14) - 77093643461234 [20:21:31]1041 (16) - 0000000000963154 [20:21:31]1040 (4) - 29678 [20:21:31]1012 (4) - 15.04.2024 14:17 [20:21:31]1206 (1) - 0 [20:21:31]OFD Sender: Remove packet 29678 [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00029678 [20:21:31]NVStorageDeleteData [20:21:31]Write to MH i2c: 01 00 00 A4 1F C3 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 A4 1F 00 00 00 00 00 F2 0C C8 [20:21:31]RasterBufferAndPrint [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]line [20:21:31]written 0, free lines is 3322 [20:21:31]MH_Cut [20:21:31]Write to MH i2c: D1 01 00 AB 1F 01 9C [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 01 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: D1 01 00 AB 1F 00 9B [20:21:31]Write to MH i2c: 01 00 00 AC 1F CB [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]OFD Sender: No OFD packet to send [20:21:32]*** Cut start [20:21:32]*** Partial cut [20:21:32]*** CUTSNS_PIN = 1 [20:21:32]*** CUTSNS_PIN = 0 [20:21:32]*** Brake cut motor [20:21:32]Read from MH i2c: 01 [20:21:32]MH_I2C_Read... [20:21:32]*** Stop cut motor [20:21:32]*** Cut end [20:21:32]Read from MH i2c: 01 07 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [20:21:32]process_action close_receipt done [20:21:32]requested_data is exist [20:21:32]produce_requested_data [20:21:32]requested_item fm.sn is exist - process it [20:21:32]wFMCommunicate request_size=4 [20:21:32]MH_SAM_APDU [20:21:32]CAPDU: 80 11 00 00 [20:21:32]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:32]Read from MH i2c: E2 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: E2 17 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [20:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:21:32]wFMCommunicate OK [20:21:32]requested_item fd.num is exist - process it [20:21:32]SAM_PROTO_GetFieldsCounters [20:21:32]wFMCommunicate request_size=4 [20:21:32]MH_SAM_APDU [20:21:32]CAPDU: 80 13 00 00 [20:21:32]Write to MH i2c: E2 08 00 AE 1F 80 13 00 00 00 00 00 00 49 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:33]Read from MH i2c: E2 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 62 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 62 00 AE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 73 00 00 0E 04 04 00 75 00 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 90 [20:21:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 73 00 00 0E 04 04 00 75 00 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 [20:21:33]wFMCommunicate OK [20:21:33]SAM_PROTO_GetFieldsCounters done [20:21:33]requested_item shift.num is exist - process it [20:21:33]requested_item shift.opened is exist - process it [20:21:33]req_shift_opened [20:21:33]FM_GetShiftState [20:21:33]SAM_PROTO_GetShiftState [20:21:33]wFMCommunicate request_size=4 [20:21:33]MH_SAM_APDU [20:21:33]CAPDU: 80 13 01 00 [20:21:33]Write to MH i2c: E2 08 00 AF 1F 80 13 01 00 00 00 00 00 4B [20:21:33]Write i2c OK [20:21:33]MH_I2C_Read... [20:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:33]Read from MH i2c: E2 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 0E 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: E2 0E 00 AF 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3F [20:21:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:21:33]wFMCommunicate OK [20:21:33]SAM_PROTO_GetShiftState done [20:21:33]FM_GetShiftState done [20:21:33]req_shift_opened done [20:21:33]requested_item shift.open_date is exist - process it [20:21:33]req_shift_open_date [20:21:33]req_shift_open_date done [20:21:33]produce_requested_data done [20:21:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29678,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:21:33]process_action_free close_receipt [20:21:33]json_value_free [20:21:33]json_value_free done [20:21:33]process_json_proto returns [20:21:33]Send response to host [20:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29678,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:21:33]free response buf [20:21:33]execute_script done [20:21:33]execute_script returns [20:21:33]free content buf [20:21:33]Sock 9.Close socket [20:21:33]Sock 9.Thread stoped [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]accept exits with 7 [20:22:36]New connection [20:22:36]New thread 3066965348 created [20:22:36]Thread 3067108708 joined [20:22:36]Waiting for new connection... [20:22:36] Sock 7.Parse request [20:22:36]Sock 7.Check first char [20:22:36]Sock 7.First char is OK [20:22:36]request: POST /json_proto HTTP/1.0 [20:22:36]Method: POST [20:22:36]URL: /json_proto [20:22:36]Method is POST - this is cgi request [20:22:36]url: /json_proto [20:22:36]query_string will be loaded in cgi processing [20:22:36]execute_cgi json_proto POST (null) [20:22:36]execute_cgi path=json_proto method=POST [20:22:36]POST find Content-Length [20:22:36]Host: 172.17.33.3:8080 [20:22:36]Content-Length: 1209 [20:22:36]Content-Type: application/json [20:22:36] [20:22:36]POST finish read [20:22:36]Found Content-Length = 1209 [20:22: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348144\u000A15.04.2024 20:04\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-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:36]execute_script... [20:22: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348144\u000A15.04.2024 20:04\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-\u041A-5\u000A 10.980 x 72.90\u000A\u0418\u0422\u041E\u0413: 800.44\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:36]POST & json_proto [20:22:36]process_json_proto [20:22:36]json parsed OK: [20:22:36]protocol is kg_v1.0 [20:22:36]action value=print_text [20:22:36]process_action print_text [20:22:36]cmd_print_text [20:22:36]ExternCall_PrintAddStr [20:22:36]wPrintStart [20:22:36]Write to MH i2c: 01 00 00 B0 1F CF [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 B0 1F 00 00 00 00 00 FF 0F E4 [20:22:36]RasterBufferAndPrint [20:22:36]line *****ТОВАРНЫЙ ЧЕК***** [20:22:36]line АЗС 108 [20:22:36]line Партнер нефть [20:22:36]line 02508201610067 [20:22:36]line Кассир : Джумагулова Н. [20:22:36]line Счет N : (1)348144 [20:22:36]line 15.04.2024 20:04 [20:22:36]line ПРОДАЖА [20:22:36]line ТРК (МРК, ГНК): 11 [20:22:36]line Вид ГСМ : 2710194210 [20:22:36]line ДТ-К-5 [20:22:36]line 10.980 x 72.90 [20:22:36]line ИТОГ: 800.44 [20:22:36]line Тип оплаты: Талоны: Топливная Карта [20:22:36]line 02136 [20:22:36]line ______________________ [20:22:36]line (подпись) [20:22:36]written 0, free lines is 4095 [20:22:36]Write to MH i2c: 01 00 00 C5 1F E4 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 F4 0D EC [20:22:36]RasterBufferAndPrint [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]written 0, free lines is 3574 [20:22:36]MH_Cut [20:22:36]Write to MH i2c: D1 01 00 CC 1F 01 BD [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 01 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 01 00 CC 1F 00 BC [20:22:36]Write to MH i2c: 01 00 00 CD 1F EC [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** Cut start [20:22:36]*** Partial cut [20:22:36]*** CUTSNS_PIN = 1 [20:22:36]*** CUTSNS_PIN = 0 [20:22:36]OFD Sender: No OFD packet to send [20:22:37]*** Brake cut motor [20:22:37]Read from MH i2c: 01 [20:22:37]MH_I2C_Read... [20:22:37]*** Stop cut motor [20:22:37]*** Cut end [20:22:37]Read from MH i2c: 01 07 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: 01 07 00 CD 1F 00 00 00 00 00 FF 0F 01 [20:22:37]process_action print_text done [20:22:37]requested_data is exist [20:22:37]produce_requested_data [20:22:37]requested_item fm.sn is exist - process it [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 11 00 00 [20:22:37]Write to MH i2c: E2 08 00 CE 1F 80 11 00 00 00 00 00 00 67 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 17 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 17 00 CE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [20:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:22:37]wFMCommunicate OK [20:22:37]requested_item fd.num is exist - process it [20:22:37]SAM_PROTO_GetFieldsCounters [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 13 00 00 [20:22:37]Write to MH i2c: E2 08 00 CF 1F 80 13 00 00 00 00 00 00 6A [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 62 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 62 00 CF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 73 00 00 0E 04 04 00 75 00 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 B1 [20:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 73 00 00 0E 04 04 00 75 00 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 [20:22:37]wFMCommunicate OK [20:22:37]SAM_PROTO_GetFieldsCounters done [20:22:37]requested_item shift.num is exist - process it [20:22:37]requested_item shift.opened is exist - process it [20:22:37]req_shift_opened [20:22:37]FM_GetShiftState [20:22:37]SAM_PROTO_GetShiftState [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 13 01 00 [20:22:37]Write to MH i2c: E2 08 00 D0 1F 80 13 01 00 00 00 00 00 6C [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 0E 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 0E 00 D0 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 60 [20:22:37]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:22:37]wFMCommunicate OK [20:22:37]SAM_PROTO_GetShiftState done [20:22:37]FM_GetShiftState done [20:22:37]req_shift_opened done [20:22:37]requested_item shift.open_date is exist - process it [20:22:37]req_shift_open_date [20:22:37]req_shift_open_date done [20:22:37]produce_requested_data done [20:22:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29678,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:22:37]process_action_free print_text [20:22:37]json_value_free [20:22:37]json_value_free done [20:22:37]process_json_proto returns [20:22:37]Send response to host [20:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29678,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:22:37]free response buf [20:22:37]execute_script done [20:22:37]execute_script returns [20:22:37]free content buf [20:22:37]Sock 7.Close socket [20:22:37]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:02]accept exits with 9 [20:24:02]New connection [20:24:02]New thread 3067108708 created [20:24:02]Thread 3066965348 joined [20:24:02]Waiting for new connection... [20:24:02] Sock 9.Parse request [20:24:02]Sock 9.Check first char [20:24:02]Sock 9.First char is OK [20:24:02]request: POST /json_proto HTTP/1.0 [20:24:02]Method: POST [20:24:02]URL: /json_proto [20:24:02]Method is POST - this is cgi request [20:24:02]url: /json_proto [20:24:02]query_string will be loaded in cgi processing [20:24:02]execute_cgi json_proto POST (null) [20:24:02]execute_cgi path=json_proto method=POST [20:24:02]POST find Content-Length [20:24:02]Host: 172.17.33.3:8080 [20:24:02]Content-Length: 675 [20:24:02]Content-Type: application/json [20:24:02] [20:24:02]POST finish read [20:24:02]Found Content-Length = 675 [20:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:02]execute_script... [20:24:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:02]POST & json_proto [20:24:02]process_json_proto [20:24:02]json parsed OK: [20:24:02]protocol is kg_v1.0 [20:24:02]action value=close_receipt [20:24:02]process_action close_receipt [20:24:02]cmd_close_receipt [20:24:02]MH_GetDate [20:24:02]Write to MH i2c: F0 00 00 D1 1F DF [20:24:02]Write i2c OK [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: F0 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: F0 09 00 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: F0 09 00 D1 1F 00 E4 8C 1D 66 23 5B 8F 65 4D [20:24:02]GetLastDocTimeStamp 1713212490 [20:24:02]current date 1713212644 [20:24:02]FM_GetShiftState [20:24:02]SAM_PROTO_GetShiftState [20:24:02]wFMCommunicate request_size=4 [20:24:02]MH_SAM_APDU [20:24:02]CAPDU: 80 13 01 00 [20:24:02]Write to MH i2c: E2 08 00 D2 1F 80 13 01 00 00 00 00 00 6E [20:24:02]Write i2c OK [20:24:02]MH_I2C_Read... [20:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:02]Read from MH i2c: E2 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 0E 00 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 0E 00 D2 1F 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 62 [20:24:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:24:02]wFMCommunicate OK [20:24:02]SAM_PROTO_GetShiftState done [20:24:02]FM_GetShiftState done [20:24:02]opened in 1713140468 [20:24:02]opened+sec_in_day 1713226868 [20:24:02]quantity*price = 150024 [20:24:02]sum+1 = 150025 [20:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 273 15.04.2024 20:24 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29679 ФПД: 114191680459263 1/tax-web-control/client/api/v1/ticket?date=20240415T202404&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29679&fm=114191680459263&tin=02508201610067®Number=0000138879044617&sum=150000 [20:24:03]StoreToDocumentArchive [20:24:03]shift 117 fd 29679 [20:24:03]save to /storage/0117/doc_00029679 [20:24:03]save last doc name /storage/0117/doc_00029679 to /storage/kkm_last_doc_name [20:24:03]save OK [20:24:03]Clear old archive folders... [20:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:24:03]tlvbuf is 01A9A2F0 [20:24:03]SAM_PROTO_ClearQueue [20:24:03]wFMCommunicate request_size=4 [20:24:03]MH_SAM_APDU [20:24:03]CAPDU: 80 09 00 00 [20:24:03]Write to MH i2c: E2 08 00 DF 1F 80 09 00 00 00 00 00 00 70 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [20:24:03]RAPDU: 90 00 [20:24:03]wFMCommunicate OK [20:24:03]SAM_PROTO_ClearQueue done [20:24:03]KKMCreateOFDPacket [20:24:03]OFDProtocolAddRootSTLVToBuf [20:24:03]FM_MakeSignedData [20:24:03]FM_MakeSignedData [20:24:03]SAM_PROTO_SignData [20:24:03]wFMCommunicate request_size=4 [20:24:03]MH_SAM_APDU [20:24:03]CAPDU: 80 0D 01 02 [20:24:03]Write to MH i2c: E2 08 00 E0 1F 80 0D 01 02 00 00 00 00 78 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [20:24:03]RAPDU: 90 00 [20:24:03]wFMCommunicate OK [20:24:03]wFMCommunicate request_size=255 [20:24:03]MH_SAM_APDU [20:24: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 11 01 00 00 F4 03 04 00 E4 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 73 00 00 35 04 06 00 [20:24:03]Write to MH i2c: E2 02 01 E1 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 11 01 00 00 F4 03 04 00 E4 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 73 00 00 35 04 06 00 00 00 D4 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [20:24:03]RAPDU: 90 00 [20:24:03]wFMCommunicate OK [20:24:03]wFMCommunicate request_size=11 [20:24:03]MH_SAM_APDU [20:24:03]CAPDU: 80 0D 02 02 06 67 DB 52 8C D1 FF [20:24:03]Write to MH i2c: E2 0E 00 E2 1F 80 0D 02 02 06 00 67 DB 52 8C D1 FF 00 00 77 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [20:24:03]RAPDU: 90 00 [20:24:03]wFMCommunicate OK [20:24:03]wFMCommunicate request_size=4 [20:24:03]MH_SAM_APDU [20:24:03]CAPDU: 80 0D 03 02 [20:24:03]Write to MH i2c: E2 08 00 E3 1F 80 0D 03 02 00 00 00 00 7D [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 0B 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 0B 00 E3 1F 00 6A 29 44 76 7A A5 39 F1 90 00 14 [20:24:03]RAPDU: 6A 29 44 76 7A A5 39 F1 90 00 [20:24:03]wFMCommunicate OK [20:24:03]SAM_PROTO_SignData done [20:24:03]FM_MakeSignedData done [20:24:03]CreateOFDProtocolMessage [20:24:03]wFMCommunicate request_size=4 [20:24:03]MH_SAM_APDU [20:24:03]CAPDU: 80 11 00 00 [20:24:03]Write to MH i2c: E2 08 00 E4 1F 80 11 00 00 00 00 00 00 7D [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 17 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 17 00 E4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [20:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:03]wFMCommunicate OK [20:24:03]CreateOFDProtocolMessage done [20:24:03]OFDSenderStorePacket 29679 [20:24:03]StoreOFDPacket docnum=29679 [20:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B 1A 08 01 CC 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 11 01 00 00 F4 03 04 00 E4 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 73 00 00 35 04 06 00 67 DB 52 8C D1 FF 6A 29 44 76 7A A5 39 F1 [20:24:03]CheckFolder [20:24:03]dirname=/storage/ofd_packets [20:24:03]CheckFolder done [20:24:03]ProducePacketName [20:24:03]name=ofd_packets/00029679 [20:24:03]NVStorageSaveData ofd_packets/00029679 [20:24:03]File name is /storage/ofd_packets/00029679 [20:24:03]Write 302 bytes [20:24:03]NVStorageSaveData done [20:24:03]OFDSenderStorePacket done [20:24:03]KKMCreateOFDPacket done [20:24:03]NVStorageSaveData kkm_last_timestamp [20:24:03]File name is /storage/kkm_last_timestamp [20:24:03]Write 4 bytes [20:24:03]NVStorageSaveData done [20:24:03]ExternCall_PrintAddStr [20:24:03]wPrintStart [20:24:03]Write to MH i2c: 01 00 00 E5 1F 04 [20:24:03]Write i2c OK [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 FF 0F 19 [20:24:03]RasterBufferAndPrint [20:24:03]line Счет N : (1)348145 [20:24:03]line ИНН: 02508201610067 [20:24:03]line Контрольно-Кассовый Чек [20:24:03]line ПРОДАЖА [20:24:03]line ТРК (МРК, ГНК) : 41 [20:24:03]line Товар: 2710124130 [20:24:03]line SUPER-92-К-5 [20:24:03]line 22.800 * 65.80 [20:24:03]line = 1500.24 [20:24:03]line НДС 12% НСП 1% [20:24:03]line > о реализуемом товаре [20:24:03]line ОКРУГЛЕНИЕ: -0.24 [20:24:03]line ИТОГО: 1500.00 [20:24:03]line Внесено: 1500.00 [20:24:03]line СДАЧА: 0.00 [20:24:03]line НСП 1% : 13.28 [20:24:03]line НДС 12% : 159.32 [20:24:03]line Наличными: 1500.00 [20:24:03]line Безнал.: 0.00 [20:24:03]line Место: АЗС № 108 "Партнер Нефть" [20:24:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:24:03]line СНО: Общий режим [20:24:03]line Чек 273 15.04.2024 20:24 [20:24:03]line Смена: 117 ФФД: 1.0 [20:24:03]line ЗНМ: 0300000027 [20:24:03]line РНМ: 0000138879044617 [20:24:03]line Версия ККМ: 001 [20:24:03]line ФМ: 0000000000963154 [20:24:03]line ФД: 29679 [20:24:03]line ФПД: 114191680459263 [20:24:04]line 1/tax-web-control/client/api/v1/ticket?date=20240415T202404&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29679&fm=114191680459263&tin=02508201610067®Number=0000138879044617&sum=150000 [20:24:04]OFD Sender: Processing packet 29679 [packets to send 8, broken 7] [20:24:04]ProducePacketName [20:24:04]name=ofd_packets/00029679 [20:24:04]OFD Sender: To server: pG, [20:24:04]CommunicateWithHost lk.salyk.kg:30040 [20:24:04]ConnectInit lk.salyk.kg [20:24:04]written 0, free lines is 4095 [20:24:04]Connected sock=10 [20:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4B 1A 08 01 CC 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 11 01 00 00 F4 03 04 00 E4 8C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 73 00 00 35 04 06 00 67 DB 52 8C D1 FF 6A 29 44 76 7A A5 39 F1 [20:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C 7F 47 00 A9 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 73 00 00 F4 03 04 00 84 37 1D 66 B6 04 01 00 00 64 6D AD 01 9A 42 A6 83 [20:24:04]CommunicateWithHost err = 0 [20:24:04]CheckOFDResponse [20:24:04]1017 (14) - 77093643461234 [20:24:04]1041 (16) - 0000000000963154 [20:24:04]1040 (4) - 29679 [20:24:04]1012 (4) - 15.04.2024 14:19 [20:24:04]1206 (1) - 0 [20:24:04]OFD Sender: Remove packet 29679 [20:24:04]ProducePacketName [20:24:04]name=ofd_packets/00029679 [20:24:04]NVStorageDeleteData [20:24:04]Write to MH i2c: 01 00 00 0F 20 2F [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: 01 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: 01 07 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 E0 0C 22 [20:24:04]RasterBufferAndPrint [20:24:04]line [20:24:04]line [20:24:04]line [20:24:04]line [20:24:04]line [20:24:04]written 0, free lines is 3302 [20:24:04]MH_Cut [20:24:04]Write to MH i2c: D1 01 00 16 20 01 08 [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: D1 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: D1 01 00 [20:24:04]MH_I2C_Read... [20:24:04]Read from MH i2c: D1 01 00 16 20 00 07 [20:24:04]Write to MH i2c: 01 00 00 17 20 37 [20:24:04]Write i2c OK [20:24:04]MH_I2C_Read... [20:24:04]OFD Sender: No OFD packet to send [20:24:05]*** Cut start [20:24:05]*** Partial cut [20:24:05]*** CUTSNS_PIN = 1 [20:24:05]*** CUTSNS_PIN = 0 [20:24:05]*** Brake cut motor [20:24:06]Read from MH i2c: 01 [20:24:06]MH_I2C_Read... [20:24:06]*** Stop cut motor [20:24:06]*** Cut end [20:24:06]Read from MH i2c: 01 07 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [20:24:06]process_action close_receipt done [20:24:06]requested_data is exist [20:24:06]produce_requested_data [20:24:06]requested_item fm.sn is exist - process it [20:24:06]wFMCommunicate request_size=4 [20:24:06]MH_SAM_APDU [20:24:06]CAPDU: 80 11 00 00 [20:24:06]Write to MH i2c: E2 08 00 18 20 80 11 00 00 00 00 00 00 B2 [20:24:06]Write i2c OK [20:24:06]MH_I2C_Read... [20:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:06]Read from MH i2c: E2 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 17 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 17 00 18 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [20:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:24:06]wFMCommunicate OK [20:24:06]requested_item fd.num is exist - process it [20:24:06]SAM_PROTO_GetFieldsCounters [20:24:06]wFMCommunicate request_size=4 [20:24:06]MH_SAM_APDU [20:24:06]CAPDU: 80 13 00 00 [20:24:06]Write to MH i2c: E2 08 00 19 20 80 13 00 00 00 00 00 00 B5 [20:24:06]Write i2c OK [20:24:06]MH_I2C_Read... [20:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:06]Read from MH i2c: E2 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 62 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 62 00 19 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 73 00 00 0E 04 04 00 75 00 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 00 [20:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 73 00 00 0E 04 04 00 75 00 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 [20:24:06]wFMCommunicate OK [20:24:06]SAM_PROTO_GetFieldsCounters done [20:24:06]requested_item shift.num is exist - process it [20:24:06]requested_item shift.opened is exist - process it [20:24:06]req_shift_opened [20:24:06]FM_GetShiftState [20:24:06]SAM_PROTO_GetShiftState [20:24:06]wFMCommunicate request_size=4 [20:24:06]MH_SAM_APDU [20:24:06]CAPDU: 80 13 01 00 [20:24:06]Write to MH i2c: E2 08 00 1A 20 80 13 01 00 00 00 00 00 B7 [20:24:06]Write i2c OK [20:24:06]MH_I2C_Read... [20:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:06]Read from MH i2c: E2 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 0E 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: E2 0E 00 1A 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AB [20:24:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:24:06]wFMCommunicate OK [20:24:06]SAM_PROTO_GetShiftState done [20:24:06]FM_GetShiftState done [20:24:06]req_shift_opened done [20:24:06]requested_item shift.open_date is exist - process it [20:24:06]req_shift_open_date [20:24:06]req_shift_open_date done [20:24:06]produce_requested_data done [20:24:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29679,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:24:06]process_action_free close_receipt [20:24:06]json_value_free [20:24:06]json_value_free done [20:24:06]process_json_proto returns [20:24:06]Send response to host [20:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29679,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:24:06]free response buf [20:24:06]execute_script done [20:24:06]execute_script returns [20:24:06]free content buf [20:24:06]Sock 9.Close socket [20:24:06]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]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:06]accept exits with 7 [20:30:06]New connection [20:30:06]New thread 3066965348 created [20:30:06]Thread 3067108708 joined [20:30:06]Waiting for new connection... [20:30:06] Sock 7.Parse request [20:30:06]Sock 7.Check first char [20:30:06]Sock 7.First char is OK [20:30:06]request: POST /json_proto HTTP/1.0 [20:30:06]Method: POST [20:30:06]URL: /json_proto [20:30:06]Method is POST - this is cgi request [20:30:06]url: /json_proto [20:30:06]query_string will be loaded in cgi processing [20:30:06]execute_cgi json_proto POST (null) [20:30:06]execute_cgi path=json_proto method=POST [20:30:06]POST find Content-Length [20:30:06]Host: 172.17.33.3:8080 [20:30:06]Content-Length: 677 [20:30:06]Content-Type: application/json [20:30:06] [20:30:06]POST finish read [20:30:06]Found Content-Length = 677 [20:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.710, "sum" : 240.41, "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" ] } } [20:30:06]execute_script... [20:30: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)348147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.710, "sum" : 240.41, "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" ] } } [20:30:06]POST & json_proto [20:30:06]process_json_proto [20:30:06]json parsed OK: [20:30:06]protocol is kg_v1.0 [20:30:06]action value=close_receipt [20:30:06]process_action close_receipt [20:30:06]cmd_close_receipt [20:30:06]MH_GetDate [20:30:06]Write to MH i2c: F0 00 00 1B 20 2A [20:30:06]Write i2c OK [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 09 00 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 09 00 1B 20 00 50 8E 1D 66 23 5B 8F 65 06 [20:30:06]GetLastDocTimeStamp 1713212644 [20:30:06]current date 1713213008 [20:30:06]FM_GetShiftState [20:30:06]SAM_PROTO_GetShiftState [20:30:06]wFMCommunicate request_size=4 [20:30:06]MH_SAM_APDU [20:30:06]CAPDU: 80 13 01 00 [20:30:06]Write to MH i2c: E2 08 00 1C 20 80 13 01 00 00 00 00 00 B9 [20:30:06]Write i2c OK [20:30:06]MH_I2C_Read... [20:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:06]Read from MH i2c: E2 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: E2 0E 00 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: E2 0E 00 1C 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AD [20:30:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:30:06]wFMCommunicate OK [20:30:06]SAM_PROTO_GetShiftState done [20:30:06]FM_GetShiftState done [20:30:06]opened in 1713140468 [20:30:06]opened+sec_in_day 1713226868 [20:30:06]quantity*price = 24040 [20:30:06]sum+1 = 24042 [20:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 274 15.04.2024 20:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29680 ФПД: 27477577900497 1/tax-web-control/client/api/v1/ticket?date=20240415T203008&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29680&fm=27477577900497&tin=02508201610067®Number=0000138879044617&sum=24000 [20:30:07]StoreToDocumentArchive [20:30:07]shift 117 fd 29680 [20:30:07]save to /storage/0117/doc_00029680 [20:30:07]save last doc name /storage/0117/doc_00029680 to /storage/kkm_last_doc_name [20:30:07]save OK [20:30:07]Clear old archive folders... [20:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:07]tlvbuf is 01A702A0 [20:30:07]SAM_PROTO_ClearQueue [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 09 00 00 [20:30:07]Write to MH i2c: E2 08 00 29 20 80 09 00 00 00 00 00 00 BB [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]SAM_PROTO_ClearQueue done [20:30:07]KKMCreateOFDPacket [20:30:07]OFDProtocolAddRootSTLVToBuf [20:30:07]FM_MakeSignedData [20:30:07]FM_MakeSignedData [20:30:07]SAM_PROTO_SignData [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 01 02 [20:30:07]Write to MH i2c: E2 08 00 2A 20 80 0D 01 02 00 00 00 00 C3 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]wFMCommunicate request_size=255 [20:30:07]MH_SAM_APDU [20:30: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 7E 0E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 12 01 00 00 F4 03 04 00 50 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 73 00 00 35 04 06 00 18 [20:30:07]Write to MH i2c: E2 02 01 2B 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 7E 0E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 12 01 00 00 F4 03 04 00 50 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 73 00 00 35 04 06 00 18 00 00 9A [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]wFMCommunicate request_size=10 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 02 02 05 FD 9F 45 21 D1 [20:30:07]Write to MH i2c: E2 0D 00 2C 20 80 0D 02 02 05 00 FD 9F 45 21 D1 00 00 A3 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:08]Read from MH i2c: E2 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 03 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [20:30:08]RAPDU: 90 00 [20:30:08]wFMCommunicate OK [20:30:08]wFMCommunicate request_size=4 [20:30:08]MH_SAM_APDU [20:30:08]CAPDU: 80 0D 03 02 [20:30:08]Write to MH i2c: E2 08 00 2D 20 80 0D 03 02 00 00 00 00 C8 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:08]Read from MH i2c: E2 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 0B 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 0B 00 2D 20 00 FB 27 8F 7A C3 A9 62 32 90 00 F4 [20:30:08]RAPDU: FB 27 8F 7A C3 A9 62 32 90 00 [20:30:08]wFMCommunicate OK [20:30:08]SAM_PROTO_SignData done [20:30:08]FM_MakeSignedData done [20:30:08]CreateOFDProtocolMessage [20:30:08]wFMCommunicate request_size=4 [20:30:08]MH_SAM_APDU [20:30:08]CAPDU: 80 11 00 00 [20:30:08]Write to MH i2c: E2 08 00 2E 20 80 11 00 00 00 00 00 00 C8 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:08]Read from MH i2c: E2 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 17 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 17 00 2E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [20:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:30:08]wFMCommunicate OK [20:30:08]CreateOFDProtocolMessage done [20:30:08]OFDSenderStorePacket 29680 [20:30:08]StoreOFDPacket docnum=29680 [20:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 81 07 01 DD F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 12 01 00 00 F4 03 04 00 50 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 73 00 00 35 04 06 00 18 FD 9F 45 21 D1 FB 27 8F 7A C3 A9 62 32 [20:30:08]CheckFolder [20:30:08]dirname=/storage/ofd_packets [20:30:08]CheckFolder done [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00029680 [20:30:08]NVStorageSaveData ofd_packets/00029680 [20:30:08]File name is /storage/ofd_packets/00029680 [20:30:08]Write 301 bytes [20:30:08]NVStorageSaveData done [20:30:08]OFDSenderStorePacket done [20:30:08]KKMCreateOFDPacket done [20:30:08]NVStorageSaveData kkm_last_timestamp [20:30:08]File name is /storage/kkm_last_timestamp [20:30:08]Write 4 bytes [20:30:08]NVStorageSaveData done [20:30:08]ExternCall_PrintAddStr [20:30:08]wPrintStart [20:30:08]Write to MH i2c: 01 00 00 2F 20 4F [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 2F 20 00 00 00 00 00 FF 0F 64 [20:30:08]RasterBufferAndPrint [20:30:08]line Счет N : (1)348147 [20:30:08]line ИНН: 02508201610067 [20:30:08]line Контрольно-Кассовый Чек [20:30:08]line ПРОДАЖА [20:30:08]line ТРК (МРК, ГНК) : 23 [20:30:08]line Товар: 2710124130 [20:30:08]line Аи-92-К-5 [20:30:08]line 3.710 * 64.80 [20:30:08]line = 240.41 [20:30:08]line НДС 12% НСП 1% [20:30:08]line > о реализуемом товаре [20:30:08]line ОКРУГЛЕНИЕ: -0.41 [20:30:08]line ИТОГО: 240.00 [20:30:08]line Внесено: 240.00 [20:30:08]line СДАЧА: 0.00 [20:30:08]line НСП 1% : 2.13 [20:30:08]line НДС 12% : 25.53 [20:30:08]line Наличными: 240.00 [20:30:08]line Безнал.: 0.00 [20:30:08]line Место: АЗС № 108 "Партнер Нефть" [20:30:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:30:08]line СНО: Общий режим [20:30:08]line Чек 274 15.04.2024 20:30 [20:30:08]line Смена: 117 ФФД: 1.0 [20:30:08]line ЗНМ: 0300000027 [20:30:08]line РНМ: 0000138879044617 [20:30:08]line Версия ККМ: 001 [20:30:08]line ФМ: 0000000000963154 [20:30:08]line ФД: 29680 [20:30:08]line ФПД: 27477577900497 [20:30:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T203008&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29680&fm=27477577900497&tin=02508201610067®Number=0000138879044617&sum=24000 [20:30:08]OFD Sender: Processing packet 29680 [packets to send 8, broken 7] [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00029680 [20:30:08]OFD Sender: To server: pG, [20:30:08]CommunicateWithHost lk.salyk.kg:30040 [20:30:08]ConnectInit lk.salyk.kg [20:30:08]written 0, free lines is 4095 [20:30:08]Connected sock=10 [20:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 81 07 01 DD F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 0E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 12 01 00 00 F4 03 04 00 50 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 73 00 00 35 04 06 00 18 FD 9F 45 21 D1 FB 27 8F 7A C3 A9 62 32 [20:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD 12 47 00 C2 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 39 36 33 31 35 34 10 04 04 00 F0 73 00 00 F4 03 04 00 F0 38 1D 66 B6 04 01 00 00 32 52 1D A5 DF 24 E2 23 [20:30:08]CommunicateWithHost err = 0 [20:30:08]CheckOFDResponse [20:30:08]1017 (14) - 77093643461234 [20:30:08]1041 (16) - 0000000000963154 [20:30:08]1040 (4) - 29680 [20:30:08]1012 (4) - 15.04.2024 14:25 [20:30:08]1206 (1) - 0 [20:30:08]OFD Sender: Remove packet 29680 [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00029680 [20:30:08]NVStorageDeleteData [20:30:08]Write to MH i2c: 01 00 00 59 20 79 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 DA 0C 66 [20:30:08]RasterBufferAndPrint [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]written 0, free lines is 3297 [20:30:08]MH_Cut [20:30:08]Write to MH i2c: D1 01 00 60 20 01 52 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 01 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 01 00 60 20 00 51 [20:30:08]Write to MH i2c: 01 00 00 61 20 81 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:09]OFD Sender: No OFD packet to send [20:30:09]*** Cut start [20:30:09]*** Partial cut [20:30:09]*** CUTSNS_PIN = 1 [20:30:09]*** CUTSNS_PIN = 0 [20:30:09]*** Brake cut motor [20:30:10]Read from MH i2c: 01 [20:30:10]MH_I2C_Read... [20:30:10]*** Stop cut motor [20:30:10]*** Cut end [20:30:10]Read from MH i2c: 01 07 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 FF 0F 96 [20:30:10]process_action close_receipt done [20:30:10]requested_data is exist [20:30:10]produce_requested_data [20:30:10]requested_item fm.sn is exist - process it [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 11 00 00 [20:30:10]Write to MH i2c: E2 08 00 62 20 80 11 00 00 00 00 00 00 FC [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 17 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 17 00 62 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [20:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:30:10]wFMCommunicate OK [20:30:10]requested_item fd.num is exist - process it [20:30:10]SAM_PROTO_GetFieldsCounters [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 13 00 00 [20:30:10]Write to MH i2c: E2 08 00 63 20 80 13 00 00 00 00 00 00 FF [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 62 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 62 00 63 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 73 00 00 0E 04 04 00 75 00 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 4E [20:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 73 00 00 0E 04 04 00 75 00 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 [20:30:10]wFMCommunicate OK [20:30:10]SAM_PROTO_GetFieldsCounters done [20:30:10]requested_item shift.num is exist - process it [20:30:10]requested_item shift.opened is exist - process it [20:30:10]req_shift_opened [20:30:10]FM_GetShiftState [20:30:10]SAM_PROTO_GetShiftState [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 13 01 00 [20:30:10]Write to MH i2c: E2 08 00 64 20 80 13 01 00 00 00 00 00 01 [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 0E 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 0E 00 64 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F5 [20:30:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:30:10]wFMCommunicate OK [20:30:10]SAM_PROTO_GetShiftState done [20:30:10]FM_GetShiftState done [20:30:10]req_shift_opened done [20:30:10]requested_item shift.open_date is exist - process it [20:30:10]req_shift_open_date [20:30:10]req_shift_open_date done [20:30:10]produce_requested_data done [20:30:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29680,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:30:10]process_action_free close_receipt [20:30:10]json_value_free [20:30:10]json_value_free done [20:30:10]process_json_proto returns [20:30:10]Send response to host [20:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29680,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:30:10]free response buf [20:30:10]execute_script done [20:30:10]execute_script returns [20:30:10]free content buf [20:30:10]Sock 7.Close socket [20:30:10]Sock 7.Thread stoped [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:58]accept exits with 9 [20:31:58]New connection [20:31:58]New thread 3067108708 created [20:31:58]Thread 3066965348 joined [20:31:58]Waiting for new connection... [20:31:58] Sock 9.Parse request [20:31:58]Sock 9.Check first char [20:31:58]Sock 9.First char is OK [20:31:58]request: POST /json_proto HTTP/1.0 [20:31:58]Method: POST [20:31:58]URL: /json_proto [20:31:58]Method is POST - this is cgi request [20:31:58]url: /json_proto [20:31:58]query_string will be loaded in cgi processing [20:31:58]execute_cgi json_proto POST (null) [20:31:58]execute_cgi path=json_proto method=POST [20:31:58]POST find Content-Length [20:31:58]Host: 172.17.33.3:8080 [20:31:58]Content-Length: 805 [20:31:58]Content-Type: application/json [20:31:58] [20:31:58]POST finish read [20:31:58]Found Content-Length = 805 [20:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:58]execute_script... [20:31: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)348146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:58]POST & json_proto [20:31:58]process_json_proto [20:31:58]json parsed OK: [20:31:58]protocol is kg_v1.0 [20:31:58]action value=close_receipt [20:31:58]process_action close_receipt [20:31:58]cmd_close_receipt [20:31:58]MH_GetDate [20:31:58]Write to MH i2c: F0 00 00 65 20 74 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 09 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: F0 09 00 65 20 00 C0 8E 1D 66 23 5B 8F 65 C0 [20:31:58]GetLastDocTimeStamp 1713213008 [20:31:58]current date 1713213120 [20:31:58]FM_GetShiftState [20:31:58]SAM_PROTO_GetShiftState [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 13 01 00 [20:31:58]Write to MH i2c: E2 08 00 66 20 80 13 01 00 00 00 00 00 03 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 0E 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 0E 00 66 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F7 [20:31:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:31:58]wFMCommunicate OK [20:31:58]SAM_PROTO_GetShiftState done [20:31:58]FM_GetShiftState done [20:31:58]opened in 1713140468 [20:31:58]opened+sec_in_day 1713226868 [20:31:58]quantity*price = 700058 [20:31:58]sum+1 = 700060 [20:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.59 НСП 1% : 61.95 НДС 12% : 743.42 Наличными: 0.00 Безнал.: 7000.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 275 15.04.2024 20:32 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29681 ФПД: 270764880326841 1/tax-web-control/client/api/v1/ticket?date=20240415T203200&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29681&fm=270764880326841&tin=02508201610067®Number=0000138879044617&sum=700059 [20:31:59]StoreToDocumentArchive [20:31:59]shift 117 fd 29681 [20:31:59]save to /storage/0117/doc_00029681 [20:31:59]save last doc name /storage/0117/doc_00029681 to /storage/kkm_last_doc_name [20:31:59]save OK [20:31:59]Clear old archive folders... [20:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:31:59]tlvbuf is B6DCE1D0 [20:31:59]SAM_PROTO_ClearQueue [20:31:59]wFMCommunicate request_size=4 [20:31:59]MH_SAM_APDU [20:31:59]CAPDU: 80 09 00 00 [20:31:59]Write to MH i2c: E2 08 00 73 20 80 09 00 00 00 00 00 00 05 [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:59]Read from MH i2c: E2 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 03 00 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [20:31:59]RAPDU: 90 00 [20:31:59]wFMCommunicate OK [20:31:59]SAM_PROTO_ClearQueue done [20:31:59]KKMCreateOFDPacket [20:31:59]OFDProtocolAddRootSTLVToBuf [20:31:59]FM_MakeSignedData [20:31:59]FM_MakeSignedData [20:31:59]SAM_PROTO_SignData [20:31:59]wFMCommunicate request_size=4 [20:31:59]MH_SAM_APDU [20:31:59]CAPDU: 80 0D 01 02 [20:31:59]Write to MH i2c: E2 08 00 74 20 80 0D 01 02 00 00 00 00 0D [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=255 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 73 00 00 35 04 06 00 F6 42 5C 82 [20:32:00]Write to MH i2c: E2 02 01 75 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 73 00 00 35 04 06 00 F6 42 5C 82 00 00 54 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=7 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 02 02 02 70 B9 [20:32:00]Write to MH i2c: E2 0A 00 76 20 80 0D 02 02 02 00 70 B9 00 00 3D [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [20:32:00]RAPDU: 90 00 [20:32:00]wFMCommunicate OK [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 0D 03 02 [20:32:00]Write to MH i2c: E2 08 00 77 20 80 0D 03 02 00 00 00 00 12 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 0B 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 0B 00 77 20 00 25 6B CC 70 E6 C3 40 FA 90 00 C2 [20:32:00]RAPDU: 25 6B CC 70 E6 C3 40 FA 90 00 [20:32:00]wFMCommunicate OK [20:32:00]SAM_PROTO_SignData done [20:32:00]FM_MakeSignedData done [20:32:00]CreateOFDProtocolMessage [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 11 00 00 [20:32:00]Write to MH i2c: E2 08 00 78 20 80 11 00 00 00 00 00 00 12 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 78 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [20:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:32:00]wFMCommunicate OK [20:32:00]CreateOFDProtocolMessage done [20:32:00]OFDSenderStorePacket 29681 [20:32:00]StoreOFDPacket docnum=29681 [20:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C0 47 04 01 52 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 73 00 00 35 04 06 00 F6 42 5C 82 70 B9 25 6B CC 70 E6 C3 40 FA [20:32:00]CheckFolder [20:32:00]dirname=/storage/ofd_packets [20:32:00]CheckFolder done [20:32:00]ProducePacketName [20:32:00]name=ofd_packets/00029681 [20:32:00]NVStorageSaveData ofd_packets/00029681 [20:32:00]File name is /storage/ofd_packets/00029681 [20:32:00]Write 298 bytes [20:32:00]NVStorageSaveData done [20:32:00]OFDSenderStorePacket done [20:32:00]KKMCreateOFDPacket done [20:32:00]NVStorageSaveData kkm_last_timestamp [20:32:00]File name is /storage/kkm_last_timestamp [20:32:00]Write 4 bytes [20:32:00]NVStorageSaveData done [20:32:00]ExternCall_PrintAddStr [20:32:00]wPrintStart [20:32:00]Write to MH i2c: 01 00 00 79 20 99 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: 01 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: 01 07 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: 01 07 00 79 20 00 00 00 00 00 FF 0F AE [20:32:00]RasterBufferAndPrint [20:32:00]line Счет N : (1)348146 [20:32:00]line ИНН: 02508201610067 [20:32:00]line Контрольно-Кассовый Чек [20:32:00]line ПРОДАЖА [20:32:00]line ТРК (МРК, ГНК) : 61 [20:32:00]line Товар: 2710194210 [20:32:00]line ДТ-К-5 [20:32:00]line 96.030 * 72.90 [20:32:00]line = 7000.59 [20:32:00]line НДС 12% НСП 1% [20:32:00]line > о реализуемом товаре [20:32:00]line ИТОГО: 7000.59 [20:32:00]line НСП 1% : 61.95 [20:32:00]line НДС 12% : 743.42 [20:32:00]line Наличными: 0.00 [20:32:00]line Безнал.: 7000.59 [20:32:00]line Место: АЗС № 108 "Партнер Нефть" [20:32:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:32:00]line СНО: Общий режим [20:32:00]line Чек 275 15.04.2024 20:32 [20:32:00]line Смена: 117 ФФД: 1.0 [20:32:00]line ЗНМ: 0300000027 [20:32:00]line РНМ: 0000138879044617 [20:32:00]line Версия ККМ: 001 [20:32:00]line Платежная система: О! деньги [20:32:00]line ФМ: 0000000000963154 [20:32:00]line ФД: 29681 [20:32:00]line ФПД: 270764880326841 [20:32:00]line 1/tax-web-control/client/api/v1/ticket?date=20240415T203200&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29681&fm=270764880326841&tin=02508201610067®Number=0000138879044617&sum=700059 [20:32:00]OFD Sender: Processing packet 29681 [packets to send 8, broken 7] [20:32:00]ProducePacketName [20:32:00]name=ofd_packets/00029681 [20:32:00]OFD Sender: To server: pG, [20:32:00]CommunicateWithHost lk.salyk.kg:30040 [20:32:00]ConnectInit lk.salyk.kg [20:32:00]written 0, free lines is 4095 [20:32:00]Connected sock=10 [20:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C0 47 04 01 52 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 66 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 C0 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 73 00 00 35 04 06 00 F6 42 5C 82 70 B9 25 6B CC 70 E6 C3 40 FA [20:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 20 86 47 00 5E 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 39 36 33 31 35 34 10 04 04 00 F1 73 00 00 F4 03 04 00 60 39 1D 66 B6 04 01 00 00 D6 5F 0B E2 AB 82 60 EF [20:32:01]CommunicateWithHost err = 0 [20:32:01]CheckOFDResponse [20:32:01]1017 (14) - 77093643461234 [20:32:01]1041 (16) - 0000000000963154 [20:32:01]1040 (4) - 29681 [20:32:01]1012 (4) - 15.04.2024 14:27 [20:32:01]1206 (1) - 0 [20:32:01]OFD Sender: Remove packet 29681 [20:32:01]ProducePacketName [20:32:01]name=ofd_packets/00029681 [20:32:01]NVStorageDeleteData [20:32:01]Write to MH i2c: 01 00 00 A2 20 C2 [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 DE 0C B3 [20:32:01]RasterBufferAndPrint [20:32:01]line [20:32:01]line [20:32:01]line [20:32:01]line [20:32:01]line [20:32:01]written 0, free lines is 3300 [20:32:01]MH_Cut [20:32:01]Write to MH i2c: D1 01 00 A9 20 01 9B [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: D1 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: D1 01 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: D1 01 00 A9 20 00 9A [20:32:01]Write to MH i2c: 01 00 00 AA 20 CA [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]OFD Sender: No OFD packet to send [20:32:02]*** Cut start [20:32:02]*** Partial cut [20:32:02]*** CUTSNS_PIN = 1 [20:32:02]*** CUTSNS_PIN = 0 [20:32:02]*** Brake cut motor [20:32:02]Read from MH i2c: 01 [20:32:02]MH_I2C_Read... [20:32:02]*** Stop cut motor [20:32:02]*** Cut end [20:32:02]Read from MH i2c: 01 07 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: 01 07 00 AA 20 00 00 00 00 00 FF 0F DF [20:32:02]process_action close_receipt done [20:32:02]requested_data is exist [20:32:02]produce_requested_data [20:32:02]requested_item fm.sn is exist - process it [20:32:02]wFMCommunicate request_size=4 [20:32:02]MH_SAM_APDU [20:32:02]CAPDU: 80 11 00 00 [20:32:02]Write to MH i2c: E2 08 00 AB 20 80 11 00 00 00 00 00 00 45 [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:02]Read from MH i2c: E2 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 17 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 17 00 AB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [20:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:32:02]wFMCommunicate OK [20:32:02]requested_item fd.num is exist - process it [20:32:02]SAM_PROTO_GetFieldsCounters [20:32:02]wFMCommunicate request_size=4 [20:32:02]MH_SAM_APDU [20:32:02]CAPDU: 80 13 00 00 [20:32:02]Write to MH i2c: E2 08 00 AC 20 80 13 00 00 00 00 00 00 48 [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:02]Read from MH i2c: E2 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 62 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 62 00 AC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 73 00 00 0E 04 04 00 75 00 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 9B [20:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 73 00 00 0E 04 04 00 75 00 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 [20:32:02]wFMCommunicate OK [20:32:02]SAM_PROTO_GetFieldsCounters done [20:32:02]requested_item shift.num is exist - process it [20:32:02]requested_item shift.opened is exist - process it [20:32:02]req_shift_opened [20:32:02]FM_GetShiftState [20:32:02]SAM_PROTO_GetShiftState [20:32:02]wFMCommunicate request_size=4 [20:32:02]MH_SAM_APDU [20:32:02]CAPDU: 80 13 01 00 [20:32:02]Write to MH i2c: E2 08 00 AD 20 80 13 01 00 00 00 00 00 4A [20:32:02]Write i2c OK [20:32:02]MH_I2C_Read... [20:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:02]Read from MH i2c: E2 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 0E 00 [20:32:02]MH_I2C_Read... [20:32:02]Read from MH i2c: E2 0E 00 AD 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3E [20:32:02]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:32:02]wFMCommunicate OK [20:32:02]SAM_PROTO_GetShiftState done [20:32:02]FM_GetShiftState done [20:32:02]req_shift_opened done [20:32:02]requested_item shift.open_date is exist - process it [20:32:02]req_shift_open_date [20:32:02]req_shift_open_date done [20:32:02]produce_requested_data done [20:32:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29681,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:32:02]process_action_free close_receipt [20:32:02]json_value_free [20:32:02]json_value_free done [20:32:02]process_json_proto returns [20:32:02]Send response to host [20:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29681,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:32:02]free response buf [20:32:02]execute_script done [20:32:02]execute_script returns [20:32:02]free content buf [20:32:02]Sock 9.Close socket [20:32:02]Sock 9.Thread stoped [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:32:59]accept exits with 7 [20:32:59]New connection [20:32:59]New thread 3066965348 created [20:32:59]Thread 3067108708 joined [20:32:59]Waiting for new connection... [20:32:59] Sock 7.Parse request [20:32:59]Sock 7.Check first char [20:32:59]Sock 7.First char is OK [20:32:59]request: POST /json_proto HTTP/1.0 [20:32:59]Method: POST [20:32:59]URL: /json_proto [20:32:59]Method is POST - this is cgi request [20:32:59]url: /json_proto [20:32:59]query_string will be loaded in cgi processing [20:32:59]execute_cgi json_proto POST (null) [20:32:59]execute_cgi path=json_proto method=POST [20:32:59]POST find Content-Length [20:32:59]Host: 172.17.33.3:8080 [20:32:59]Content-Length: 677 [20:32:59]Content-Type: application/json [20:32:59] [20:32:59]POST finish read [20:32:59]Found Content-Length = 677 [20:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:32:59]execute_script... [20:32: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)348148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:32:59]POST & json_proto [20:32:59]process_json_proto [20:32:59]json parsed OK: [20:32:59]protocol is kg_v1.0 [20:32:59]action value=close_receipt [20:32:59]process_action close_receipt [20:32:59]cmd_close_receipt [20:32:59]MH_GetDate [20:32:59]Write to MH i2c: F0 00 00 AE 20 BD [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: F0 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: F0 09 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: F0 09 00 AE 20 00 FD 8E 1D 66 23 5B 8F 65 46 [20:32:59]GetLastDocTimeStamp 1713213120 [20:32:59]current date 1713213181 [20:32:59]FM_GetShiftState [20:32:59]SAM_PROTO_GetShiftState [20:32:59]wFMCommunicate request_size=4 [20:32:59]MH_SAM_APDU [20:32:59]CAPDU: 80 13 01 00 [20:32:59]Write to MH i2c: E2 08 00 AF 20 80 13 01 00 00 00 00 00 4C [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:59]Read from MH i2c: E2 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 0E 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: E2 0E 00 AF 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 40 [20:32:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:32:59]wFMCommunicate OK [20:32:59]SAM_PROTO_GetShiftState done [20:32:59]FM_GetShiftState done [20:32:59]opened in 1713140468 [20:32:59]opened+sec_in_day 1713226868 [20:32:59]quantity*price = 30002 [20:32:59]sum+1 = 30003 [20:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 276 15.04.2024 20:33 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29682 ФПД: 101586182029740 1/tax-web-control/client/api/v1/ticket?date=20240415T203301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29682&fm=101586182029740&tin=02508201610067®Number=0000138879044617&sum=30000 [20:33:00]StoreToDocumentArchive [20:33:00]shift 117 fd 29682 [20:33:00]save to /storage/0117/doc_00029682 [20:33:00]save last doc name /storage/0117/doc_00029682 to /storage/kkm_last_doc_name [20:33:00]save OK [20:33:00]Clear old archive folders... [20:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:00]tlvbuf is 01A2EB40 [20:33:00]SAM_PROTO_ClearQueue [20:33:00]wFMCommunicate request_size=4 [20:33:00]MH_SAM_APDU [20:33:00]CAPDU: 80 09 00 00 [20:33:00]Write to MH i2c: E2 08 00 BC 20 80 09 00 00 00 00 00 00 4E [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:00]Read from MH i2c: E2 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 03 00 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [20:33:00]RAPDU: 90 00 [20:33:00]wFMCommunicate OK [20:33:00]SAM_PROTO_ClearQueue done [20:33:00]KKMCreateOFDPacket [20:33:00]OFDProtocolAddRootSTLVToBuf [20:33:00]FM_MakeSignedData [20:33:00]FM_MakeSignedData [20:33:00]SAM_PROTO_SignData [20:33:00]wFMCommunicate request_size=4 [20:33:00]MH_SAM_APDU [20:33:00]CAPDU: 80 0D 01 02 [20:33:00]Write to MH i2c: E2 08 00 BD 20 80 0D 01 02 00 00 00 00 56 [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:00]Read from MH i2c: E2 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 03 00 [20:33:00]MH_I2C_Read... [20:33:00]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [20:33:00]RAPDU: 90 00 [20:33:00]wFMCommunicate OK [20:33:00]wFMCommunicate request_size=255 [20:33:00]MH_SAM_APDU [20:33: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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 14 01 00 00 F4 03 04 00 FD 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 73 00 00 35 04 06 00 5C [20:33:00]Write to MH i2c: E2 02 01 BE 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 14 01 00 00 F4 03 04 00 FD 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 73 00 00 35 04 06 00 5C 00 00 E0 [20:33:00]Write i2c OK [20:33:00]MH_I2C_Read... [20:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:01]Read from MH i2c: E2 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 03 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 03 00 BE 20 00 90 00 52 [20:33:01]RAPDU: 90 00 [20:33:01]wFMCommunicate OK [20:33:01]wFMCommunicate request_size=10 [20:33:01]MH_SAM_APDU [20:33:01]CAPDU: 80 0D 02 02 05 64 60 4B 41 AC [20:33:01]Write to MH i2c: E2 0D 00 BF 20 80 0D 02 02 05 00 64 60 4B 41 AC 00 00 5F [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:01]Read from MH i2c: E2 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 03 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [20:33:01]RAPDU: 90 00 [20:33:01]wFMCommunicate OK [20:33:01]wFMCommunicate request_size=4 [20:33:01]MH_SAM_APDU [20:33:01]CAPDU: 80 0D 03 02 [20:33:01]Write to MH i2c: E2 08 00 C0 20 80 0D 03 02 00 00 00 00 5B [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:01]Read from MH i2c: E2 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 0B 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 0B 00 C0 20 00 BD 86 D6 04 14 BF 7C C2 90 00 8A [20:33:01]RAPDU: BD 86 D6 04 14 BF 7C C2 90 00 [20:33:01]wFMCommunicate OK [20:33:01]SAM_PROTO_SignData done [20:33:01]FM_MakeSignedData done [20:33:01]CreateOFDProtocolMessage [20:33:01]wFMCommunicate request_size=4 [20:33:01]MH_SAM_APDU [20:33:01]CAPDU: 80 11 00 00 [20:33:01]Write to MH i2c: E2 08 00 C1 20 80 11 00 00 00 00 00 00 5B [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:01]Read from MH i2c: E2 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 17 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: E2 17 00 C1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [20:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:33:01]wFMCommunicate OK [20:33:01]CreateOFDProtocolMessage done [20:33:01]OFDSenderStorePacket 29682 [20:33:01]StoreOFDPacket docnum=29682 [20:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 C3 07 01 07 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 14 01 00 00 F4 03 04 00 FD 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 73 00 00 35 04 06 00 5C 64 60 4B 41 AC BD 86 D6 04 14 BF 7C C2 [20:33:01]CheckFolder [20:33:01]dirname=/storage/ofd_packets [20:33:01]CheckFolder done [20:33:01]ProducePacketName [20:33:01]name=ofd_packets/00029682 [20:33:01]NVStorageSaveData ofd_packets/00029682 [20:33:01]File name is /storage/ofd_packets/00029682 [20:33:01]Write 301 bytes [20:33:01]NVStorageSaveData done [20:33:01]OFDSenderStorePacket done [20:33:01]KKMCreateOFDPacket done [20:33:01]NVStorageSaveData kkm_last_timestamp [20:33:01]File name is /storage/kkm_last_timestamp [20:33:01]Write 4 bytes [20:33:01]NVStorageSaveData done [20:33:01]ExternCall_PrintAddStr [20:33:01]wPrintStart [20:33:01]Write to MH i2c: 01 00 00 C2 20 E2 [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 C2 20 00 00 00 00 00 FF 0F F7 [20:33:01]RasterBufferAndPrint [20:33:01]line Счет N : (1)348148 [20:33:01]line ИНН: 02508201610067 [20:33:01]line Контрольно-Кассовый Чек [20:33:01]line ПРОДАЖА [20:33:01]line ТРК (МРК, ГНК) : 32 [20:33:01]line Товар: 2710124130 [20:33:01]line Аи-92-К-5 [20:33:01]line 4.630 * 64.80 [20:33:01]line = 300.02 [20:33:01]line НДС 12% НСП 1% [20:33:01]line > о реализуемом товаре [20:33:01]line ОКРУГЛЕНИЕ: -0.02 [20:33:01]line ИТОГО: 300.00 [20:33:01]line Внесено: 300.00 [20:33:01]line СДАЧА: 0.00 [20:33:01]line НСП 1% : 2.65 [20:33:01]line НДС 12% : 31.86 [20:33:01]line Наличными: 300.00 [20:33:01]line Безнал.: 0.00 [20:33:01]line Место: АЗС № 108 "Партнер Нефть" [20:33:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:33:01]line СНО: Общий режим [20:33:01]line Чек 276 15.04.2024 20:33 [20:33:01]line Смена: 117 ФФД: 1.0 [20:33:01]line ЗНМ: 0300000027 [20:33:01]line РНМ: 0000138879044617 [20:33:01]line Версия ККМ: 001 [20:33:01]line ФМ: 0000000000963154 [20:33:01]line ФД: 29682 [20:33:01]line ФПД: 101586182029740 [20:33:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T203301&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29682&fm=101586182029740&tin=02508201610067®Number=0000138879044617&sum=30000 [20:33:01]OFD Sender: Processing packet 29682 [packets to send 8, broken 7] [20:33:01]ProducePacketName [20:33:01]name=ofd_packets/00029682 [20:33:01]OFD Sender: To server: pG, [20:33:01]CommunicateWithHost lk.salyk.kg:30040 [20:33:01]ConnectInit lk.salyk.kg [20:33:01]written 0, free lines is 4095 [20:33:01]Connected sock=10 [20:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 C3 07 01 07 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 14 01 00 00 F4 03 04 00 FD 8E 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 73 00 00 35 04 06 00 5C 64 60 4B 41 AC BD 86 D6 04 14 BF 7C C2 [20:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F 4E 47 00 F8 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 39 36 33 31 35 34 10 04 04 00 F2 73 00 00 F4 03 04 00 9D 39 1D 66 B6 04 01 00 00 EF E5 8C 74 05 04 CC C6 [20:33:01]CommunicateWithHost err = 0 [20:33:01]CheckOFDResponse [20:33:01]1017 (14) - 77093643461234 [20:33:01]1041 (16) - 0000000000963154 [20:33:01]1040 (4) - 29682 [20:33:01]1012 (4) - 15.04.2024 14:28 [20:33:01]1206 (1) - 0 [20:33:01]OFD Sender: Remove packet 29682 [20:33:01]ProducePacketName [20:33:01]name=ofd_packets/00029682 [20:33:01]NVStorageDeleteData [20:33:01]Write to MH i2c: 01 00 00 EC 20 0C [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 EC 20 00 00 00 00 00 CB 0C EA [20:33:01]RasterBufferAndPrint [20:33:01]line [20:33:01]line [20:33:01]line [20:33:01]line [20:33:01]line [20:33:01]written 0, free lines is 3279 [20:33:01]MH_Cut [20:33:01]Write to MH i2c: D1 01 00 F3 20 01 E5 [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: D1 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: D1 01 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: D1 01 00 F3 20 00 E4 [20:33:01]Write to MH i2c: 01 00 00 F4 20 14 [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:02]OFD Sender: No OFD packet to send [20:33:02]*** Cut start [20:33:02]*** Partial cut [20:33:02]*** CUTSNS_PIN = 1 [20:33:02]*** CUTSNS_PIN = 0 [20:33:03]*** Brake cut motor [20:33:03]Read from MH i2c: 01 [20:33:03]MH_I2C_Read... [20:33:03]*** Stop cut motor [20:33:03]*** Cut end [20:33:03]Read from MH i2c: 01 07 00 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: 01 07 00 F4 20 00 00 00 00 00 FF 0F 29 [20:33:03]process_action close_receipt done [20:33:03]requested_data is exist [20:33:03]produce_requested_data [20:33:03]requested_item fm.sn is exist - process it [20:33:03]wFMCommunicate request_size=4 [20:33:03]MH_SAM_APDU [20:33:03]CAPDU: 80 11 00 00 [20:33:03]Write to MH i2c: E2 08 00 F5 20 80 11 00 00 00 00 00 00 8F [20:33:03]Write i2c OK [20:33:03]MH_I2C_Read... [20:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:03]Read from MH i2c: E2 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 17 00 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 17 00 F5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [20:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:33:03]wFMCommunicate OK [20:33:03]requested_item fd.num is exist - process it [20:33:03]SAM_PROTO_GetFieldsCounters [20:33:03]wFMCommunicate request_size=4 [20:33:03]MH_SAM_APDU [20:33:03]CAPDU: 80 13 00 00 [20:33:03]Write to MH i2c: E2 08 00 F6 20 80 13 00 00 00 00 00 00 92 [20:33:03]Write i2c OK [20:33:03]MH_I2C_Read... [20:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:03]Read from MH i2c: E2 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 62 00 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 62 00 F6 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 73 00 00 0E 04 04 00 75 00 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 E9 [20:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 73 00 00 0E 04 04 00 75 00 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 [20:33:03]wFMCommunicate OK [20:33:03]SAM_PROTO_GetFieldsCounters done [20:33:03]requested_item shift.num is exist - process it [20:33:03]requested_item shift.opened is exist - process it [20:33:03]req_shift_opened [20:33:03]FM_GetShiftState [20:33:03]SAM_PROTO_GetShiftState [20:33:03]wFMCommunicate request_size=4 [20:33:03]MH_SAM_APDU [20:33:03]CAPDU: 80 13 01 00 [20:33:03]Write to MH i2c: E2 08 00 F7 20 80 13 01 00 00 00 00 00 94 [20:33:03]Write i2c OK [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 [20:33:03]MH_I2C_Read... [20:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:03]Read from MH i2c: E2 0E 00 [20:33:03]MH_I2C_Read... [20:33:03]Read from MH i2c: E2 0E 00 F7 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 88 [20:33:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [20:33:03]wFMCommunicate OK [20:33:03]SAM_PROTO_GetShiftState done [20:33:03]FM_GetShiftState done [20:33:03]req_shift_opened done [20:33:03]requested_item shift.open_date is exist - process it [20:33:03]req_shift_open_date [20:33:03]req_shift_open_date done [20:33:03]produce_requested_data done [20:33:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29682,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [20:33:03]process_action_free close_receipt [20:33:03]json_value_free [20:33:03]json_value_free done [20:33:03]process_json_proto returns [20:33:03]Send response to host [20:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29682,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [20:33:03]free response buf [20:33:03]execute_script done [20:33:03]execute_script returns [20:33:03]free content buf [20:33:03]Sock 7.Close socket [20:33:03]Sock 7.Thread stoped [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:41]accept exits with 9 [21:01:41]New connection [21:01:41]New thread 3067108708 created [21:01:41]Thread 3066965348 joined [21:01:41]Waiting for new connection... [21:01:41] Sock 9.Parse request [21:01:41]Sock 9.Check first char [21:01:41]Sock 9.First char is OK [21:01:41]request: POST /json_proto HTTP/1.0 [21:01:41]Method: POST [21:01:41]URL: /json_proto [21:01:41]Method is POST - this is cgi request [21:01:41]url: /json_proto [21:01:41]query_string will be loaded in cgi processing [21:01:41]execute_cgi json_proto POST (null) [21:01:41]execute_cgi path=json_proto method=POST [21:01:41]POST find Content-Length [21:01:41]Host: 172.17.33.3:8080 [21:01:41]Content-Length: 813 [21:01:41]Content-Type: application/json [21:01:41] [21:01:41]POST finish read [21:01:41]Found Content-Length = 813 [21:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:41]execute_script... [21:01:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:41]POST & json_proto [21:01:41]process_json_proto [21:01:41]json parsed OK: [21:01:41]protocol is kg_v1.0 [21:01:41]action value=close_receipt [21:01:41]process_action close_receipt [21:01:41]cmd_close_receipt [21:01:41]MH_GetDate [21:01:41]Write to MH i2c: F0 00 00 F8 20 07 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: F0 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: F0 09 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: F0 09 00 F8 20 00 B7 95 1D 66 23 5B 8F 65 51 [21:01:41]GetLastDocTimeStamp 1713213181 [21:01:41]current date 1713214903 [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 F9 20 80 13 01 00 00 00 00 00 96 [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 F9 20 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8A [21:01:41]RAPDU: 09 00 01 F4 72 1C 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]opened in 1713140468 [21:01:41]opened+sec_in_day 1713226868 [21:01:41]quantity*price = 70056 [21:01:41]sum+1 = 70058 [21:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.57 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 277 15.04.2024 21:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29683 ФПД: 57084941664216 1/tax-web-control/client/api/v1/ticket?date=20240415T210143&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29683&fm=57084941664216&tin=02508201610067®Number=0000138879044617&sum=70057 [21:01:42]StoreToDocumentArchive [21:01:42]shift 117 fd 29683 [21:01:42]save to /storage/0117/doc_00029683 [21:01:42]save last doc name /storage/0117/doc_00029683 to /storage/kkm_last_doc_name [21:01:42]save OK [21:01:42]Clear old archive folders... [21:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:01:42]tlvbuf is 01A61720 [21:01:42]SAM_PROTO_ClearQueue [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 09 00 00 [21:01:42]Write to MH i2c: E2 08 00 06 21 80 09 00 00 00 00 00 00 99 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 03 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 03 00 06 21 00 90 00 9B [21:01:42]RAPDU: 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_ClearQueue done [21:01:42]KKMCreateOFDPacket [21:01:42]OFDProtocolAddRootSTLVToBuf [21:01:42]FM_MakeSignedData [21:01:42]FM_MakeSignedData [21:01:42]SAM_PROTO_SignData [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 0D 01 02 [21:01:42]Write to MH i2c: E2 08 00 07 21 80 0D 01 02 00 00 00 00 A1 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 03 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [21:01:42]RAPDU: 90 00 [21:01:42]wFMCommunicate OK [21:01:42]wFMCommunicate request_size=255 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 B7 95 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 73 00 00 35 04 06 00 33 EB 1F AB [21:01:42]Write to MH i2c: E2 02 01 08 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 B7 95 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 73 00 00 35 04 06 00 33 EB 1F AB 00 00 D4 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]wFMCommunicate request_size=7 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 02 02 02 7F D8 [21:01:43]Write to MH i2c: E2 0A 00 09 21 80 0D 02 02 02 00 7F D8 00 00 FF [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [21:01:43]RAPDU: 90 00 [21:01:43]wFMCommunicate OK [21:01:43]wFMCommunicate request_size=4 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 0D 03 02 [21:01:43]Write to MH i2c: E2 08 00 0A 21 80 0D 03 02 00 00 00 00 A6 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 0B 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 0B 00 0A 21 00 1E 5E 50 B9 5F A8 14 9E 90 00 E5 [21:01:43]RAPDU: 1E 5E 50 B9 5F A8 14 9E 90 00 [21:01:43]wFMCommunicate OK [21:01:43]SAM_PROTO_SignData done [21:01:43]FM_MakeSignedData done [21:01:43]CreateOFDProtocolMessage [21:01:43]wFMCommunicate request_size=4 [21:01:43]MH_SAM_APDU [21:01:43]CAPDU: 80 11 00 00 [21:01:43]Write to MH i2c: E2 08 00 0B 21 80 11 00 00 00 00 00 00 A6 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:43]Read from MH i2c: E2 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 17 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: E2 17 00 0B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [21:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:01:43]wFMCommunicate OK [21:01:43]CreateOFDProtocolMessage done [21:01:43]OFDSenderStorePacket 29683 [21:01:43]StoreOFDPacket docnum=29683 [21:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 14 04 01 EA 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 B7 95 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 73 00 00 35 04 06 00 33 EB 1F AB 7F D8 1E 5E 50 B9 5F A8 14 9E [21:01:43]CheckFolder [21:01:43]dirname=/storage/ofd_packets [21:01:43]CheckFolder done [21:01:43]ProducePacketName [21:01:43]name=ofd_packets/00029683 [21:01:43]NVStorageSaveData ofd_packets/00029683 [21:01:43]File name is /storage/ofd_packets/00029683 [21:01:43]Write 298 bytes [21:01:43]NVStorageSaveData done [21:01:43]OFDSenderStorePacket done [21:01:43]KKMCreateOFDPacket done [21:01:43]NVStorageSaveData kkm_last_timestamp [21:01:43]File name is /storage/kkm_last_timestamp [21:01:43]Write 4 bytes [21:01:43]NVStorageSaveData done [21:01:43]ExternCall_PrintAddStr [21:01:43]wPrintStart [21:01:43]Write to MH i2c: 01 00 00 0C 21 2D [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 0C 21 00 00 00 00 00 FF 0F 42 [21:01:43]RasterBufferAndPrint [21:01:43]line Счет N : (1)348151 [21:01:43]line ИНН: 02508201610067 [21:01:43]line Контрольно-Кассовый Чек [21:01:43]line ПРОДАЖА [21:01:43]line ТРК (МРК, ГНК) : 51 [21:01:43]line Товар: 2710194210 [21:01:43]line ДТ-К-5 [21:01:43]line 9.610 * 72.90 [21:01:43]line = 700.57 [21:01:43]line НДС 12% НСП 1% [21:01:43]line > о реализуемом товаре [21:01:43]line ИТОГО: 700.57 [21:01:43]line НСП 1% : 6.20 [21:01:43]line НДС 12% : 74.40 [21:01:43]line Наличными: 0.00 [21:01:43]line Безнал.: 700.57 [21:01:43]line Место: АЗС № 108 "Партнер Нефть" [21:01:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:01:43]line СНО: Общий режим [21:01:43]line Чек 277 15.04.2024 21:01 [21:01:43]line Смена: 117 ФФД: 1.0 [21:01:43]line ЗНМ: 0300000027 [21:01:43]line РНМ: 0000138879044617 [21:01:43]line Версия ККМ: 001 [21:01:43]line Платежная система: Бакай Банк [21:01:43]line ФМ: 0000000000963154 [21:01:43]line ФД: 29683 [21:01:43]line ФПД: 57084941664216 [21:01:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T210143&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29683&fm=57084941664216&tin=02508201610067®Number=0000138879044617&sum=70057 [21:01:43]OFD Sender: Processing packet 29683 [packets to send 8, broken 7] [21:01:43]ProducePacketName [21:01:43]name=ofd_packets/00029683 [21:01:43]OFD Sender: To server: pG, [21:01:43]CommunicateWithHost lk.salyk.kg:30040 [21:01:43]ConnectInit lk.salyk.kg [21:01:43]written 0, free lines is 4095 [21:01:43]Connected sock=10 [21:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D 14 04 01 EA 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 B7 95 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 73 00 00 35 04 06 00 33 EB 1F AB 7F D8 1E 5E 50 B9 5F A8 14 9E [21:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1A E3 47 00 5B 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 39 36 33 31 35 34 10 04 04 00 F3 73 00 00 F4 03 04 00 57 40 1D 66 B6 04 01 00 00 EF 02 8F CC D7 ED EE E7 [21:01:43]CommunicateWithHost err = 0 [21:01:43]CheckOFDResponse [21:01:43]1017 (14) - 77093643461234 [21:01:43]1041 (16) - 0000000000963154 [21:01:43]1040 (4) - 29683 [21:01:43]1012 (4) - 15.04.2024 14:57 [21:01:43]1206 (1) - 0 [21:01:43]OFD Sender: Remove packet 29683 [21:01:43]ProducePacketName [21:01:43]name=ofd_packets/00029683 [21:01:43]NVStorageDeleteData [21:01:43]Write to MH i2c: 01 00 00 35 21 56 [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 D4 0C 3D [21:01:43]RasterBufferAndPrint [21:01:43]line [21:01:43]line [21:01:43]line [21:01:43]line [21:01:43]line [21:01:43]written 0, free lines is 3290 [21:01:43]MH_Cut [21:01:43]Write to MH i2c: D1 01 00 3C 21 01 2F [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: D1 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: D1 01 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: D1 01 00 3C 21 00 2E [21:01:43]Write to MH i2c: 01 00 00 3D 21 5E [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:44]OFD Sender: No OFD packet to send [21:01:44]*** Cut start [21:01:44]*** Partial cut [21:01:44]*** CUTSNS_PIN = 1 [21:01:44]*** CUTSNS_PIN = 0 [21:01:45]*** Brake cut motor [21:01:45]Read from MH i2c: 01 [21:01:45]MH_I2C_Read... [21:01:45]*** Stop cut motor [21:01:45]*** Cut end [21:01:45]Read from MH i2c: 01 07 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 FF 0F 73 [21:01:45]process_action close_receipt done [21:01:45]requested_data is exist [21:01:45]produce_requested_data [21:01:45]requested_item fm.sn is exist - process it [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 11 00 00 [21:01:45]Write to MH i2c: E2 08 00 3E 21 80 11 00 00 00 00 00 00 D9 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 17 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 17 00 3E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [21:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:01:45]wFMCommunicate OK [21:01:45]requested_item fd.num is exist - process it [21:01:45]SAM_PROTO_GetFieldsCounters [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 13 00 00 [21:01:45]Write to MH i2c: E2 08 00 3F 21 80 13 00 00 00 00 00 00 DC [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 62 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 62 00 3F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 73 00 00 0E 04 04 00 75 00 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 37 [21:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 73 00 00 0E 04 04 00 75 00 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 [21:01:45]wFMCommunicate OK [21:01:45]SAM_PROTO_GetFieldsCounters done [21:01:45]requested_item shift.num is exist - process it [21:01:45]requested_item shift.opened is exist - process it [21:01:45]req_shift_opened [21:01:45]FM_GetShiftState [21:01:45]SAM_PROTO_GetShiftState [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 13 01 00 [21:01:45]Write to MH i2c: E2 08 00 40 21 80 13 01 00 00 00 00 00 DE [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0E 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0E 00 40 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D2 [21:01:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:01:45]wFMCommunicate OK [21:01:45]SAM_PROTO_GetShiftState done [21:01:45]FM_GetShiftState done [21:01:45]req_shift_opened done [21:01:45]requested_item shift.open_date is exist - process it [21:01:45]req_shift_open_date [21:01:45]req_shift_open_date done [21:01:45]produce_requested_data done [21:01:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29683,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:01:45]process_action_free close_receipt [21:01:45]json_value_free [21:01:45]json_value_free done [21:01:45]process_json_proto returns [21:01:45]Send response to host [21:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29683,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:01:45]free response buf [21:01:45]execute_script done [21:01:45]execute_script returns [21:01:45]free content buf [21:01:45]Sock 9.Close socket [21:01:45]Sock 9.Thread stoped [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14: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:55]accept exits with 7 [21:15:55]New connection [21:15:55]New thread 3066965348 created [21:15:55]Thread 3067108708 joined [21:15:55]Waiting for new connection... [21:15:55] Sock 7.Parse request [21:15:55]Sock 7.Check first char [21:15:55]Sock 7.First char is OK [21:15:55]request: POST /json_proto HTTP/1.0 [21:15:55]Method: POST [21:15:55]URL: /json_proto [21:15:55]Method is POST - this is cgi request [21:15:55]url: /json_proto [21:15:55]query_string will be loaded in cgi processing [21:15:55]execute_cgi json_proto POST (null) [21:15:55]execute_cgi path=json_proto method=POST [21:15:55]POST find Content-Length [21:15:55]Host: 172.17.33.3:8080 [21:15:55]Content-Length: 841 [21:15:55]Content-Type: application/json [21:15:55] [21:15:55]POST finish read [21:15:55]Found Content-Length = 841 [21:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 14.310, "sum" : 927.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 927.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:55]execute_script... [21:15: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)348153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 14.310, "sum" : 927.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 927.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:55]POST & json_proto [21:15:55]process_json_proto [21:15:55]json parsed OK: [21:15:55]protocol is kg_v1.0 [21:15:55]action value=close_receipt [21:15:55]process_action close_receipt [21:15:55]cmd_close_receipt [21:15:55]MH_GetDate [21:15:55]Write to MH i2c: F0 00 00 41 21 51 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: F0 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: F0 09 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: F0 09 00 41 21 00 0D 99 1D 66 23 5B 8F 65 F5 [21:15:55]GetLastDocTimeStamp 1713214903 [21:15:55]current date 1713215757 [21:15:55]FM_GetShiftState [21:15:55]SAM_PROTO_GetShiftState [21:15:55]wFMCommunicate request_size=4 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 13 01 00 [21:15:55]Write to MH i2c: E2 08 00 42 21 80 13 01 00 00 00 00 00 E0 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:55]Read from MH i2c: E2 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 0E 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 0E 00 42 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D4 [21:15:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:15:55]wFMCommunicate OK [21:15:55]SAM_PROTO_GetShiftState done [21:15:55]FM_GetShiftState done [21:15:55]opened in 1713140468 [21:15:55]opened+sec_in_day 1713226868 [21:15:55]quantity*price = 92728 [21:15:55]sum+1 = 92730 [21:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 927.29 НСП 1% : 8.21 НДС 12% : 98.47 Наличными: 0.00 Безнал.: 927.29 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 278 15.04.2024 21:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29684 ФПД: 98912971393456 1/tax-web-control/client/api/v1/ticket?date=20240415T211557&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29684&fm=98912971393456&tin=02508201610067®Number=0000138879044617&sum=92729 [21:15:56]StoreToDocumentArchive [21:15:56]shift 117 fd 29684 [21:15:56]save to /storage/0117/doc_00029684 [21:15:56]save last doc name /storage/0117/doc_00029684 to /storage/kkm_last_doc_name [21:15:56]save OK [21:15:56]Clear old archive folders... [21:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:56]tlvbuf is 01A70230 [21:15:56]SAM_PROTO_ClearQueue [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 09 00 00 [21:15:56]Write to MH i2c: E2 08 00 4F 21 80 09 00 00 00 00 00 00 E2 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [21:15:56]RAPDU: 90 00 [21:15:56]wFMCommunicate OK [21:15:56]SAM_PROTO_ClearQueue done [21:15:56]KKMCreateOFDPacket [21:15:56]OFDProtocolAddRootSTLVToBuf [21:15:56]FM_MakeSignedData [21:15:56]FM_MakeSignedData [21:15:56]SAM_PROTO_SignData [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 0D 01 02 [21:15:56]Write to MH i2c: E2 08 00 50 21 80 0D 01 02 00 00 00 00 EA [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 50 21 00 90 00 E5 [21:15:56]RAPDU: 90 00 [21:15:56]wFMCommunicate OK [21:15:56]wFMCommunicate request_size=255 [21:15:56]MH_SAM_APDU [21:15: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 E6 37 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 39 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 0D 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 73 00 00 35 04 06 00 59 [21:15:56]Write to MH i2c: E2 02 01 51 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 39 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 0D 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 73 00 00 35 04 06 00 59 00 00 CD [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [21:15:56]RAPDU: 90 00 [21:15:56]wFMCommunicate OK [21:15:56]wFMCommunicate request_size=10 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 0D 02 02 05 F5 F8 86 09 B0 [21:15:56]Write to MH i2c: E2 0D 00 52 21 80 0D 02 02 05 00 F5 F8 86 09 B0 00 00 23 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [21:15:56]RAPDU: 90 00 [21:15:56]wFMCommunicate OK [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 0D 03 02 [21:15:56]Write to MH i2c: E2 08 00 53 21 80 0D 03 02 00 00 00 00 EF [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0B 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0B 00 53 21 00 9F C4 0E ED 1F 88 61 AA 90 00 00 [21:15:56]RAPDU: 9F C4 0E ED 1F 88 61 AA 90 00 [21:15:56]wFMCommunicate OK [21:15:56]SAM_PROTO_SignData done [21:15:56]FM_MakeSignedData done [21:15:56]CreateOFDProtocolMessage [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 11 00 00 [21:15:56]Write to MH i2c: E2 08 00 54 21 80 11 00 00 00 00 00 00 EF [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 17 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 17 00 54 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [21:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:56]wFMCommunicate OK [21:15:56]CreateOFDProtocolMessage done [21:15:56]OFDSenderStorePacket 29684 [21:15:56]StoreOFDPacket docnum=29684 [21:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C3 63 07 01 4F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 39 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 0D 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 73 00 00 35 04 06 00 59 F5 F8 86 09 B0 9F C4 0E ED 1F 88 61 AA [21:15:56]CheckFolder [21:15:56]dirname=/storage/ofd_packets [21:15:56]CheckFolder done [21:15:56]ProducePacketName [21:15:56]name=ofd_packets/00029684 [21:15:56]NVStorageSaveData ofd_packets/00029684 [21:15:56]File name is /storage/ofd_packets/00029684 [21:15:56]Write 301 bytes [21:15:56]NVStorageSaveData done [21:15:56]OFDSenderStorePacket done [21:15:56]KKMCreateOFDPacket done [21:15:56]NVStorageSaveData kkm_last_timestamp [21:15:56]File name is /storage/kkm_last_timestamp [21:15:56]Write 4 bytes [21:15:56]NVStorageSaveData done [21:15:56]ExternCall_PrintAddStr [21:15:56]wPrintStart [21:15:56]Write to MH i2c: 01 00 00 55 21 76 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 55 21 00 00 00 00 00 FF 0F 8B [21:15:56]RasterBufferAndPrint [21:15:56]line Счет N : (1)348153 [21:15:56]line ИНН: 02508201610067 [21:15:56]line Контрольно-Кассовый Чек [21:15:56]line ПРОДАЖА [21:15:56]line ТРК (МРК, ГНК) : 42 [21:15:56]line Товар: 2710124130 [21:15:56]line Аи-92-К-5 [21:15:56]line 14.310 * 64.80 [21:15:56]line = 927.29 [21:15:56]line НДС 12% НСП 1% [21:15:56]line > о реализуемом товаре [21:15:56]line ИТОГО: 927.29 [21:15:56]line НСП 1% : 8.21 [21:15:56]line НДС 12% : 98.47 [21:15:56]line Наличными: 0.00 [21:15:56]line Безнал.: 927.29 [21:15:56]line Место: АЗС № 108 "Партнер Нефть" [21:15:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:15:56]line СНО: Общий режим [21:15:56]line Чек 278 15.04.2024 21:15 [21:15:56]line Смена: 117 ФФД: 1.0 [21:15:56]line ЗНМ: 0300000027 [21:15:56]line РНМ: 0000138879044617 [21:15:56]line Версия ККМ: 001 [21:15:56]line Платежная система: АКБ Кыргызстан [21:15:56]line ФМ: 0000000000963154 [21:15:56]line ФД: 29684 [21:15:56]line ФПД: 98912971393456 [21:15:56]line 1/tax-web-control/client/api/v1/ticket?date=20240415T211557&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29684&fm=98912971393456&tin=02508201610067®Number=0000138879044617&sum=92729 [21:15:57]OFD Sender: Processing packet 29684 [packets to send 8, broken 7] [21:15:57]ProducePacketName [21:15:57]name=ofd_packets/00029684 [21:15:57]OFD Sender: To server: pG, [21:15:57]CommunicateWithHost lk.salyk.kg:30040 [21:15:57]ConnectInit lk.salyk.kg [21:15:57]written 0, free lines is 4095 [21:15:57]Connected sock=10 [21:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C3 63 07 01 4F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 39 6A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 26 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 39 6A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 0D 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 73 00 00 35 04 06 00 59 F5 F8 86 09 B0 9F C4 0E ED 1F 88 61 AA [21:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D 59 47 00 0F 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 39 36 33 31 35 34 10 04 04 00 F4 73 00 00 F4 03 04 00 AD 43 1D 66 B6 04 01 00 00 44 25 34 55 92 CC 14 E1 [21:15:57]CommunicateWithHost err = 0 [21:15:57]CheckOFDResponse [21:15:57]1017 (14) - 77093643461234 [21:15:57]1041 (16) - 0000000000963154 [21:15:57]1040 (4) - 29684 [21:15:57]1012 (4) - 15.04.2024 15:11 [21:15:57]1206 (1) - 0 [21:15:57]OFD Sender: Remove packet 29684 [21:15:57]ProducePacketName [21:15:57]name=ofd_packets/00029684 [21:15:57]NVStorageDeleteData [21:15:57]Write to MH i2c: 01 00 00 7E 21 9F [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: 01 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: 01 07 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: 01 07 00 7E 21 00 00 00 00 00 E2 0C 94 [21:15:57]RasterBufferAndPrint [21:15:57]line [21:15:57]line [21:15:57]line [21:15:57]line [21:15:57]line [21:15:57]written 0, free lines is 3304 [21:15:57]MH_Cut [21:15:57]Write to MH i2c: D1 01 00 85 21 01 78 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: D1 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: D1 01 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: D1 01 00 85 21 00 77 [21:15:57]Write to MH i2c: 01 00 00 86 21 A7 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:58]OFD Sender: No OFD packet to send [21:15:58]*** Cut start [21:15:58]*** Partial cut [21:15:58]*** CUTSNS_PIN = 1 [21:15:58]*** CUTSNS_PIN = 0 [21:15:58]*** Brake cut motor [21:15:59]Read from MH i2c: 01 [21:15:59]MH_I2C_Read... [21:15:59]*** Stop cut motor [21:15:59]*** Cut end [21:15:59]Read from MH i2c: 01 07 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: 01 07 00 86 21 00 00 00 00 00 FF 0F BC [21:15:59]process_action close_receipt done [21:15:59]requested_data is exist [21:15:59]produce_requested_data [21:15:59]requested_item fm.sn is exist - process it [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 11 00 00 [21:15:59]Write to MH i2c: E2 08 00 87 21 80 11 00 00 00 00 00 00 22 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 17 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 17 00 87 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [21:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:59]wFMCommunicate OK [21:15:59]requested_item fd.num is exist - process it [21:15:59]SAM_PROTO_GetFieldsCounters [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 13 00 00 [21:15:59]Write to MH i2c: E2 08 00 88 21 80 13 00 00 00 00 00 00 25 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 62 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 62 00 88 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 73 00 00 0E 04 04 00 75 00 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 84 [21:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 73 00 00 0E 04 04 00 75 00 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 [21:15:59]wFMCommunicate OK [21:15:59]SAM_PROTO_GetFieldsCounters done [21:15:59]requested_item shift.num is exist - process it [21:15:59]requested_item shift.opened is exist - process it [21:15:59]req_shift_opened [21:15:59]FM_GetShiftState [21:15:59]SAM_PROTO_GetShiftState [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 13 01 00 [21:15:59]Write to MH i2c: E2 08 00 89 21 80 13 01 00 00 00 00 00 27 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 89 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1B [21:15:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:15:59]wFMCommunicate OK [21:15:59]SAM_PROTO_GetShiftState done [21:15:59]FM_GetShiftState done [21:15:59]req_shift_opened done [21:15:59]requested_item shift.open_date is exist - process it [21:15:59]req_shift_open_date [21:15:59]req_shift_open_date done [21:15:59]produce_requested_data done [21:15:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29684,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:15:59]process_action_free close_receipt [21:15:59]json_value_free [21:15:59]json_value_free done [21:15:59]process_json_proto returns [21:15:59]Send response to host [21:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29684,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:15:59]free response buf [21:15:59]execute_script done [21:15:59]execute_script returns [21:15:59]free content buf [21:15:59]Sock 7.Close socket [21:15:59]Sock 7.Thread stoped [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [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:04]accept exits with 9 [21:19:04]New connection [21:19:04]New thread 3067108708 created [21:19:04]Thread 3066965348 joined [21:19:04]Waiting for new connection... [21:19:04] Sock 9.Parse request [21:19:04]Sock 9.Check first char [21:19:04]Sock 9.First char is OK [21:19:04]request: POST /json_proto HTTP/1.0 [21:19:04]Method: POST [21:19:04]URL: /json_proto [21:19:04]Method is POST - this is cgi request [21:19:04]url: /json_proto [21:19:04]query_string will be loaded in cgi processing [21:19:04]execute_cgi json_proto POST (null) [21:19:04]execute_cgi path=json_proto method=POST [21:19:04]POST find Content-Length [21:19:04]Host: 172.17.33.3:8080 [21:19:04]Content-Length: 682 [21:19:04]Content-Type: application/json [21:19:04] [21:19:04]POST finish read [21:19:04]Found Content-Length = 682 [21:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:19:04]execute_script... [21:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:19:04]POST & json_proto [21:19:04]process_json_proto [21:19:04]json parsed OK: [21:19:04]protocol is kg_v1.0 [21:19:04]action value=close_receipt [21:19:04]process_action close_receipt [21:19:04]cmd_close_receipt [21:19:04]MH_GetDate [21:19:04]Write to MH i2c: F0 00 00 8A 21 9A [21:19:04]Write i2c OK [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 09 00 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: F0 09 00 8A 21 00 CA 99 1D 66 23 5B 8F 65 FB [21:19:04]GetLastDocTimeStamp 1713215757 [21:19:04]current date 1713215946 [21:19:04]FM_GetShiftState [21:19:04]SAM_PROTO_GetShiftState [21:19:04]wFMCommunicate request_size=4 [21:19:04]MH_SAM_APDU [21:19:04]CAPDU: 80 13 01 00 [21:19:04]Write to MH i2c: E2 08 00 8B 21 80 13 01 00 00 00 00 00 29 [21:19:04]Write i2c OK [21:19:04]MH_I2C_Read... [21:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:04]Read from MH i2c: E2 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: E2 0E 00 [21:19:04]MH_I2C_Read... [21:19:04]Read from MH i2c: E2 0E 00 8B 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1D [21:19:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:19:04]wFMCommunicate OK [21:19:04]SAM_PROTO_GetShiftState done [21:19:04]FM_GetShiftState done [21:19:04]opened in 1713140468 [21:19:04]opened+sec_in_day 1713226868 [21:19:04]quantity*price = 100018 [21:19:04]sum+1 = 100020 [21:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 279 15.04.2024 21:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29685 ФПД: 43599439826662 1/tax-web-control/client/api/v1/ticket?date=20240415T211906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29685&fm=43599439826662&tin=02508201610067®Number=0000138879044617&sum=100000 [21:19:05]StoreToDocumentArchive [21:19:05]shift 117 fd 29685 [21:19:05]save to /storage/0117/doc_00029685 [21:19:05]save last doc name /storage/0117/doc_00029685 to /storage/kkm_last_doc_name [21:19:05]save OK [21:19:05]Clear old archive folders... [21:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:05]tlvbuf is 01AA1DD0 [21:19:05]SAM_PROTO_ClearQueue [21:19:05]wFMCommunicate request_size=4 [21:19:05]MH_SAM_APDU [21:19:05]CAPDU: 80 09 00 00 [21:19:05]Write to MH i2c: E2 08 00 98 21 80 09 00 00 00 00 00 00 2B [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:05]Read from MH i2c: E2 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 98 21 00 90 00 2D [21:19:05]RAPDU: 90 00 [21:19:05]wFMCommunicate OK [21:19:05]SAM_PROTO_ClearQueue done [21:19:05]KKMCreateOFDPacket [21:19:05]OFDProtocolAddRootSTLVToBuf [21:19:05]FM_MakeSignedData [21:19:05]FM_MakeSignedData [21:19:05]SAM_PROTO_SignData [21:19:05]wFMCommunicate request_size=4 [21:19:05]MH_SAM_APDU [21:19:05]CAPDU: 80 0D 01 02 [21:19:05]Write to MH i2c: E2 08 00 99 21 80 0D 01 02 00 00 00 00 33 [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:05]Read from MH i2c: E2 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 [21:19:05]MH_I2C_Read... [21:19:05]Read from MH i2c: E2 03 00 99 21 00 90 00 2E [21:19:05]RAPDU: 90 00 [21:19:05]wFMCommunicate OK [21:19:05]wFMCommunicate request_size=255 [21:19:05]MH_SAM_APDU [21:19:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 CA 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 73 00 00 35 04 06 00 27 [21:19:05]Write to MH i2c: E2 02 01 9A 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 CA 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 73 00 00 35 04 06 00 27 00 00 69 [21:19:05]Write i2c OK [21:19:05]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 9A 21 00 90 00 2F [21:19:06]RAPDU: 90 00 [21:19:06]wFMCommunicate OK [21:19:06]wFMCommunicate request_size=10 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 0D 02 02 05 A7 49 1F 8E E6 [21:19:06]Write to MH i2c: E2 0D 00 9B 21 80 0D 02 02 05 00 A7 49 1F 8E E6 00 00 C3 [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [21:19:06]RAPDU: 90 00 [21:19:06]wFMCommunicate OK [21:19:06]wFMCommunicate request_size=4 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 0D 03 02 [21:19:06]Write to MH i2c: E2 08 00 9C 21 80 0D 03 02 00 00 00 00 38 [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 0B 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 0B 00 9C 21 00 8D 43 1F A4 09 8F D9 E6 90 00 23 [21:19:06]RAPDU: 8D 43 1F A4 09 8F D9 E6 90 00 [21:19:06]wFMCommunicate OK [21:19:06]SAM_PROTO_SignData done [21:19:06]FM_MakeSignedData done [21:19:06]CreateOFDProtocolMessage [21:19:06]wFMCommunicate request_size=4 [21:19:06]MH_SAM_APDU [21:19:06]CAPDU: 80 11 00 00 [21:19:06]Write to MH i2c: E2 08 00 9D 21 80 11 00 00 00 00 00 00 38 [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:06]Read from MH i2c: E2 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 17 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: E2 17 00 9D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [21:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:06]wFMCommunicate OK [21:19:06]CreateOFDProtocolMessage done [21:19:06]OFDSenderStorePacket 29685 [21:19:06]StoreOFDPacket docnum=29685 [21:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BD 8E 07 01 A1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 CA 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 73 00 00 35 04 06 00 27 A7 49 1F 8E E6 8D 43 1F A4 09 8F D9 E6 [21:19:06]CheckFolder [21:19:06]dirname=/storage/ofd_packets [21:19:06]CheckFolder done [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00029685 [21:19:06]NVStorageSaveData ofd_packets/00029685 [21:19:06]File name is /storage/ofd_packets/00029685 [21:19:06]Write 301 bytes [21:19:06]NVStorageSaveData done [21:19:06]OFDSenderStorePacket done [21:19:06]KKMCreateOFDPacket done [21:19:06]NVStorageSaveData kkm_last_timestamp [21:19:06]File name is /storage/kkm_last_timestamp [21:19:06]Write 4 bytes [21:19:06]NVStorageSaveData done [21:19:06]ExternCall_PrintAddStr [21:19:06]wPrintStart [21:19:06]Write to MH i2c: 01 00 00 9E 21 BF [21:19:06]Write i2c OK [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 [21:19:06]MH_I2C_Read... [21:19:06]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 FF 0F D4 [21:19:06]RasterBufferAndPrint [21:19:06]line Счет N : (1)348156 [21:19:06]line ИНН: 02508201610067 [21:19:06]line Контрольно-Кассовый Чек [21:19:06]line ПРОДАЖА [21:19:06]line ТРК (МРК, ГНК) : 43 [21:19:06]line Товар: 2710124500 [21:19:06]line Аи-95-К-5 [21:19:06]line 13.720 * 72.90 [21:19:06]line = 1000.19 [21:19:06]line НДС 12% НСП 1% [21:19:06]line > о реализуемом товаре [21:19:06]line ОКРУГЛЕНИЕ: -0.19 [21:19:06]line ИТОГО: 1000.00 [21:19:06]line Внесено: 1000.00 [21:19:06]line СДАЧА: 0.00 [21:19:06]line НСП 1% : 8.85 [21:19:06]line НДС 12% : 106.21 [21:19:06]line Наличными: 1000.00 [21:19:06]line Безнал.: 0.00 [21:19:06]line Место: АЗС № 108 "Партнер Нефть" [21:19:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:19:06]line СНО: Общий режим [21:19:06]line Чек 279 15.04.2024 21:19 [21:19:06]line Смена: 117 ФФД: 1.0 [21:19:06]line ЗНМ: 0300000027 [21:19:06]line РНМ: 0000138879044617 [21:19:06]line Версия ККМ: 001 [21:19:06]line ФМ: 0000000000963154 [21:19:06]line ФД: 29685 [21:19:06]line ФПД: 43599439826662 [21:19:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T211906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29685&fm=43599439826662&tin=02508201610067®Number=0000138879044617&sum=100000 [21:19:06]OFD Sender: Processing packet 29685 [packets to send 8, broken 7] [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00029685 [21:19:06]OFD Sender: To server: pG, [21:19:06]CommunicateWithHost lk.salyk.kg:30040 [21:19:06]ConnectInit lk.salyk.kg [21:19:06]written 0, free lines is 4095 [21:19:06]Connected sock=10 [21:19:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BD 8E 07 01 A1 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 CA 99 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 73 00 00 35 04 06 00 27 A7 49 1F 8E E6 8D 43 1F A4 09 8F D9 E6 [21:19:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 1A 47 00 DF 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 39 36 33 31 35 34 10 04 04 00 F5 73 00 00 F4 03 04 00 6A 44 1D 66 B6 04 01 00 00 1F B6 93 70 5F 0B 9D 13 [21:19:06]CommunicateWithHost err = 0 [21:19:06]CheckOFDResponse [21:19:06]1017 (14) - 77093643461234 [21:19:06]1041 (16) - 0000000000963154 [21:19:06]1040 (4) - 29685 [21:19:06]1012 (4) - 15.04.2024 15:14 [21:19:06]1206 (1) - 0 [21:19:06]OFD Sender: Remove packet 29685 [21:19:06]ProducePacketName [21:19:06]name=ofd_packets/00029685 [21:19:06]NVStorageDeleteData [21:19:07]Write to MH i2c: 01 00 00 C8 21 E9 [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 07 00 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: 01 07 00 C8 21 00 00 00 00 00 C0 0C BC [21:19:07]RasterBufferAndPrint [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]line [21:19:07]written 0, free lines is 3270 [21:19:07]MH_Cut [21:19:07]Write to MH i2c: D1 01 00 CF 21 01 C2 [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 01 00 [21:19:07]MH_I2C_Read... [21:19:07]Read from MH i2c: D1 01 00 CF 21 00 C1 [21:19:07]Write to MH i2c: 01 00 00 D0 21 F1 [21:19:07]Write i2c OK [21:19:07]MH_I2C_Read... [21:19:07]OFD Sender: No OFD packet to send [21:19:07]*** Cut start [21:19:07]*** Partial cut [21:19:07]*** CUTSNS_PIN = 1 [21:19:07]*** CUTSNS_PIN = 0 [21:19:08]*** Brake cut motor [21:19:08]Read from MH i2c: 01 [21:19:08]MH_I2C_Read... [21:19:08]*** Stop cut motor [21:19:08]*** Cut end [21:19:08]Read from MH i2c: 01 07 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [21:19:08]process_action close_receipt done [21:19:08]requested_data is exist [21:19:08]produce_requested_data [21:19:08]requested_item fm.sn is exist - process it [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 11 00 00 [21:19:08]Write to MH i2c: E2 08 00 D1 21 80 11 00 00 00 00 00 00 6C [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 17 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 17 00 D1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [21:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:19:08]wFMCommunicate OK [21:19:08]requested_item fd.num is exist - process it [21:19:08]SAM_PROTO_GetFieldsCounters [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 13 00 00 [21:19:08]Write to MH i2c: E2 08 00 D2 21 80 13 00 00 00 00 00 00 6F [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 62 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 62 00 D2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 73 00 00 0E 04 04 00 75 00 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 D2 [21:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 73 00 00 0E 04 04 00 75 00 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 [21:19:08]wFMCommunicate OK [21:19:08]SAM_PROTO_GetFieldsCounters done [21:19:08]requested_item shift.num is exist - process it [21:19:08]requested_item shift.opened is exist - process it [21:19:08]req_shift_opened [21:19:08]FM_GetShiftState [21:19:08]SAM_PROTO_GetShiftState [21:19:08]wFMCommunicate request_size=4 [21:19:08]MH_SAM_APDU [21:19:08]CAPDU: 80 13 01 00 [21:19:08]Write to MH i2c: E2 08 00 D3 21 80 13 01 00 00 00 00 00 71 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:08]Read from MH i2c: E2 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: E2 0E 00 D3 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 65 [21:19:08]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:19:08]wFMCommunicate OK [21:19:08]SAM_PROTO_GetShiftState done [21:19:08]FM_GetShiftState done [21:19:08]req_shift_opened done [21:19:08]requested_item shift.open_date is exist - process it [21:19:08]req_shift_open_date [21:19:08]req_shift_open_date done [21:19:08]produce_requested_data done [21:19:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29685,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:19:08]process_action_free close_receipt [21:19:08]json_value_free [21:19:08]json_value_free done [21:19:08]process_json_proto returns [21:19:08]Send response to host [21:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29685,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:19:08]free response buf [21:19:08]execute_script done [21:19:08]execute_script returns [21:19:08]free content buf [21:19:08]Sock 9.Close socket [21:19:08]Sock 9.Thread stoped [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:04]accept exits with 7 [21:20:04]New connection [21:20:04]New thread 3066965348 created [21:20:04]Thread 3067108708 joined [21:20:04]Waiting for new connection... [21:20:04] Sock 7.Parse request [21:20:04]Sock 7.Check first char [21:20:04]Sock 7.First char is OK [21:20:04]request: POST /json_proto HTTP/1.0 [21:20:04]Method: POST [21:20:04]URL: /json_proto [21:20:04]Method is POST - this is cgi request [21:20:04]url: /json_proto [21:20:04]query_string will be loaded in cgi processing [21:20:04]execute_cgi json_proto POST (null) [21:20:04]execute_cgi path=json_proto method=POST [21:20:04]POST find Content-Length [21:20:04]Host: 172.17.33.3:8080 [21:20:04]Content-Length: 843 [21:20:04]Content-Type: application/json [21:20:04] [21:20:04]POST finish read [21:20:04]Found Content-Length = 843 [21:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 40.000, "sum" : 2592.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" : 2592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:04]execute_script... [21:20: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)348155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 40.000, "sum" : 2592.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" : 2592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:04]POST & json_proto [21:20:04]process_json_proto [21:20:04]json parsed OK: [21:20:04]protocol is kg_v1.0 [21:20:04]action value=close_receipt [21:20:04]process_action close_receipt [21:20:04]cmd_close_receipt [21:20:04]MH_GetDate [21:20:04]Write to MH i2c: F0 00 00 D4 21 E4 [21:20:04]Write i2c OK [21:20:04]MH_I2C_Read... [21:20:04]Read from MH i2c: F0 [21:20:04]MH_I2C_Read... [21:20:04]Read from MH i2c: F0 09 00 [21:20:04]MH_I2C_Read... [21:20:04]Read from MH i2c: F0 09 00 D4 21 00 07 9A 1D 66 23 5B 8F 65 83 [21:20:04]GetLastDocTimeStamp 1713215946 [21:20:04]current date 1713216007 [21:20:04]FM_GetShiftState [21:20:04]SAM_PROTO_GetShiftState [21:20:04]wFMCommunicate request_size=4 [21:20:04]MH_SAM_APDU [21:20:04]CAPDU: 80 13 01 00 [21:20:04]Write to MH i2c: E2 08 00 D5 21 80 13 01 00 00 00 00 00 73 [21:20:04]Write i2c OK [21:20:04]MH_I2C_Read... [21:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:04]Read from MH i2c: E2 [21:20:04]MH_I2C_Read... [21:20:04]Read from MH i2c: E2 0E 00 [21:20:04]MH_I2C_Read... [21:20:04]Read from MH i2c: E2 0E 00 D5 21 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 67 [21:20:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:20:04]wFMCommunicate OK [21:20:04]SAM_PROTO_GetShiftState done [21:20:04]FM_GetShiftState done [21:20:04]opened in 1713140468 [21:20:04]opened+sec_in_day 1713226868 [21:20:04]quantity*price = 259200 [21:20:04]sum+1 = 259201 [21:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2592.00 НСП 1% : 22.94 НДС 12% : 275.26 Наличными: 0.00 Безнал.: 2592.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 280 15.04.2024 21:20 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29686 ФПД: 191564042498438 1/tax-web-control/client/api/v1/ticket?date=20240415T212007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29686&fm=191564042498438&tin=02508201610067®Number=0000138879044617&sum=259200 [21:20:06]StoreToDocumentArchive [21:20:06]shift 117 fd 29686 [21:20:06]save to /storage/0117/doc_00029686 [21:20:06]save last doc name /storage/0117/doc_00029686 to /storage/kkm_last_doc_name [21:20:06]save OK [21:20:06]Clear old archive folders... [21:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:06]tlvbuf is 01A9A6A0 [21:20:06]SAM_PROTO_ClearQueue [21:20:06]wFMCommunicate request_size=4 [21:20:06]MH_SAM_APDU [21:20:06]CAPDU: 80 09 00 00 [21:20:06]Write to MH i2c: E2 08 00 E2 21 80 09 00 00 00 00 00 00 75 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 E2 21 00 90 00 77 [21:20:06]RAPDU: 90 00 [21:20:06]wFMCommunicate OK [21:20:06]SAM_PROTO_ClearQueue done [21:20:06]KKMCreateOFDPacket [21:20:06]OFDProtocolAddRootSTLVToBuf [21:20:06]FM_MakeSignedData [21:20:06]FM_MakeSignedData [21:20:06]SAM_PROTO_SignData [21:20:06]wFMCommunicate request_size=4 [21:20:06]MH_SAM_APDU [21:20:06]CAPDU: 80 0D 01 02 [21:20:06]Write to MH i2c: E2 08 00 E3 21 80 0D 01 02 00 00 00 00 7D [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 E3 21 00 90 00 78 [21:20:06]RAPDU: 90 00 [21:20:06]wFMCommunicate OK [21:20:06]wFMCommunicate request_size=255 [21:20:06]MH_SAM_APDU [21:20: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 40 9C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 80 F4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 F4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 F4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 07 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 73 00 00 35 04 06 00 AE [21:20:06]Write to MH i2c: E2 02 01 E4 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 80 F4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 F4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 F4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 07 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 73 00 00 35 04 06 00 AE 00 00 06 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 E4 21 00 90 00 79 [21:20:06]RAPDU: 90 00 [21:20:06]wFMCommunicate OK [21:20:06]wFMCommunicate request_size=10 [21:20:06]MH_SAM_APDU [21:20:06]CAPDU: 80 0D 02 02 05 39 FA B4 71 86 [21:20:06]Write to MH i2c: E2 0D 00 E5 21 80 0D 02 02 05 00 39 FA B4 71 86 00 00 68 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 03 00 E5 21 00 90 00 7A [21:20:06]RAPDU: 90 00 [21:20:06]wFMCommunicate OK [21:20:06]wFMCommunicate request_size=4 [21:20:06]MH_SAM_APDU [21:20:06]CAPDU: 80 0D 03 02 [21:20:06]Write to MH i2c: E2 08 00 E6 21 80 0D 03 02 00 00 00 00 82 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 0B 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 0B 00 E6 21 00 34 E5 3E 4F 06 26 DB 55 90 00 85 [21:20:06]RAPDU: 34 E5 3E 4F 06 26 DB 55 90 00 [21:20:06]wFMCommunicate OK [21:20:06]SAM_PROTO_SignData done [21:20:06]FM_MakeSignedData done [21:20:06]CreateOFDProtocolMessage [21:20:06]wFMCommunicate request_size=4 [21:20:06]MH_SAM_APDU [21:20:06]CAPDU: 80 11 00 00 [21:20:06]Write to MH i2c: E2 08 00 E7 21 80 11 00 00 00 00 00 00 82 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:06]Read from MH i2c: E2 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 17 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: E2 17 00 E7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [21:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:20:06]wFMCommunicate OK [21:20:06]CreateOFDProtocolMessage done [21:20:06]OFDSenderStorePacket 29686 [21:20:06]StoreOFDPacket docnum=29686 [21:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D9 02 07 01 33 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 40 9C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 80 F4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 F4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 F4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 07 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 73 00 00 35 04 06 00 AE 39 FA B4 71 86 34 E5 3E 4F 06 26 DB 55 [21:20:06]CheckFolder [21:20:06]dirname=/storage/ofd_packets [21:20:06]CheckFolder done [21:20:06]ProducePacketName [21:20:06]name=ofd_packets/00029686 [21:20:06]NVStorageSaveData ofd_packets/00029686 [21:20:06]File name is /storage/ofd_packets/00029686 [21:20:06]Write 301 bytes [21:20:06]NVStorageSaveData done [21:20:06]OFDSenderStorePacket done [21:20:06]KKMCreateOFDPacket done [21:20:06]NVStorageSaveData kkm_last_timestamp [21:20:06]File name is /storage/kkm_last_timestamp [21:20:06]Write 4 bytes [21:20:06]NVStorageSaveData done [21:20:06]ExternCall_PrintAddStr [21:20:06]wPrintStart [21:20:06]Write to MH i2c: 01 00 00 E8 21 09 [21:20:06]Write i2c OK [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: 01 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: 01 07 00 [21:20:06]MH_I2C_Read... [21:20:06]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 FF 0F 1E [21:20:06]RasterBufferAndPrint [21:20:06]line Счет N : (1)348155 [21:20:06]line ИНН: 02508201610067 [21:20:06]line Контрольно-Кассовый Чек [21:20:06]line ПРОДАЖА [21:20:06]line ТРК (МРК, ГНК) : 13 [21:20:06]line Товар: 2710124130 [21:20:06]line Аи-92-К-5 [21:20:06]line 40.000 * 64.80 [21:20:06]line = 2592.00 [21:20:06]line НДС 12% НСП 1% [21:20:06]line > о реализуемом товаре [21:20:06]line ИТОГО: 2592.00 [21:20:06]line НСП 1% : 22.94 [21:20:06]line НДС 12% : 275.26 [21:20:06]line Наличными: 0.00 [21:20:06]line Безнал.: 2592.00 [21:20:06]line Место: АЗС № 108 "Партнер Нефть" [21:20:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:20:06]line СНО: Общий режим [21:20:06]line Чек 280 15.04.2024 21:20 [21:20:06]line Смена: 117 ФФД: 1.0 [21:20:06]line ЗНМ: 0300000027 [21:20:06]line РНМ: 0000138879044617 [21:20:06]line Версия ККМ: 001 [21:20:06]line Платежная система: АКБ Кыргызстан [21:20:06]line ФМ: 0000000000963154 [21:20:06]line ФД: 29686 [21:20:06]line ФПД: 191564042498438 [21:20:06]line 1/tax-web-control/client/api/v1/ticket?date=20240415T212007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29686&fm=191564042498438&tin=02508201610067®Number=0000138879044617&sum=259200 [21:20:06]OFD Sender: Processing packet 29686 [packets to send 8, broken 7] [21:20:06]ProducePacketName [21:20:06]name=ofd_packets/00029686 [21:20:06]OFD Sender: To server: pG, [21:20:06]CommunicateWithHost lk.salyk.kg:30040 [21:20:06]ConnectInit lk.salyk.kg [21:20:06]written 0, free lines is 4095 [21:20:07]Connected sock=10 [21:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D9 02 07 01 33 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 40 9C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 80 F4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 F4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 F4 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 07 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 73 00 00 35 04 06 00 AE 39 FA B4 71 86 34 E5 3E 4F 06 26 DB 55 [21:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1A 16 47 00 DD 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 39 36 33 31 35 34 10 04 04 00 F6 73 00 00 F4 03 04 00 A7 44 1D 66 B6 04 01 00 00 3F B1 E8 36 72 D9 F6 C5 [21:20:07]CommunicateWithHost err = 0 [21:20:07]CheckOFDResponse [21:20:07]1017 (14) - 77093643461234 [21:20:07]1041 (16) - 0000000000963154 [21:20:07]1040 (4) - 29686 [21:20:07]1012 (4) - 15.04.2024 15:15 [21:20:07]1206 (1) - 0 [21:20:07]OFD Sender: Remove packet 29686 [21:20:07]ProducePacketName [21:20:07]name=ofd_packets/00029686 [21:20:07]NVStorageDeleteData [21:20:07]Write to MH i2c: 01 00 00 11 22 33 [21:20:07]Write i2c OK [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: 01 [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: 01 07 00 [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: 01 07 00 11 22 00 00 00 00 00 EC 0C 32 [21:20:07]RasterBufferAndPrint [21:20:07]line [21:20:07]line [21:20:07]line [21:20:07]line [21:20:07]line [21:20:07]written 0, free lines is 3314 [21:20:07]MH_Cut [21:20:07]Write to MH i2c: D1 01 00 18 22 01 0C [21:20:07]Write i2c OK [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: D1 [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: D1 01 00 [21:20:07]MH_I2C_Read... [21:20:07]Read from MH i2c: D1 01 00 18 22 00 0B [21:20:07]Write to MH i2c: 01 00 00 19 22 3B [21:20:07]Write i2c OK [21:20:07]MH_I2C_Read... [21:20:07]OFD Sender: No OFD packet to send [21:20:08]*** Cut start [21:20:08]*** Partial cut [21:20:08]*** CUTSNS_PIN = 1 [21:20:08]*** CUTSNS_PIN = 0 [21:20:08]*** Brake cut motor [21:20:08]Read from MH i2c: 01 [21:20:08]MH_I2C_Read... [21:20:08]*** Stop cut motor [21:20:08]*** Cut end [21:20:08]Read from MH i2c: 01 07 00 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: 01 07 00 19 22 00 00 00 00 00 FF 0F 50 [21:20:08]process_action close_receipt done [21:20:08]requested_data is exist [21:20:08]produce_requested_data [21:20:08]requested_item fm.sn is exist - process it [21:20:08]wFMCommunicate request_size=4 [21:20:08]MH_SAM_APDU [21:20:08]CAPDU: 80 11 00 00 [21:20:08]Write to MH i2c: E2 08 00 1A 22 80 11 00 00 00 00 00 00 B6 [21:20:08]Write i2c OK [21:20:08]MH_I2C_Read... [21:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:08]Read from MH i2c: E2 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: E2 17 00 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: E2 17 00 1A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [21:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:20:08]wFMCommunicate OK [21:20:08]requested_item fd.num is exist - process it [21:20:08]SAM_PROTO_GetFieldsCounters [21:20:08]wFMCommunicate request_size=4 [21:20:08]MH_SAM_APDU [21:20:08]CAPDU: 80 13 00 00 [21:20:08]Write to MH i2c: E2 08 00 1B 22 80 13 00 00 00 00 00 00 B9 [21:20:08]Write i2c OK [21:20:08]MH_I2C_Read... [21:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:09]Read from MH i2c: E2 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 62 00 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 62 00 1B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 73 00 00 0E 04 04 00 75 00 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 20 [21:20:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 73 00 00 0E 04 04 00 75 00 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 [21:20:09]wFMCommunicate OK [21:20:09]SAM_PROTO_GetFieldsCounters done [21:20:09]requested_item shift.num is exist - process it [21:20:09]requested_item shift.opened is exist - process it [21:20:09]req_shift_opened [21:20:09]FM_GetShiftState [21:20:09]SAM_PROTO_GetShiftState [21:20:09]wFMCommunicate request_size=4 [21:20:09]MH_SAM_APDU [21:20:09]CAPDU: 80 13 01 00 [21:20:09]Write to MH i2c: E2 08 00 1C 22 80 13 01 00 00 00 00 00 BB [21:20:09]Write i2c OK [21:20:09]MH_I2C_Read... [21:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:09]Read from MH i2c: E2 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 0E 00 [21:20:09]MH_I2C_Read... [21:20:09]Read from MH i2c: E2 0E 00 1C 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 AF [21:20:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:20:09]wFMCommunicate OK [21:20:09]SAM_PROTO_GetShiftState done [21:20:09]FM_GetShiftState done [21:20:09]req_shift_opened done [21:20:09]requested_item shift.open_date is exist - process it [21:20:09]req_shift_open_date [21:20:09]req_shift_open_date done [21:20:09]produce_requested_data done [21:20:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29686,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:20:09]process_action_free close_receipt [21:20:09]json_value_free [21:20:09]json_value_free done [21:20:09]process_json_proto returns [21:20:09]Send response to host [21:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29686,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:20:09]free response buf [21:20:09]execute_script done [21:20:09]execute_script returns [21:20:09]free content buf [21:20:09]Sock 7.Close socket [21:20:09]Sock 7.Thread stoped [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:55]accept exits with 9 [21:22:55]New connection [21:22:55]New thread 3067108708 created [21:22:55]Thread 3066965348 joined [21:22:55]Waiting for new connection... [21:22:55] Sock 9.Parse request [21:22:55]Sock 9.Check first char [21:22:55]Sock 9.First char is OK [21:22:55]request: POST /json_proto HTTP/1.0 [21:22:55]Method: POST [21:22:55]URL: /json_proto [21:22:55]Method is POST - this is cgi request [21:22:55]url: /json_proto [21:22:55]query_string will be loaded in cgi processing [21:22:55]execute_cgi json_proto POST (null) [21:22:55]execute_cgi path=json_proto method=POST [21:22:55]POST find Content-Length [21:22:55]Host: 172.17.33.3:8080 [21:22:55]Content-Length: 843 [21:22:55]Content-Type: application/json [21:22:55] [21:22:55]POST finish read [21:22:55]Found Content-Length = 843 [21:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:55]execute_script... [21:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:55]POST & json_proto [21:22:55]process_json_proto [21:22:55]json parsed OK: [21:22:55]protocol is kg_v1.0 [21:22:55]action value=close_receipt [21:22:55]process_action close_receipt [21:22:55]cmd_close_receipt [21:22:55]MH_GetDate [21:22:55]Write to MH i2c: F0 00 00 1D 22 2E [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: F0 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: F0 09 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: F0 09 00 1D 22 00 B1 9A 1D 66 23 5B 8F 65 77 [21:22:55]GetLastDocTimeStamp 1713216007 [21:22:55]current date 1713216177 [21:22:55]FM_GetShiftState [21:22:55]SAM_PROTO_GetShiftState [21:22:55]wFMCommunicate request_size=4 [21:22:55]MH_SAM_APDU [21:22:55]CAPDU: 80 13 01 00 [21:22:55]Write to MH i2c: E2 08 00 1E 22 80 13 01 00 00 00 00 00 BD [21:22:55]Write i2c OK [21:22:55]MH_I2C_Read... [21:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:55]Read from MH i2c: E2 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 0E 00 [21:22:55]MH_I2C_Read... [21:22:55]Read from MH i2c: E2 0E 00 1E 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B1 [21:22:55]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:22:55]wFMCommunicate OK [21:22:55]SAM_PROTO_GetShiftState done [21:22:55]FM_GetShiftState done [21:22:55]opened in 1713140468 [21:22:55]opened+sec_in_day 1713226868 [21:22:55]quantity*price = 100051 [21:22:55]sum+1 = 100052 [21:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 281 15.04.2024 21:22 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29687 ФПД: 98143397429315 1/tax-web-control/client/api/v1/ticket?date=20240415T212257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29687&fm=98143397429315&tin=02508201610067®Number=0000138879044617&sum=100051 [21:22:56]StoreToDocumentArchive [21:22:56]shift 117 fd 29687 [21:22:56]save to /storage/0117/doc_00029687 [21:22:56]save last doc name /storage/0117/doc_00029687 to /storage/kkm_last_doc_name [21:22:56]save OK [21:22:56]Clear old archive folders... [21:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:56]tlvbuf is 01A9A6B0 [21:22:56]SAM_PROTO_ClearQueue [21:22:56]wFMCommunicate request_size=4 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 09 00 00 [21:22:56]Write to MH i2c: E2 08 00 2B 22 80 09 00 00 00 00 00 00 BF [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 2B 22 00 90 00 C1 [21:22:56]RAPDU: 90 00 [21:22:56]wFMCommunicate OK [21:22:56]SAM_PROTO_ClearQueue done [21:22:56]KKMCreateOFDPacket [21:22:56]OFDProtocolAddRootSTLVToBuf [21:22:56]FM_MakeSignedData [21:22:56]FM_MakeSignedData [21:22:56]SAM_PROTO_SignData [21:22:56]wFMCommunicate request_size=4 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 0D 01 02 [21:22:56]Write to MH i2c: E2 08 00 2C 22 80 0D 01 02 00 00 00 00 C7 [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 2C 22 00 90 00 C2 [21:22:56]RAPDU: 90 00 [21:22:56]wFMCommunicate OK [21:22:56]wFMCommunicate request_size=255 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 B1 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 73 00 00 35 04 06 00 59 [21:22:56]Write to MH i2c: E2 02 01 2D 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 B1 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 73 00 00 35 04 06 00 59 00 00 33 [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 2D 22 00 90 00 C3 [21:22:56]RAPDU: 90 00 [21:22:56]wFMCommunicate OK [21:22:56]wFMCommunicate request_size=10 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 0D 02 02 05 42 CA 57 40 43 [21:22:56]Write to MH i2c: E2 0D 00 2E 22 80 0D 02 02 05 00 42 CA 57 40 43 00 00 BA [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 03 00 2E 22 00 90 00 C4 [21:22:56]RAPDU: 90 00 [21:22:56]wFMCommunicate OK [21:22:56]wFMCommunicate request_size=4 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 0D 03 02 [21:22:56]Write to MH i2c: E2 08 00 2F 22 80 0D 03 02 00 00 00 00 CC [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 0B 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 0B 00 2F 22 00 12 26 6B A8 71 CC 8F CA 90 00 AE [21:22:56]RAPDU: 12 26 6B A8 71 CC 8F CA 90 00 [21:22:56]wFMCommunicate OK [21:22:56]SAM_PROTO_SignData done [21:22:56]FM_MakeSignedData done [21:22:56]CreateOFDProtocolMessage [21:22:56]wFMCommunicate request_size=4 [21:22:56]MH_SAM_APDU [21:22:56]CAPDU: 80 11 00 00 [21:22:56]Write to MH i2c: E2 08 00 30 22 80 11 00 00 00 00 00 00 CC [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:56]Read from MH i2c: E2 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 17 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: E2 17 00 30 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [21:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:22:56]wFMCommunicate OK [21:22:56]CreateOFDProtocolMessage done [21:22:56]OFDSenderStorePacket 29687 [21:22:56]StoreOFDPacket docnum=29687 [21:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF CA 07 01 94 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 B1 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 73 00 00 35 04 06 00 59 42 CA 57 40 43 12 26 6B A8 71 CC 8F CA [21:22:56]CheckFolder [21:22:56]dirname=/storage/ofd_packets [21:22:56]CheckFolder done [21:22:56]ProducePacketName [21:22:56]name=ofd_packets/00029687 [21:22:56]NVStorageSaveData ofd_packets/00029687 [21:22:56]File name is /storage/ofd_packets/00029687 [21:22:56]Write 301 bytes [21:22:56]NVStorageSaveData done [21:22:56]OFDSenderStorePacket done [21:22:56]KKMCreateOFDPacket done [21:22:56]NVStorageSaveData kkm_last_timestamp [21:22:56]File name is /storage/kkm_last_timestamp [21:22:56]Write 4 bytes [21:22:56]NVStorageSaveData done [21:22:56]ExternCall_PrintAddStr [21:22:56]wPrintStart [21:22:56]Write to MH i2c: 01 00 00 31 22 53 [21:22:56]Write i2c OK [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 07 00 [21:22:56]MH_I2C_Read... [21:22:56]Read from MH i2c: 01 07 00 31 22 00 00 00 00 00 FF 0F 68 [21:22:56]RasterBufferAndPrint [21:22:56]line Счет N : (1)348158 [21:22:56]line ИНН: 02508201610067 [21:22:56]line Контрольно-Кассовый Чек [21:22:56]line ПРОДАЖА [21:22:56]line ТРК (МРК, ГНК) : 13 [21:22:56]line Товар: 2710124130 [21:22:56]line Аи-92-К-5 [21:22:56]line 15.440 * 64.80 [21:22:56]line = 1000.51 [21:22:56]line НДС 12% НСП 1% [21:22:56]line > о реализуемом товаре [21:22:56]line ИТОГО: 1000.51 [21:22:56]line НСП 1% : 8.85 [21:22:56]line НДС 12% : 106.25 [21:22:56]line Наличными: 0.00 [21:22:56]line Безнал.: 1000.51 [21:22:56]line Место: АЗС № 108 "Партнер Нефть" [21:22:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:22:56]line СНО: Общий режим [21:22:56]line Чек 281 15.04.2024 21:22 [21:22:56]line Смена: 117 ФФД: 1.0 [21:22:56]line ЗНМ: 0300000027 [21:22:56]line РНМ: 0000138879044617 [21:22:56]line Версия ККМ: 001 [21:22:56]line Платежная система: АКБ Кыргызстан [21:22:56]line ФМ: 0000000000963154 [21:22:56]line ФД: 29687 [21:22:56]line ФПД: 98143397429315 [21:22:56]line 1/tax-web-control/client/api/v1/ticket?date=20240415T212257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29687&fm=98143397429315&tin=02508201610067®Number=0000138879044617&sum=100051 [21:22:57]OFD Sender: Processing packet 29687 [packets to send 8, broken 7] [21:22:57]ProducePacketName [21:22:57]name=ofd_packets/00029687 [21:22:57]OFD Sender: To server: pG, [21:22:57]CommunicateWithHost lk.salyk.kg:30040 [21:22:57]ConnectInit lk.salyk.kg [21:22:57]written 0, free lines is 4095 [21:22:57]Connected sock=10 [21:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF CA 07 01 94 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 B1 9A 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 73 00 00 35 04 06 00 59 42 CA 57 40 43 12 26 6B A8 71 CC 8F CA [21:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 D9 47 00 16 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 73 00 00 F4 03 04 00 51 45 1D 66 B6 04 01 00 00 55 81 34 33 B6 89 CA B0 [21:22:57]CommunicateWithHost err = 0 [21:22:57]CheckOFDResponse [21:22:57]1017 (14) - 77093643461234 [21:22:57]1041 (16) - 0000000000963154 [21:22:57]1040 (4) - 29687 [21:22:57]1012 (4) - 15.04.2024 15:18 [21:22:57]1206 (1) - 0 [21:22:57]OFD Sender: Remove packet 29687 [21:22:57]ProducePacketName [21:22:57]name=ofd_packets/00029687 [21:22:57]NVStorageDeleteData [21:22:57]Write to MH i2c: 01 00 00 5A 22 7C [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: 01 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: 01 07 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: 01 07 00 5A 22 00 00 00 00 00 DE 0C 6D [21:22:57]RasterBufferAndPrint [21:22:57]line [21:22:57]line [21:22:57]line [21:22:57]line [21:22:57]line [21:22:57]written 0, free lines is 3300 [21:22:57]MH_Cut [21:22:57]Write to MH i2c: D1 01 00 61 22 01 55 [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: D1 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: D1 01 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: D1 01 00 61 22 00 54 [21:22:57]Write to MH i2c: 01 00 00 62 22 84 [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]OFD Sender: No OFD packet to send [21:22:58]*** Cut start [21:22:58]*** Partial cut [21:22:58]*** CUTSNS_PIN = 1 [21:22:58]*** CUTSNS_PIN = 0 [21:22:58]*** Brake cut motor [21:22:58]Read from MH i2c: 01 [21:22:58]*** Stop cut motor [21:22:58]*** Cut end [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: 01 07 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: 01 07 00 62 22 00 00 00 00 00 FF 0F 99 [21:22:58]process_action close_receipt done [21:22:58]requested_data is exist [21:22:58]produce_requested_data [21:22:58]requested_item fm.sn is exist - process it [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 11 00 00 [21:22:58]Write to MH i2c: E2 08 00 63 22 80 11 00 00 00 00 00 00 FF [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:58]Read from MH i2c: E2 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 17 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 17 00 63 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [21:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:22:58]wFMCommunicate OK [21:22:58]requested_item fd.num is exist - process it [21:22:58]SAM_PROTO_GetFieldsCounters [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 13 00 00 [21:22:58]Write to MH i2c: E2 08 00 64 22 80 13 00 00 00 00 00 00 02 [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 62 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 62 00 64 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 73 00 00 0E 04 04 00 75 00 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 6D [21:22:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 73 00 00 0E 04 04 00 75 00 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 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_GetFieldsCounters done [21:22:59]requested_item shift.num is exist - process it [21:22:59]requested_item shift.opened is exist - process it [21:22:59]req_shift_opened [21:22:59]FM_GetShiftState [21:22:59]SAM_PROTO_GetShiftState [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 13 01 00 [21:22:59]Write to MH i2c: E2 08 00 65 22 80 13 01 00 00 00 00 00 04 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 65 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 F8 [21:22:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_GetShiftState done [21:22:59]FM_GetShiftState done [21:22:59]req_shift_opened done [21:22:59]requested_item shift.open_date is exist - process it [21:22:59]req_shift_open_date [21:22:59]req_shift_open_date done [21:22:59]produce_requested_data done [21:22:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29687,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:22:59]process_action_free close_receipt [21:22:59]json_value_free [21:22:59]json_value_free done [21:22:59]process_json_proto returns [21:22:59]Send response to host [21:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29687,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:22:59]free response buf [21:22:59]execute_script done [21:22:59]execute_script returns [21:22:59]free content buf [21:22:59]Sock 9.Close socket [21:22:59]Sock 9.Thread stoped [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:07]accept exits with 7 [21:29:07]New connection [21:29:07]New thread 3066965348 created [21:29:07]Thread 3067108708 joined [21:29:07]Waiting for new connection... [21:29:07] Sock 7.Parse request [21:29:07]Sock 7.Check first char [21:29:07]Sock 7.First char is OK [21:29:07]request: POST /json_proto HTTP/1.0 [21:29:07]Method: POST [21:29:07]URL: /json_proto [21:29:07]Method is POST - this is cgi request [21:29:07]url: /json_proto [21:29:07]query_string will be loaded in cgi processing [21:29:07]execute_cgi json_proto POST (null) [21:29:07]execute_cgi path=json_proto method=POST [21:29:07]POST find Content-Length [21:29:07]Host: 172.17.33.3:8080 [21:29:07]Content-Length: 843 [21:29:07]Content-Type: application/json [21:29:07] [21:29:07]POST finish read [21:29:07]Found Content-Length = 843 [21:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:07]execute_script... [21:29: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)348159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:07]POST & json_proto [21:29:07]process_json_proto [21:29:07]json parsed OK: [21:29:07]protocol is kg_v1.0 [21:29:07]action value=close_receipt [21:29:07]process_action close_receipt [21:29:07]cmd_close_receipt [21:29:07]MH_GetDate [21:29:07]Write to MH i2c: F0 00 00 66 22 77 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 09 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: F0 09 00 66 22 00 26 9C 1D 66 23 5B 8F 65 37 [21:29:07]GetLastDocTimeStamp 1713216177 [21:29:07]current date 1713216550 [21:29:07]FM_GetShiftState [21:29:07]SAM_PROTO_GetShiftState [21:29:07]wFMCommunicate request_size=4 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 13 01 00 [21:29:07]Write to MH i2c: E2 08 00 67 22 80 13 01 00 00 00 00 00 06 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0E 00 67 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FA [21:29:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:29:07]wFMCommunicate OK [21:29:07]SAM_PROTO_GetShiftState done [21:29:07]FM_GetShiftState done [21:29:07]opened in 1713140468 [21:29:07]opened+sec_in_day 1713226868 [21:29:07]quantity*price = 100018 [21:29:07]sum+1 = 100020 [21:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 282 15.04.2024 21:29 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29688 ФПД: 155516194296804 1/tax-web-control/client/api/v1/ticket?date=20240415T212910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29688&fm=155516194296804&tin=02508201610067®Number=0000138879044617&sum=100019 [21:29:09]StoreToDocumentArchive [21:29:09]shift 117 fd 29688 [21:29:09]save to /storage/0117/doc_00029688 [21:29:09]save last doc name /storage/0117/doc_00029688 to /storage/kkm_last_doc_name [21:29:09]save OK [21:29:09]Clear old archive folders... [21:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:09]tlvbuf is 01A223C0 [21:29:09]SAM_PROTO_ClearQueue [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 09 00 00 [21:29:09]Write to MH i2c: E2 08 00 74 22 80 09 00 00 00 00 00 00 08 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 74 22 00 90 00 0A [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_ClearQueue done [21:29:09]KKMCreateOFDPacket [21:29:09]OFDProtocolAddRootSTLVToBuf [21:29:09]FM_MakeSignedData [21:29:09]FM_MakeSignedData [21:29:09]SAM_PROTO_SignData [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 01 02 [21:29:09]Write to MH i2c: E2 08 00 75 22 80 0D 01 02 00 00 00 00 10 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 75 22 00 90 00 0B [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=255 [21:29:09]MH_SAM_APDU [21:29: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 26 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 73 00 00 35 04 06 00 8D [21:29:09]Write to MH i2c: E2 02 01 76 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 26 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 73 00 00 35 04 06 00 8D 00 00 37 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 76 22 00 90 00 0C [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=10 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 02 02 05 70 EF 84 93 E4 [21:29:09]Write to MH i2c: E2 0D 00 77 22 80 0D 02 02 05 00 70 EF 84 93 E4 00 00 77 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:09]Read from MH i2c: E2 03 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 03 00 77 22 00 90 00 0D [21:29:09]RAPDU: 90 00 [21:29:09]wFMCommunicate OK [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 0D 03 02 [21:29:09]Write to MH i2c: E2 08 00 78 22 80 0D 03 02 00 00 00 00 15 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0B 00 78 22 00 91 40 40 06 2C 37 07 C7 90 00 5E [21:29:09]RAPDU: 91 40 40 06 2C 37 07 C7 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_SignData done [21:29:09]FM_MakeSignedData done [21:29:09]CreateOFDProtocolMessage [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 11 00 00 [21:29:09]Write to MH i2c: E2 08 00 79 22 80 11 00 00 00 00 00 00 15 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 79 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [21:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:29:09]wFMCommunicate OK [21:29:09]CreateOFDProtocolMessage done [21:29:09]OFDSenderStorePacket 29688 [21:29:09]StoreOFDPacket docnum=29688 [21:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 FB 07 01 68 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 26 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 73 00 00 35 04 06 00 8D 70 EF 84 93 E4 91 40 40 06 2C 37 07 C7 [21:29:09]CheckFolder [21:29:09]dirname=/storage/ofd_packets [21:29:09]CheckFolder done [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00029688 [21:29:09]NVStorageSaveData ofd_packets/00029688 [21:29:09]File name is /storage/ofd_packets/00029688 [21:29:09]Write 301 bytes [21:29:09]NVStorageSaveData done [21:29:09]OFDSenderStorePacket done [21:29:09]KKMCreateOFDPacket done [21:29:09]NVStorageSaveData kkm_last_timestamp [21:29:09]File name is /storage/kkm_last_timestamp [21:29:09]Write 4 bytes [21:29:09]NVStorageSaveData done [21:29:09]ExternCall_PrintAddStr [21:29:09]wPrintStart [21:29:09]Write to MH i2c: 01 00 00 7A 22 9C [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 7A 22 00 00 00 00 00 FF 0F B1 [21:29:09]RasterBufferAndPrint [21:29:09]line Счет N : (1)348159 [21:29:09]line ИНН: 02508201610067 [21:29:09]line Контрольно-Кассовый Чек [21:29:09]line ПРОДАЖА [21:29:09]line ТРК (МРК, ГНК) : 43 [21:29:09]line Товар: 2710124500 [21:29:09]line Аи-95-К-5 [21:29:09]line 13.720 * 72.90 [21:29:09]line = 1000.19 [21:29:09]line НДС 12% НСП 1% [21:29:09]line > о реализуемом товаре [21:29:09]line ИТОГО: 1000.19 [21:29:09]line НСП 1% : 8.85 [21:29:09]line НДС 12% : 106.21 [21:29:09]line Наличными: 0.00 [21:29:09]line Безнал.: 1000.19 [21:29:09]line Место: АЗС № 108 "Партнер Нефть" [21:29:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:29:09]line СНО: Общий режим [21:29:09]line Чек 282 15.04.2024 21:29 [21:29:09]line Смена: 117 ФФД: 1.0 [21:29:09]line ЗНМ: 0300000027 [21:29:09]line РНМ: 0000138879044617 [21:29:09]line Версия ККМ: 001 [21:29:09]line Платежная система: АКБ Кыргызстан [21:29:09]line ФМ: 0000000000963154 [21:29:09]line ФД: 29688 [21:29:09]line ФПД: 155516194296804 [21:29:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T212910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29688&fm=155516194296804&tin=02508201610067®Number=0000138879044617&sum=100019 [21:29:09]OFD Sender: Processing packet 29688 [packets to send 8, broken 7] [21:29:09]ProducePacketName [21:29:09]name=ofd_packets/00029688 [21:29:09]OFD Sender: To server: pG, [21:29:09]CommunicateWithHost lk.salyk.kg:30040 [21:29:09]ConnectInit lk.salyk.kg [21:29:09]written 0, free lines is 4095 [21:29:10]Connected sock=10 [21:29:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 FB 07 01 68 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 26 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 73 00 00 35 04 06 00 8D 70 EF 84 93 E4 91 40 40 06 2C 37 07 C7 [21:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 F0 47 00 0C 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 39 36 33 31 35 34 10 04 04 00 F8 73 00 00 F4 03 04 00 C6 46 1D 66 B6 04 01 00 00 01 2B 82 FA 01 87 89 AD [21:29:10]CommunicateWithHost err = 0 [21:29:10]CheckOFDResponse [21:29:10]1017 (14) - 77093643461234 [21:29:10]1041 (16) - 0000000000963154 [21:29:10]1040 (4) - 29688 [21:29:10]1012 (4) - 15.04.2024 15:24 [21:29:10]1206 (1) - 0 [21:29:10]OFD Sender: Remove packet 29688 [21:29:10]ProducePacketName [21:29:10]name=ofd_packets/00029688 [21:29:10]NVStorageDeleteData [21:29:10]Write to MH i2c: 01 00 00 A3 22 C5 [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 07 00 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: 01 07 00 A3 22 00 00 00 00 00 DE 0C B6 [21:29:10]RasterBufferAndPrint [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]line [21:29:10]written 0, free lines is 3300 [21:29:10]MH_Cut [21:29:10]Write to MH i2c: D1 01 00 AA 22 01 9E [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 01 00 [21:29:10]MH_I2C_Read... [21:29:10]Read from MH i2c: D1 01 00 AA 22 00 9D [21:29:10]Write to MH i2c: 01 00 00 AB 22 CD [21:29:10]Write i2c OK [21:29:10]MH_I2C_Read... [21:29:10]OFD Sender: No OFD packet to send [21:29:11]*** Cut start [21:29:11]*** Partial cut [21:29:11]*** CUTSNS_PIN = 1 [21:29:11]*** CUTSNS_PIN = 0 [21:29:11]*** Brake cut motor [21:29:11]Read from MH i2c: 01 [21:29:11]MH_I2C_Read... [21:29:11]*** Stop cut motor [21:29:11]*** Cut end [21:29:11]Read from MH i2c: 01 07 00 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: 01 07 00 AB 22 00 00 00 00 00 FF 0F E2 [21:29:11]process_action close_receipt done [21:29:11]requested_data is exist [21:29:11]produce_requested_data [21:29:11]requested_item fm.sn is exist - process it [21:29:11]wFMCommunicate request_size=4 [21:29:11]MH_SAM_APDU [21:29:11]CAPDU: 80 11 00 00 [21:29:11]Write to MH i2c: E2 08 00 AC 22 80 11 00 00 00 00 00 00 48 [21:29:11]Write i2c OK [21:29:11]MH_I2C_Read... [21:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:11]Read from MH i2c: E2 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: E2 17 00 [21:29:11]MH_I2C_Read... [21:29:11]Read from MH i2c: E2 17 00 AC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [21:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:29:11]wFMCommunicate OK [21:29:11]requested_item fd.num is exist - process it [21:29:11]SAM_PROTO_GetFieldsCounters [21:29:11]wFMCommunicate request_size=4 [21:29:11]MH_SAM_APDU [21:29:11]CAPDU: 80 13 00 00 [21:29:11]Write to MH i2c: E2 08 00 AD 22 80 13 00 00 00 00 00 00 4B [21:29:11]Write i2c OK [21:29:11]MH_I2C_Read... [21:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:12]Read from MH i2c: E2 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 62 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 62 00 AD 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 73 00 00 0E 04 04 00 75 00 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 BA [21:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 73 00 00 0E 04 04 00 75 00 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 [21:29:12]wFMCommunicate OK [21:29:12]SAM_PROTO_GetFieldsCounters done [21:29:12]requested_item shift.num is exist - process it [21:29:12]requested_item shift.opened is exist - process it [21:29:12]req_shift_opened [21:29:12]FM_GetShiftState [21:29:12]SAM_PROTO_GetShiftState [21:29:12]wFMCommunicate request_size=4 [21:29:12]MH_SAM_APDU [21:29:12]CAPDU: 80 13 01 00 [21:29:12]Write to MH i2c: E2 08 00 AE 22 80 13 01 00 00 00 00 00 4D [21:29:12]Write i2c OK [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 [21:29:12]MH_I2C_Read... [21:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:12]Read from MH i2c: E2 0E 00 [21:29:12]MH_I2C_Read... [21:29:12]Read from MH i2c: E2 0E 00 AE 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 41 [21:29:12]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:29:12]wFMCommunicate OK [21:29:12]SAM_PROTO_GetShiftState done [21:29:12]FM_GetShiftState done [21:29:12]req_shift_opened done [21:29:12]requested_item shift.open_date is exist - process it [21:29:12]req_shift_open_date [21:29:12]req_shift_open_date done [21:29:12]produce_requested_data done [21:29:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29688,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:29:12]process_action_free close_receipt [21:29:12]json_value_free [21:29:12]json_value_free done [21:29:12]process_json_proto returns [21:29:12]Send response to host [21:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29688,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:29:12]free response buf [21:29:12]execute_script done [21:29:12]execute_script returns [21:29:12]free content buf [21:29:12]Sock 7.Close socket [21:29:12]Sock 7.Thread stoped [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:21]accept exits with 9 [21:31:21]New connection [21:31:21]New thread 3067108708 created [21:31:21]Thread 3066965348 joined [21:31:21]Waiting for new connection... [21:31:21] Sock 9.Parse request [21:31:21]Sock 9.Check first char [21:31:21]Sock 9.First char is OK [21:31:21]request: POST /json_proto HTTP/1.0 [21:31:21]Method: POST [21:31:21]URL: /json_proto [21:31:21]Method is POST - this is cgi request [21:31:21]url: /json_proto [21:31:21]query_string will be loaded in cgi processing [21:31:21]execute_cgi json_proto POST (null) [21:31:21]execute_cgi path=json_proto method=POST [21:31:21]POST find Content-Length [21:31:21]Host: 172.17.33.3:8080 [21:31:21]Content-Length: 682 [21:31:21]Content-Type: application/json [21:31:21] [21:31:21]POST finish read [21:31:21]Found Content-Length = 682 [21:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:21]execute_script... [21:31: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)348160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 30.870, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:21]POST & json_proto [21:31:21]process_json_proto [21:31:21]json parsed OK: [21:31:21]protocol is kg_v1.0 [21:31:21]action value=close_receipt [21:31:21]process_action close_receipt [21:31:21]cmd_close_receipt [21:31:21]MH_GetDate [21:31:21]Write to MH i2c: F0 00 00 AF 22 C0 [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: F0 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: F0 09 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: F0 09 00 AF 22 00 AB 9C 1D 66 23 5B 8F 65 05 [21:31:21]GetLastDocTimeStamp 1713216550 [21:31:21]current date 1713216683 [21:31:21]FM_GetShiftState [21:31:21]SAM_PROTO_GetShiftState [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 13 01 00 [21:31:21]Write to MH i2c: E2 08 00 B0 22 80 13 01 00 00 00 00 00 4F [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 0E 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 0E 00 B0 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 43 [21:31:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:31:21]wFMCommunicate OK [21:31:21]SAM_PROTO_GetShiftState done [21:31:21]FM_GetShiftState done [21:31:21]opened in 1713140468 [21:31:21]opened+sec_in_day 1713226868 [21:31:21]quantity*price = 200037 [21:31:21]sum+1 = 200039 [21:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 283 15.04.2024 21:31 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29689 ФПД: 67627990104912 1/tax-web-control/client/api/v1/ticket?date=20240415T213123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29689&fm=67627990104912&tin=02508201610067®Number=0000138879044617&sum=200000 [21:31:22]StoreToDocumentArchive [21:31:22]shift 117 fd 29689 [21:31:22]save to /storage/0117/doc_00029689 [21:31:22]save last doc name /storage/0117/doc_00029689 to /storage/kkm_last_doc_name [21:31:22]save OK [21:31:22]Clear old archive folders... [21:31:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:22]tlvbuf is 01A24F70 [21:31:22]SAM_PROTO_ClearQueue [21:31:22]wFMCommunicate request_size=4 [21:31:22]MH_SAM_APDU [21:31:22]CAPDU: 80 09 00 00 [21:31:22]Write to MH i2c: E2 08 00 BD 22 80 09 00 00 00 00 00 00 51 [21:31:22]Write i2c OK [21:31:22]MH_I2C_Read... [21:31:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:22]Read from MH i2c: E2 [21:31:22]MH_I2C_Read... [21:31:22]Read from MH i2c: E2 03 00 [21:31:22]MH_I2C_Read... [21:31:22]Read from MH i2c: E2 03 00 BD 22 00 90 00 53 [21:31:22]RAPDU: 90 00 [21:31:22]wFMCommunicate OK [21:31:22]SAM_PROTO_ClearQueue done [21:31:22]KKMCreateOFDPacket [21:31:22]OFDProtocolAddRootSTLVToBuf [21:31:22]FM_MakeSignedData [21:31:22]FM_MakeSignedData [21:31:22]SAM_PROTO_SignData [21:31:22]wFMCommunicate request_size=4 [21:31:22]MH_SAM_APDU [21:31:22]CAPDU: 80 0D 01 02 [21:31:22]Write to MH i2c: E2 08 00 BE 22 80 0D 01 02 00 00 00 00 59 [21:31:22]Write i2c OK [21:31:22]MH_I2C_Read... [21:31:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:22]Read from MH i2c: E2 [21:31:22]MH_I2C_Read... [21:31:22]Read from MH i2c: E2 03 00 [21:31:22]MH_I2C_Read... [21:31:22]Read from MH i2c: E2 03 00 BE 22 00 90 00 54 [21:31:22]RAPDU: 90 00 [21:31:22]wFMCommunicate OK [21:31:22]wFMCommunicate request_size=255 [21:31:22]MH_SAM_APDU [21:31: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 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 AB 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 73 00 00 35 04 06 00 3D [21:31:22]Write to MH i2c: E2 02 01 BF 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 AB 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 73 00 00 35 04 06 00 3D 00 00 4E [21:31:22]Write i2c OK [21:31:22]MH_I2C_Read... [21:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:23]Read from MH i2c: E2 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 03 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 03 00 BF 22 00 90 00 55 [21:31:23]RAPDU: 90 00 [21:31:23]wFMCommunicate OK [21:31:23]wFMCommunicate request_size=10 [21:31:23]MH_SAM_APDU [21:31:23]CAPDU: 80 0D 02 02 05 81 DE 53 BB 50 [21:31:23]Write to MH i2c: E2 0D 00 C0 22 80 0D 02 02 05 00 81 DE 53 BB 50 00 00 23 [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:23]Read from MH i2c: E2 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 03 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 03 00 C0 22 00 90 00 56 [21:31:23]RAPDU: 90 00 [21:31:23]wFMCommunicate OK [21:31:23]wFMCommunicate request_size=4 [21:31:23]MH_SAM_APDU [21:31:23]CAPDU: 80 0D 03 02 [21:31:23]Write to MH i2c: E2 08 00 C1 22 80 0D 03 02 00 00 00 00 5E [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:23]Read from MH i2c: E2 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 0B 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 0B 00 C1 22 00 7C 70 90 09 AF 1A 48 72 90 00 67 [21:31:23]RAPDU: 7C 70 90 09 AF 1A 48 72 90 00 [21:31:23]wFMCommunicate OK [21:31:23]SAM_PROTO_SignData done [21:31:23]FM_MakeSignedData done [21:31:23]CreateOFDProtocolMessage [21:31:23]wFMCommunicate request_size=4 [21:31:23]MH_SAM_APDU [21:31:23]CAPDU: 80 11 00 00 [21:31:23]Write to MH i2c: E2 08 00 C2 22 80 11 00 00 00 00 00 00 5E [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:23]Read from MH i2c: E2 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 17 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: E2 17 00 C2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [21:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:23]wFMCommunicate OK [21:31:23]CreateOFDProtocolMessage done [21:31:23]OFDSenderStorePacket 29689 [21:31:23]StoreOFDPacket docnum=29689 [21:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0C 5A 07 01 1C 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 AB 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 73 00 00 35 04 06 00 3D 81 DE 53 BB 50 7C 70 90 09 AF 1A 48 72 [21:31:23]CheckFolder [21:31:23]dirname=/storage/ofd_packets [21:31:23]CheckFolder done [21:31:23]ProducePacketName [21:31:23]name=ofd_packets/00029689 [21:31:23]NVStorageSaveData ofd_packets/00029689 [21:31:23]File name is /storage/ofd_packets/00029689 [21:31:23]Write 301 bytes [21:31:23]NVStorageSaveData done [21:31:23]OFDSenderStorePacket done [21:31:23]KKMCreateOFDPacket done [21:31:23]NVStorageSaveData kkm_last_timestamp [21:31:23]File name is /storage/kkm_last_timestamp [21:31:23]Write 4 bytes [21:31:23]NVStorageSaveData done [21:31:23]ExternCall_PrintAddStr [21:31:23]wPrintStart [21:31:23]Write to MH i2c: 01 00 00 C3 22 E5 [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 C3 22 00 00 00 00 00 FF 0F FA [21:31:23]RasterBufferAndPrint [21:31:23]line Счет N : (1)348160 [21:31:23]line ИНН: 02508201610067 [21:31:23]line Контрольно-Кассовый Чек [21:31:23]line ПРОДАЖА [21:31:23]line ТРК (МРК, ГНК) : 32 [21:31:23]line Товар: 2710124130 [21:31:23]line Аи-92-К-5 [21:31:23]line 30.870 * 64.80 [21:31:23]line = 2000.38 [21:31:23]line НДС 12% НСП 1% [21:31:23]line > о реализуемом товаре [21:31:23]line ОКРУГЛЕНИЕ: -0.38 [21:31:23]line ИТОГО: 2000.00 [21:31:23]line Внесено: 2000.00 [21:31:23]line СДАЧА: 0.00 [21:31:23]line НСП 1% : 17.70 [21:31:23]line НДС 12% : 212.43 [21:31:23]line Наличными: 2000.00 [21:31:23]line Безнал.: 0.00 [21:31:23]line Место: АЗС № 108 "Партнер Нефть" [21:31:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:31:23]line СНО: Общий режим [21:31:23]line Чек 283 15.04.2024 21:31 [21:31:23]line Смена: 117 ФФД: 1.0 [21:31:23]line ЗНМ: 0300000027 [21:31:23]line РНМ: 0000138879044617 [21:31:23]line Версия ККМ: 001 [21:31:23]line ФМ: 0000000000963154 [21:31:23]line ФД: 29689 [21:31:23]line ФПД: 67627990104912 [21:31:23]line 1/tax-web-control/client/api/v1/ticket?date=20240415T213123&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29689&fm=67627990104912&tin=02508201610067®Number=0000138879044617&sum=200000 [21:31:23]OFD Sender: Processing packet 29689 [packets to send 8, broken 7] [21:31:23]ProducePacketName [21:31:23]name=ofd_packets/00029689 [21:31:23]OFD Sender: To server: pG, [21:31:23]CommunicateWithHost lk.salyk.kg:30040 [21:31:23]ConnectInit lk.salyk.kg [21:31:23]written 0, free lines is 4095 [21:31:23]Connected sock=10 [21:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0C 5A 07 01 1C 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 78 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 AB 9C 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 73 00 00 35 04 06 00 3D 81 DE 53 BB 50 7C 70 90 09 AF 1A 48 72 [21:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 72 47 00 11 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 39 36 33 31 35 34 10 04 04 00 F9 73 00 00 F4 03 04 00 4B 47 1D 66 B6 04 01 00 00 9C CD E4 96 7E F5 EC A7 [21:31:23]CommunicateWithHost err = 0 [21:31:23]CheckOFDResponse [21:31:23]1017 (14) - 77093643461234 [21:31:23]1041 (16) - 0000000000963154 [21:31:23]1040 (4) - 29689 [21:31:23]1012 (4) - 15.04.2024 15:27 [21:31:23]1206 (1) - 0 [21:31:23]OFD Sender: Remove packet 29689 [21:31:23]ProducePacketName [21:31:23]name=ofd_packets/00029689 [21:31:23]NVStorageDeleteData [21:31:23]Write to MH i2c: 01 00 00 ED 22 0F [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 ED 22 00 00 00 00 00 CB 0C ED [21:31:23]RasterBufferAndPrint [21:31:23]line [21:31:23]line [21:31:23]line [21:31:23]line [21:31:23]line [21:31:23]written 0, free lines is 3281 [21:31:23]MH_Cut [21:31:23]Write to MH i2c: D1 01 00 F4 22 01 E8 [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: D1 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: D1 01 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: D1 01 00 F4 22 00 E7 [21:31:23]Write to MH i2c: 01 00 00 F5 22 17 [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:24]OFD Sender: No OFD packet to send [21:31:24]*** Cut start [21:31:24]*** Partial cut [21:31:24]*** CUTSNS_PIN = 1 [21:31:24]*** CUTSNS_PIN = 0 [21:31:25]*** Brake cut motor [21:31:25]Read from MH i2c: 01 [21:31:25]*** Stop cut motor [21:31:25]*** Cut end [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: 01 07 00 F5 22 00 00 00 00 00 FF 0F 2C [21:31:25]process_action close_receipt done [21:31:25]requested_data is exist [21:31:25]produce_requested_data [21:31:25]requested_item fm.sn is exist - process it [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 11 00 00 [21:31:25]Write to MH i2c: E2 08 00 F6 22 80 11 00 00 00 00 00 00 92 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 17 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 17 00 F6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [21:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:25]wFMCommunicate OK [21:31:25]requested_item fd.num is exist - process it [21:31:25]SAM_PROTO_GetFieldsCounters [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 13 00 00 [21:31:25]Write to MH i2c: E2 08 00 F7 22 80 13 00 00 00 00 00 00 95 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 62 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 62 00 F7 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 73 00 00 0E 04 04 00 75 00 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 08 [21:31:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 73 00 00 0E 04 04 00 75 00 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 [21:31:25]wFMCommunicate OK [21:31:25]SAM_PROTO_GetFieldsCounters done [21:31:25]requested_item shift.num is exist - process it [21:31:25]requested_item shift.opened is exist - process it [21:31:25]req_shift_opened [21:31:25]FM_GetShiftState [21:31:25]SAM_PROTO_GetShiftState [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 13 01 00 [21:31:25]Write to MH i2c: E2 08 00 F8 22 80 13 01 00 00 00 00 00 97 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 0E 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 0E 00 F8 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8B [21:31:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:31:25]wFMCommunicate OK [21:31:25]SAM_PROTO_GetShiftState done [21:31:25]FM_GetShiftState done [21:31:25]req_shift_opened done [21:31:25]requested_item shift.open_date is exist - process it [21:31:25]req_shift_open_date [21:31:25]req_shift_open_date done [21:31:25]produce_requested_data done [21:31:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29689,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:31:25]process_action_free close_receipt [21:31:25]json_value_free [21:31:25]json_value_free done [21:31:25]process_json_proto returns [21:31:25]Send response to host [21:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29689,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:31:25]free response buf [21:31:25]execute_script done [21:31:25]execute_script returns [21:31:25]free content buf [21:31:25]Sock 9.Close socket [21:31:25]Sock 9.Thread stoped [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]accept exits with 7 [21:33:59]New connection [21:33:59]New thread 3066965348 created [21:33:59]Thread 3067108708 joined [21:33:59]Waiting for new connection... [21:33:59] Sock 7.Parse request [21:33:59]Sock 7.Check first char [21:33:59]Sock 7.First char is OK [21:33:59]request: POST /json_proto HTTP/1.0 [21:33:59]Method: POST [21:33:59]URL: /json_proto [21:33:59]Method is POST - this is cgi request [21:33:59]url: /json_proto [21:33:59]query_string will be loaded in cgi processing [21:33:59]execute_cgi json_proto POST (null) [21:33:59]execute_cgi path=json_proto method=POST [21:33:59]POST find Content-Length [21:33:59]Host: 172.17.33.3:8080 [21:33:59]Content-Length: 677 [21:33:59]Content-Type: application/json [21:33:59] [21:33:59]POST finish read [21:33:59]Found Content-Length = 677 [21:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.340, "sum" : 540.43, "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" ] } } [21:33:59]execute_script... [21:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.340, "sum" : 540.43, "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" ] } } [21:33:59]POST & json_proto [21:33:59]process_json_proto [21:33:59]json parsed OK: [21:33:59]protocol is kg_v1.0 [21:33:59]action value=close_receipt [21:33:59]process_action close_receipt [21:33:59]cmd_close_receipt [21:33:59]MH_GetDate [21:33:59]Write to MH i2c: F0 00 00 F9 22 0A [21:33:59]Write i2c OK [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 09 00 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 09 00 F9 22 00 49 9D 1D 66 23 5B 8F 65 EE [21:33:59]GetLastDocTimeStamp 1713216683 [21:33:59]current date 1713216841 [21:33:59]FM_GetShiftState [21:33:59]SAM_PROTO_GetShiftState [21:33:59]wFMCommunicate request_size=4 [21:33:59]MH_SAM_APDU [21:33:59]CAPDU: 80 13 01 00 [21:33:59]Write to MH i2c: E2 08 00 FA 22 80 13 01 00 00 00 00 00 99 [21:33:59]Write i2c OK [21:33:59]MH_I2C_Read... [21:33:59]OFD Sender: No OFD packet to send [21:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:59]Read from MH i2c: E2 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: E2 0E 00 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: E2 0E 00 FA 22 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8D [21:33:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:33:59]wFMCommunicate OK [21:33:59]SAM_PROTO_GetShiftState done [21:33:59]FM_GetShiftState done [21:33:59]opened in 1713140468 [21:33:59]opened+sec_in_day 1713226868 [21:33:59]quantity*price = 54043 [21:33:59]sum+1 = 54044 [21:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 284 15.04.2024 21:34 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29690 ФПД: 167572563505780 1/tax-web-control/client/api/v1/ticket?date=20240415T213401&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29690&fm=167572563505780&tin=02508201610067®Number=0000138879044617&sum=54000 [21:34:00]StoreToDocumentArchive [21:34:00]shift 117 fd 29690 [21:34:00]save to /storage/0117/doc_00029690 [21:34:00]save last doc name /storage/0117/doc_00029690 to /storage/kkm_last_doc_name [21:34:00]save OK [21:34:00]Clear old archive folders... [21:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:00]tlvbuf is 01A60CD0 [21:34:00]SAM_PROTO_ClearQueue [21:34:00]wFMCommunicate request_size=4 [21:34:00]MH_SAM_APDU [21:34:00]CAPDU: 80 09 00 00 [21:34:00]Write to MH i2c: E2 08 00 07 23 80 09 00 00 00 00 00 00 9C [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:00]Read from MH i2c: E2 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 07 23 00 90 00 9E [21:34:00]RAPDU: 90 00 [21:34:00]wFMCommunicate OK [21:34:00]SAM_PROTO_ClearQueue done [21:34:00]KKMCreateOFDPacket [21:34:00]OFDProtocolAddRootSTLVToBuf [21:34:00]FM_MakeSignedData [21:34:00]FM_MakeSignedData [21:34:00]SAM_PROTO_SignData [21:34:00]wFMCommunicate request_size=4 [21:34:00]MH_SAM_APDU [21:34:00]CAPDU: 80 0D 01 02 [21:34:00]Write to MH i2c: E2 08 00 08 23 80 0D 01 02 00 00 00 00 A4 [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:00]Read from MH i2c: E2 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 08 23 00 90 00 9F [21:34:00]RAPDU: 90 00 [21:34:00]wFMCommunicate OK [21:34:00]wFMCommunicate request_size=255 [21:34:00]MH_SAM_APDU [21:34: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 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B 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 1C 01 00 00 F4 03 04 00 49 9D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 73 00 00 35 04 06 00 98 [21:34:00]Write to MH i2c: E2 02 01 09 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 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B 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 1C 01 00 00 F4 03 04 00 49 9D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 73 00 00 35 04 06 00 98 00 00 BA [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:00]Read from MH i2c: E2 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 [21:34:00]MH_I2C_Read... [21:34:00]Read from MH i2c: E2 03 00 09 23 00 90 00 A0 [21:34:00]RAPDU: 90 00 [21:34:00]wFMCommunicate OK [21:34:00]wFMCommunicate request_size=10 [21:34:00]MH_SAM_APDU [21:34:00]CAPDU: 80 0D 02 02 05 68 07 1F 32 74 [21:34:00]Write to MH i2c: E2 0D 00 0A 23 80 0D 02 02 05 00 68 07 1F 32 74 00 00 E5 [21:34:00]Write i2c OK [21:34:00]MH_I2C_Read... [21:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:00]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 0A 23 00 90 00 A1 [21:34:01]RAPDU: 90 00 [21:34:01]wFMCommunicate OK [21:34:01]wFMCommunicate request_size=4 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 0D 03 02 [21:34:01]Write to MH i2c: E2 08 00 0B 23 80 0D 03 02 00 00 00 00 A9 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 0B 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 0B 00 0B 23 00 73 93 57 F7 90 C3 0B 78 90 00 D4 [21:34:01]RAPDU: 73 93 57 F7 90 C3 0B 78 90 00 [21:34:01]wFMCommunicate OK [21:34:01]SAM_PROTO_SignData done [21:34:01]FM_MakeSignedData done [21:34:01]CreateOFDProtocolMessage [21:34:01]wFMCommunicate request_size=4 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 11 00 00 [21:34:01]Write to MH i2c: E2 08 00 0C 23 80 11 00 00 00 00 00 00 A9 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 17 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 17 00 0C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [21:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:34:01]wFMCommunicate OK [21:34:01]CreateOFDProtocolMessage done [21:34:01]OFDSenderStorePacket 29690 [21:34:01]StoreOFDPacket docnum=29690 [21:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 74 07 01 67 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B 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 1C 01 00 00 F4 03 04 00 49 9D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 73 00 00 35 04 06 00 98 68 07 1F 32 74 73 93 57 F7 90 C3 0B 78 [21:34:01]CheckFolder [21:34:01]dirname=/storage/ofd_packets [21:34:01]CheckFolder done [21:34:01]ProducePacketName [21:34:01]name=ofd_packets/00029690 [21:34:01]NVStorageSaveData ofd_packets/00029690 [21:34:01]File name is /storage/ofd_packets/00029690 [21:34:01]Write 301 bytes [21:34:01]NVStorageSaveData done [21:34:01]OFDSenderStorePacket done [21:34:01]KKMCreateOFDPacket done [21:34:01]NVStorageSaveData kkm_last_timestamp [21:34:01]File name is /storage/kkm_last_timestamp [21:34:01]Write 4 bytes [21:34:01]NVStorageSaveData done [21:34:01]ExternCall_PrintAddStr [21:34:01]wPrintStart [21:34:01]Write to MH i2c: 01 00 00 0D 23 30 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 0D 23 00 00 00 00 00 FF 0F 45 [21:34:01]RasterBufferAndPrint [21:34:01]line Счет N : (1)348162 [21:34:01]line ИНН: 02508201610067 [21:34:01]line Контрольно-Кассовый Чек [21:34:01]line ПРОДАЖА [21:34:01]line ТРК (МРК, ГНК) : 23 [21:34:01]line Товар: 2710124130 [21:34:01]line Аи-92-К-5 [21:34:01]line 8.340 * 64.80 [21:34:01]line = 540.43 [21:34:01]line НДС 12% НСП 1% [21:34:01]line > о реализуемом товаре [21:34:01]line ОКРУГЛЕНИЕ: -0.43 [21:34:01]line ИТОГО: 540.00 [21:34:01]line Внесено: 540.00 [21:34:01]line СДАЧА: 0.00 [21:34:01]line НСП 1% : 4.78 [21:34:01]line НДС 12% : 57.39 [21:34:01]line Наличными: 540.00 [21:34:01]line Безнал.: 0.00 [21:34:01]line Место: АЗС № 108 "Партнер Нефть" [21:34:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:34:01]line СНО: Общий режим [21:34:01]line Чек 284 15.04.2024 21:34 [21:34:01]line Смена: 117 ФФД: 1.0 [21:34:01]line ЗНМ: 0300000027 [21:34:01]line РНМ: 0000138879044617 [21:34:01]line Версия ККМ: 001 [21:34:01]line ФМ: 0000000000963154 [21:34:01]line ФД: 29690 [21:34:01]line ФПД: 167572563505780 [21:34:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T213401&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29690&fm=167572563505780&tin=02508201610067®Number=0000138879044617&sum=54000 [21:34:01]OFD Sender: Processing packet 29690 [packets to send 8, broken 7] [21:34:01]ProducePacketName [21:34:01]name=ofd_packets/00029690 [21:34:01]OFD Sender: To server: pG, [21:34:01]CommunicateWithHost lk.salyk.kg:30040 [21:34:01]ConnectInit lk.salyk.kg [21:34:01]written 0, free lines is 4095 [21:34:01]Connected sock=10 [21:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E7 74 07 01 67 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B 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 1C 01 00 00 F4 03 04 00 49 9D 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 73 00 00 35 04 06 00 98 68 07 1F 32 74 73 93 57 F7 90 C3 0B 78 [21:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 45 47 00 9E 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 39 36 33 31 35 34 10 04 04 00 FA 73 00 00 F4 03 04 00 E9 47 1D 66 B6 04 01 00 00 73 03 8B 74 8F C3 C7 CE [21:34:01]CommunicateWithHost err = 0 [21:34:01]CheckOFDResponse [21:34:01]1017 (14) - 77093643461234 [21:34:01]1041 (16) - 0000000000963154 [21:34:01]1040 (4) - 29690 [21:34:01]1012 (4) - 15.04.2024 15:29 [21:34:01]1206 (1) - 0 [21:34:01]OFD Sender: Remove packet 29690 [21:34:01]ProducePacketName [21:34:01]name=ofd_packets/00029690 [21:34:01]NVStorageDeleteData [21:34:01]Write to MH i2c: 01 00 00 37 23 5A [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 37 23 00 00 00 00 00 C5 0C 32 [21:34:01]RasterBufferAndPrint [21:34:01]line [21:34:01]line [21:34:01]line [21:34:01]line [21:34:01]line [21:34:01]written 0, free lines is 3276 [21:34:01]MH_Cut [21:34:01]Write to MH i2c: D1 01 00 3E 23 01 33 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: D1 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: D1 01 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: D1 01 00 3E 23 00 32 [21:34:01]Write to MH i2c: 01 00 00 3F 23 62 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:02]OFD Sender: No OFD packet to send [21:34:02]*** Cut start [21:34:02]*** Partial cut [21:34:02]*** CUTSNS_PIN = 1 [21:34:02]*** CUTSNS_PIN = 0 [21:34:02]*** Brake cut motor [21:34:03]Read from MH i2c: 01 [21:34:03]MH_I2C_Read... [21:34:03]*** Stop cut motor [21:34:03]*** Cut end [21:34:03]Read from MH i2c: 01 07 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 FF 0F 77 [21:34:03]process_action close_receipt done [21:34:03]requested_data is exist [21:34:03]produce_requested_data [21:34:03]requested_item fm.sn is exist - process it [21:34:03]wFMCommunicate request_size=4 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 11 00 00 [21:34:03]Write to MH i2c: E2 08 00 40 23 80 11 00 00 00 00 00 00 DD [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 [21:34:03]MH_I2C_Read... [21:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:03]Read from MH i2c: E2 17 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 17 00 40 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [21:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:34:03]wFMCommunicate OK [21:34:03]requested_item fd.num is exist - process it [21:34:03]SAM_PROTO_GetFieldsCounters [21:34:03]wFMCommunicate request_size=4 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 13 00 00 [21:34:03]Write to MH i2c: E2 08 00 41 23 80 13 00 00 00 00 00 00 E0 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:03]Read from MH i2c: E2 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 62 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 62 00 41 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 73 00 00 0E 04 04 00 75 00 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 57 [21:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 73 00 00 0E 04 04 00 75 00 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 [21:34:03]wFMCommunicate OK [21:34:03]SAM_PROTO_GetFieldsCounters done [21:34:03]requested_item shift.num is exist - process it [21:34:03]requested_item shift.opened is exist - process it [21:34:03]req_shift_opened [21:34:03]FM_GetShiftState [21:34:03]SAM_PROTO_GetShiftState [21:34:03]wFMCommunicate request_size=4 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 13 01 00 [21:34:03]Write to MH i2c: E2 08 00 42 23 80 13 01 00 00 00 00 00 E2 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:03]Read from MH i2c: E2 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 0E 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 0E 00 42 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D6 [21:34:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:34:03]wFMCommunicate OK [21:34:03]SAM_PROTO_GetShiftState done [21:34:03]FM_GetShiftState done [21:34:03]req_shift_opened done [21:34:03]requested_item shift.open_date is exist - process it [21:34:03]req_shift_open_date [21:34:03]req_shift_open_date done [21:34:03]produce_requested_data done [21:34:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29690,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:34:03]process_action_free close_receipt [21:34:03]json_value_free [21:34:03]json_value_free done [21:34:03]process_json_proto returns [21:34:03]Send response to host [21:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29690,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:34:03]free response buf [21:34:03]execute_script done [21:34:03]execute_script returns [21:34:03]free content buf [21:34:03]Sock 7.Close socket [21:34:03]Sock 7.Thread stoped [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:25]int [21:34:25]Write to MH i2c: 01 00 00 43 23 66 [21:34:25]*** FLAG_PRN_PAP1 set [21:34:25]Write i2c OK [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: 01 [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: 01 07 00 [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: 01 07 00 43 23 00 01 00 00 00 FF 0F 7C [21:34:25]state=0 [21:34:25]No paper [21:34:26]int [21:34:26]Write to MH i2c: 01 00 00 44 23 67 [21:34:26]*** FLAG_PRN_PAP2 set [21:34:26]Write i2c OK [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 44 23 00 03 00 00 00 FF 0F 7F [21:34:26]state=0 [21:34:26]No paper [21:34:26]Cover opened [21:34:26]int [21:34:26]Write to MH i2c: 01 00 00 45 23 68 [21:34:26]*** FLAG_PRN_PAP2 reset [21:34:26]Write i2c OK [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 45 23 00 01 00 00 00 FF 0F 7E [21:34:26]state=3 [21:34:26]No paper [21:34:26]Cover closed [21:34:26]int [21:34:26]Write to MH i2c: 01 00 00 46 23 69 [21:34:26]*** FLAG_PRN_PAP2 set [21:34:26]Write i2c OK [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 46 23 00 03 00 00 00 FF 0F 81 [21:34:26]state=0 [21:34:26]No paper [21:34:26]Cover opened [21:34:26]int [21:34:26]Write to MH i2c: 01 00 00 47 23 6A [21:34:26]*** FLAG_PRN_PAP2 reset [21:34:26]Write i2c OK [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: 01 07 00 47 23 00 01 00 00 00 FF 0F 80 [21:34:26]state=3 [21:34:26]No paper [21:34:26]Cover closed [21:34:27]int [21:34:27]Write to MH i2c: 01 00 00 48 23 6B [21:34:27]*** FLAG_PRN_PAP2 set [21:34:27]Write i2c OK [21:34:27]MH_I2C_Read... [21:34:27]Read from MH i2c: 01 [21:34:27]MH_I2C_Read... [21:34:27]Read from MH i2c: 01 07 00 [21:34:27]MH_I2C_Read... [21:34:27]Read from MH i2c: 01 07 00 48 23 00 03 00 00 00 FF 0F 83 [21:34:27]state=0 [21:34:27]No paper [21:34:27]Cover opened [21:34:27]OFD Sender: No OFD packet to send [21:34:30]int [21:34:30]Write to MH i2c: 01 00 00 49 23 6C [21:34:30]*** FLAG_PRN_PAP2 reset [21:34:30]Write i2c OK [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 07 00 [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 07 00 49 23 00 01 00 00 00 FF 0F 82 [21:34:30]state=3 [21:34:30]No paper [21:34:30]Cover closed [21:34:30]int [21:34:30]Write to MH i2c: 01 00 00 4A 23 6D [21:34:30]*** FLAG_PRN_PAP1 reset [21:34:30]Write i2c OK [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 07 00 [21:34:30]MH_I2C_Read... [21:34:30]Read from MH i2c: 01 07 00 4A 23 00 00 00 00 00 FF 0F 82 [21:34:30]state=0 [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:29]accept exits with 9 [21:48:29]New connection [21:48:29]New thread 3067108708 created [21:48:29]Thread 3066965348 joined [21:48:29]Waiting for new connection... [21:48:29] Sock 9.Parse request [21:48:29]Sock 9.Check first char [21:48:29]Sock 9.First char is OK [21:48:29]request: POST /json_proto HTTP/1.0 [21:48:29]Method: POST [21:48:29]URL: /json_proto [21:48:29]Method is POST - this is cgi request [21:48:29]url: /json_proto [21:48:29]query_string will be loaded in cgi processing [21:48:29]execute_cgi json_proto POST (null) [21:48:29]execute_cgi path=json_proto method=POST [21:48:29]POST find Content-Length [21:48:29]Host: 172.17.33.3:8080 [21:48:29]Content-Length: 677 [21:48:29]Content-Type: application/json [21:48:29] [21:48:29]POST finish read [21:48:29]Found Content-Length = 677 [21:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:29]execute_script... [21:48: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)348164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:29]POST & json_proto [21:48:29]process_json_proto [21:48:29]json parsed OK: [21:48:29]protocol is kg_v1.0 [21:48:29]action value=close_receipt [21:48:29]process_action close_receipt [21:48:29]cmd_close_receipt [21:48:29]MH_GetDate [21:48:29]Write to MH i2c: F0 00 00 4B 23 5D [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: F0 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: F0 09 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: F0 09 00 4B 23 00 AF A0 1D 66 23 5B 8F 65 AA [21:48:29]GetLastDocTimeStamp 1713216841 [21:48:29]current date 1713217711 [21:48:29]FM_GetShiftState [21:48:29]SAM_PROTO_GetShiftState [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 01 00 [21:48:29]Write to MH i2c: E2 08 00 4C 23 80 13 01 00 00 00 00 00 EC [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 4C 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E0 [21:48:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:48:29]wFMCommunicate OK [21:48:29]SAM_PROTO_GetShiftState done [21:48:29]FM_GetShiftState done [21:48:29]opened in 1713140468 [21:48:29]opened+sec_in_day 1713226868 [21:48:29]quantity*price = 50025 [21:48:29]sum+1 = 50027 [21:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 285 15.04.2024 21:48 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29691 ФПД: 247356365971675 1/tax-web-control/client/api/v1/ticket?date=20240415T214831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29691&fm=247356365971675&tin=02508201610067®Number=0000138879044617&sum=50000 [21:48:30]StoreToDocumentArchive [21:48:30]shift 117 fd 29691 [21:48:30]save to /storage/0117/doc_00029691 [21:48:30]save last doc name /storage/0117/doc_00029691 to /storage/kkm_last_doc_name [21:48:30]save OK [21:48:30]Clear old archive folders... [21:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:30]tlvbuf is B6F00350 [21:48:30]SAM_PROTO_ClearQueue [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 09 00 00 [21:48:30]Write to MH i2c: E2 08 00 59 23 80 09 00 00 00 00 00 00 EE [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [21:48:30]RAPDU: 90 00 [21:48:30]wFMCommunicate OK [21:48:30]SAM_PROTO_ClearQueue done [21:48:30]KKMCreateOFDPacket [21:48:30]OFDProtocolAddRootSTLVToBuf [21:48:30]FM_MakeSignedData [21:48:30]FM_MakeSignedData [21:48:30]SAM_PROTO_SignData [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 0D 01 02 [21:48:30]Write to MH i2c: E2 08 00 5A 23 80 0D 01 02 00 00 00 00 F6 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [21:48:30]RAPDU: 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=255 [21:48:30]MH_SAM_APDU [21:48: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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AF A0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 73 00 00 35 04 06 00 E0 [21:48:30]Write to MH i2c: E2 02 01 5B 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 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AF A0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 73 00 00 35 04 06 00 E0 00 00 62 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [21:48:30]RAPDU: 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=10 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 0D 02 02 05 F8 24 53 A0 DB [21:48:30]Write to MH i2c: E2 0D 00 5C 23 80 0D 02 02 05 00 F8 24 53 A0 DB 00 00 ED [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 03 00 5C 23 00 90 00 F3 [21:48:30]RAPDU: 90 00 [21:48:30]wFMCommunicate OK [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 0D 03 02 [21:48:30]Write to MH i2c: E2 08 00 5D 23 80 0D 03 02 00 00 00 00 FB [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 0B 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 0B 00 5D 23 00 73 E0 F9 BF C3 E6 B1 F6 90 00 57 [21:48:30]RAPDU: 73 E0 F9 BF C3 E6 B1 F6 90 00 [21:48:30]wFMCommunicate OK [21:48:30]SAM_PROTO_SignData done [21:48:30]FM_MakeSignedData done [21:48:30]CreateOFDProtocolMessage [21:48:30]wFMCommunicate request_size=4 [21:48:30]MH_SAM_APDU [21:48:30]CAPDU: 80 11 00 00 [21:48:30]Write to MH i2c: E2 08 00 5E 23 80 11 00 00 00 00 00 00 FB [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:30]Read from MH i2c: E2 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 17 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: E2 17 00 5E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [21:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:48:30]wFMCommunicate OK [21:48:30]CreateOFDProtocolMessage done [21:48:30]OFDSenderStorePacket 29691 [21:48:30]StoreOFDPacket docnum=29691 [21:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 ED 22 07 01 E7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AF A0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 73 00 00 35 04 06 00 E0 F8 24 53 A0 DB 73 E0 F9 BF C3 E6 B1 F6 [21:48:30]CheckFolder [21:48:30]dirname=/storage/ofd_packets [21:48:30]CheckFolder done [21:48:30]ProducePacketName [21:48:30]name=ofd_packets/00029691 [21:48:30]NVStorageSaveData ofd_packets/00029691 [21:48:30]File name is /storage/ofd_packets/00029691 [21:48:30]Write 301 bytes [21:48:30]NVStorageSaveData done [21:48:30]OFDSenderStorePacket done [21:48:30]KKMCreateOFDPacket done [21:48:30]NVStorageSaveData kkm_last_timestamp [21:48:30]File name is /storage/kkm_last_timestamp [21:48:30]Write 4 bytes [21:48:30]NVStorageSaveData done [21:48:30]ExternCall_PrintAddStr [21:48:30]wPrintStart [21:48:30]Write to MH i2c: 01 00 00 5F 23 82 [21:48:30]Write i2c OK [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: 01 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: 01 07 00 [21:48:30]MH_I2C_Read... [21:48:30]Read from MH i2c: 01 07 00 5F 23 00 00 00 00 00 FF 0F 97 [21:48:30]RasterBufferAndPrint [21:48:30]line Счет N : (1)348164 [21:48:30]line ИНН: 02508201610067 [21:48:30]line Контрольно-Кассовый Чек [21:48:30]line ПРОДАЖА [21:48:30]line ТРК (МРК, ГНК) : 32 [21:48:30]line Товар: 2710124130 [21:48:30]line Аи-92-К-5 [21:48:30]line 7.720 * 64.80 [21:48:30]line = 500.26 [21:48:30]line НДС 12% НСП 1% [21:48:30]line > о реализуемом товаре [21:48:30]line ОКРУГЛЕНИЕ: -0.26 [21:48:30]line ИТОГО: 500.00 [21:48:30]line Внесено: 500.00 [21:48:30]line СДАЧА: 0.00 [21:48:30]line НСП 1% : 4.43 [21:48:30]line НДС 12% : 53.12 [21:48:30]line Наличными: 500.00 [21:48:30]line Безнал.: 0.00 [21:48:30]line Место: АЗС № 108 "Партнер Нефть" [21:48:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:48:30]line СНО: Общий режим [21:48:30]line Чек 285 15.04.2024 21:48 [21:48:30]line Смена: 117 ФФД: 1.0 [21:48:30]line ЗНМ: 0300000027 [21:48:30]line РНМ: 0000138879044617 [21:48:30]line Версия ККМ: 001 [21:48:30]line ФМ: 0000000000963154 [21:48:30]line ФД: 29691 [21:48:30]line ФПД: 247356365971675 [21:48:30]line 1/tax-web-control/client/api/v1/ticket?date=20240415T214831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29691&fm=247356365971675&tin=02508201610067®Number=0000138879044617&sum=50000 [21:48:31]OFD Sender: Processing packet 29691 [packets to send 8, broken 7] [21:48:31]ProducePacketName [21:48:31]name=ofd_packets/00029691 [21:48:31]OFD Sender: To server: pG, [21:48:31]CommunicateWithHost lk.salyk.kg:30040 [21:48:31]ConnectInit lk.salyk.kg [21:48:31]written 0, free lines is 4095 [21:48:31]Connected sock=10 [21:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 ED 22 07 01 E7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 AF A0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 73 00 00 35 04 06 00 E0 F8 24 53 A0 DB 73 E0 F9 BF C3 E6 B1 F6 [21:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1D 21 47 00 02 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 39 36 33 31 35 34 10 04 04 00 FB 73 00 00 F4 03 04 00 4F 4B 1D 66 B6 04 01 00 00 7F E5 B2 DA DA C8 A8 9A [21:48:31]CommunicateWithHost err = 0 [21:48:31]CheckOFDResponse [21:48:31]1017 (14) - 77093643461234 [21:48:31]1041 (16) - 0000000000963154 [21:48:31]1040 (4) - 29691 [21:48:31]1012 (4) - 15.04.2024 15:44 [21:48:31]1206 (1) - 0 [21:48:31]OFD Sender: Remove packet 29691 [21:48:31]ProducePacketName [21:48:31]name=ofd_packets/00029691 [21:48:31]NVStorageDeleteData [21:48:31]Write to MH i2c: 01 00 00 89 23 AC [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: 01 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: 01 07 00 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: 01 07 00 89 23 00 00 00 00 00 CF 0C 8E [21:48:31]RasterBufferAndPrint [21:48:31]line [21:48:31]line [21:48:31]line [21:48:31]line [21:48:31]line [21:48:31]written 0, free lines is 3286 [21:48:31]MH_Cut [21:48:31]Write to MH i2c: D1 01 00 90 23 01 85 [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: D1 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: D1 01 00 [21:48:31]MH_I2C_Read... [21:48:31]Read from MH i2c: D1 01 00 90 23 00 84 [21:48:31]Write to MH i2c: 01 00 00 91 23 B4 [21:48:31]Write i2c OK [21:48:31]MH_I2C_Read... [21:48:31]OFD Sender: No OFD packet to send [21:48:32]*** Cut start [21:48:32]*** Partial cut [21:48:32]*** CUTSNS_PIN = 1 [21:48:32]*** CUTSNS_PIN = 0 [21:48:32]*** Brake cut motor [21:48:33]Read from MH i2c: 01 [21:48:33]MH_I2C_Read... [21:48:33]*** Stop cut motor [21:48:33]*** Cut end [21:48:33]Read from MH i2c: 01 07 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: 01 07 00 91 23 00 00 00 00 00 FF 0F C9 [21:48:33]process_action close_receipt done [21:48:33]requested_data is exist [21:48:33]produce_requested_data [21:48:33]requested_item fm.sn is exist - process it [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 11 00 00 [21:48:33]Write to MH i2c: E2 08 00 92 23 80 11 00 00 00 00 00 00 2F [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 17 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 17 00 92 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [21:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:48:33]wFMCommunicate OK [21:48:33]requested_item fd.num is exist - process it [21:48:33]SAM_PROTO_GetFieldsCounters [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 13 00 00 [21:48:33]Write to MH i2c: E2 08 00 93 23 80 13 00 00 00 00 00 00 32 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 62 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 62 00 93 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 73 00 00 0E 04 04 00 75 00 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 AD [21:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 73 00 00 0E 04 04 00 75 00 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 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_GetFieldsCounters done [21:48:33]requested_item shift.num is exist - process it [21:48:33]requested_item shift.opened is exist - process it [21:48:33]req_shift_opened [21:48:33]FM_GetShiftState [21:48:33]SAM_PROTO_GetShiftState [21:48:33]wFMCommunicate request_size=4 [21:48:33]MH_SAM_APDU [21:48:33]CAPDU: 80 13 01 00 [21:48:33]Write to MH i2c: E2 08 00 94 23 80 13 01 00 00 00 00 00 34 [21:48:33]Write i2c OK [21:48:33]MH_I2C_Read... [21:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:33]Read from MH i2c: E2 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0E 00 [21:48:33]MH_I2C_Read... [21:48:33]Read from MH i2c: E2 0E 00 94 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 28 [21:48:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:48:33]wFMCommunicate OK [21:48:33]SAM_PROTO_GetShiftState done [21:48:33]FM_GetShiftState done [21:48:33]req_shift_opened done [21:48:33]requested_item shift.open_date is exist - process it [21:48:33]req_shift_open_date [21:48:33]req_shift_open_date done [21:48:33]produce_requested_data done [21:48:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29691,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:48:33]process_action_free close_receipt [21:48:33]json_value_free [21:48:33]json_value_free done [21:48:33]process_json_proto returns [21:48:33]Send response to host [21:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29691,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:48:33]free response buf [21:48:33]execute_script done [21:48:33]execute_script returns [21:48:33]free content buf [21:48:33]Sock 9.Close socket [21:48:33]Sock 9.Thread stoped [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:16]accept exits with 7 [21:56:16]New connection [21:56:16]New thread 3066965348 created [21:56:16]Thread 3067108708 joined [21:56:16]Waiting for new connection... [21:56:16] Sock 7.Parse request [21:56:16]Sock 7.Check first char [21:56:16]Sock 7.First char is OK [21:56:16]request: POST /json_proto HTTP/1.0 [21:56:16]Method: POST [21:56:16]URL: /json_proto [21:56:16]Method is POST - this is cgi request [21:56:16]url: /json_proto [21:56:16]query_string will be loaded in cgi processing [21:56:16]execute_cgi json_proto POST (null) [21:56:16]execute_cgi path=json_proto method=POST [21:56:16]POST find Content-Length [21:56:16]Host: 172.17.33.3:8080 [21:56:16]Content-Length: 674 [21:56:16]Content-Type: application/json [21:56:16] [21:56:16]POST finish read [21:56:16]Found Content-Length = 674 [21:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.550, "sum" : 404.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 404.00, "total" : 404.00, "payments": [ { "type": 0, "sum" : 404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:16]execute_script... [21:56: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)348165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.550, "sum" : 404.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 404.00, "total" : 404.00, "payments": [ { "type": 0, "sum" : 404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:16]POST & json_proto [21:56:16]process_json_proto [21:56:16]json parsed OK: [21:56:16]protocol is kg_v1.0 [21:56:16]action value=close_receipt [21:56:16]process_action close_receipt [21:56:16]cmd_close_receipt [21:56:16]MH_GetDate [21:56:16]Write to MH i2c: F0 00 00 95 23 A7 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: F0 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: F0 09 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: F0 09 00 95 23 00 83 A2 1D 66 23 5B 8F 65 CA [21:56:16]GetLastDocTimeStamp 1713217711 [21:56:16]current date 1713218179 [21:56:16]FM_GetShiftState [21:56:16]SAM_PROTO_GetShiftState [21:56:16]wFMCommunicate request_size=4 [21:56:16]MH_SAM_APDU [21:56:16]CAPDU: 80 13 01 00 [21:56:16]Write to MH i2c: E2 08 00 96 23 80 13 01 00 00 00 00 00 36 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:17]Read from MH i2c: E2 [21:56:17]MH_I2C_Read... [21:56:17]Read from MH i2c: E2 0E 00 [21:56:17]MH_I2C_Read... [21:56:17]Read from MH i2c: E2 0E 00 96 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2A [21:56:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:56:17]wFMCommunicate OK [21:56:17]SAM_PROTO_GetShiftState done [21:56:17]FM_GetShiftState done [21:56:17]opened in 1713140468 [21:56:17]opened+sec_in_day 1713226868 [21:56:17]quantity*price = 40459 [21:56:17]sum+1 = 40461 [21:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 404.00 Внесено: 404.00 СДАЧА: 0.00 НСП 1% : 3.58 НДС 12% : 42.97 Наличными: 404.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 286 15.04.2024 21:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29692 ФПД: 215558403586091 1/tax-web-control/client/api/v1/ticket?date=20240415T215619&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29692&fm=215558403586091&tin=02508201610067®Number=0000138879044617&sum=40400 [21:56:18]StoreToDocumentArchive [21:56:18]shift 117 fd 29692 [21:56:18]save to /storage/0117/doc_00029692 [21:56:18]save last doc name /storage/0117/doc_00029692 to /storage/kkm_last_doc_name [21:56:18]save OK [21:56:18]Clear old archive folders... [21:56:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:56:18]tlvbuf is B6F003A0 [21:56:18]SAM_PROTO_ClearQueue [21:56:18]wFMCommunicate request_size=4 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 09 00 00 [21:56:18]Write to MH i2c: E2 08 00 A3 23 80 09 00 00 00 00 00 00 38 [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [21:56:18]RAPDU: 90 00 [21:56:18]wFMCommunicate OK [21:56:18]SAM_PROTO_ClearQueue done [21:56:18]KKMCreateOFDPacket [21:56:18]OFDProtocolAddRootSTLVToBuf [21:56:18]FM_MakeSignedData [21:56:18]FM_MakeSignedData [21:56:18]SAM_PROTO_SignData [21:56:18]wFMCommunicate request_size=4 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 0D 01 02 [21:56:18]Write to MH i2c: E2 08 00 A4 23 80 0D 01 02 00 00 00 00 40 [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [21:56:18]RAPDU: 90 00 [21:56:18]wFMCommunicate OK [21:56:18]wFMCommunicate request_size=255 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 10 00 00 00 00 07 04 06 00 D0 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 A2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 73 00 00 35 04 06 00 C4 0C 9A 12 [21:56:18]Write to MH i2c: E2 02 01 A5 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 10 00 00 00 00 07 04 06 00 D0 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 A2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 73 00 00 35 04 06 00 C4 0C 9A 12 00 00 FE [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [21:56:18]RAPDU: 90 00 [21:56:18]wFMCommunicate OK [21:56:18]wFMCommunicate request_size=7 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 0D 02 02 02 F8 2B [21:56:18]Write to MH i2c: E2 0A 00 A6 23 80 0D 02 02 02 00 F8 2B 00 00 6A [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 03 00 A6 23 00 90 00 3D [21:56:18]RAPDU: 90 00 [21:56:18]wFMCommunicate OK [21:56:18]wFMCommunicate request_size=4 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 0D 03 02 [21:56:18]Write to MH i2c: E2 08 00 A7 23 80 0D 03 02 00 00 00 00 45 [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 0B 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 0B 00 A7 23 00 46 08 8E C6 54 B6 12 0D 90 00 11 [21:56:18]RAPDU: 46 08 8E C6 54 B6 12 0D 90 00 [21:56:18]wFMCommunicate OK [21:56:18]SAM_PROTO_SignData done [21:56:18]FM_MakeSignedData done [21:56:18]CreateOFDProtocolMessage [21:56:18]wFMCommunicate request_size=4 [21:56:18]MH_SAM_APDU [21:56:18]CAPDU: 80 11 00 00 [21:56:18]Write to MH i2c: E2 08 00 A8 23 80 11 00 00 00 00 00 00 45 [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:18]Read from MH i2c: E2 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 17 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: E2 17 00 A8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [21:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:56:18]wFMCommunicate OK [21:56:18]CreateOFDProtocolMessage done [21:56:18]OFDSenderStorePacket 29692 [21:56:18]StoreOFDPacket docnum=29692 [21:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 64 54 04 01 F9 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 10 00 00 00 00 07 04 06 00 D0 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 A2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 73 00 00 35 04 06 00 C4 0C 9A 12 F8 2B 46 08 8E C6 54 B6 12 0D [21:56:18]CheckFolder [21:56:18]dirname=/storage/ofd_packets [21:56:18]CheckFolder done [21:56:18]ProducePacketName [21:56:18]name=ofd_packets/00029692 [21:56:18]NVStorageSaveData ofd_packets/00029692 [21:56:18]File name is /storage/ofd_packets/00029692 [21:56:18]Write 298 bytes [21:56:18]NVStorageSaveData done [21:56:18]OFDSenderStorePacket done [21:56:18]KKMCreateOFDPacket done [21:56:18]NVStorageSaveData kkm_last_timestamp [21:56:18]File name is /storage/kkm_last_timestamp [21:56:18]Write 4 bytes [21:56:18]NVStorageSaveData done [21:56:18]ExternCall_PrintAddStr [21:56:18]wPrintStart [21:56:18]Write to MH i2c: 01 00 00 A9 23 CC [21:56:18]Write i2c OK [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: 01 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: 01 07 00 [21:56:18]MH_I2C_Read... [21:56:18]Read from MH i2c: 01 07 00 A9 23 00 00 00 00 00 FF 0F E1 [21:56:18]RasterBufferAndPrint [21:56:18]line Счет N : (1)348165 [21:56:18]line ИНН: 02508201610067 [21:56:18]line Контрольно-Кассовый Чек [21:56:18]line ПРОДАЖА [21:56:18]line ТРК (МРК, ГНК) : 21 [21:56:18]line Товар: 2710194210 [21:56:18]line ДТ-К-5 [21:56:18]line 5.550 * 72.90 [21:56:18]line = 404.60 [21:56:18]line НДС 12% НСП 1% [21:56:18]line > о реализуемом товаре [21:56:18]line ОКРУГЛЕНИЕ: -0.60 [21:56:18]line ИТОГО: 404.00 [21:56:18]line Внесено: 404.00 [21:56:18]line СДАЧА: 0.00 [21:56:18]line НСП 1% : 3.58 [21:56:18]line НДС 12% : 42.97 [21:56:18]line Наличными: 404.00 [21:56:18]line Безнал.: 0.00 [21:56:18]line Место: АЗС № 108 "Партнер Нефть" [21:56:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:56:18]line СНО: Общий режим [21:56:18]line Чек 286 15.04.2024 21:56 [21:56:18]line Смена: 117 ФФД: 1.0 [21:56:18]line ЗНМ: 0300000027 [21:56:18]line РНМ: 0000138879044617 [21:56:18]line Версия ККМ: 001 [21:56:18]line ФМ: 0000000000963154 [21:56:18]line ФД: 29692 [21:56:18]line ФПД: 215558403586091 [21:56:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T215619&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29692&fm=215558403586091&tin=02508201610067®Number=0000138879044617&sum=40400 [21:56:18]OFD Sender: Processing packet 29692 [packets to send 8, broken 7] [21:56:18]ProducePacketName [21:56:18]name=ofd_packets/00029692 [21:56:18]OFD Sender: To server: pG, [21:56:18]CommunicateWithHost lk.salyk.kg:30040 [21:56:18]ConnectInit lk.salyk.kg [21:56:19]written 0, free lines is 4095 [21:56:19]Connected sock=10 [21:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 64 54 04 01 F9 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 10 00 00 00 00 07 04 06 00 D0 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 A2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 73 00 00 35 04 06 00 C4 0C 9A 12 F8 2B 46 08 8E C6 54 B6 12 0D [21:56:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 F9 47 00 0E 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 39 36 33 31 35 34 10 04 04 00 FC 73 00 00 F4 03 04 00 23 4D 1D 66 B6 04 01 00 00 B3 6E 9C F3 59 5F 50 AB [21:56:19]CommunicateWithHost err = 0 [21:56:19]CheckOFDResponse [21:56:19]1017 (14) - 77093643461234 [21:56:19]1041 (16) - 0000000000963154 [21:56:19]1040 (4) - 29692 [21:56:19]1012 (4) - 15.04.2024 15:52 [21:56:19]1206 (1) - 0 [21:56:19]OFD Sender: Remove packet 29692 [21:56:19]ProducePacketName [21:56:19]name=ofd_packets/00029692 [21:56:19]NVStorageDeleteData [21:56:19]Write to MH i2c: 01 00 00 D3 23 F6 [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: 01 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: 01 07 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: 01 07 00 D3 23 00 00 00 00 00 CA 0C D3 [21:56:19]RasterBufferAndPrint [21:56:19]line [21:56:19]line [21:56:19]line [21:56:19]line [21:56:19]line [21:56:19]written 0, free lines is 3280 [21:56:19]MH_Cut [21:56:19]Write to MH i2c: D1 01 00 DA 23 01 CF [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: D1 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: D1 01 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: D1 01 00 DA 23 00 CE [21:56:19]Write to MH i2c: 01 00 00 DB 23 FE [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]OFD Sender: No OFD packet to send [21:56:20]*** Cut start [21:56:20]*** Partial cut [21:56:20]*** CUTSNS_PIN = 1 [21:56:20]*** CUTSNS_PIN = 0 [21:56:20]*** Brake cut motor [21:56:20]Read from MH i2c: 01 [21:56:20]MH_I2C_Read... [21:56:20]*** Stop cut motor [21:56:20]*** Cut end [21:56:20]Read from MH i2c: 01 07 00 [21:56:20]MH_I2C_Read... [21:56:20]Read from MH i2c: 01 07 00 DB 23 00 00 00 00 00 FF 0F 13 [21:56:20]process_action close_receipt done [21:56:20]requested_data is exist [21:56:20]produce_requested_data [21:56:20]requested_item fm.sn is exist - process it [21:56:20]wFMCommunicate request_size=4 [21:56:20]MH_SAM_APDU [21:56:20]CAPDU: 80 11 00 00 [21:56:20]Write to MH i2c: E2 08 00 DC 23 80 11 00 00 00 00 00 00 79 [21:56:20]Write i2c OK [21:56:20]MH_I2C_Read... [21:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:20]Read from MH i2c: E2 [21:56:20]MH_I2C_Read... [21:56:20]Read from MH i2c: E2 17 00 [21:56:20]MH_I2C_Read... [21:56:20]Read from MH i2c: E2 17 00 DC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [21:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:56:20]wFMCommunicate OK [21:56:20]requested_item fd.num is exist - process it [21:56:20]SAM_PROTO_GetFieldsCounters [21:56:20]wFMCommunicate request_size=4 [21:56:20]MH_SAM_APDU [21:56:20]CAPDU: 80 13 00 00 [21:56:20]Write to MH i2c: E2 08 00 DD 23 80 13 00 00 00 00 00 00 7C [21:56:20]Write i2c OK [21:56:20]MH_I2C_Read... [21:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:21]Read from MH i2c: E2 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 62 00 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 62 00 DD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 73 00 00 0E 04 04 00 75 00 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 FB [21:56:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 73 00 00 0E 04 04 00 75 00 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 [21:56:21]wFMCommunicate OK [21:56:21]SAM_PROTO_GetFieldsCounters done [21:56:21]requested_item shift.num is exist - process it [21:56:21]requested_item shift.opened is exist - process it [21:56:21]req_shift_opened [21:56:21]FM_GetShiftState [21:56:21]SAM_PROTO_GetShiftState [21:56:21]wFMCommunicate request_size=4 [21:56:21]MH_SAM_APDU [21:56:21]CAPDU: 80 13 01 00 [21:56:21]Write to MH i2c: E2 08 00 DE 23 80 13 01 00 00 00 00 00 7E [21:56:21]Write i2c OK [21:56:21]MH_I2C_Read... [21:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:21]Read from MH i2c: E2 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 0E 00 [21:56:21]MH_I2C_Read... [21:56:21]Read from MH i2c: E2 0E 00 DE 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 72 [21:56:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [21:56:21]wFMCommunicate OK [21:56:21]SAM_PROTO_GetShiftState done [21:56:21]FM_GetShiftState done [21:56:21]req_shift_opened done [21:56:21]requested_item shift.open_date is exist - process it [21:56:21]req_shift_open_date [21:56:21]req_shift_open_date done [21:56:21]produce_requested_data done [21:56:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29692,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [21:56:21]process_action_free close_receipt [21:56:21]json_value_free [21:56:21]json_value_free done [21:56:21]process_json_proto returns [21:56:21]Send response to host [21:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29692,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [21:56:21]free response buf [21:56:21]execute_script done [21:56:21]execute_script returns [21:56:21]free content buf [21:56:21]Sock 7.Close socket [21:56:21]Sock 7.Thread stoped [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:41]accept exits with 9 [22:00:41]New connection [22:00:41]New thread 3067108708 created [22:00:41]Thread 3066965348 joined [22:00:41]Waiting for new connection... [22:00:41] Sock 9.Parse request [22:00:41]Sock 9.Check first char [22:00:41]Sock 9.First char is OK [22:00:41]request: POST /json_proto HTTP/1.0 [22:00:41]Method: POST [22:00:41]URL: /json_proto [22:00:41]Method is POST - this is cgi request [22:00:41]url: /json_proto [22:00:41]query_string will be loaded in cgi processing [22:00:41]execute_cgi json_proto POST (null) [22:00:41]execute_cgi path=json_proto method=POST [22:00:41]POST find Content-Length [22:00:41]Host: 172.17.33.3:8080 [22:00:41]Content-Length: 840 [22:00:41]Content-Type: application/json [22:00:41] [22:00:41]POST finish read [22:00:41]Found Content-Length = 840 [22:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:41]execute_script... [22:00:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:41]POST & json_proto [22:00:41]process_json_proto [22:00:41]json parsed OK: [22:00:41]protocol is kg_v1.0 [22:00:41]action value=close_receipt [22:00:41]process_action close_receipt [22:00:41]cmd_close_receipt [22:00:41]MH_GetDate [22:00:41]Write to MH i2c: F0 00 00 DF 23 F1 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: F0 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: F0 09 00 [22:00:41]MH_I2C_Read... [22:00:41]Read from MH i2c: F0 09 00 DF 23 00 8C A3 1D 66 23 5B 8F 65 1E [22:00:41]GetLastDocTimeStamp 1713218179 [22:00:41]current date 1713218444 [22:00:41]FM_GetShiftState [22:00:41]SAM_PROTO_GetShiftState [22:00:41]wFMCommunicate request_size=4 [22:00:41]MH_SAM_APDU [22:00:41]CAPDU: 80 13 01 00 [22:00:41]Write to MH i2c: E2 08 00 E0 23 80 13 01 00 00 00 00 00 80 [22:00:41]Write i2c OK [22:00:41]MH_I2C_Read... [22:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:42]Read from MH i2c: E2 [22:00:42]MH_I2C_Read... [22:00:42]Read from MH i2c: E2 0E 00 [22:00:42]MH_I2C_Read... [22:00:42]Read from MH i2c: E2 0E 00 E0 23 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 74 [22:00:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:00:42]wFMCommunicate OK [22:00:42]SAM_PROTO_GetShiftState done [22:00:42]FM_GetShiftState done [22:00:42]opened in 1713140468 [22:00:42]opened+sec_in_day 1713226868 [22:00:42]quantity*price = 60004 [22:00:42]sum+1 = 60006 [22:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.05 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.05 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 287 15.04.2024 22:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29693 ФПД: 258708009112957 1/tax-web-control/client/api/v1/ticket?date=20240415T220044&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29693&fm=258708009112957&tin=02508201610067®Number=0000138879044617&sum=60005 [22:00:43]StoreToDocumentArchive [22:00:43]shift 117 fd 29693 [22:00:43]save to /storage/0117/doc_00029693 [22:00:43]save last doc name /storage/0117/doc_00029693 to /storage/kkm_last_doc_name [22:00:43]save OK [22:00:43]Clear old archive folders... [22:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:43]tlvbuf is B6DCE100 [22:00:43]SAM_PROTO_ClearQueue [22:00:43]wFMCommunicate request_size=4 [22:00:43]MH_SAM_APDU [22:00:43]CAPDU: 80 09 00 00 [22:00:43]Write to MH i2c: E2 08 00 ED 23 80 09 00 00 00 00 00 00 82 [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 ED 23 00 90 00 84 [22:00:43]RAPDU: 90 00 [22:00:43]wFMCommunicate OK [22:00:43]SAM_PROTO_ClearQueue done [22:00:43]KKMCreateOFDPacket [22:00:43]OFDProtocolAddRootSTLVToBuf [22:00:43]FM_MakeSignedData [22:00:43]FM_MakeSignedData [22:00:43]SAM_PROTO_SignData [22:00:43]wFMCommunicate request_size=4 [22:00:43]MH_SAM_APDU [22:00:43]CAPDU: 80 0D 01 02 [22:00:43]Write to MH i2c: E2 08 00 EE 23 80 0D 01 02 00 00 00 00 8A [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [22:00:43]RAPDU: 90 00 [22:00:43]wFMCommunicate OK [22:00:43]wFMCommunicate request_size=255 [22:00:43]MH_SAM_APDU [22:00: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 8C A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 73 00 00 35 04 06 00 EB [22:00:43]Write to MH i2c: E2 02 01 EF 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 8C A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 73 00 00 35 04 06 00 EB 00 00 0A [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [22:00:43]RAPDU: 90 00 [22:00:43]wFMCommunicate OK [22:00:43]wFMCommunicate request_size=10 [22:00:43]MH_SAM_APDU [22:00:43]CAPDU: 80 0D 02 02 05 4B 26 FB D5 7D [22:00:43]Write to MH i2c: E2 0D 00 F0 23 80 0D 02 02 05 00 4B 26 FB D5 7D 00 00 55 [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [22:00:43]RAPDU: 90 00 [22:00:43]wFMCommunicate OK [22:00:43]wFMCommunicate request_size=4 [22:00:43]MH_SAM_APDU [22:00:43]CAPDU: 80 0D 03 02 [22:00:43]Write to MH i2c: E2 08 00 F1 23 80 0D 03 02 00 00 00 00 8F [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 0B 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 0B 00 F1 23 00 94 E0 6A 56 1A C1 A0 ED 90 00 2C [22:00:43]RAPDU: 94 E0 6A 56 1A C1 A0 ED 90 00 [22:00:43]wFMCommunicate OK [22:00:43]SAM_PROTO_SignData done [22:00:43]FM_MakeSignedData done [22:00:43]CreateOFDProtocolMessage [22:00:43]wFMCommunicate request_size=4 [22:00:43]MH_SAM_APDU [22:00:43]CAPDU: 80 11 00 00 [22:00:43]Write to MH i2c: E2 08 00 F2 23 80 11 00 00 00 00 00 00 8F [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:43]Read from MH i2c: E2 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 17 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: E2 17 00 F2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [22:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:00:43]wFMCommunicate OK [22:00:43]CreateOFDProtocolMessage done [22:00:43]OFDSenderStorePacket 29693 [22:00:43]StoreOFDPacket docnum=29693 [22:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C D3 07 01 0E 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 8C A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 73 00 00 35 04 06 00 EB 4B 26 FB D5 7D 94 E0 6A 56 1A C1 A0 ED [22:00:43]CheckFolder [22:00:43]dirname=/storage/ofd_packets [22:00:43]CheckFolder done [22:00:43]ProducePacketName [22:00:43]name=ofd_packets/00029693 [22:00:43]NVStorageSaveData ofd_packets/00029693 [22:00:43]File name is /storage/ofd_packets/00029693 [22:00:43]Write 301 bytes [22:00:43]NVStorageSaveData done [22:00:43]OFDSenderStorePacket done [22:00:43]KKMCreateOFDPacket done [22:00:43]NVStorageSaveData kkm_last_timestamp [22:00:43]File name is /storage/kkm_last_timestamp [22:00:43]Write 4 bytes [22:00:43]NVStorageSaveData done [22:00:43]ExternCall_PrintAddStr [22:00:43]wPrintStart [22:00:43]Write to MH i2c: 01 00 00 F3 23 16 [22:00:43]Write i2c OK [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: 01 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: 01 07 00 [22:00:43]MH_I2C_Read... [22:00:43]Read from MH i2c: 01 07 00 F3 23 00 00 00 00 00 FF 0F 2B [22:00:43]RasterBufferAndPrint [22:00:43]line Счет N : (1)348166 [22:00:43]line ИНН: 02508201610067 [22:00:43]line Контрольно-Кассовый Чек [22:00:43]line ПРОДАЖА [22:00:43]line ТРК (МРК, ГНК) : 23 [22:00:43]line Товар: 2710124130 [22:00:43]line Аи-92-К-5 [22:00:43]line 9.260 * 64.80 [22:00:43]line = 600.05 [22:00:43]line НДС 12% НСП 1% [22:00:43]line > о реализуемом товаре [22:00:43]line ИТОГО: 600.05 [22:00:43]line НСП 1% : 5.31 [22:00:43]line НДС 12% : 63.72 [22:00:43]line Наличными: 0.00 [22:00:43]line Безнал.: 600.05 [22:00:43]line Место: АЗС № 108 "Партнер Нефть" [22:00:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:00:43]line СНО: Общий режим [22:00:43]line Чек 287 15.04.2024 22:00 [22:00:43]line Смена: 117 ФФД: 1.0 [22:00:43]line ЗНМ: 0300000027 [22:00:43]line РНМ: 0000138879044617 [22:00:43]line Версия ККМ: 001 [22:00:43]line Платежная система: АКБ Кыргызстан [22:00:43]line ФМ: 0000000000963154 [22:00:43]line ФД: 29693 [22:00:43]line ФПД: 258708009112957 [22:00:43]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220044&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29693&fm=258708009112957&tin=02508201610067®Number=0000138879044617&sum=60005 [22:00:43]OFD Sender: Processing packet 29693 [packets to send 8, broken 7] [22:00:43]ProducePacketName [22:00:43]name=ofd_packets/00029693 [22:00:43]OFD Sender: To server: pG, [22:00:43]CommunicateWithHost lk.salyk.kg:30040 [22:00:43]ConnectInit lk.salyk.kg [22:00:43]written 0, free lines is 4095 [22:00:44]Connected sock=10 [22:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1C D3 07 01 0E 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 8C A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 73 00 00 35 04 06 00 EB 4B 26 FB D5 7D 94 E0 6A 56 1A C1 A0 ED [22:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 67 79 47 00 52 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 39 36 33 31 35 34 10 04 04 00 FD 73 00 00 F4 03 04 00 2C 4E 1D 66 B6 04 01 00 00 78 C6 F6 38 E8 3B 07 D0 [22:00:44]CommunicateWithHost err = 0 [22:00:44]CheckOFDResponse [22:00:44]1017 (14) - 77093643461234 [22:00:44]1041 (16) - 0000000000963154 [22:00:44]1040 (4) - 29693 [22:00:44]1012 (4) - 15.04.2024 15:56 [22:00:44]1206 (1) - 0 [22:00:44]OFD Sender: Remove packet 29693 [22:00:44]ProducePacketName [22:00:44]name=ofd_packets/00029693 [22:00:44]NVStorageDeleteData [22:00:44]Write to MH i2c: 01 00 00 1C 24 40 [22:00:44]Write i2c OK [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: 01 [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: 01 07 00 [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 E1 0C 34 [22:00:44]RasterBufferAndPrint [22:00:44]line [22:00:44]line [22:00:44]line [22:00:44]line [22:00:44]line [22:00:44]written 0, free lines is 3306 [22:00:44]MH_Cut [22:00:44]Write to MH i2c: D1 01 00 23 24 01 19 [22:00:44]Write i2c OK [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: D1 [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: D1 01 00 [22:00:44]MH_I2C_Read... [22:00:44]Read from MH i2c: D1 01 00 23 24 00 18 [22:00:44]Write to MH i2c: 01 00 00 24 24 48 [22:00:44]Write i2c OK [22:00:44]MH_I2C_Read... [22:00:44]OFD Sender: No OFD packet to send [22:00:45]*** Cut start [22:00:45]*** Partial cut [22:00:45]*** CUTSNS_PIN = 1 [22:00:45]*** CUTSNS_PIN = 0 [22:00:45]*** Brake cut motor [22:00:45]Read from MH i2c: 01 [22:00:45]MH_I2C_Read... [22:00:45]*** Stop cut motor [22:00:45]*** Cut end [22:00:45]Read from MH i2c: 01 07 00 [22:00:45]MH_I2C_Read... [22:00:45]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 FF 0F 5D [22:00:45]process_action close_receipt done [22:00:45]requested_data is exist [22:00:45]produce_requested_data [22:00:45]requested_item fm.sn is exist - process it [22:00:45]wFMCommunicate request_size=4 [22:00:45]MH_SAM_APDU [22:00:45]CAPDU: 80 11 00 00 [22:00:45]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [22:00:45]Write i2c OK [22:00:45]MH_I2C_Read... [22:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:45]Read from MH i2c: E2 [22:00:45]MH_I2C_Read... [22:00:45]Read from MH i2c: E2 17 00 [22:00:45]MH_I2C_Read... [22:00:45]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [22:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:00:45]wFMCommunicate OK [22:00:45]requested_item fd.num is exist - process it [22:00:45]SAM_PROTO_GetFieldsCounters [22:00:45]wFMCommunicate request_size=4 [22:00:45]MH_SAM_APDU [22:00:45]CAPDU: 80 13 00 00 [22:00:45]Write to MH i2c: E2 08 00 26 24 80 13 00 00 00 00 00 00 C6 [22:00:45]Write i2c OK [22:00:45]MH_I2C_Read... [22:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:46]Read from MH i2c: E2 [22:00:46]MH_I2C_Read... [22:00:46]Read from MH i2c: E2 62 00 [22:00:46]MH_I2C_Read... [22:00:46]Read from MH i2c: E2 62 00 26 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:00:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:46]wFMCommunicate OK [22:00:46]SAM_PROTO_GetFieldsCounters done [22:00:46]requested_item shift.num is exist - process it [22:00:46]requested_item shift.opened is exist - process it [22:00:46]req_shift_opened [22:00:46]FM_GetShiftState [22:00:46]SAM_PROTO_GetShiftState [22:00:46]wFMCommunicate request_size=4 [22:00:46]MH_SAM_APDU [22:00:46]CAPDU: 80 13 01 00 [22:00:46]Write to MH i2c: E2 08 00 27 24 80 13 01 00 00 00 00 00 C8 [22:00:46]Write i2c OK [22:00:46]MH_I2C_Read... [22:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:46]Read from MH i2c: E2 [22:00:46]MH_I2C_Read... [22:00:46]Read from MH i2c: E2 0E 00 [22:00:46]MH_I2C_Read... [22:00:46]Read from MH i2c: E2 0E 00 27 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BC [22:00:46]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:00:46]wFMCommunicate OK [22:00:46]SAM_PROTO_GetShiftState done [22:00:46]FM_GetShiftState done [22:00:46]req_shift_opened done [22:00:46]requested_item shift.open_date is exist - process it [22:00:46]req_shift_open_date [22:00:46]req_shift_open_date done [22:00:46]produce_requested_data done [22:00:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29693,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:00:46]process_action_free close_receipt [22:00:46]json_value_free [22:00:46]json_value_free done [22:00:46]process_json_proto returns [22:00:46]Send response to host [22:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29693,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:00:46]free response buf [22:00:46]execute_script done [22:00:46]execute_script returns [22:00:46]free content buf [22:00:46]Sock 9.Close socket [22:00:46]Sock 9.Thread stoped [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:22]accept exits with 7 [22:01:22]New connection [22:01:22]New thread 3066965348 created [22:01:22]Thread 3067108708 joined [22:01:22]Waiting for new connection... [22:01:22] Sock 7.Parse request [22:01:22]Sock 7.Check first char [22:01:22]Sock 7.First char is OK [22:01:22]request: POST /json_proto HTTP/1.0 [22:01:22]Method: POST [22:01:22]URL: /json_proto [22:01:22]Method is POST - this is cgi request [22:01:22]url: /json_proto [22:01:22]query_string will be loaded in cgi processing [22:01:22]execute_cgi json_proto POST (null) [22:01:22]execute_cgi path=json_proto method=POST [22:01:22]POST find Content-Length [22:01:22]Host: 172.17.33.3:8080 [22:01:22]Content-Length: 843 [22:01:22]Content-Type: application/json [22:01:22] [22:01:22]POST finish read [22:01:22]Found Content-Length = 843 [22:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348167", "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" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:22]execute_script... [22:01: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)348167", "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" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:22]POST & json_proto [22:01:22]process_json_proto [22:01:22]json parsed OK: [22:01:22]protocol is kg_v1.0 [22:01:22]action value=close_receipt [22:01:22]process_action close_receipt [22:01:22]cmd_close_receipt [22:01:22]MH_GetDate [22:01:22]Write to MH i2c: F0 00 00 28 24 3B [22:01:22]Write i2c OK [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: F0 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: F0 09 00 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: F0 09 00 28 24 00 B4 A3 1D 66 23 5B 8F 65 90 [22:01:22]GetLastDocTimeStamp 1713218444 [22:01:22]current date 1713218484 [22:01:22]FM_GetShiftState [22:01:22]SAM_PROTO_GetShiftState [22:01:22]wFMCommunicate request_size=4 [22:01:22]MH_SAM_APDU [22:01:22]CAPDU: 80 13 01 00 [22:01:22]Write to MH i2c: E2 08 00 29 24 80 13 01 00 00 00 00 00 CA [22:01:22]Write i2c OK [22:01:22]MH_I2C_Read... [22:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:22]Read from MH i2c: E2 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: E2 0E 00 [22:01:22]MH_I2C_Read... [22:01:22]Read from MH i2c: E2 0E 00 29 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BE [22:01:22]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:01:22]wFMCommunicate OK [22:01:22]SAM_PROTO_GetShiftState done [22:01:22]FM_GetShiftState done [22:01:22]opened in 1713140468 [22:01:22]opened+sec_in_day 1713226868 [22:01:22]quantity*price = 100051 [22:01:22]sum+1 = 100052 [22:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 288 15.04.2024 22:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29694 ФПД: 12699834219231 1/tax-web-control/client/api/v1/ticket?date=20240415T220124&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29694&fm=12699834219231&tin=02508201610067®Number=0000138879044617&sum=100051 [22:01:23]StoreToDocumentArchive [22:01:23]shift 117 fd 29694 [22:01:23]save to /storage/0117/doc_00029694 [22:01:23]save last doc name /storage/0117/doc_00029694 to /storage/kkm_last_doc_name [22:01:23]save OK [22:01:23]Clear old archive folders... [22:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:23]tlvbuf is 01A9A5E0 [22:01:23]SAM_PROTO_ClearQueue [22:01:23]wFMCommunicate request_size=4 [22:01:23]MH_SAM_APDU [22:01:23]CAPDU: 80 09 00 00 [22:01:23]Write to MH i2c: E2 08 00 36 24 80 09 00 00 00 00 00 00 CC [22:01:23]Write i2c OK [22:01:23]MH_I2C_Read... [22:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:23]Read from MH i2c: E2 [22:01:23]MH_I2C_Read... [22:01:23]Read from MH i2c: E2 03 00 [22:01:23]MH_I2C_Read... [22:01:23]Read from MH i2c: E2 03 00 36 24 00 90 00 CE [22:01:23]RAPDU: 90 00 [22:01:23]wFMCommunicate OK [22:01:23]SAM_PROTO_ClearQueue done [22:01:23]KKMCreateOFDPacket [22:01:23]OFDProtocolAddRootSTLVToBuf [22:01:23]FM_MakeSignedData [22:01:23]FM_MakeSignedData [22:01:23]SAM_PROTO_SignData [22:01:23]wFMCommunicate request_size=4 [22:01:23]MH_SAM_APDU [22:01:23]CAPDU: 80 0D 01 02 [22:01:23]Write to MH i2c: E2 08 00 37 24 80 0D 01 02 00 00 00 00 D4 [22:01:23]Write i2c OK [22:01:23]MH_I2C_Read... [22:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:23]Read from MH i2c: E2 [22:01:23]MH_I2C_Read... [22:01:23]Read from MH i2c: E2 03 00 [22:01:23]MH_I2C_Read... [22:01:23]Read from MH i2c: E2 03 00 37 24 00 90 00 CF [22:01:23]RAPDU: 90 00 [22:01:23]wFMCommunicate OK [22:01:23]wFMCommunicate request_size=255 [22:01:23]MH_SAM_APDU [22:01: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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 73 00 00 35 04 06 00 0B [22:01:23]Write to MH i2c: E2 02 01 38 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 73 00 00 35 04 06 00 0B 00 00 0C [22:01:23]Write i2c OK [22:01:23]MH_I2C_Read... [22:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:24]Read from MH i2c: E2 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 03 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 03 00 38 24 00 90 00 D0 [22:01:24]RAPDU: 90 00 [22:01:24]wFMCommunicate OK [22:01:24]wFMCommunicate request_size=10 [22:01:24]MH_SAM_APDU [22:01:24]CAPDU: 80 0D 02 02 05 8C E9 1B 7A DF [22:01:24]Write to MH i2c: E2 0D 00 39 24 80 0D 02 02 05 00 8C E9 1B 7A DF 00 00 CA [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:24]Read from MH i2c: E2 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 03 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [22:01:24]RAPDU: 90 00 [22:01:24]wFMCommunicate OK [22:01:24]wFMCommunicate request_size=4 [22:01:24]MH_SAM_APDU [22:01:24]CAPDU: 80 0D 03 02 [22:01:24]Write to MH i2c: E2 08 00 3A 24 80 0D 03 02 00 00 00 00 D9 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:24]Read from MH i2c: E2 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 0B 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 0B 00 3A 24 00 2B 25 1D 06 B9 8E DF A5 90 00 18 [22:01:24]RAPDU: 2B 25 1D 06 B9 8E DF A5 90 00 [22:01:24]wFMCommunicate OK [22:01:24]SAM_PROTO_SignData done [22:01:24]FM_MakeSignedData done [22:01:24]CreateOFDProtocolMessage [22:01:24]wFMCommunicate request_size=4 [22:01:24]MH_SAM_APDU [22:01:24]CAPDU: 80 11 00 00 [22:01:24]Write to MH i2c: E2 08 00 3B 24 80 11 00 00 00 00 00 00 D9 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:24]Read from MH i2c: E2 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 17 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: E2 17 00 3B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [22:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:01:24]wFMCommunicate OK [22:01:24]CreateOFDProtocolMessage done [22:01:24]OFDSenderStorePacket 29694 [22:01:24]StoreOFDPacket docnum=29694 [22:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AA 1B 07 01 7C 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 73 00 00 35 04 06 00 0B 8C E9 1B 7A DF 2B 25 1D 06 B9 8E DF A5 [22:01:24]CheckFolder [22:01:24]dirname=/storage/ofd_packets [22:01:24]CheckFolder done [22:01:24]ProducePacketName [22:01:24]name=ofd_packets/00029694 [22:01:24]NVStorageSaveData ofd_packets/00029694 [22:01:24]File name is /storage/ofd_packets/00029694 [22:01:24]Write 301 bytes [22:01:24]NVStorageSaveData done [22:01:24]OFDSenderStorePacket done [22:01:24]KKMCreateOFDPacket done [22:01:24]NVStorageSaveData kkm_last_timestamp [22:01:24]File name is /storage/kkm_last_timestamp [22:01:24]Write 4 bytes [22:01:24]NVStorageSaveData done [22:01:24]ExternCall_PrintAddStr [22:01:24]wPrintStart [22:01:24]Write to MH i2c: 01 00 00 3C 24 60 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 07 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 07 00 3C 24 00 00 00 00 00 FF 0F 75 [22:01:24]RasterBufferAndPrint [22:01:24]line Счет N : (1)348167 [22:01:24]line ИНН: 02508201610067 [22:01:24]line Контрольно-Кассовый Чек [22:01:24]line ПРОДАЖА [22:01:24]line ТРК (МРК, ГНК) : 53 [22:01:24]line Товар: 2710124130 [22:01:24]line Аи-92-К-5 [22:01:24]line 15.440 * 64.80 [22:01:24]line = 1000.51 [22:01:24]line НДС 12% НСП 1% [22:01:24]line > о реализуемом товаре [22:01:24]line ИТОГО: 1000.51 [22:01:24]line НСП 1% : 8.85 [22:01:24]line НДС 12% : 106.25 [22:01:24]line Наличными: 0.00 [22:01:24]line Безнал.: 1000.51 [22:01:24]line Место: АЗС № 108 "Партнер Нефть" [22:01:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:01:24]line СНО: Общий режим [22:01:24]line Чек 288 15.04.2024 22:01 [22:01:24]line Смена: 117 ФФД: 1.0 [22:01:24]line ЗНМ: 0300000027 [22:01:24]line РНМ: 0000138879044617 [22:01:24]line Версия ККМ: 001 [22:01:24]line Платежная система: АКБ Кыргызстан [22:01:24]line ФМ: 0000000000963154 [22:01:24]line ФД: 29694 [22:01:24]line ФПД: 12699834219231 [22:01:24]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220124&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29694&fm=12699834219231&tin=02508201610067®Number=0000138879044617&sum=100051 [22:01:24]OFD Sender: Processing packet 29694 [packets to send 8, broken 7] [22:01:24]ProducePacketName [22:01:24]name=ofd_packets/00029694 [22:01:24]OFD Sender: To server: pG, [22:01:24]CommunicateWithHost lk.salyk.kg:30040 [22:01:24]ConnectInit lk.salyk.kg [22:01:24]written 0, free lines is 4095 [22:01:24]Connected sock=10 [22:01:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AA 1B 07 01 7C 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 B4 A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 73 00 00 35 04 06 00 0B 8C E9 1B 7A DF 2B 25 1D 06 B9 8E DF A5 [22:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 A4 47 00 71 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 73 00 00 F4 03 04 00 54 4E 1D 66 B6 04 01 00 00 E0 42 4E 2D 43 1F F2 58 [22:01:24]CommunicateWithHost err = 0 [22:01:24]CheckOFDResponse [22:01:24]1017 (14) - 77093643461234 [22:01:24]1041 (16) - 0000000000963154 [22:01:24]1040 (4) - 29694 [22:01:24]1012 (4) - 15.04.2024 15:57 [22:01:24]1206 (1) - 0 [22:01:24]OFD Sender: Remove packet 29694 [22:01:24]ProducePacketName [22:01:24]name=ofd_packets/00029694 [22:01:24]NVStorageDeleteData [22:01:24]Write to MH i2c: 01 00 00 65 24 89 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 07 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: 01 07 00 65 24 00 00 00 00 00 E2 0C 7E [22:01:24]RasterBufferAndPrint [22:01:24]line [22:01:24]line [22:01:24]line [22:01:24]line [22:01:24]line [22:01:24]written 0, free lines is 3304 [22:01:24]MH_Cut [22:01:24]Write to MH i2c: D1 01 00 6C 24 01 62 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: D1 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: D1 01 00 [22:01:24]MH_I2C_Read... [22:01:24]Read from MH i2c: D1 01 00 6C 24 00 61 [22:01:24]Write to MH i2c: 01 00 00 6D 24 91 [22:01:24]Write i2c OK [22:01:24]MH_I2C_Read... [22:01:25]OFD Sender: No OFD packet to send [22:01:25]*** Cut start [22:01:25]*** Partial cut [22:01:25]*** CUTSNS_PIN = 1 [22:01:25]*** CUTSNS_PIN = 0 [22:01:26]*** Brake cut motor [22:01:26]Read from MH i2c: 01 [22:01:26]MH_I2C_Read... [22:01:26]*** Stop cut motor [22:01:26]*** Cut end [22:01:26]Read from MH i2c: 01 07 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: 01 07 00 6D 24 00 00 00 00 00 FF 0F A6 [22:01:26]process_action close_receipt done [22:01:26]requested_data is exist [22:01:26]produce_requested_data [22:01:26]requested_item fm.sn is exist - process it [22:01:26]wFMCommunicate request_size=4 [22:01:26]MH_SAM_APDU [22:01:26]CAPDU: 80 11 00 00 [22:01:26]Write to MH i2c: E2 08 00 6E 24 80 11 00 00 00 00 00 00 0C [22:01:26]Write i2c OK [22:01:26]MH_I2C_Read... [22:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:26]Read from MH i2c: E2 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 17 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 17 00 6E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [22:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:01:26]wFMCommunicate OK [22:01:26]requested_item fd.num is exist - process it [22:01:26]SAM_PROTO_GetFieldsCounters [22:01:26]wFMCommunicate request_size=4 [22:01:26]MH_SAM_APDU [22:01:26]CAPDU: 80 13 00 00 [22:01:26]Write to MH i2c: E2 08 00 6F 24 80 13 00 00 00 00 00 00 0F [22:01:26]Write i2c OK [22:01:26]MH_I2C_Read... [22:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:26]Read from MH i2c: E2 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 62 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 62 00 6F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [22:01:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:26]wFMCommunicate OK [22:01:26]SAM_PROTO_GetFieldsCounters done [22:01:26]requested_item shift.num is exist - process it [22:01:26]requested_item shift.opened is exist - process it [22:01:26]req_shift_opened [22:01:26]FM_GetShiftState [22:01:26]SAM_PROTO_GetShiftState [22:01:26]wFMCommunicate request_size=4 [22:01:26]MH_SAM_APDU [22:01:26]CAPDU: 80 13 01 00 [22:01:26]Write to MH i2c: E2 08 00 70 24 80 13 01 00 00 00 00 00 11 [22:01:26]Write i2c OK [22:01:26]MH_I2C_Read... [22:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:26]Read from MH i2c: E2 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 0E 00 [22:01:26]MH_I2C_Read... [22:01:26]Read from MH i2c: E2 0E 00 70 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 05 [22:01:26]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:01:26]wFMCommunicate OK [22:01:26]SAM_PROTO_GetShiftState done [22:01:26]FM_GetShiftState done [22:01:26]req_shift_opened done [22:01:26]requested_item shift.open_date is exist - process it [22:01:26]req_shift_open_date [22:01:26]req_shift_open_date done [22:01:26]produce_requested_data done [22:01:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29694,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:01:26]process_action_free close_receipt [22:01:26]json_value_free [22:01:26]json_value_free done [22:01:26]process_json_proto returns [22:01:26]Send response to host [22:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29694,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:01:26]free response buf [22:01:26]execute_script done [22:01:26]execute_script returns [22:01:26]free content buf [22:01:26]Sock 7.Close socket [22:01:26]Sock 7.Thread stoped [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]accept exits with 9 [22:01:45]New connection [22:01:45]New thread 3067108708 created [22:01:45]Thread 3066965348 joined [22:01:45]Waiting for new connection... [22:01:45] Sock 9.Parse request [22:01:45]Sock 9.Check first char [22:01:45]Sock 9.First char is OK [22:01:45]request: POST /json_proto HTTP/1.0 [22:01:45]Method: POST [22:01:45]URL: /json_proto [22:01:45]Method is POST - this is cgi request [22:01:45]url: /json_proto [22:01:45]query_string will be loaded in cgi processing [22:01:45]execute_cgi json_proto POST (null) [22:01:45]execute_cgi path=json_proto method=POST [22:01:45]POST find Content-Length [22:01:45]Host: 172.17.33.3:8080 [22:01:45]Content-Length: 843 [22:01:45]Content-Type: application/json [22:01:45] [22:01:45]POST finish read [22:01:45]Found Content-Length = 843 [22:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:45]execute_script... [22:01: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)348168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:45]POST & json_proto [22:01:45]process_json_proto [22:01:45]json parsed OK: [22:01:45]protocol is kg_v1.0 [22:01:45]action value=close_receipt [22:01:45]process_action close_receipt [22:01:45]cmd_close_receipt [22:01:45]MH_GetDate [22:01:45]Write to MH i2c: F0 00 00 71 24 84 [22:01:45]Write i2c OK [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: F0 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: F0 09 00 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: F0 09 00 71 24 00 CB A3 1D 66 23 5B 8F 65 F0 [22:01:45]GetLastDocTimeStamp 1713218484 [22:01:45]current date 1713218507 [22:01:45]FM_GetShiftState [22:01:45]SAM_PROTO_GetShiftState [22:01:45]wFMCommunicate request_size=4 [22:01:45]MH_SAM_APDU [22:01:45]CAPDU: 80 13 01 00 [22:01:45]Write to MH i2c: E2 08 00 72 24 80 13 01 00 00 00 00 00 13 [22:01:45]Write i2c OK [22:01:45]MH_I2C_Read... [22:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:45]Read from MH i2c: E2 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: E2 0E 00 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: E2 0E 00 72 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 07 [22:01:45]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:01:45]wFMCommunicate OK [22:01:45]SAM_PROTO_GetShiftState done [22:01:45]FM_GetShiftState done [22:01:45]opened in 1713140468 [22:01:45]opened+sec_in_day 1713226868 [22:01:45]quantity*price = 100018 [22:01:45]sum+1 = 100020 [22:01:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 289 15.04.2024 22:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29695 ФПД: 24562461566442 1/tax-web-control/client/api/v1/ticket?date=20240415T220147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29695&fm=24562461566442&tin=02508201610067®Number=0000138879044617&sum=100019 [22:01:46]StoreToDocumentArchive [22:01:46]shift 117 fd 29695 [22:01:46]save to /storage/0117/doc_00029695 [22:01:46]save last doc name /storage/0117/doc_00029695 to /storage/kkm_last_doc_name [22:01:46]save OK [22:01:46]Clear old archive folders... [22:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:46]tlvbuf is 01A15790 [22:01:46]SAM_PROTO_ClearQueue [22:01:46]wFMCommunicate request_size=4 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 09 00 00 [22:01:46]Write to MH i2c: E2 08 00 7F 24 80 09 00 00 00 00 00 00 15 [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 7F 24 00 90 00 17 [22:01:46]RAPDU: 90 00 [22:01:46]wFMCommunicate OK [22:01:46]SAM_PROTO_ClearQueue done [22:01:46]KKMCreateOFDPacket [22:01:46]OFDProtocolAddRootSTLVToBuf [22:01:46]FM_MakeSignedData [22:01:46]FM_MakeSignedData [22:01:46]SAM_PROTO_SignData [22:01:46]wFMCommunicate request_size=4 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 0D 01 02 [22:01:46]Write to MH i2c: E2 08 00 80 24 80 0D 01 02 00 00 00 00 1D [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [22:01:46]RAPDU: 90 00 [22:01:46]wFMCommunicate OK [22:01:46]wFMCommunicate request_size=255 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CB A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 73 00 00 35 04 06 00 16 [22:01:46]Write to MH i2c: E2 02 01 81 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CB A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 73 00 00 35 04 06 00 16 00 00 87 [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 81 24 00 90 00 19 [22:01:46]RAPDU: 90 00 [22:01:46]wFMCommunicate OK [22:01:46]wFMCommunicate request_size=10 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 0D 02 02 05 56 E4 CB E5 EA [22:01:46]Write to MH i2c: E2 0D 00 82 24 80 0D 02 02 05 00 56 E4 CB E5 EA 00 00 FE [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [22:01:46]RAPDU: 90 00 [22:01:46]wFMCommunicate OK [22:01:46]wFMCommunicate request_size=4 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 0D 03 02 [22:01:46]Write to MH i2c: E2 08 00 83 24 80 0D 03 02 00 00 00 00 22 [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 0B 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 0B 00 83 24 00 72 02 E2 B9 B9 19 E5 C9 90 00 B2 [22:01:46]RAPDU: 72 02 E2 B9 B9 19 E5 C9 90 00 [22:01:46]wFMCommunicate OK [22:01:46]SAM_PROTO_SignData done [22:01:46]FM_MakeSignedData done [22:01:46]CreateOFDProtocolMessage [22:01:46]wFMCommunicate request_size=4 [22:01:46]MH_SAM_APDU [22:01:46]CAPDU: 80 11 00 00 [22:01:46]Write to MH i2c: E2 08 00 84 24 80 11 00 00 00 00 00 00 22 [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:46]Read from MH i2c: E2 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 17 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: E2 17 00 84 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [22:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:01:46]wFMCommunicate OK [22:01:46]CreateOFDProtocolMessage done [22:01:46]OFDSenderStorePacket 29695 [22:01:46]StoreOFDPacket docnum=29695 [22:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 98 AD 07 01 E3 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CB A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 73 00 00 35 04 06 00 16 56 E4 CB E5 EA 72 02 E2 B9 B9 19 E5 C9 [22:01:46]CheckFolder [22:01:46]dirname=/storage/ofd_packets [22:01:46]CheckFolder done [22:01:46]ProducePacketName [22:01:46]name=ofd_packets/00029695 [22:01:46]NVStorageSaveData ofd_packets/00029695 [22:01:46]File name is /storage/ofd_packets/00029695 [22:01:46]Write 301 bytes [22:01:46]NVStorageSaveData done [22:01:46]OFDSenderStorePacket done [22:01:46]KKMCreateOFDPacket done [22:01:46]NVStorageSaveData kkm_last_timestamp [22:01:46]File name is /storage/kkm_last_timestamp [22:01:46]Write 4 bytes [22:01:46]NVStorageSaveData done [22:01:46]ExternCall_PrintAddStr [22:01:46]wPrintStart [22:01:46]Write to MH i2c: 01 00 00 85 24 A9 [22:01:46]Write i2c OK [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: 01 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: 01 07 00 [22:01:46]MH_I2C_Read... [22:01:46]Read from MH i2c: 01 07 00 85 24 00 00 00 00 00 FF 0F BE [22:01:46]RasterBufferAndPrint [22:01:46]line Счет N : (1)348168 [22:01:46]line ИНН: 02508201610067 [22:01:46]line Контрольно-Кассовый Чек [22:01:46]line ПРОДАЖА [22:01:46]line ТРК (МРК, ГНК) : 33 [22:01:46]line Товар: 2710124500 [22:01:46]line Аи-95-К-5 [22:01:46]line 13.720 * 72.90 [22:01:46]line = 1000.19 [22:01:46]line НДС 12% НСП 1% [22:01:46]line > о реализуемом товаре [22:01:46]line ИТОГО: 1000.19 [22:01:46]line НСП 1% : 8.85 [22:01:46]line НДС 12% : 106.21 [22:01:46]line Наличными: 0.00 [22:01:46]line Безнал.: 1000.19 [22:01:46]line Место: АЗС № 108 "Партнер Нефть" [22:01:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:01:46]line СНО: Общий режим [22:01:46]line Чек 289 15.04.2024 22:01 [22:01:46]line Смена: 117 ФФД: 1.0 [22:01:46]line ЗНМ: 0300000027 [22:01:46]line РНМ: 0000138879044617 [22:01:46]line Версия ККМ: 001 [22:01:46]line Платежная система: АКБ Кыргызстан [22:01:46]line ФМ: 0000000000963154 [22:01:46]line ФД: 29695 [22:01:46]line ФПД: 24562461566442 [22:01:46]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29695&fm=24562461566442&tin=02508201610067®Number=0000138879044617&sum=100019 [22:01:47]OFD Sender: Processing packet 29695 [packets to send 8, broken 7] [22:01:47]ProducePacketName [22:01:47]name=ofd_packets/00029695 [22:01:47]OFD Sender: To server: pG, [22:01:47]CommunicateWithHost lk.salyk.kg:30040 [22:01:47]ConnectInit lk.salyk.kg [22:01:47]written 0, free lines is 4095 [22:01:47]Connected sock=10 [22:01:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 98 AD 07 01 E3 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 CB A3 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 73 00 00 35 04 06 00 16 56 E4 CB E5 EA 72 02 E2 B9 B9 19 E5 C9 [22:01:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BF 26 47 00 B8 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 39 36 33 31 35 34 10 04 04 00 FF 73 00 00 F4 03 04 00 6B 4E 1D 66 B6 04 01 00 00 18 2B C0 07 02 E2 4E A4 [22:01:47]CommunicateWithHost err = 0 [22:01:47]CheckOFDResponse [22:01:47]1017 (14) - 77093643461234 [22:01:47]1041 (16) - 0000000000963154 [22:01:47]1040 (4) - 29695 [22:01:47]1012 (4) - 15.04.2024 15:57 [22:01:47]1206 (1) - 0 [22:01:47]OFD Sender: Remove packet 29695 [22:01:47]ProducePacketName [22:01:47]name=ofd_packets/00029695 [22:01:47]NVStorageDeleteData [22:01:47]Write to MH i2c: 01 00 00 AE 24 D2 [22:01:47]Write i2c OK [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: 01 [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: 01 07 00 [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: 01 07 00 AE 24 00 00 00 00 00 E7 0C CC [22:01:47]RasterBufferAndPrint [22:01:47]line [22:01:47]line [22:01:47]line [22:01:47]line [22:01:47]line [22:01:47]written 0, free lines is 3309 [22:01:47]MH_Cut [22:01:47]Write to MH i2c: D1 01 00 B5 24 01 AB [22:01:47]Write i2c OK [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: D1 [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: D1 01 00 [22:01:47]MH_I2C_Read... [22:01:47]Read from MH i2c: D1 01 00 B5 24 00 AA [22:01:47]Write to MH i2c: 01 00 00 B6 24 DA [22:01:47]Write i2c OK [22:01:47]MH_I2C_Read... [22:01:47]OFD Sender: No OFD packet to send [22:01:48]*** Cut start [22:01:48]*** Partial cut [22:01:48]*** CUTSNS_PIN = 1 [22:01:48]*** CUTSNS_PIN = 0 [22:01:48]*** Brake cut motor [22:01:49]Read from MH i2c: 01 [22:01:49]MH_I2C_Read... [22:01:49]*** Stop cut motor [22:01:49]*** Cut end [22:01:49]Read from MH i2c: 01 07 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 FF 0F EF [22:01:49]process_action close_receipt done [22:01:49]requested_data is exist [22:01:49]produce_requested_data [22:01:49]requested_item fm.sn is exist - process it [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 11 00 00 [22:01:49]Write to MH i2c: E2 08 00 B7 24 80 11 00 00 00 00 00 00 55 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 17 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 17 00 B7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [22:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:01:49]wFMCommunicate OK [22:01:49]requested_item fd.num is exist - process it [22:01:49]SAM_PROTO_GetFieldsCounters [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 13 00 00 [22:01:49]Write to MH i2c: E2 08 00 B8 24 80 13 00 00 00 00 00 00 58 [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 62 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 62 00 B8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:01:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 73 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:49]wFMCommunicate OK [22:01:49]SAM_PROTO_GetFieldsCounters done [22:01:49]requested_item shift.num is exist - process it [22:01:49]requested_item shift.opened is exist - process it [22:01:49]req_shift_opened [22:01:49]FM_GetShiftState [22:01:49]SAM_PROTO_GetShiftState [22:01:49]wFMCommunicate request_size=4 [22:01:49]MH_SAM_APDU [22:01:49]CAPDU: 80 13 01 00 [22:01:49]Write to MH i2c: E2 08 00 B9 24 80 13 01 00 00 00 00 00 5A [22:01:49]Write i2c OK [22:01:49]MH_I2C_Read... [22:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:49]Read from MH i2c: E2 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 0E 00 [22:01:49]MH_I2C_Read... [22:01:49]Read from MH i2c: E2 0E 00 B9 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 4E [22:01:49]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:01:49]wFMCommunicate OK [22:01:49]SAM_PROTO_GetShiftState done [22:01:49]FM_GetShiftState done [22:01:49]req_shift_opened done [22:01:49]requested_item shift.open_date is exist - process it [22:01:49]req_shift_open_date [22:01:49]req_shift_open_date done [22:01:49]produce_requested_data done [22:01:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29695,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:01:49]process_action_free close_receipt [22:01:49]json_value_free [22:01:49]json_value_free done [22:01:49]process_json_proto returns [22:01:49]Send response to host [22:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29695,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:01:49]free response buf [22:01:49]execute_script done [22:01:49]execute_script returns [22:01:49]free content buf [22:01:49]Sock 9.Close socket [22:01:49]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:24]accept exits with 7 [22:04:24]New connection [22:04:24]New thread 3066965348 created [22:04:24]Thread 3067108708 joined [22:04:24]Waiting for new connection... [22:04:24] Sock 7.Parse request [22:04:24]Sock 7.Check first char [22:04:24]Sock 7.First char is OK [22:04:24]request: POST /json_proto HTTP/1.0 [22:04:24]Method: POST [22:04:24]URL: /json_proto [22:04:24]Method is POST - this is cgi request [22:04:24]url: /json_proto [22:04:24]query_string will be loaded in cgi processing [22:04:24]execute_cgi json_proto POST (null) [22:04:24]execute_cgi path=json_proto method=POST [22:04:24]POST find Content-Length [22:04:24]Host: 172.17.33.3:8080 [22:04:24]Content-Length: 677 [22:04:24]Content-Type: application/json [22:04:24] [22:04:24]POST finish read [22:04:24]Found Content-Length = 677 [22:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.410, "sum" : 350.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:24]execute_script... [22:04: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)348170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 5.410, "sum" : 350.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:24]POST & json_proto [22:04:24]process_json_proto [22:04:24]json parsed OK: [22:04:24]protocol is kg_v1.0 [22:04:24]action value=close_receipt [22:04:24]process_action close_receipt [22:04:24]cmd_close_receipt [22:04:24]MH_GetDate [22:04:24]Write to MH i2c: F0 00 00 BA 24 CD [22:04:24]Write i2c OK [22:04:24]MH_I2C_Read... [22:04:24]Read from MH i2c: F0 [22:04:24]MH_I2C_Read... [22:04:24]Read from MH i2c: F0 09 00 [22:04:24]MH_I2C_Read... [22:04:24]Read from MH i2c: F0 09 00 BA 24 00 6B A4 1D 66 23 5B 8F 65 DA [22:04:24]GetLastDocTimeStamp 1713218507 [22:04:24]current date 1713218667 [22:04:24]FM_GetShiftState [22:04:24]SAM_PROTO_GetShiftState [22:04:24]wFMCommunicate request_size=4 [22:04:24]MH_SAM_APDU [22:04:24]CAPDU: 80 13 01 00 [22:04:24]Write to MH i2c: E2 08 00 BB 24 80 13 01 00 00 00 00 00 5C [22:04:24]Write i2c OK [22:04:24]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 BB 24 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 50 [22:04:25]RAPDU: 09 00 01 F4 72 1C 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 1713140468 [22:04:25]opened+sec_in_day 1713226868 [22:04:25]quantity*price = 35056 [22:04:25]sum+1 = 35058 [22:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 290 15.04.2024 22:04 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29696 ФПД: 7511228573482 1/tax-web-control/client/api/v1/ticket?date=20240415T220427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29696&fm=7511228573482&tin=02508201610067®Number=0000138879044617&sum=35000 [22:04:26]StoreToDocumentArchive [22:04:26]shift 117 fd 29696 [22:04:26]save to /storage/0117/doc_00029696 [22:04:26]save last doc name /storage/0117/doc_00029696 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=251 [22:04:26]tlvbuf is B6DCEB90 [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 C8 24 80 09 00 00 00 00 00 00 5E [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 C8 24 00 90 00 60 [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 C9 24 80 0D 01 02 00 00 00 00 66 [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 C9 24 00 90 00 61 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 74 00 00 35 04 06 00 06 [22:04:26]Write to MH i2c: E2 02 01 CA 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 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 74 00 00 35 04 06 00 06 00 00 9A [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 0D 02 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 CA 24 00 90 00 62 [22:04:26]RAPDU: 90 00 [22:04:26]wFMCommunicate OK [22:04:26]wFMCommunicate request_size=10 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 0D 02 02 05 D4 D8 1C 67 2A [22:04:26]Write to MH i2c: E2 0D 00 CB 24 80 0D 02 02 05 00 D4 D8 1C 67 2A 00 00 CC [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 0D 02 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 CB 24 00 90 00 63 [22:04:26]RAPDU: 90 00 [22:04:26]wFMCommunicate OK [22:04:26]wFMCommunicate request_size=4 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 0D 03 02 [22:04:26]Write to MH i2c: E2 08 00 CC 24 80 0D 03 02 00 00 00 00 6B [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:26]Read from MH i2c: E2 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 0B 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 0B 00 CC 24 00 B0 0E C4 D0 94 8E F3 49 90 00 1C [22:04:26]RAPDU: B0 0E C4 D0 94 8E F3 49 90 00 [22:04:26]wFMCommunicate OK [22:04:26]SAM_PROTO_SignData done [22:04:26]FM_MakeSignedData done [22:04:26]CreateOFDProtocolMessage [22:04:26]wFMCommunicate request_size=4 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 11 00 00 [22:04:26]Write to MH i2c: E2 08 00 CD 24 80 11 00 00 00 00 00 00 6B [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:26]Read from MH i2c: E2 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 17 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 17 00 CD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [22:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:04:26]wFMCommunicate OK [22:04:26]CreateOFDProtocolMessage done [22:04:26]OFDSenderStorePacket 29696 [22:04:26]StoreOFDPacket docnum=29696 [22:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0B 32 07 01 E7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 74 00 00 35 04 06 00 06 D4 D8 1C 67 2A B0 0E C4 D0 94 8E F3 49 [22:04:26]CheckFolder [22:04:26]dirname=/storage/ofd_packets [22:04:26]CheckFolder done [22:04:26]ProducePacketName [22:04:26]name=ofd_packets/00029696 [22:04:26]NVStorageSaveData ofd_packets/00029696 [22:04:26]File name is /storage/ofd_packets/00029696 [22:04:26]Write 301 bytes [22:04:26]NVStorageSaveData done [22:04:26]OFDSenderStorePacket done [22:04:26]KKMCreateOFDPacket done [22:04:26]NVStorageSaveData kkm_last_timestamp [22:04:26]File name is /storage/kkm_last_timestamp [22:04:26]Write 4 bytes [22:04:26]NVStorageSaveData done [22:04:26]ExternCall_PrintAddStr [22:04:26]wPrintStart [22:04:26]Write to MH i2c: 01 00 00 CE 24 F2 [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: 01 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: 01 07 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: 01 07 00 CE 24 00 00 00 00 00 FF 0F 07 [22:04:26]RasterBufferAndPrint [22:04:26]line Счет N : (1)348170 [22:04:26]line ИНН: 02508201610067 [22:04:26]line Контрольно-Кассовый Чек [22:04:26]line ПРОДАЖА [22:04:26]line ТРК (МРК, ГНК) : 32 [22:04:26]line Товар: 2710124130 [22:04:26]line Аи-92-К-5 [22:04:26]line 5.410 * 64.80 [22:04:26]line = 350.57 [22:04:26]line НДС 12% НСП 1% [22:04:26]line > о реализуемом товаре [22:04:26]line ОКРУГЛЕНИЕ: -0.57 [22:04:26]line ИТОГО: 350.00 [22:04:26]line Внесено: 350.00 [22:04:26]line СДАЧА: 0.00 [22:04:26]line НСП 1% : 3.10 [22:04:26]line НДС 12% : 37.23 [22:04:26]line Наличными: 350.00 [22:04:26]line Безнал.: 0.00 [22:04:26]line Место: АЗС № 108 "Партнер Нефть" [22:04:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:04:26]line СНО: Общий режим [22:04:26]line Чек 290 15.04.2024 22:04 [22:04:26]line Смена: 117 ФФД: 1.0 [22:04:26]line ЗНМ: 0300000027 [22:04:26]line РНМ: 0000138879044617 [22:04:26]line Версия ККМ: 001 [22:04:26]line ФМ: 0000000000963154 [22:04:26]line ФД: 29696 [22:04:26]line ФПД: 7511228573482 [22:04:26]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220427&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29696&fm=7511228573482&tin=02508201610067®Number=0000138879044617&sum=35000 [22:04:27]OFD Sender: Processing packet 29696 [packets to send 8, broken 7] [22:04:27]ProducePacketName [22:04:27]name=ofd_packets/00029696 [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=11 [22:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0B 32 07 01 E7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 F1 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 74 00 00 35 04 06 00 06 D4 D8 1C 67 2A B0 0E C4 D0 94 8E F3 49 [22:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F9 D4 47 00 BC 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 74 00 00 F4 03 04 00 0B 4F 1D 66 B6 04 01 00 00 AF 75 41 56 30 46 B6 3D [22:04:27]CommunicateWithHost err = 0 [22:04:27]CheckOFDResponse [22:04:27]1017 (14) - 77093643461234 [22:04:27]1041 (16) - 0000000000963154 [22:04:27]1040 (4) - 29696 [22:04:27]1012 (4) - 15.04.2024 16:00 [22:04:27]1206 (1) - 0 [22:04:27]OFD Sender: Remove packet 29696 [22:04:27]ProducePacketName [22:04:27]name=ofd_packets/00029696 [22:04:27]NVStorageDeleteData [22:04:27]Write to MH i2c: 01 00 00 F8 24 1C [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 F8 24 00 00 00 00 00 D0 0C FF [22:04:27]RasterBufferAndPrint [22:04:27]line [22:04:27]line [22:04:27]line [22:04:27]line [22:04:27]line [22:04:27]written 0, free lines is 3286 [22:04:27]MH_Cut [22:04:27]Write to MH i2c: D1 01 00 FF 24 01 F5 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: D1 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: D1 01 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: D1 01 00 FF 24 00 F4 [22:04:27]Write to MH i2c: 01 00 00 00 25 25 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]OFD Sender: No OFD packet to send [22:04:28]*** Cut start [22:04:28]*** Partial cut [22:04:28]*** CUTSNS_PIN = 1 [22:04:28]*** CUTSNS_PIN = 0 [22:04:28]*** Brake cut motor [22:04:28]Read from MH i2c: 01 [22:04:28]MH_I2C_Read... [22:04:28]*** Stop cut motor [22:04:28]*** Cut end [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 00 25 00 00 00 00 00 FF 0F 3A [22:04:28]process_action close_receipt done [22:04:28]requested_data is exist [22:04:28]produce_requested_data [22:04:28]requested_item fm.sn is exist - process it [22:04:28]wFMCommunicate request_size=4 [22:04:28]MH_SAM_APDU [22:04:28]CAPDU: 80 11 00 00 [22:04:28]Write to MH i2c: E2 08 00 01 25 80 11 00 00 00 00 00 00 A0 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:28]Read from MH i2c: E2 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 17 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: E2 17 00 01 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EF [22:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:04:28]wFMCommunicate OK [22:04:28]requested_item fd.num is exist - process it [22:04:28]SAM_PROTO_GetFieldsCounters [22:04:28]wFMCommunicate request_size=4 [22:04:28]MH_SAM_APDU [22:04:28]CAPDU: 80 13 00 00 [22:04:28]Write to MH i2c: E2 08 00 02 25 80 13 00 00 00 00 00 00 A3 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:29]Read from MH i2c: E2 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 62 00 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 62 00 02 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [22:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:29]wFMCommunicate OK [22:04:29]SAM_PROTO_GetFieldsCounters done [22:04:29]requested_item shift.num is exist - process it [22:04:29]requested_item shift.opened is exist - process it [22:04:29]req_shift_opened [22:04:29]FM_GetShiftState [22:04:29]SAM_PROTO_GetShiftState [22:04:29]wFMCommunicate request_size=4 [22:04:29]MH_SAM_APDU [22:04:29]CAPDU: 80 13 01 00 [22:04:29]Write to MH i2c: E2 08 00 03 25 80 13 01 00 00 00 00 00 A5 [22:04:29]Write i2c OK [22:04:29]MH_I2C_Read... [22:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:29]Read from MH i2c: E2 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 0E 00 [22:04:29]MH_I2C_Read... [22:04:29]Read from MH i2c: E2 0E 00 03 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 99 [22:04:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:04:29]wFMCommunicate OK [22:04:29]SAM_PROTO_GetShiftState done [22:04:29]FM_GetShiftState done [22:04:29]req_shift_opened done [22:04:29]requested_item shift.open_date is exist - process it [22:04:29]req_shift_open_date [22:04:29]req_shift_open_date done [22:04:29]produce_requested_data done [22:04:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29696,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:04:29]process_action_free close_receipt [22:04:29]json_value_free [22:04:29]json_value_free done [22:04:29]process_json_proto returns [22:04:29]Send response to host [22:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29696,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:04:29]free response buf [22:04:29]execute_script done [22:04:29]execute_script returns [22:04:29]free content buf [22:04:29]Sock 7.Close socket [22:04:29]Sock 7.Thread stoped [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:39]accept exits with 9 [22:05:39]New connection [22:05:39]New thread 3067108708 created [22:05:39]Thread 3066965348 joined [22:05:39]Waiting for new connection... [22:05:39] Sock 9.Parse request [22:05:39]Sock 9.Check first char [22:05:39]Sock 9.First char is OK [22:05:39]request: POST /json_proto HTTP/1.0 [22:05:39]Method: POST [22:05:39]URL: /json_proto [22:05:39]Method is POST - this is cgi request [22:05:39]url: /json_proto [22:05:39]query_string will be loaded in cgi processing [22:05:39]execute_cgi json_proto POST (null) [22:05:39]execute_cgi path=json_proto method=POST [22:05:39]POST find Content-Length [22:05:39]Host: 172.17.33.3:8080 [22:05:39]Content-Length: 840 [22:05:39]Content-Type: application/json [22:05:39] [22:05:39]POST finish read [22:05:39]Found Content-Length = 840 [22:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:39]execute_script... [22:05: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)348171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:39]POST & json_proto [22:05:39]process_json_proto [22:05:39]json parsed OK: [22:05:39]protocol is kg_v1.0 [22:05:39]action value=close_receipt [22:05:39]process_action close_receipt [22:05:39]cmd_close_receipt [22:05:39]MH_GetDate [22:05:39]Write to MH i2c: F0 00 00 04 25 18 [22:05:39]Write i2c OK [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: F0 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: F0 09 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: F0 09 00 04 25 00 B5 A4 1D 66 23 5B 8F 65 6F [22:05:39]GetLastDocTimeStamp 1713218667 [22:05:39]current date 1713218741 [22:05:39]FM_GetShiftState [22:05:39]SAM_PROTO_GetShiftState [22:05:39]wFMCommunicate request_size=4 [22:05:39]MH_SAM_APDU [22:05:39]CAPDU: 80 13 01 00 [22:05:39]Write to MH i2c: E2 08 00 05 25 80 13 01 00 00 00 00 00 A7 [22:05:39]Write i2c OK [22:05:39]MH_I2C_Read... [22:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:39]Read from MH i2c: E2 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 0E 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 0E 00 05 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9B [22:05:39]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:05:39]wFMCommunicate OK [22:05:39]SAM_PROTO_GetShiftState done [22:05:39]FM_GetShiftState done [22:05:39]opened in 1713140468 [22:05:39]opened+sec_in_day 1713226868 [22:05:39]quantity*price = 250047 [22:05:39]sum+1 = 250048 [22:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.47 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.47 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 291 15.04.2024 22:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29697 ФПД: 203239485279663 1/tax-web-control/client/api/v1/ticket?date=20240415T220541&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29697&fm=203239485279663&tin=02508201610067®Number=0000138879044617&sum=250047 [22:05:40]StoreToDocumentArchive [22:05:40]shift 117 fd 29697 [22:05:40]save to /storage/0117/doc_00029697 [22:05:40]save last doc name /storage/0117/doc_00029697 to /storage/kkm_last_doc_name [22:05:40]save OK [22:05:40]Clear old archive folders... [22:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:05:40]tlvbuf is 01AA20D0 [22:05:40]SAM_PROTO_ClearQueue [22:05:40]wFMCommunicate request_size=4 [22:05:40]MH_SAM_APDU [22:05:40]CAPDU: 80 09 00 00 [22:05:40]Write to MH i2c: E2 08 00 12 25 80 09 00 00 00 00 00 00 A9 [22:05:40]Write i2c OK [22:05:40]MH_I2C_Read... [22:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:40]Read from MH i2c: E2 [22:05:40]MH_I2C_Read... [22:05:40]Read from MH i2c: E2 03 00 [22:05:40]MH_I2C_Read... [22:05:40]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [22:05:40]RAPDU: 90 00 [22:05:40]wFMCommunicate OK [22:05:40]SAM_PROTO_ClearQueue done [22:05:40]KKMCreateOFDPacket [22:05:40]OFDProtocolAddRootSTLVToBuf [22:05:40]FM_MakeSignedData [22:05:40]FM_MakeSignedData [22:05:40]SAM_PROTO_SignData [22:05:40]wFMCommunicate request_size=4 [22:05:40]MH_SAM_APDU [22:05:40]CAPDU: 80 0D 01 02 [22:05:40]Write to MH i2c: E2 08 00 13 25 80 0D 01 02 00 00 00 00 B1 [22:05:40]Write i2c OK [22:05:40]MH_I2C_Read... [22:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:40]Read from MH i2c: E2 [22:05:40]MH_I2C_Read... [22:05:40]Read from MH i2c: E2 03 00 [22:05:40]MH_I2C_Read... [22:05:40]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [22:05:40]RAPDU: 90 00 [22:05:40]wFMCommunicate OK [22:05:40]wFMCommunicate request_size=255 [22:05:40]MH_SAM_APDU [22:05:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B5 A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 74 00 00 35 04 06 00 B8 D8 61 53 [22:05:40]Write to MH i2c: E2 02 01 14 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B5 A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 74 00 00 35 04 06 00 B8 D8 61 53 00 00 F4 [22:05:40]Write i2c OK [22:05:40]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 14 25 00 90 00 AD [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]wFMCommunicate request_size=7 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 0D 02 02 02 0D AF [22:05:41]Write to MH i2c: E2 0A 00 15 25 80 0D 02 02 02 00 0D AF 00 00 74 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [22:05:41]RAPDU: 90 00 [22:05:41]wFMCommunicate OK [22:05:41]wFMCommunicate request_size=4 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 0D 03 02 [22:05:41]Write to MH i2c: E2 08 00 16 25 80 0D 03 02 00 00 00 00 B6 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 0B 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 0B 00 16 25 00 65 13 28 4D 4D A7 72 AC 90 00 B6 [22:05:41]RAPDU: 65 13 28 4D 4D A7 72 AC 90 00 [22:05:41]wFMCommunicate OK [22:05:41]SAM_PROTO_SignData done [22:05:41]FM_MakeSignedData done [22:05:41]CreateOFDProtocolMessage [22:05:41]wFMCommunicate request_size=4 [22:05:41]MH_SAM_APDU [22:05:41]CAPDU: 80 11 00 00 [22:05:41]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:41]Read from MH i2c: E2 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [22:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:05:41]wFMCommunicate OK [22:05:41]CreateOFDProtocolMessage done [22:05:41]OFDSenderStorePacket 29697 [22:05:41]StoreOFDPacket docnum=29697 [22:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AE 85 04 01 6E CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B5 A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 74 00 00 35 04 06 00 B8 D8 61 53 0D AF 65 13 28 4D 4D A7 72 AC [22:05:41]CheckFolder [22:05:41]dirname=/storage/ofd_packets [22:05:41]CheckFolder done [22:05:41]ProducePacketName [22:05:41]name=ofd_packets/00029697 [22:05:41]NVStorageSaveData ofd_packets/00029697 [22:05:41]File name is /storage/ofd_packets/00029697 [22:05:41]Write 298 bytes [22:05:41]NVStorageSaveData done [22:05:41]OFDSenderStorePacket done [22:05:41]KKMCreateOFDPacket done [22:05:41]NVStorageSaveData kkm_last_timestamp [22:05:41]File name is /storage/kkm_last_timestamp [22:05:41]Write 4 bytes [22:05:41]NVStorageSaveData done [22:05:41]ExternCall_PrintAddStr [22:05:41]wPrintStart [22:05:41]Write to MH i2c: 01 00 00 18 25 3D [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 FF 0F 52 [22:05:41]RasterBufferAndPrint [22:05:41]line Счет N : (1)348171 [22:05:41]line ИНН: 02508201610067 [22:05:41]line Контрольно-Кассовый Чек [22:05:41]line ПРОДАЖА [22:05:41]line ТРК (МРК, ГНК) : 11 [22:05:41]line Товар: 2710194210 [22:05:41]line ДТ-К-5 [22:05:41]line 34.300 * 72.90 [22:05:41]line = 2500.47 [22:05:41]line НДС 12% НСП 1% [22:05:41]line > о реализуемом товаре [22:05:41]line ИТОГО: 2500.47 [22:05:41]line НСП 1% : 22.13 [22:05:41]line НДС 12% : 265.54 [22:05:41]line Наличными: 0.00 [22:05:41]line Безнал.: 2500.47 [22:05:41]line Место: АЗС № 108 "Партнер Нефть" [22:05:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:05:41]line СНО: Общий режим [22:05:41]line Чек 291 15.04.2024 22:05 [22:05:41]line Смена: 117 ФФД: 1.0 [22:05:41]line ЗНМ: 0300000027 [22:05:41]line РНМ: 0000138879044617 [22:05:41]line Версия ККМ: 001 [22:05:41]line Платежная система: АКБ Кыргызстан [22:05:41]line ФМ: 0000000000963154 [22:05:41]line ФД: 29697 [22:05:41]line ФПД: 203239485279663 [22:05:41]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220541&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29697&fm=203239485279663&tin=02508201610067®Number=0000138879044617&sum=250047 [22:05:41]OFD Sender: Processing packet 29697 [packets to send 8, broken 7] [22:05:41]ProducePacketName [22:05:41]name=ofd_packets/00029697 [22:05:41]OFD Sender: To server: pG, [22:05:41]CommunicateWithHost lk.salyk.kg:30040 [22:05:41]ConnectInit lk.salyk.kg [22:05:41]written 0, free lines is 4095 [22:05:41]Connected sock=10 [22:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AE 85 04 01 6E CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B5 A4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 74 00 00 35 04 06 00 B8 D8 61 53 0D AF 65 13 28 4D 4D A7 72 AC [22:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2F 6D 47 00 33 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 39 36 33 31 35 34 10 04 04 00 01 74 00 00 F4 03 04 00 55 4F 1D 66 B6 04 01 00 00 B3 90 10 62 68 52 6F 8B [22:05:41]CommunicateWithHost err = 0 [22:05:41]CheckOFDResponse [22:05:41]1017 (14) - 77093643461234 [22:05:41]1041 (16) - 0000000000963154 [22:05:41]1040 (4) - 29697 [22:05:41]1012 (4) - 15.04.2024 16:01 [22:05:41]1206 (1) - 0 [22:05:41]OFD Sender: Remove packet 29697 [22:05:41]ProducePacketName [22:05:41]name=ofd_packets/00029697 [22:05:41]NVStorageDeleteData [22:05:41]Write to MH i2c: 01 00 00 41 25 66 [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 E4 0C 5D [22:05:41]RasterBufferAndPrint [22:05:41]line [22:05:41]line [22:05:41]line [22:05:41]line [22:05:41]line [22:05:41]written 0, free lines is 3306 [22:05:41]MH_Cut [22:05:41]Write to MH i2c: D1 01 00 48 25 01 3F [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: D1 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: D1 01 00 [22:05:41]MH_I2C_Read... [22:05:41]Read from MH i2c: D1 01 00 48 25 00 3E [22:05:41]Write to MH i2c: 01 00 00 49 25 6E [22:05:41]Write i2c OK [22:05:41]MH_I2C_Read... [22:05:42]OFD Sender: No OFD packet to send [22:05:42]*** Cut start [22:05:42]*** Partial cut [22:05:42]*** CUTSNS_PIN = 1 [22:05:42]*** CUTSNS_PIN = 0 [22:05:43]*** Brake cut motor [22:05:43]Read from MH i2c: 01 [22:05:43]MH_I2C_Read... [22:05:43]*** Stop cut motor [22:05:43]*** Cut end [22:05:43]Read from MH i2c: 01 07 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [22:05:43]process_action close_receipt done [22:05:43]requested_data is exist [22:05:43]produce_requested_data [22:05:43]requested_item fm.sn is exist - process it [22:05:43]wFMCommunicate request_size=4 [22:05:43]MH_SAM_APDU [22:05:43]CAPDU: 80 11 00 00 [22:05:43]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 17 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [22:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:05:43]wFMCommunicate OK [22:05:43]requested_item fd.num is exist - process it [22:05:43]SAM_PROTO_GetFieldsCounters [22:05:43]wFMCommunicate request_size=4 [22:05:43]MH_SAM_APDU [22:05:43]CAPDU: 80 13 00 00 [22:05:43]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 62 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 62 00 4B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [22:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:43]wFMCommunicate OK [22:05:43]SAM_PROTO_GetFieldsCounters done [22:05:43]requested_item shift.num is exist - process it [22:05:43]requested_item shift.opened is exist - process it [22:05:43]req_shift_opened [22:05:43]FM_GetShiftState [22:05:43]SAM_PROTO_GetShiftState [22:05:43]wFMCommunicate request_size=4 [22:05:43]MH_SAM_APDU [22:05:43]CAPDU: 80 13 01 00 [22:05:43]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [22:05:43]Write i2c OK [22:05:43]MH_I2C_Read... [22:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 0E 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E2 [22:05:43]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:05:43]wFMCommunicate OK [22:05:43]SAM_PROTO_GetShiftState done [22:05:43]FM_GetShiftState done [22:05:43]req_shift_opened done [22:05:43]requested_item shift.open_date is exist - process it [22:05:43]req_shift_open_date [22:05:43]req_shift_open_date done [22:05:43]produce_requested_data done [22:05:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29697,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:05:43]process_action_free close_receipt [22:05:43]json_value_free [22:05:43]json_value_free done [22:05:43]process_json_proto returns [22:05:43]Send response to host [22:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29697,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:05:43]free response buf [22:05:43]execute_script done [22:05:43]execute_script returns [22:05:43]free content buf [22:05:43]Sock 9.Close socket [22:05:43]Sock 9.Thread stoped [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:54]accept exits with 7 [22:07:54]New connection [22:07:54]New thread 3066965348 created [22:07:54]Thread 3067108708 joined [22:07:54]Waiting for new connection... [22:07:54] Sock 7.Parse request [22:07:54]Sock 7.Check first char [22:07:54]Sock 7.First char is OK [22:07:54]request: POST /json_proto HTTP/1.0 [22:07:54]Method: POST [22:07:54]URL: /json_proto [22:07:54]Method is POST - this is cgi request [22:07:54]url: /json_proto [22:07:54]query_string will be loaded in cgi processing [22:07:54]execute_cgi json_proto POST (null) [22:07:54]execute_cgi path=json_proto method=POST [22:07:54]POST find Content-Length [22:07:54]Host: 172.17.33.3:8080 [22:07:54]Content-Length: 678 [22:07:54]Content-Type: application/json [22:07:54] [22:07:54]POST finish read [22:07:54]Found Content-Length = 678 [22:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:54]execute_script... [22:07: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)348172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:54]POST & json_proto [22:07:54]process_json_proto [22:07:54]json parsed OK: [22:07:54]protocol is kg_v1.0 [22:07:54]action value=close_receipt [22:07:54]process_action close_receipt [22:07:54]cmd_close_receipt [22:07:54]MH_GetDate [22:07:54]Write to MH i2c: F0 00 00 4D 25 61 [22:07:54]Write i2c OK [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: F0 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: F0 09 00 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: F0 09 00 4D 25 00 3C A5 1D 66 23 5B 8F 65 40 [22:07:54]GetLastDocTimeStamp 1713218741 [22:07:54]current date 1713218876 [22:07:54]FM_GetShiftState [22:07:54]SAM_PROTO_GetShiftState [22:07:54]wFMCommunicate request_size=4 [22:07:54]MH_SAM_APDU [22:07:54]CAPDU: 80 13 01 00 [22:07:54]Write to MH i2c: E2 08 00 4E 25 80 13 01 00 00 00 00 00 F0 [22:07:54]Write i2c OK [22:07:54]MH_I2C_Read... [22:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:54]Read from MH i2c: E2 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: E2 0E 00 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: E2 0E 00 4E 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E4 [22:07:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:07:54]wFMCommunicate OK [22:07:54]SAM_PROTO_GetShiftState done [22:07:54]FM_GetShiftState done [22:07:54]opened in 1713140468 [22:07:54]opened+sec_in_day 1713226868 [22:07:54]quantity*price = 70048 [22:07:54]sum+1 = 70050 [22:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 292 15.04.2024 22:07 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29698 ФПД: 98818251292597 1/tax-web-control/client/api/v1/ticket?date=20240415T220756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29698&fm=98818251292597&tin=02508201610067®Number=0000138879044617&sum=70000 [22:07:55]StoreToDocumentArchive [22:07:55]shift 117 fd 29698 [22:07:55]save to /storage/0117/doc_00029698 [22:07:55]save last doc name /storage/0117/doc_00029698 to /storage/kkm_last_doc_name [22:07:55]save OK [22:07:55]Clear old archive folders... [22:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:55]tlvbuf is 01AA1A80 [22:07:55]SAM_PROTO_ClearQueue [22:07:55]wFMCommunicate request_size=4 [22:07:55]MH_SAM_APDU [22:07:55]CAPDU: 80 09 00 00 [22:07:55]Write to MH i2c: E2 08 00 5B 25 80 09 00 00 00 00 00 00 F2 [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:55]Read from MH i2c: E2 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 03 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [22:07:55]RAPDU: 90 00 [22:07:55]wFMCommunicate OK [22:07:55]SAM_PROTO_ClearQueue done [22:07:55]KKMCreateOFDPacket [22:07:55]OFDProtocolAddRootSTLVToBuf [22:07:55]FM_MakeSignedData [22:07:55]FM_MakeSignedData [22:07:55]SAM_PROTO_SignData [22:07:55]wFMCommunicate request_size=4 [22:07:55]MH_SAM_APDU [22:07:55]CAPDU: 80 0D 01 02 [22:07:55]Write to MH i2c: E2 08 00 5C 25 80 0D 01 02 00 00 00 00 FA [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:55]Read from MH i2c: E2 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 03 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [22:07:55]RAPDU: 90 00 [22:07:55]wFMCommunicate OK [22:07:55]wFMCommunicate request_size=255 [22:07:55]MH_SAM_APDU [22:07: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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 24 01 00 00 F4 03 04 00 3C A5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 74 00 00 35 04 06 00 59 [22:07:55]Write to MH i2c: E2 02 01 5D 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 24 01 00 00 F4 03 04 00 3C A5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 74 00 00 35 04 06 00 59 00 00 0C [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:56]Read from MH i2c: E2 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 03 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [22:07:56]RAPDU: 90 00 [22:07:56]wFMCommunicate OK [22:07:56]wFMCommunicate request_size=10 [22:07:56]MH_SAM_APDU [22:07:56]CAPDU: 80 0D 02 02 05 DF EA C3 FF B5 [22:07:56]Write to MH i2c: E2 0D 00 5E 25 80 0D 02 02 05 00 DF EA C3 FF B5 00 00 47 [22:07:56]Write i2c OK [22:07:56]MH_I2C_Read... [22:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:56]Read from MH i2c: E2 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 03 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 03 00 5E 25 00 90 00 F7 [22:07:56]RAPDU: 90 00 [22:07:56]wFMCommunicate OK [22:07:56]wFMCommunicate request_size=4 [22:07:56]MH_SAM_APDU [22:07:56]CAPDU: 80 0D 03 02 [22:07:56]Write to MH i2c: E2 08 00 5F 25 80 0D 03 02 00 00 00 00 FF [22:07:56]Write i2c OK [22:07:56]MH_I2C_Read... [22:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:56]Read from MH i2c: E2 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 0B 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 0B 00 5F 25 00 2D 1D C0 0B 8C 21 70 3D 90 00 6F [22:07:56]RAPDU: 2D 1D C0 0B 8C 21 70 3D 90 00 [22:07:56]wFMCommunicate OK [22:07:56]SAM_PROTO_SignData done [22:07:56]FM_MakeSignedData done [22:07:56]CreateOFDProtocolMessage [22:07:56]wFMCommunicate request_size=4 [22:07:56]MH_SAM_APDU [22:07:56]CAPDU: 80 11 00 00 [22:07:56]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [22:07:56]Write i2c OK [22:07:56]MH_I2C_Read... [22:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:56]Read from MH i2c: E2 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 17 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [22:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:07:56]wFMCommunicate OK [22:07:56]CreateOFDProtocolMessage done [22:07:56]OFDSenderStorePacket 29698 [22:07:56]StoreOFDPacket docnum=29698 [22:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 47 2B 07 01 6B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 24 01 00 00 F4 03 04 00 3C A5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 74 00 00 35 04 06 00 59 DF EA C3 FF B5 2D 1D C0 0B 8C 21 70 3D [22:07:56]CheckFolder [22:07:56]dirname=/storage/ofd_packets [22:07:56]CheckFolder done [22:07:56]ProducePacketName [22:07:56]name=ofd_packets/00029698 [22:07:56]NVStorageSaveData ofd_packets/00029698 [22:07:56]File name is /storage/ofd_packets/00029698 [22:07:56]Write 301 bytes [22:07:56]NVStorageSaveData done [22:07:56]OFDSenderStorePacket done [22:07:56]KKMCreateOFDPacket done [22:07:56]NVStorageSaveData kkm_last_timestamp [22:07:56]File name is /storage/kkm_last_timestamp [22:07:56]Write 4 bytes [22:07:56]NVStorageSaveData done [22:07:56]ExternCall_PrintAddStr [22:07:56]wPrintStart [22:07:56]Write to MH i2c: 01 00 00 61 25 86 [22:07:56]Write i2c OK [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 07 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [22:07:56]RasterBufferAndPrint [22:07:56]line Счет N : (1)348172 [22:07:56]line ИНН: 02508201610067 [22:07:56]line Контрольно-Кассовый Чек [22:07:56]line ПРОДАЖА [22:07:56]line ТРК (МРК, ГНК) : 32 [22:07:56]line Товар: 2710124130 [22:07:56]line Аи-92-К-5 [22:07:56]line 10.810 * 64.80 [22:07:56]line = 700.49 [22:07:56]line НДС 12% НСП 1% [22:07:56]line > о реализуемом товаре [22:07:56]line ОКРУГЛЕНИЕ: -0.49 [22:07:56]line ИТОГО: 700.00 [22:07:56]line Внесено: 700.00 [22:07:56]line СДАЧА: 0.00 [22:07:56]line НСП 1% : 6.20 [22:07:56]line НДС 12% : 74.39 [22:07:56]line Наличными: 700.00 [22:07:56]line Безнал.: 0.00 [22:07:56]line Место: АЗС № 108 "Партнер Нефть" [22:07:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:07:56]line СНО: Общий режим [22:07:56]line Чек 292 15.04.2024 22:07 [22:07:56]line Смена: 117 ФФД: 1.0 [22:07:56]line ЗНМ: 0300000027 [22:07:56]line РНМ: 0000138879044617 [22:07:56]line Версия ККМ: 001 [22:07:56]line ФМ: 0000000000963154 [22:07:56]line ФД: 29698 [22:07:56]line ФПД: 98818251292597 [22:07:56]line 1/tax-web-control/client/api/v1/ticket?date=20240415T220756&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29698&fm=98818251292597&tin=02508201610067®Number=0000138879044617&sum=70000 [22:07:56]OFD Sender: Processing packet 29698 [packets to send 8, broken 7] [22:07:56]ProducePacketName [22:07:56]name=ofd_packets/00029698 [22:07:56]OFD Sender: To server: pG, [22:07:56]CommunicateWithHost lk.salyk.kg:30040 [22:07:56]ConnectInit lk.salyk.kg [22:07:56]written 0, free lines is 4095 [22:07:56]Write to MH i2c: 01 00 00 8B 25 B0 [22:07:56]Write i2c OK [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 07 00 [22:07:56]MH_I2C_Read... [22:07:56]Read from MH i2c: 01 07 00 8B 25 00 00 00 00 00 C6 0C 89 [22:07:56]RasterBufferAndPrint [22:07:56]line [22:07:56]line [22:07:56]line [22:07:56]line [22:07:56]line [22:07:56]written 0, free lines is 3275 [22:07:57]MH_Cut [22:07:57]Write to MH i2c: D1 01 00 92 25 01 89 [22:07:57]Write i2c OK [22:07:57]MH_I2C_Read... [22:07:57]Read from MH i2c: D1 [22:07:57]MH_I2C_Read... [22:07:57]Read from MH i2c: D1 01 00 [22:07:57]MH_I2C_Read... [22:07:57]Read from MH i2c: D1 01 00 92 25 00 88 [22:07:57]Write to MH i2c: 01 00 00 93 25 B8 [22:07:57]Write i2c OK [22:07:57]MH_I2C_Read... [22:07:57]*** Cut start [22:07:57]*** Partial cut [22:07:57]*** CUTSNS_PIN = 1 [22:07:57]*** CUTSNS_PIN = 0 [22:07:58]*** Brake cut motor [22:07:58]Read from MH i2c: 01 [22:07:58]MH_I2C_Read... [22:07:58]*** Stop cut motor [22:07:58]Read from MH i2c: 01 07 00 [22:07:58]MH_I2C_Read... [22:07:58]*** Cut end [22:07:58]Read from MH i2c: 01 07 00 93 25 00 00 00 00 00 FF 0F CD [22:07:58]process_action close_receipt done [22:07:58]requested_data is exist [22:07:58]produce_requested_data [22:07:58]requested_item fm.sn is exist - process it [22:07:58]wFMCommunicate request_size=4 [22:07:58]MH_SAM_APDU [22:07:58]CAPDU: 80 11 00 00 [22:07:58]Write to MH i2c: E2 08 00 94 25 80 11 00 00 00 00 00 00 33 [22:07:58]Write i2c OK [22:07:58]MH_I2C_Read... [22:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:58]Read from MH i2c: E2 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 17 00 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 17 00 94 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [22:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:07:58]wFMCommunicate OK [22:07:58]requested_item fd.num is exist - process it [22:07:58]SAM_PROTO_GetFieldsCounters [22:07:58]wFMCommunicate request_size=4 [22:07:58]MH_SAM_APDU [22:07:58]CAPDU: 80 13 00 00 [22:07:58]Write to MH i2c: E2 08 00 95 25 80 13 00 00 00 00 00 00 36 [22:07:58]Write i2c OK [22:07:58]MH_I2C_Read... [22:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:58]Read from MH i2c: E2 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 62 00 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 62 00 95 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [22:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:58]wFMCommunicate OK [22:07:58]SAM_PROTO_GetFieldsCounters done [22:07:58]requested_item shift.num is exist - process it [22:07:58]requested_item shift.opened is exist - process it [22:07:58]req_shift_opened [22:07:58]FM_GetShiftState [22:07:58]SAM_PROTO_GetShiftState [22:07:58]wFMCommunicate request_size=4 [22:07:58]MH_SAM_APDU [22:07:58]CAPDU: 80 13 01 00 [22:07:58]Write to MH i2c: E2 08 00 96 25 80 13 01 00 00 00 00 00 38 [22:07:58]Write i2c OK [22:07:58]MH_I2C_Read... [22:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:58]Read from MH i2c: E2 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 0E 00 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 0E 00 96 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2C [22:07:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:07:58]wFMCommunicate OK [22:07:58]SAM_PROTO_GetShiftState done [22:07:58]FM_GetShiftState done [22:07:58]req_shift_opened done [22:07:58]requested_item shift.open_date is exist - process it [22:07:58]req_shift_open_date [22:07:58]req_shift_open_date done [22:07:58]produce_requested_data done [22:07:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29698,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:07:58]process_action_free close_receipt [22:07:58]json_value_free [22:07:58]json_value_free done [22:07:58]process_json_proto returns [22:07:58]Send response to host [22:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29698,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:07:58]free response buf [22:07:58]execute_script done [22:07:58]execute_script returns [22:07:58]free content buf [22:07:58]Sock 7.Close socket [22:07:58]Sock 7.Thread stoped [22:10:06]ConnectInit Can't connect to host [22:10:06]CommunicateWithHost connect error [22:10:06]CommunicateWithHost err = -1 [22:10:06]OFD Sender: Server communicate error [22:10:11]OFD Sender: Processing packet 29698 [packets to send 8, broken 7] [22:10:11]ProducePacketName [22:10:11]name=ofd_packets/00029698 [22:10:11]OFD Sender: To server: pG, [22:10:11]CommunicateWithHost lk.salyk.kg:30040 [22:10:11]ConnectInit lk.salyk.kg [22:10:11]Connected sock=7 [22:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 47 2B 07 01 6B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 24 01 00 00 F4 03 04 00 3C A5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 74 00 00 35 04 06 00 59 DF EA C3 FF B5 2D 1D C0 0B 8C 21 70 3D [22:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C 2A 47 00 9F 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 39 36 33 31 35 34 10 04 04 00 02 74 00 00 F4 03 04 00 63 50 1D 66 B6 04 01 00 00 E9 B4 B5 48 54 97 B0 57 [22:10:12]CommunicateWithHost err = 0 [22:10:12]CheckOFDResponse [22:10:12]1017 (14) - 77093643461234 [22:10:12]1041 (16) - 0000000000963154 [22:10:12]1040 (4) - 29698 [22:10:12]1012 (4) - 15.04.2024 16:05 [22:10:12]1206 (1) - 0 [22:10:12]OFD Sender: Remove packet 29698 [22:10:12]ProducePacketName [22:10:12]name=ofd_packets/00029698 [22:10:12]NVStorageDeleteData [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:13]accept exits with 9 [22:18:13]New connection [22:18:13]New thread 3067108708 created [22:18:13]Thread 3066965348 joined [22:18:13]Waiting for new connection... [22:18:13] Sock 9.Parse request [22:18:13]Sock 9.Check first char [22:18:13]Sock 9.First char is OK [22:18:13]request: POST /json_proto HTTP/1.0 [22:18:13]Method: POST [22:18:13]URL: /json_proto [22:18:13]Method is POST - this is cgi request [22:18:13]url: /json_proto [22:18:13]query_string will be loaded in cgi processing [22:18:13]execute_cgi json_proto POST (null) [22:18:13]execute_cgi path=json_proto method=POST [22:18:13]POST find Content-Length [22:18:13]Host: 172.17.33.3:8080 [22:18:13]Content-Length: 840 [22:18:13]Content-Type: application/json [22:18:13] [22:18:13]POST finish read [22:18:13]Found Content-Length = 840 [22:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.860, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:13]execute_script... [22:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.860, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:13]POST & json_proto [22:18:13]process_json_proto [22:18:13]json parsed OK: [22:18:13]protocol is kg_v1.0 [22:18:13]action value=close_receipt [22:18:13]process_action close_receipt [22:18:13]cmd_close_receipt [22:18:13]MH_GetDate [22:18:13]Write to MH i2c: F0 00 00 97 25 AB [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: F0 09 00 97 25 00 A7 A7 1D 66 23 5B 8F 65 F7 [22:18:13]GetLastDocTimeStamp 1713218876 [22:18:13]current date 1713219495 [22:18:13]FM_GetShiftState [22:18:13]SAM_PROTO_GetShiftState [22:18:13]wFMCommunicate request_size=4 [22:18:13]MH_SAM_APDU [22:18:13]CAPDU: 80 13 01 00 [22:18:13]Write to MH i2c: E2 08 00 98 25 80 13 01 00 00 00 00 00 3A [22:18:13]Write i2c OK [22:18:13]MH_I2C_Read... [22:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:13]Read from MH i2c: E2 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 98 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2E [22:18:13]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:18:13]wFMCommunicate OK [22:18:13]SAM_PROTO_GetShiftState done [22:18:13]FM_GetShiftState done [22:18:13]opened in 1713140468 [22:18:13]opened+sec_in_day 1713226868 [22:18:13]quantity*price = 25012 [22:18:13]sum+1 = 25014 [22:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.13 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 0.00 Безнал.: 250.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 293 15.04.2024 22:18 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29699 ФПД: 93713327343468 1/tax-web-control/client/api/v1/ticket?date=20240415T221815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29699&fm=93713327343468&tin=02508201610067®Number=0000138879044617&sum=25013 [22:18:14]StoreToDocumentArchive [22:18:14]shift 117 fd 29699 [22:18:14]save to /storage/0117/doc_00029699 [22:18:14]save last doc name /storage/0117/doc_00029699 to /storage/kkm_last_doc_name [22:18:14]save OK [22:18:14]Clear old archive folders... [22:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:14]tlvbuf is 01A99F90 [22:18:14]SAM_PROTO_ClearQueue [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 09 00 00 [22:18:14]Write to MH i2c: E2 08 00 A5 25 80 09 00 00 00 00 00 00 3C [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]SAM_PROTO_ClearQueue done [22:18:14]KKMCreateOFDPacket [22:18:14]OFDProtocolAddRootSTLVToBuf [22:18:14]FM_MakeSignedData [22:18:14]FM_MakeSignedData [22:18:14]SAM_PROTO_SignData [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 01 02 [22:18:14]Write to MH i2c: E2 08 00 A6 25 80 0D 01 02 00 00 00 00 44 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 A6 25 00 90 00 3F [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=255 [22:18:14]MH_SAM_APDU [22:18: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 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 A7 A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 74 00 00 35 04 06 00 55 [22:18:14]Write to MH i2c: E2 02 01 A7 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 14 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 A7 A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 74 00 00 35 04 06 00 55 00 00 B8 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 A7 25 00 90 00 40 [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=10 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 02 02 05 3B 55 96 47 6C [22:18:14]Write to MH i2c: E2 0D 00 A8 25 80 0D 02 02 05 00 3B 55 96 47 6C 00 00 2A [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 03 00 A8 25 00 90 00 41 [22:18:14]RAPDU: 90 00 [22:18:14]wFMCommunicate OK [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 0D 03 02 [22:18:14]Write to MH i2c: E2 08 00 A9 25 80 0D 03 02 00 00 00 00 49 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 0B 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 0B 00 A9 25 00 24 D9 AB 18 EB 8D 19 A9 90 00 44 [22:18:14]RAPDU: 24 D9 AB 18 EB 8D 19 A9 90 00 [22:18:14]wFMCommunicate OK [22:18:14]SAM_PROTO_SignData done [22:18:14]FM_MakeSignedData done [22:18:14]CreateOFDProtocolMessage [22:18:14]wFMCommunicate request_size=4 [22:18:14]MH_SAM_APDU [22:18:14]CAPDU: 80 11 00 00 [22:18:14]Write to MH i2c: E2 08 00 AA 25 80 11 00 00 00 00 00 00 49 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:14]Read from MH i2c: E2 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 17 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: E2 17 00 AA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [22:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:18:14]wFMCommunicate OK [22:18:14]CreateOFDProtocolMessage done [22:18:14]OFDSenderStorePacket 29699 [22:18:14]StoreOFDPacket docnum=29699 [22:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF 6E 07 01 7E C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 A7 A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 74 00 00 35 04 06 00 55 3B 55 96 47 6C 24 D9 AB 18 EB 8D 19 A9 [22:18:14]CheckFolder [22:18:14]dirname=/storage/ofd_packets [22:18:14]CheckFolder done [22:18:14]ProducePacketName [22:18:14]name=ofd_packets/00029699 [22:18:14]NVStorageSaveData ofd_packets/00029699 [22:18:14]File name is /storage/ofd_packets/00029699 [22:18:14]Write 301 bytes [22:18:14]NVStorageSaveData done [22:18:14]OFDSenderStorePacket done [22:18:14]KKMCreateOFDPacket done [22:18:14]NVStorageSaveData kkm_last_timestamp [22:18:14]File name is /storage/kkm_last_timestamp [22:18:14]Write 4 bytes [22:18:14]NVStorageSaveData done [22:18:14]ExternCall_PrintAddStr [22:18:14]wPrintStart [22:18:14]Write to MH i2c: 01 00 00 AB 25 D0 [22:18:14]Write i2c OK [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: 01 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: 01 07 00 [22:18:14]MH_I2C_Read... [22:18:14]Read from MH i2c: 01 07 00 AB 25 00 00 00 00 00 FF 0F E5 [22:18:14]RasterBufferAndPrint [22:18:14]line Счет N : (1)348173 [22:18:14]line ИНН: 02508201610067 [22:18:14]line Контрольно-Кассовый Чек [22:18:14]line ПРОДАЖА [22:18:14]line ТРК (МРК, ГНК) : 13 [22:18:14]line Товар: 2710124130 [22:18:14]line Аи-92-К-5 [22:18:14]line 3.860 * 64.80 [22:18:14]line = 250.13 [22:18:14]line НДС 12% НСП 1% [22:18:14]line > о реализуемом товаре [22:18:14]line ИТОГО: 250.13 [22:18:14]line НСП 1% : 2.21 [22:18:14]line НДС 12% : 26.56 [22:18:14]line Наличными: 0.00 [22:18:14]line Безнал.: 250.13 [22:18:14]line Место: АЗС № 108 "Партнер Нефть" [22:18:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:18:14]line СНО: Общий режим [22:18:14]line Чек 293 15.04.2024 22:18 [22:18:14]line Смена: 117 ФФД: 1.0 [22:18:14]line ЗНМ: 0300000027 [22:18:14]line РНМ: 0000138879044617 [22:18:14]line Версия ККМ: 001 [22:18:14]line Платежная система: АКБ Кыргызстан [22:18:14]line ФМ: 0000000000963154 [22:18:14]line ФД: 29699 [22:18:14]line ФПД: 93713327343468 [22:18:14]line 1/tax-web-control/client/api/v1/ticket?date=20240415T221815&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29699&fm=93713327343468&tin=02508201610067®Number=0000138879044617&sum=25013 [22:18:15]OFD Sender: Processing packet 29699 [packets to send 8, broken 7] [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00029699 [22:18:15]OFD Sender: To server: pG, [22:18:15]CommunicateWithHost lk.salyk.kg:30040 [22:18:15]ConnectInit lk.salyk.kg [22:18:15]written 0, free lines is 4095 [22:18:15]Connected sock=11 [22:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF 6E 07 01 7E C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 A7 A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 74 00 00 35 04 06 00 55 3B 55 96 47 6C 24 D9 AB 18 EB 8D 19 A9 [22:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 27 47 00 E3 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 39 36 33 31 35 34 10 04 04 00 03 74 00 00 F4 03 04 00 47 52 1D 66 B6 04 01 00 00 B3 2D 56 87 6B 2C 87 58 [22:18:15]CommunicateWithHost err = 0 [22:18:15]CheckOFDResponse [22:18:15]1017 (14) - 77093643461234 [22:18:15]1041 (16) - 0000000000963154 [22:18:15]1040 (4) - 29699 [22:18:15]1012 (4) - 15.04.2024 16:13 [22:18:15]1206 (1) - 0 [22:18:15]OFD Sender: Remove packet 29699 [22:18:15]ProducePacketName [22:18:15]name=ofd_packets/00029699 [22:18:15]NVStorageDeleteData [22:18:15]Write to MH i2c: 01 00 00 D4 25 F9 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: 01 07 00 D4 25 00 00 00 00 00 DB 0C E7 [22:18:15]RasterBufferAndPrint [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]line [22:18:15]written 0, free lines is 3298 [22:18:15]MH_Cut [22:18:15]Write to MH i2c: D1 01 00 DB 25 01 D2 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 [22:18:15]MH_I2C_Read... [22:18:15]Read from MH i2c: D1 01 00 DB 25 00 D1 [22:18:15]Write to MH i2c: 01 00 00 DC 25 01 [22:18:15]Write i2c OK [22:18:15]MH_I2C_Read... [22:18:15]OFD Sender: No OFD packet to send [22:18:16]*** Cut start [22:18:16]*** Partial cut [22:18:16]*** CUTSNS_PIN = 1 [22:18:16]*** CUTSNS_PIN = 0 [22:18:16]*** Brake cut motor [22:18:16]Read from MH i2c: 01 [22:18:17]MH_I2C_Read... [22:18:17]*** Stop cut motor [22:18:17]*** Cut end [22:18:17]Read from MH i2c: 01 07 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 FF 0F 16 [22:18:17]process_action close_receipt done [22:18:17]requested_data is exist [22:18:17]produce_requested_data [22:18:17]requested_item fm.sn is exist - process it [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 11 00 00 [22:18:17]Write to MH i2c: E2 08 00 DD 25 80 11 00 00 00 00 00 00 7C [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 17 00 DD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [22:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:18:17]wFMCommunicate OK [22:18:17]requested_item fd.num is exist - process it [22:18:17]SAM_PROTO_GetFieldsCounters [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 00 00 [22:18:17]Write to MH i2c: E2 08 00 DE 25 80 13 00 00 00 00 00 00 7F [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 62 00 DE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [22:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetFieldsCounters done [22:18:17]requested_item shift.num is exist - process it [22:18:17]requested_item shift.opened is exist - process it [22:18:17]req_shift_opened [22:18:17]FM_GetShiftState [22:18:17]SAM_PROTO_GetShiftState [22:18:17]wFMCommunicate request_size=4 [22:18:17]MH_SAM_APDU [22:18:17]CAPDU: 80 13 01 00 [22:18:17]Write to MH i2c: E2 08 00 DF 25 80 13 01 00 00 00 00 00 81 [22:18:17]Write i2c OK [22:18:17]MH_I2C_Read... [22:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:17]Read from MH i2c: E2 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 [22:18:17]MH_I2C_Read... [22:18:17]Read from MH i2c: E2 0E 00 DF 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 75 [22:18:17]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:18:17]wFMCommunicate OK [22:18:17]SAM_PROTO_GetShiftState done [22:18:17]FM_GetShiftState done [22:18:17]req_shift_opened done [22:18:17]requested_item shift.open_date is exist - process it [22:18:17]req_shift_open_date [22:18:17]req_shift_open_date done [22:18:17]produce_requested_data done [22:18:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29699,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:18:17]process_action_free close_receipt [22:18:17]json_value_free [22:18:17]json_value_free done [22:18:17]process_json_proto returns [22:18:17]Send response to host [22:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29699,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:18:17]free response buf [22:18:17]execute_script done [22:18:17]execute_script returns [22:18:17]free content buf [22:18:17]Sock 9.Close socket [22:18:17]Sock 9.Thread stoped [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:06]accept exits with 7 [22:19:06]New connection [22:19:06]New thread 3066965348 created [22:19:06]Thread 3067108708 joined [22:19:06]Waiting for new connection... [22:19:06] Sock 7.Parse request [22:19:06]Sock 7.Check first char [22:19:06]Sock 7.First char is OK [22:19:06]request: POST /json_proto HTTP/1.0 [22:19:06]Method: POST [22:19:06]URL: /json_proto [22:19:06]Method is POST - this is cgi request [22:19:06]url: /json_proto [22:19:06]query_string will be loaded in cgi processing [22:19:06]execute_cgi json_proto POST (null) [22:19:06]execute_cgi path=json_proto method=POST [22:19:06]POST find Content-Length [22:19:06]Host: 172.17.33.3:8080 [22:19:06]Content-Length: 677 [22:19:06]Content-Type: application/json [22:19:06] [22:19:06]POST finish read [22:19:06]Found Content-Length = 677 [22:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:19:06]execute_script... [22:19: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)348174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:19:06]POST & json_proto [22:19:06]process_json_proto [22:19:06]json parsed OK: [22:19:06]protocol is kg_v1.0 [22:19:06]action value=close_receipt [22:19:06]process_action close_receipt [22:19:06]cmd_close_receipt [22:19:06]MH_GetDate [22:19:06]Write to MH i2c: F0 00 00 E0 25 F4 [22:19:06]Write i2c OK [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: F0 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: F0 09 00 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: F0 09 00 E0 25 00 DD A7 1D 66 23 5B 8F 65 76 [22:19:06]GetLastDocTimeStamp 1713219495 [22:19:06]current date 1713219549 [22:19:06]FM_GetShiftState [22:19:06]SAM_PROTO_GetShiftState [22:19:06]wFMCommunicate request_size=4 [22:19:06]MH_SAM_APDU [22:19:06]CAPDU: 80 13 01 00 [22:19:06]Write to MH i2c: E2 08 00 E1 25 80 13 01 00 00 00 00 00 83 [22:19:06]Write i2c OK [22:19:06]MH_I2C_Read... [22:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:06]Read from MH i2c: E2 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: E2 0E 00 [22:19:06]MH_I2C_Read... [22:19:06]Read from MH i2c: E2 0E 00 E1 25 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 77 [22:19:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:19:06]wFMCommunicate OK [22:19:06]SAM_PROTO_GetShiftState done [22:19:06]FM_GetShiftState done [22:19:06]opened in 1713140468 [22:19:06]opened+sec_in_day 1713226868 [22:19:06]quantity*price = 40046 [22:19:06]sum+1 = 40047 [22:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 294 15.04.2024 22:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29700 ФПД: 167233243433044 1/tax-web-control/client/api/v1/ticket?date=20240415T221909&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29700&fm=167233243433044&tin=02508201610067®Number=0000138879044617&sum=40000 [22:19:07]StoreToDocumentArchive [22:19:07]shift 117 fd 29700 [22:19:07]save to /storage/0117/doc_00029700 [22:19:07]save last doc name /storage/0117/doc_00029700 to /storage/kkm_last_doc_name [22:19:07]save OK [22:19:07]Clear old archive folders... [22:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:07]tlvbuf is 01A831C0 [22:19:07]SAM_PROTO_ClearQueue [22:19:07]wFMCommunicate request_size=4 [22:19:07]MH_SAM_APDU [22:19:07]CAPDU: 80 09 00 00 [22:19:07]Write to MH i2c: E2 08 00 EE 25 80 09 00 00 00 00 00 00 85 [22:19:07]Write i2c OK [22:19:07]MH_I2C_Read... [22:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:07]Read from MH i2c: E2 [22:19:07]MH_I2C_Read... [22:19:07]Read from MH i2c: E2 03 00 [22:19:07]MH_I2C_Read... [22:19:07]Read from MH i2c: E2 03 00 EE 25 00 90 00 87 [22:19:07]RAPDU: 90 00 [22:19:07]wFMCommunicate OK [22:19:07]SAM_PROTO_ClearQueue done [22:19:07]KKMCreateOFDPacket [22:19:07]OFDProtocolAddRootSTLVToBuf [22:19:07]FM_MakeSignedData [22:19:07]FM_MakeSignedData [22:19:07]SAM_PROTO_SignData [22:19:07]wFMCommunicate request_size=4 [22:19:07]MH_SAM_APDU [22:19:07]CAPDU: 80 0D 01 02 [22:19:07]Write to MH i2c: E2 08 00 EF 25 80 0D 01 02 00 00 00 00 8D [22:19:07]Write i2c OK [22:19:07]MH_I2C_Read... [22:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:07]Read from MH i2c: E2 [22:19:07]MH_I2C_Read... [22:19:07]Read from MH i2c: E2 03 00 [22:19:07]MH_I2C_Read... [22:19:07]Read from MH i2c: E2 03 00 EF 25 00 90 00 88 [22:19:07]RAPDU: 90 00 [22:19:07]wFMCommunicate OK [22:19:07]wFMCommunicate request_size=255 [22:19:07]MH_SAM_APDU [22:19: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 26 01 00 00 F4 03 04 00 DD A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 74 00 00 35 04 06 00 98 [22:19:07]Write to MH i2c: E2 02 01 F0 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 26 01 00 00 F4 03 04 00 DD A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 74 00 00 35 04 06 00 98 00 00 DE [22:19:07]Write i2c OK [22:19:07]MH_I2C_Read... [22:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:08]Read from MH i2c: E2 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 03 00 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 03 00 F0 25 00 90 00 89 [22:19:08]RAPDU: 90 00 [22:19:08]wFMCommunicate OK [22:19:08]wFMCommunicate request_size=10 [22:19:08]MH_SAM_APDU [22:19:08]CAPDU: 80 0D 02 02 05 19 06 11 C8 54 [22:19:08]Write to MH i2c: E2 0D 00 F1 25 80 0D 02 02 05 00 19 06 11 C8 54 00 00 E6 [22:19:08]Write i2c OK [22:19:08]MH_I2C_Read... [22:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:08]Read from MH i2c: E2 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 03 00 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 03 00 F1 25 00 90 00 8A [22:19:08]RAPDU: 90 00 [22:19:08]wFMCommunicate OK [22:19:08]wFMCommunicate request_size=4 [22:19:08]MH_SAM_APDU [22:19:08]CAPDU: 80 0D 03 02 [22:19:08]Write to MH i2c: E2 08 00 F2 25 80 0D 03 02 00 00 00 00 92 [22:19:08]Write i2c OK [22:19:08]MH_I2C_Read... [22:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:08]Read from MH i2c: E2 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 0B 00 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 0B 00 F2 25 00 4F 2B A6 D2 CB 4B 60 2E 90 00 29 [22:19:08]RAPDU: 4F 2B A6 D2 CB 4B 60 2E 90 00 [22:19:08]wFMCommunicate OK [22:19:08]SAM_PROTO_SignData done [22:19:08]FM_MakeSignedData done [22:19:08]CreateOFDProtocolMessage [22:19:08]wFMCommunicate request_size=4 [22:19:08]MH_SAM_APDU [22:19:08]CAPDU: 80 11 00 00 [22:19:08]Write to MH i2c: E2 08 00 F3 25 80 11 00 00 00 00 00 00 92 [22:19:08]Write i2c OK [22:19:08]MH_I2C_Read... [22:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:08]Read from MH i2c: E2 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 17 00 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: E2 17 00 F3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [22:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:19:08]wFMCommunicate OK [22:19:08]CreateOFDProtocolMessage done [22:19:08]OFDSenderStorePacket 29700 [22:19:08]StoreOFDPacket docnum=29700 [22:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 8B 07 01 E9 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 26 01 00 00 F4 03 04 00 DD A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 74 00 00 35 04 06 00 98 19 06 11 C8 54 4F 2B A6 D2 CB 4B 60 2E [22:19:08]CheckFolder [22:19:08]dirname=/storage/ofd_packets [22:19:08]CheckFolder done [22:19:08]ProducePacketName [22:19:08]name=ofd_packets/00029700 [22:19:08]NVStorageSaveData ofd_packets/00029700 [22:19:08]File name is /storage/ofd_packets/00029700 [22:19:08]Write 301 bytes [22:19:08]NVStorageSaveData done [22:19:08]OFDSenderStorePacket done [22:19:08]KKMCreateOFDPacket done [22:19:08]NVStorageSaveData kkm_last_timestamp [22:19:08]File name is /storage/kkm_last_timestamp [22:19:08]Write 4 bytes [22:19:08]NVStorageSaveData done [22:19:08]ExternCall_PrintAddStr [22:19:08]wPrintStart [22:19:08]Write to MH i2c: 01 00 00 F4 25 19 [22:19:08]Write i2c OK [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: 01 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: 01 07 00 [22:19:08]MH_I2C_Read... [22:19:08]Read from MH i2c: 01 07 00 F4 25 00 00 00 00 00 FF 0F 2E [22:19:08]RasterBufferAndPrint [22:19:08]line Счет N : (1)348174 [22:19:08]line ИНН: 02508201610067 [22:19:08]line Контрольно-Кассовый Чек [22:19:08]line ПРОДАЖА [22:19:08]line ТРК (МРК, ГНК) : 13 [22:19:08]line Товар: 2710124130 [22:19:08]line Аи-92-К-5 [22:19:08]line 6.180 * 64.80 [22:19:08]line = 400.46 [22:19:08]line НДС 12% НСП 1% [22:19:08]line > о реализуемом товаре [22:19:08]line ОКРУГЛЕНИЕ: -0.46 [22:19:08]line ИТОГО: 400.00 [22:19:08]line Внесено: 400.00 [22:19:08]line СДАЧА: 0.00 [22:19:08]line НСП 1% : 3.54 [22:19:08]line НДС 12% : 42.53 [22:19:08]line Наличными: 400.00 [22:19:08]line Безнал.: 0.00 [22:19:08]line Место: АЗС № 108 "Партнер Нефть" [22:19:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:19:08]line СНО: Общий режим [22:19:08]line Чек 294 15.04.2024 22:19 [22:19:08]line Смена: 117 ФФД: 1.0 [22:19:08]line ЗНМ: 0300000027 [22:19:08]line РНМ: 0000138879044617 [22:19:08]line Версия ККМ: 001 [22:19:08]line ФМ: 0000000000963154 [22:19:08]line ФД: 29700 [22:19:08]line ФПД: 167233243433044 [22:19:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T221909&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29700&fm=167233243433044&tin=02508201610067®Number=0000138879044617&sum=40000 [22:19:08]OFD Sender: Processing packet 29700 [packets to send 8, broken 7] [22:19:08]ProducePacketName [22:19:08]name=ofd_packets/00029700 [22:19:08]OFD Sender: To server: pG, [22:19:08]CommunicateWithHost lk.salyk.kg:30040 [22:19:08]ConnectInit lk.salyk.kg [22:19:08]written 0, free lines is 4095 [22:19:08]Connected sock=10 [22:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 41 8B 07 01 E9 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 26 01 00 00 F4 03 04 00 DD A7 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 74 00 00 35 04 06 00 98 19 06 11 C8 54 4F 2B A6 D2 CB 4B 60 2E [22:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 58 47 00 C0 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 39 36 33 31 35 34 10 04 04 00 04 74 00 00 F4 03 04 00 7C 52 1D 66 B6 04 01 00 00 13 EA 24 5F 68 0A FB 8B [22:19:08]CommunicateWithHost err = 0 [22:19:08]CheckOFDResponse [22:19:08]1017 (14) - 77093643461234 [22:19:08]1041 (16) - 0000000000963154 [22:19:08]1040 (4) - 29700 [22:19:08]1012 (4) - 15.04.2024 16:14 [22:19:08]1206 (1) - 0 [22:19:08]OFD Sender: Remove packet 29700 [22:19:08]ProducePacketName [22:19:08]name=ofd_packets/00029700 [22:19:08]NVStorageDeleteData [22:19:09]Write to MH i2c: 01 00 00 1E 26 44 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: 01 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: 01 07 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: 01 07 00 1E 26 00 00 00 00 00 C3 0C 1A [22:19:09]RasterBufferAndPrint [22:19:09]line [22:19:09]line [22:19:09]line [22:19:09]line [22:19:09]line [22:19:09]written 0, free lines is 3272 [22:19:09]MH_Cut [22:19:09]Write to MH i2c: D1 01 00 25 26 01 1D [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: D1 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: D1 01 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: D1 01 00 25 26 00 1C [22:19:09]Write to MH i2c: 01 00 00 26 26 4C [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]OFD Sender: No OFD packet to send [22:19:09]*** Cut start [22:19:09]*** Partial cut [22:19:09]*** CUTSNS_PIN = 1 [22:19:09]*** CUTSNS_PIN = 0 [22:19:10]*** Brake cut motor [22:19:10]Read from MH i2c: 01 [22:19:10]MH_I2C_Read... [22:19:10]*** Stop cut motor [22:19:10]*** Cut end [22:19:10]Read from MH i2c: 01 07 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 FF 0F 61 [22:19:10]process_action close_receipt done [22:19:10]requested_data is exist [22:19:10]produce_requested_data [22:19:10]requested_item fm.sn is exist - process it [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 11 00 00 [22:19:10]Write to MH i2c: E2 08 00 27 26 80 11 00 00 00 00 00 00 C7 [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 17 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 17 00 27 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [22:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:19:10]wFMCommunicate OK [22:19:10]requested_item fd.num is exist - process it [22:19:10]SAM_PROTO_GetFieldsCounters [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 13 00 00 [22:19:10]Write to MH i2c: E2 08 00 28 26 80 13 00 00 00 00 00 00 CA [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 62 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 62 00 28 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [22:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:10]wFMCommunicate OK [22:19:10]SAM_PROTO_GetFieldsCounters done [22:19:10]requested_item shift.num is exist - process it [22:19:10]requested_item shift.opened is exist - process it [22:19:10]req_shift_opened [22:19:10]FM_GetShiftState [22:19:10]SAM_PROTO_GetShiftState [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 13 01 00 [22:19:10]Write to MH i2c: E2 08 00 29 26 80 13 01 00 00 00 00 00 CC [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 0E 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 0E 00 29 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C0 [22:19:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:19:10]wFMCommunicate OK [22:19:10]SAM_PROTO_GetShiftState done [22:19:10]FM_GetShiftState done [22:19:10]req_shift_opened done [22:19:10]requested_item shift.open_date is exist - process it [22:19:10]req_shift_open_date [22:19:10]req_shift_open_date done [22:19:10]produce_requested_data done [22:19:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29700,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:19:10]process_action_free close_receipt [22:19:10]json_value_free [22:19:10]json_value_free done [22:19:10]process_json_proto returns [22:19:10]Send response to host [22:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29700,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:19:10]free response buf [22:19:10]execute_script done [22:19:10]execute_script returns [22:19:10]free content buf [22:19:10]Sock 7.Close socket [22:19:10]Sock 7.Thread stoped [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:17]accept exits with 9 [22:26:17]New connection [22:26:17]New thread 3067108708 created [22:26:17]Thread 3066965348 joined [22:26:17]Waiting for new connection... [22:26:17] Sock 9.Parse request [22:26:17]Sock 9.Check first char [22:26:17]Sock 9.First char is OK [22:26:17]request: POST /json_proto HTTP/1.0 [22:26:17]Method: POST [22:26:17]URL: /json_proto [22:26:17]Method is POST - this is cgi request [22:26:17]url: /json_proto [22:26:17]query_string will be loaded in cgi processing [22:26:17]execute_cgi json_proto POST (null) [22:26:17]execute_cgi path=json_proto method=POST [22:26:17]POST find Content-Length [22:26:17]Host: 172.17.33.3:8080 [22:26:17]Content-Length: 1202 [22:26:17]Content-Type: application/json [22:26:17] [22:26:17]POST finish read [22:26:17]Found Content-Length = 1202 [22:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348175\u000A15.04.2024 22:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.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\u000A3865460\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:17]execute_script... [22:26:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348175\u000A15.04.2024 22:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.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\u000A3865460\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:17]POST & json_proto [22:26:17]process_json_proto [22:26:17]json parsed OK: [22:26:17]protocol is kg_v1.0 [22:26:17]action value=print_text [22:26:17]process_action print_text [22:26:17]cmd_print_text [22:26:17]ExternCall_PrintAddStr [22:26:17]wPrintStart [22:26:17]Write to MH i2c: 01 00 00 2A 26 50 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 FF 0F 65 [22:26:17]RasterBufferAndPrint [22:26:17]line *****ТОВАРНЫЙ ЧЕК***** [22:26:17]line АЗС 108 [22:26:17]line Партнер нефть [22:26:17]line 02508201610067 [22:26:17]line Кассир : Джумагулова Н. [22:26:17]line Счет N : (1)348175 [22:26:17]line 15.04.2024 22:07 [22:26:17]line ПРОДАЖА [22:26:17]line ТРК (МРК, ГНК): 42 [22:26:17]line Вид ГСМ : 2710124130 [22:26:17]line Аи-92-К-5 [22:26:17]line 10.000 x 64.80 [22:26:17]line ИТОГ: 648.00 [22:26:17]line Тип оплаты: Талоны: Партнер нефть [22:26:17]line 3865460 [22:26:17]line ______________________ [22:26:17]line (подпись) [22:26:17]written 0, free lines is 4095 [22:26:17]Write to MH i2c: 01 00 00 3F 26 65 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 3F 26 00 00 00 00 00 F6 0D 6F [22:26:17]RasterBufferAndPrint [22:26:17]line [22:26:17]line [22:26:17]line [22:26:17]line [22:26:17]line [22:26:17]written 0, free lines is 3576 [22:26:17]MH_Cut [22:26:17]Write to MH i2c: D1 01 00 46 26 01 3E [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: D1 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: D1 01 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: D1 01 00 46 26 00 3D [22:26:17]Write to MH i2c: 01 00 00 47 26 6D [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** Cut start [22:26:17]*** Partial cut [22:26:17]*** CUTSNS_PIN = 1 [22:26:17]*** CUTSNS_PIN = 0 [22:26:18]*** Brake cut motor [22:26:18]Read from MH i2c: 01 [22:26:18]MH_I2C_Read... [22:26:18]*** Stop cut motor [22:26:18]*** Cut end [22:26:18]Read from MH i2c: 01 07 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: 01 07 00 47 26 00 00 00 00 00 FF 0F 82 [22:26:18]process_action print_text done [22:26:18]requested_data is exist [22:26:18]produce_requested_data [22:26:18]requested_item fm.sn is exist - process it [22:26:18]wFMCommunicate request_size=4 [22:26:18]MH_SAM_APDU [22:26:18]CAPDU: 80 11 00 00 [22:26:18]Write to MH i2c: E2 08 00 48 26 80 11 00 00 00 00 00 00 E8 [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:18]Read from MH i2c: E2 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 17 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 17 00 48 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [22:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:26:18]wFMCommunicate OK [22:26:18]requested_item fd.num is exist - process it [22:26:18]SAM_PROTO_GetFieldsCounters [22:26:18]wFMCommunicate request_size=4 [22:26:18]MH_SAM_APDU [22:26:18]CAPDU: 80 13 00 00 [22:26:18]Write to MH i2c: E2 08 00 49 26 80 13 00 00 00 00 00 00 EB [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:18]Read from MH i2c: E2 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 62 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 62 00 49 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [22:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:18]wFMCommunicate OK [22:26:18]SAM_PROTO_GetFieldsCounters done [22:26:18]requested_item shift.num is exist - process it [22:26:18]requested_item shift.opened is exist - process it [22:26:18]req_shift_opened [22:26:18]FM_GetShiftState [22:26:18]SAM_PROTO_GetShiftState [22:26:18]wFMCommunicate request_size=4 [22:26:18]MH_SAM_APDU [22:26:18]CAPDU: 80 13 01 00 [22:26:18]Write to MH i2c: E2 08 00 4A 26 80 13 01 00 00 00 00 00 ED [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:18]Read from MH i2c: E2 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 0E 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: E2 0E 00 4A 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E1 [22:26:18]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:26:18]wFMCommunicate OK [22:26:18]SAM_PROTO_GetShiftState done [22:26:18]FM_GetShiftState done [22:26:18]req_shift_opened done [22:26:18]requested_item shift.open_date is exist - process it [22:26:18]req_shift_open_date [22:26:18]req_shift_open_date done [22:26:18]produce_requested_data done [22:26:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29700,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:26:18]process_action_free print_text [22:26:18]json_value_free [22:26:18]json_value_free done [22:26:18]process_json_proto returns [22:26:18]Send response to host [22:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29700,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:26:18]free response buf [22:26:18]execute_script done [22:26:18]execute_script returns [22:26:18]free content buf [22:26:18]Sock 9.Close socket [22:26:18]Sock 9.Thread stoped [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:31]accept exits with 7 [22:30:31]New connection [22:30:31]New thread 3066965348 created [22:30:31]Thread 3067108708 joined [22:30:31]Waiting for new connection... [22:30:31] Sock 7.Parse request [22:30:31]Sock 7.Check first char [22:30:31]Sock 7.First char is OK [22:30:31]request: POST /json_proto HTTP/1.0 [22:30:31]Method: POST [22:30:31]URL: /json_proto [22:30:31]Method is POST - this is cgi request [22:30:31]url: /json_proto [22:30:31]query_string will be loaded in cgi processing [22:30:31]execute_cgi json_proto POST (null) [22:30:31]execute_cgi path=json_proto method=POST [22:30:31]POST find Content-Length [22:30:31]Host: 172.17.33.3:8080 [22:30:31]Content-Length: 837 [22:30:31]Content-Type: application/json [22:30:31] [22:30:31]POST finish read [22:30:31]Found Content-Length = 837 [22:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:31]execute_script... [22:30: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)348176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:31]POST & json_proto [22:30:31]process_json_proto [22:30:31]json parsed OK: [22:30:31]protocol is kg_v1.0 [22:30:31]action value=close_receipt [22:30:31]process_action close_receipt [22:30:31]cmd_close_receipt [22:30:31]MH_GetDate [22:30:31]Write to MH i2c: F0 00 00 4B 26 60 [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: F0 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: F0 09 00 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: F0 09 00 4B 26 00 89 AA 1D 66 23 5B 8F 65 91 [22:30:31]GetLastDocTimeStamp 1713219549 [22:30:31]current date 1713220233 [22:30:31]FM_GetShiftState [22:30:31]SAM_PROTO_GetShiftState [22:30:31]wFMCommunicate request_size=4 [22:30:31]MH_SAM_APDU [22:30:31]CAPDU: 80 13 01 00 [22:30:31]Write to MH i2c: E2 08 00 4C 26 80 13 01 00 00 00 00 00 EF [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:31]Read from MH i2c: E2 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 0E 00 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 0E 00 4C 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E3 [22:30:31]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:30:31]wFMCommunicate OK [22:30:31]SAM_PROTO_GetShiftState done [22:30:31]FM_GetShiftState done [22:30:31]opened in 1713140468 [22:30:31]opened+sec_in_day 1713226868 [22:30:31]quantity*price = 35064 [22:30:31]sum+1 = 35066 [22:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.65 НСП 1% : 3.10 НДС 12% : 37.24 Наличными: 0.00 Безнал.: 350.65 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 295 15.04.2024 22:30 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29701 ФПД: 221016513620460 1/tax-web-control/client/api/v1/ticket?date=20240415T223033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29701&fm=221016513620460&tin=02508201610067®Number=0000138879044617&sum=35065 [22:30:32]StoreToDocumentArchive [22:30:32]shift 117 fd 29701 [22:30:32]save to /storage/0117/doc_00029701 [22:30:32]save last doc name /storage/0117/doc_00029701 to /storage/kkm_last_doc_name [22:30:32]save OK [22:30:32]Clear old archive folders... [22:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:30:32]tlvbuf is 01A82DC0 [22:30:32]SAM_PROTO_ClearQueue [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 09 00 00 [22:30:32]Write to MH i2c: E2 08 00 59 26 80 09 00 00 00 00 00 00 F1 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 59 26 00 90 00 F3 [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]SAM_PROTO_ClearQueue done [22:30:32]KKMCreateOFDPacket [22:30:32]OFDProtocolAddRootSTLVToBuf [22:30:32]FM_MakeSignedData [22:30:32]FM_MakeSignedData [22:30:32]SAM_PROTO_SignData [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 01 02 [22:30:32]Write to MH i2c: E2 08 00 5A 26 80 0D 01 02 00 00 00 00 F9 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]wFMCommunicate request_size=255 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 89 AA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 74 00 00 35 04 06 00 C9 03 6A C8 [22:30:32]Write to MH i2c: E2 02 01 5B 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 89 AA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 74 00 00 35 04 06 00 C9 03 6A C8 00 00 03 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 5B 26 00 90 00 F5 [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]wFMCommunicate request_size=7 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 02 02 02 A9 EC [22:30:32]Write to MH i2c: E2 0A 00 5C 26 80 0D 02 02 02 00 A9 EC 00 00 95 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 03 02 [22:30:32]Write to MH i2c: E2 08 00 5D 26 80 0D 03 02 00 00 00 00 FE [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0B 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0B 00 5D 26 00 D3 1F C3 41 0F E6 09 39 90 00 2C [22:30:32]RAPDU: D3 1F C3 41 0F E6 09 39 90 00 [22:30:32]wFMCommunicate OK [22:30:32]SAM_PROTO_SignData done [22:30:32]FM_MakeSignedData done [22:30:32]CreateOFDProtocolMessage [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 11 00 00 [22:30:32]Write to MH i2c: E2 08 00 5E 26 80 11 00 00 00 00 00 00 FE [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 5E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [22:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:32]wFMCommunicate OK [22:30:32]CreateOFDProtocolMessage done [22:30:32]OFDSenderStorePacket 29701 [22:30:32]StoreOFDPacket docnum=29701 [22:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 40 AB 04 01 65 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 89 AA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 74 00 00 35 04 06 00 C9 03 6A C8 A9 EC D3 1F C3 41 0F E6 09 39 [22:30:32]CheckFolder [22:30:32]dirname=/storage/ofd_packets [22:30:32]CheckFolder done [22:30:32]ProducePacketName [22:30:32]name=ofd_packets/00029701 [22:30:32]NVStorageSaveData ofd_packets/00029701 [22:30:32]File name is /storage/ofd_packets/00029701 [22:30:32]Write 298 bytes [22:30:32]NVStorageSaveData done [22:30:32]OFDSenderStorePacket done [22:30:32]KKMCreateOFDPacket done [22:30:32]NVStorageSaveData kkm_last_timestamp [22:30:32]File name is /storage/kkm_last_timestamp [22:30:32]Write 4 bytes [22:30:32]NVStorageSaveData done [22:30:32]OFD Sender: Processing packet 29701 [packets to send 8, broken 7] [22:30:32]ProducePacketName [22:30:32]name=ofd_packets/00029701 [22:30:32]OFD Sender: To server: pG, [22:30:32]CommunicateWithHost lk.salyk.kg:30040 [22:30:32]ConnectInit lk.salyk.kg [22:30:32]ExternCall_PrintAddStr [22:30:32]wPrintStart [22:30:32]Write to MH i2c: 01 00 00 5F 26 85 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 07 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 07 00 5F 26 00 00 00 00 00 FF 0F 9A [22:30:32]RasterBufferAndPrint [22:30:32]line Счет N : (1)348176 [22:30:32]line ИНН: 02508201610067 [22:30:32]line Контрольно-Кассовый Чек [22:30:32]line ПРОДАЖА [22:30:32]line ТРК (МРК, ГНК) : 21 [22:30:32]line Товар: 2710194210 [22:30:32]line ДТ-К-5 [22:30:32]line 4.810 * 72.90 [22:30:32]line = 350.65 [22:30:32]line НДС 12% НСП 1% [22:30:32]line > о реализуемом товаре [22:30:32]line ИТОГО: 350.65 [22:30:32]line НСП 1% : 3.10 [22:30:32]line НДС 12% : 37.24 [22:30:32]line Наличными: 0.00 [22:30:32]line Безнал.: 350.65 [22:30:32]line Место: АЗС № 108 "Партнер Нефть" [22:30:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:30:32]line СНО: Общий режим [22:30:32]line Чек 295 15.04.2024 22:30 [22:30:32]line Смена: 117 ФФД: 1.0 [22:30:32]line ЗНМ: 0300000027 [22:30:32]line РНМ: 0000138879044617 [22:30:32]line Версия ККМ: 001 [22:30:32]line Платежная система: АКБ Кыргызстан [22:30:33]line ФМ: 0000000000963154 [22:30:33]line ФД: 29701 [22:30:33]line ФПД: 221016513620460 [22:30:33]line 1/tax-web-control/client/api/v1/ticket?date=20240415T223033&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29701&fm=221016513620460&tin=02508201610067®Number=0000138879044617&sum=35065 [22:30:33]Connected sock=11 [22:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 40 AB 04 01 65 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 89 AA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 written 0, free lines is 4095 [22:30:33]00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 74 00 00 35 04 06 00 C9 03 6A C8 A9 EC D3 1F C3 41 0F E6 09 39 [22:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 9E 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 05 74 00 00 F4 03 04 00 29 55 1D 66 B6 04 01 00 00 8A 00 B2 AE A9 68 FD EC [22:30:33]CommunicateWithHost err = 0 [22:30:33]CheckOFDResponse [22:30:33]1017 (14) - 77093643461234 [22:30:33]1041 (16) - 0000000000963154 [22:30:33]1040 (4) - 29701 [22:30:33]1012 (4) - 15.04.2024 16:26 [22:30:33]1206 (1) - 0 [22:30:33]OFD Sender: Remove packet 29701 [22:30:33]ProducePacketName [22:30:33]name=ofd_packets/00029701 [22:30:33]NVStorageDeleteData [22:30:33]Write to MH i2c: 01 00 00 88 26 AE [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 07 00 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 D8 0C 99 [22:30:33]RasterBufferAndPrint [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]written 0, free lines is 3295 [22:30:33]MH_Cut [22:30:33]Write to MH i2c: D1 01 00 8F 26 01 87 [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 01 00 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 01 00 8F 26 00 86 [22:30:33]Write to MH i2c: 01 00 00 90 26 B6 [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]OFD Sender: No OFD packet to send [22:30:34]*** Cut start [22:30:34]*** Partial cut [22:30:34]*** CUTSNS_PIN = 1 [22:30:34]*** CUTSNS_PIN = 0 [22:30:34]*** Brake cut motor [22:30:35]Read from MH i2c: 01 [22:30:35]MH_I2C_Read... [22:30:35]*** Stop cut motor [22:30:35]*** Cut end [22:30:35]Read from MH i2c: 01 07 00 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: 01 07 00 90 26 00 00 00 00 00 FF 0F CB [22:30:35]process_action close_receipt done [22:30:35]requested_data is exist [22:30:35]produce_requested_data [22:30:35]requested_item fm.sn is exist - process it [22:30:35]wFMCommunicate request_size=4 [22:30:35]MH_SAM_APDU [22:30:35]CAPDU: 80 11 00 00 [22:30:35]Write to MH i2c: E2 08 00 91 26 80 11 00 00 00 00 00 00 31 [22:30:35]Write i2c OK [22:30:35]MH_I2C_Read... [22:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:35]Read from MH i2c: E2 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 17 00 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 17 00 91 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [22:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:30:35]wFMCommunicate OK [22:30:35]requested_item fd.num is exist - process it [22:30:35]SAM_PROTO_GetFieldsCounters [22:30:35]wFMCommunicate request_size=4 [22:30:35]MH_SAM_APDU [22:30:35]CAPDU: 80 13 00 00 [22:30:35]Write to MH i2c: E2 08 00 92 26 80 13 00 00 00 00 00 00 34 [22:30:35]Write i2c OK [22:30:35]MH_I2C_Read... [22:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:35]Read from MH i2c: E2 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 62 00 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 62 00 92 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [22:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:35]wFMCommunicate OK [22:30:35]SAM_PROTO_GetFieldsCounters done [22:30:35]requested_item shift.num is exist - process it [22:30:35]requested_item shift.opened is exist - process it [22:30:35]req_shift_opened [22:30:35]FM_GetShiftState [22:30:35]SAM_PROTO_GetShiftState [22:30:35]wFMCommunicate request_size=4 [22:30:35]MH_SAM_APDU [22:30:35]CAPDU: 80 13 01 00 [22:30:35]Write to MH i2c: E2 08 00 93 26 80 13 01 00 00 00 00 00 36 [22:30:35]Write i2c OK [22:30:35]MH_I2C_Read... [22:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:35]Read from MH i2c: E2 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 0E 00 [22:30:35]MH_I2C_Read... [22:30:35]Read from MH i2c: E2 0E 00 93 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2A [22:30:35]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:30:35]wFMCommunicate OK [22:30:35]SAM_PROTO_GetShiftState done [22:30:35]FM_GetShiftState done [22:30:35]req_shift_opened done [22:30:35]requested_item shift.open_date is exist - process it [22:30:35]req_shift_open_date [22:30:35]req_shift_open_date done [22:30:35]produce_requested_data done [22:30:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29701,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:30:35]process_action_free close_receipt [22:30:35]json_value_free [22:30:35]json_value_free done [22:30:35]process_json_proto returns [22:30:35]Send response to host [22:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29701,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:30:35]free response buf [22:30:35]execute_script done [22:30:35]execute_script returns [22:30:35]free content buf [22:30:35]Sock 7.Close socket [22:30:35]Sock 7.Thread stoped [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:01]accept exits with 9 [22:35:01]New connection [22:35:01]New thread 3067108708 created [22:35:01]Thread 3066965348 joined [22:35:01]Waiting for new connection... [22:35:01] Sock 9.Parse request [22:35:01]Sock 9.Check first char [22:35:01]Sock 9.First char is OK [22:35:01]request: POST /json_proto HTTP/1.0 [22:35:01]Method: POST [22:35:01]URL: /json_proto [22:35:01]Method is POST - this is cgi request [22:35:01]url: /json_proto [22:35:01]query_string will be loaded in cgi processing [22:35:01]execute_cgi json_proto POST (null) [22:35:01]execute_cgi path=json_proto method=POST [22:35:01]POST find Content-Length [22:35:01]Host: 172.17.33.3:8080 [22:35:01]Content-Length: 681 [22:35:01]Content-Type: application/json [22:35:01] [22:35:01]POST finish read [22:35:01]Found Content-Length = 681 [22:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 15.870, "sum" : 530.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:01]execute_script... [22:35: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)348177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 15.870, "sum" : 530.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:01]POST & json_proto [22:35:01]process_json_proto [22:35:01]json parsed OK: [22:35:01]protocol is kg_v1.0 [22:35:01]action value=close_receipt [22:35:01]process_action close_receipt [22:35:01]cmd_close_receipt [22:35:01]MH_GetDate [22:35:01]Write to MH i2c: F0 00 00 94 26 A9 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: F0 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: F0 09 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: F0 09 00 94 26 00 97 AB 1D 66 23 5B 8F 65 E9 [22:35:01]GetLastDocTimeStamp 1713220233 [22:35:01]current date 1713220503 [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 95 26 80 13 01 00 00 00 00 00 38 [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 95 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 2C [22:35:01]RAPDU: 09 00 01 F4 72 1C 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]opened in 1713140468 [22:35:01]opened+sec_in_day 1713226868 [22:35:01]quantity*price = 53005 [22:35:01]sum+1 = 53007 [22:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.29 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 296 15.04.2024 22:35 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29702 ФПД: 53217127017616 1/tax-web-control/client/api/v1/ticket?date=20240415T223503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29702&fm=53217127017616&tin=02508201610067®Number=0000138879044617&sum=53000 [22:35:02]StoreToDocumentArchive [22:35:02]shift 117 fd 29702 [22:35:02]save to /storage/0117/doc_00029702 [22:35:02]save last doc name /storage/0117/doc_00029702 to /storage/kkm_last_doc_name [22:35:02]save OK [22:35:02]Clear old archive folders... [22:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:35:02]tlvbuf is B6F00610 [22:35:02]SAM_PROTO_ClearQueue [22:35:02]wFMCommunicate request_size=4 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 09 00 00 [22:35:02]Write to MH i2c: E2 08 00 A2 26 80 09 00 00 00 00 00 00 3A [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [22:35:02]RAPDU: 90 00 [22:35:02]wFMCommunicate OK [22:35:02]SAM_PROTO_ClearQueue done [22:35:02]KKMCreateOFDPacket [22:35:02]OFDProtocolAddRootSTLVToBuf [22:35:02]FM_MakeSignedData [22:35:02]FM_MakeSignedData [22:35:02]SAM_PROTO_SignData [22:35:02]wFMCommunicate request_size=4 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 0D 01 02 [22:35:02]Write to MH i2c: E2 08 00 A3 26 80 0D 01 02 00 00 00 00 42 [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 A3 26 00 90 00 3D [22:35:02]RAPDU: 90 00 [22:35:02]wFMCommunicate OK [22:35:02]wFMCommunicate request_size=255 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 3D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 AB 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 74 00 00 35 04 06 00 30 66 [22:35:02]Write to MH i2c: E2 02 01 A4 26 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 3D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 AB 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 74 00 00 35 04 06 00 30 66 00 00 53 [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 A4 26 00 90 00 3E [22:35:02]RAPDU: 90 00 [22:35:02]wFMCommunicate OK [22:35:02]wFMCommunicate request_size=9 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 0D 02 02 04 93 F3 AC 90 [22:35:02]Write to MH i2c: E2 0C 00 A5 26 80 0D 02 02 04 00 93 F3 AC 90 00 00 0F [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:03]Read from MH i2c: E2 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 03 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [22:35:03]RAPDU: 90 00 [22:35:03]wFMCommunicate OK [22:35:03]wFMCommunicate request_size=4 [22:35:03]MH_SAM_APDU [22:35:03]CAPDU: 80 0D 03 02 [22:35:03]Write to MH i2c: E2 08 00 A6 26 80 0D 03 02 00 00 00 00 47 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:03]Read from MH i2c: E2 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 0B 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 0B 00 A6 26 00 15 C1 6C A6 DD 4F F9 6A 90 00 BF [22:35:03]RAPDU: 15 C1 6C A6 DD 4F F9 6A 90 00 [22:35:03]wFMCommunicate OK [22:35:03]SAM_PROTO_SignData done [22:35:03]FM_MakeSignedData done [22:35:03]CreateOFDProtocolMessage [22:35:03]wFMCommunicate request_size=4 [22:35:03]MH_SAM_APDU [22:35:03]CAPDU: 80 11 00 00 [22:35:03]Write to MH i2c: E2 08 00 A7 26 80 11 00 00 00 00 00 00 47 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:03]Read from MH i2c: E2 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 17 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: E2 17 00 A7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [22:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:35:03]wFMCommunicate OK [22:35:03]CreateOFDProtocolMessage done [22:35:03]OFDSenderStorePacket 29702 [22:35:03]StoreOFDPacket docnum=29702 [22:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 ED 67 06 01 83 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 3D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 AB 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 74 00 00 35 04 06 00 30 66 93 F3 AC 90 15 C1 6C A6 DD 4F F9 6A [22:35:03]CheckFolder [22:35:03]dirname=/storage/ofd_packets [22:35:03]CheckFolder done [22:35:03]ProducePacketName [22:35:03]name=ofd_packets/00029702 [22:35:03]NVStorageSaveData ofd_packets/00029702 [22:35:03]File name is /storage/ofd_packets/00029702 [22:35:03]Write 300 bytes [22:35:03]NVStorageSaveData done [22:35:03]OFDSenderStorePacket done [22:35:03]KKMCreateOFDPacket done [22:35:03]NVStorageSaveData kkm_last_timestamp [22:35:03]File name is /storage/kkm_last_timestamp [22:35:03]Write 4 bytes [22:35:03]NVStorageSaveData done [22:35:03]ExternCall_PrintAddStr [22:35:03]wPrintStart [22:35:03]Write to MH i2c: 01 00 00 A8 26 CE [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 A8 26 00 00 00 00 00 FF 0F E3 [22:35:03]RasterBufferAndPrint [22:35:03]line Счет N : (1)348177 [22:35:03]line ИНН: 02508201610067 [22:35:03]line Контрольно-Кассовый Чек [22:35:03]line ПРОДАЖА [22:35:03]line ТРК (МРК, ГНК) : 71 [22:35:03]line Товар: 2711129700 [22:35:03]line ГАЗ-К-5 [22:35:03]line 15.870 * 33.40 [22:35:03]line = 530.06 [22:35:03]line НДС 12% НСП 1% [22:35:03]line > о реализуемом товаре [22:35:03]line ОКРУГЛЕНИЕ: -0.06 [22:35:03]line ИТОГО: 530.00 [22:35:03]line Внесено: 530.00 [22:35:03]line СДАЧА: 0.00 [22:35:03]line НСП 1% : 4.69 [22:35:03]line НДС 12% : 56.29 [22:35:03]line Наличными: 530.00 [22:35:03]line Безнал.: 0.00 [22:35:03]line Место: АЗС № 108 "Партнер Нефть" [22:35:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:35:03]line СНО: Общий режим [22:35:03]line Чек 296 15.04.2024 22:35 [22:35:03]line Смена: 117 ФФД: 1.0 [22:35:03]line ЗНМ: 0300000027 [22:35:03]line РНМ: 0000138879044617 [22:35:03]line Версия ККМ: 001 [22:35:03]line ФМ: 0000000000963154 [22:35:03]line ФД: 29702 [22:35:03]line ФПД: 53217127017616 [22:35:03]line 1/tax-web-control/client/api/v1/ticket?date=20240415T223503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29702&fm=53217127017616&tin=02508201610067®Number=0000138879044617&sum=53000 [22:35:03]OFD Sender: Processing packet 29702 [packets to send 8, broken 7] [22:35:03]ProducePacketName [22:35:03]name=ofd_packets/00029702 [22:35:03]OFD Sender: To server: pG, [22:35:03]CommunicateWithHost lk.salyk.kg:30040 [22:35:03]ConnectInit lk.salyk.kg [22:35:03]written 0, free lines is 4095 [22:35:03]Connected sock=10 [22:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 ED 67 06 01 83 6B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 3D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 0E CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 97 AB 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 74 00 00 35 04 06 00 30 66 93 F3 AC 90 15 C1 6C A6 DD 4F F9 6A [22:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E 55 47 00 CB 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 39 36 33 31 35 34 10 04 04 00 06 74 00 00 F4 03 04 00 37 56 1D 66 B6 04 01 00 00 A5 9E 2C E5 52 84 5E 32 [22:35:03]CommunicateWithHost err = 0 [22:35:03]CheckOFDResponse [22:35:03]1017 (14) - 77093643461234 [22:35:03]1041 (16) - 0000000000963154 [22:35:03]1040 (4) - 29702 [22:35:03]1012 (4) - 15.04.2024 16:30 [22:35:03]1206 (1) - 0 [22:35:03]OFD Sender: Remove packet 29702 [22:35:03]ProducePacketName [22:35:03]name=ofd_packets/00029702 [22:35:03]NVStorageDeleteData [22:35:03]Write to MH i2c: 01 00 00 D2 26 F8 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 D2 26 00 00 00 00 00 C0 0C CB [22:35:03]RasterBufferAndPrint [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]written 0, free lines is 3269 [22:35:03]MH_Cut [22:35:03]Write to MH i2c: D1 01 00 D9 26 01 D1 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 01 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 01 00 D9 26 00 D0 [22:35:03]Write to MH i2c: 01 00 00 DA 26 00 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:04]OFD Sender: No OFD packet to send [22:35:04]*** Cut start [22:35:04]*** Partial cut [22:35:04]*** CUTSNS_PIN = 1 [22:35:04]*** CUTSNS_PIN = 0 [22:35:05]*** Brake cut motor [22:35:05]Read from MH i2c: 01 [22:35:05]MH_I2C_Read... [22:35:05]*** Stop cut motor [22:35:05]*** Cut end [22:35:05]Read from MH i2c: 01 07 00 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: 01 07 00 DA 26 00 00 00 00 00 FF 0F 15 [22:35:05]process_action close_receipt done [22:35:05]requested_data is exist [22:35:05]produce_requested_data [22:35:05]requested_item fm.sn is exist - process it [22:35:05]wFMCommunicate request_size=4 [22:35:05]MH_SAM_APDU [22:35:05]CAPDU: 80 11 00 00 [22:35:05]Write to MH i2c: E2 08 00 DB 26 80 11 00 00 00 00 00 00 7B [22:35:05]Write i2c OK [22:35:05]MH_I2C_Read... [22:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:05]Read from MH i2c: E2 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 17 00 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 17 00 DB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [22:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:35:05]wFMCommunicate OK [22:35:05]requested_item fd.num is exist - process it [22:35:05]SAM_PROTO_GetFieldsCounters [22:35:05]wFMCommunicate request_size=4 [22:35:05]MH_SAM_APDU [22:35:05]CAPDU: 80 13 00 00 [22:35:05]Write to MH i2c: E2 08 00 DC 26 80 13 00 00 00 00 00 00 7E [22:35:05]Write i2c OK [22:35:05]MH_I2C_Read... [22:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:05]Read from MH i2c: E2 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 62 00 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 62 00 DC 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [22:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:05]wFMCommunicate OK [22:35:05]SAM_PROTO_GetFieldsCounters done [22:35:05]requested_item shift.num is exist - process it [22:35:05]requested_item shift.opened is exist - process it [22:35:05]req_shift_opened [22:35:05]FM_GetShiftState [22:35:05]SAM_PROTO_GetShiftState [22:35:05]wFMCommunicate request_size=4 [22:35:05]MH_SAM_APDU [22:35:05]CAPDU: 80 13 01 00 [22:35:05]Write to MH i2c: E2 08 00 DD 26 80 13 01 00 00 00 00 00 80 [22:35:05]Write i2c OK [22:35:05]MH_I2C_Read... [22:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:05]Read from MH i2c: E2 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 0E 00 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: E2 0E 00 DD 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 74 [22:35:05]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:35:05]wFMCommunicate OK [22:35:05]SAM_PROTO_GetShiftState done [22:35:05]FM_GetShiftState done [22:35:05]req_shift_opened done [22:35:05]requested_item shift.open_date is exist - process it [22:35:05]req_shift_open_date [22:35:05]req_shift_open_date done [22:35:05]produce_requested_data done [22:35:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29702,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:35:05]process_action_free close_receipt [22:35:05]json_value_free [22:35:05]json_value_free done [22:35:05]process_json_proto returns [22:35:05]Send response to host [22:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29702,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:35:05]free response buf [22:35:05]execute_script done [22:35:05]execute_script returns [22:35:05]free content buf [22:35:05]Sock 9.Close socket [22:35:05]Sock 9.Thread stoped [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:07]accept exits with 7 [22:39:07]New connection [22:39:07]New thread 3066965348 created [22:39:07]Thread 3067108708 joined [22:39:07]Waiting for new connection... [22:39:07] Sock 7.Parse request [22:39:07]Sock 7.Check first char [22:39:07]Sock 7.First char is OK [22:39:07]request: POST /json_proto HTTP/1.0 [22:39:07]Method: POST [22:39:07]URL: /json_proto [22:39:07]Method is POST - this is cgi request [22:39:07]url: /json_proto [22:39:07]query_string will be loaded in cgi processing [22:39:07]execute_cgi json_proto POST (null) [22:39:07]execute_cgi path=json_proto method=POST [22:39:07]POST find Content-Length [22:39:07]Host: 172.17.33.3:8080 [22:39:07]Content-Length: 677 [22:39:07]Content-Type: application/json [22:39:07] [22:39:07]POST finish read [22:39:07]Found Content-Length = 677 [22:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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" ] } } [22:39:07]execute_script... [22:39: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)348178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "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" ] } } [22:39:07]POST & json_proto [22:39:07]process_json_proto [22:39:07]json parsed OK: [22:39:07]protocol is kg_v1.0 [22:39:07]action value=close_receipt [22:39:07]process_action close_receipt [22:39:07]cmd_close_receipt [22:39:07]MH_GetDate [22:39:07]Write to MH i2c: F0 00 00 DE 26 F3 [22:39:07]Write i2c OK [22:39:07]MH_I2C_Read... [22:39:07]Read from MH i2c: F0 [22:39:07]MH_I2C_Read... [22:39:07]Read from MH i2c: F0 09 00 [22:39:07]MH_I2C_Read... [22:39:07]Read from MH i2c: F0 09 00 DE 26 00 8E AC 1D 66 23 5B 8F 65 2B [22:39:07]GetLastDocTimeStamp 1713220503 [22:39:07]current date 1713220750 [22:39:07]FM_GetShiftState [22:39:07]SAM_PROTO_GetShiftState [22:39:07]wFMCommunicate request_size=4 [22:39:07]MH_SAM_APDU [22:39:07]CAPDU: 80 13 01 00 [22:39:07]Write to MH i2c: E2 08 00 DF 26 80 13 01 00 00 00 00 00 82 [22:39:07]Write i2c OK [22:39:07]MH_I2C_Read... [22:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:07]Read from MH i2c: E2 [22:39:07]MH_I2C_Read... [22:39:07]Read from MH i2c: E2 0E 00 [22:39:07]MH_I2C_Read... [22:39:07]Read from MH i2c: E2 0E 00 DF 26 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 76 [22:39:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:39:07]wFMCommunicate OK [22:39:07]SAM_PROTO_GetShiftState done [22:39:07]FM_GetShiftState done [22:39:07]opened in 1713140468 [22:39:07]opened+sec_in_day 1713226868 [22:39:07]quantity*price = 60004 [22:39:07]sum+1 = 60006 [22:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 297 15.04.2024 22:39 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29703 ФПД: 22391953759873 1/tax-web-control/client/api/v1/ticket?date=20240415T223910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29703&fm=22391953759873&tin=02508201610067®Number=0000138879044617&sum=60000 [22:39:08]StoreToDocumentArchive [22:39:08]shift 117 fd 29703 [22:39:08]save to /storage/0117/doc_00029703 [22:39:08]save last doc name /storage/0117/doc_00029703 to /storage/kkm_last_doc_name [22:39:08]save OK [22:39:08]Clear old archive folders... [22:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:08]tlvbuf is B6F7B3E0 [22:39:08]SAM_PROTO_ClearQueue [22:39:08]wFMCommunicate request_size=4 [22:39:08]MH_SAM_APDU [22:39:08]CAPDU: 80 09 00 00 [22:39:08]Write to MH i2c: E2 08 00 EC 26 80 09 00 00 00 00 00 00 84 [22:39:08]Write i2c OK [22:39:08]MH_I2C_Read... [22:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:08]Read from MH i2c: E2 [22:39:08]MH_I2C_Read... [22:39:08]Read from MH i2c: E2 03 00 [22:39:08]MH_I2C_Read... [22:39:08]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [22:39:08]RAPDU: 90 00 [22:39:08]wFMCommunicate OK [22:39:08]SAM_PROTO_ClearQueue done [22:39:08]KKMCreateOFDPacket [22:39:08]OFDProtocolAddRootSTLVToBuf [22:39:08]FM_MakeSignedData [22:39:08]FM_MakeSignedData [22:39:08]SAM_PROTO_SignData [22:39:08]wFMCommunicate request_size=4 [22:39:08]MH_SAM_APDU [22:39:08]CAPDU: 80 0D 01 02 [22:39:08]Write to MH i2c: E2 08 00 ED 26 80 0D 01 02 00 00 00 00 8C [22:39:08]Write i2c OK [22:39:08]MH_I2C_Read... [22:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:09]Read from MH i2c: E2 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [22:39:09]RAPDU: 90 00 [22:39:09]wFMCommunicate OK [22:39:09]wFMCommunicate request_size=255 [22:39:09]MH_SAM_APDU [22:39: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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 29 01 00 00 F4 03 04 00 8E AC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 74 00 00 35 04 06 00 14 [22:39:09]Write to MH i2c: E2 02 01 EE 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 29 01 00 00 F4 03 04 00 8E AC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 74 00 00 35 04 06 00 14 00 00 4B [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:09]Read from MH i2c: E2 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [22:39:09]RAPDU: 90 00 [22:39:09]wFMCommunicate OK [22:39:09]wFMCommunicate request_size=10 [22:39:09]MH_SAM_APDU [22:39:09]CAPDU: 80 0D 02 02 05 5D 88 73 1E 81 [22:39:09]Write to MH i2c: E2 0D 00 EF 26 80 0D 02 02 05 00 5D 88 73 1E 81 00 00 90 [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:09]Read from MH i2c: E2 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 03 00 EF 26 00 90 00 89 [22:39:09]RAPDU: 90 00 [22:39:09]wFMCommunicate OK [22:39:09]wFMCommunicate request_size=4 [22:39:09]MH_SAM_APDU [22:39:09]CAPDU: 80 0D 03 02 [22:39:09]Write to MH i2c: E2 08 00 F0 26 80 0D 03 02 00 00 00 00 91 [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:09]Read from MH i2c: E2 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 0B 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 0B 00 F0 26 00 F7 D5 85 03 8D AD 10 04 90 00 34 [22:39:09]RAPDU: F7 D5 85 03 8D AD 10 04 90 00 [22:39:09]wFMCommunicate OK [22:39:09]SAM_PROTO_SignData done [22:39:09]FM_MakeSignedData done [22:39:09]CreateOFDProtocolMessage [22:39:09]wFMCommunicate request_size=4 [22:39:09]MH_SAM_APDU [22:39:09]CAPDU: 80 11 00 00 [22:39:09]Write to MH i2c: E2 08 00 F1 26 80 11 00 00 00 00 00 00 91 [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:09]Read from MH i2c: E2 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 17 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: E2 17 00 F1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [22:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:39:09]wFMCommunicate OK [22:39:09]CreateOFDProtocolMessage done [22:39:09]OFDSenderStorePacket 29703 [22:39:09]StoreOFDPacket docnum=29703 [22:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D2 B1 07 01 B5 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 29 01 00 00 F4 03 04 00 8E AC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 74 00 00 35 04 06 00 14 5D 88 73 1E 81 F7 D5 85 03 8D AD 10 04 [22:39:09]CheckFolder [22:39:09]dirname=/storage/ofd_packets [22:39:09]CheckFolder done [22:39:09]ProducePacketName [22:39:09]name=ofd_packets/00029703 [22:39:09]NVStorageSaveData ofd_packets/00029703 [22:39:09]File name is /storage/ofd_packets/00029703 [22:39:09]Write 301 bytes [22:39:09]NVStorageSaveData done [22:39:09]OFDSenderStorePacket done [22:39:09]KKMCreateOFDPacket done [22:39:09]NVStorageSaveData kkm_last_timestamp [22:39:09]File name is /storage/kkm_last_timestamp [22:39:09]Write 4 bytes [22:39:09]NVStorageSaveData done [22:39:09]ExternCall_PrintAddStr [22:39:09]wPrintStart [22:39:09]Write to MH i2c: 01 00 00 F2 26 18 [22:39:09]Write i2c OK [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 [22:39:09]MH_I2C_Read... [22:39:09]Read from MH i2c: 01 07 00 F2 26 00 00 00 00 00 FF 0F 2D [22:39:09]RasterBufferAndPrint [22:39:09]line Счет N : (1)348178 [22:39:09]line ИНН: 02508201610067 [22:39:09]line Контрольно-Кассовый Чек [22:39:09]line ПРОДАЖА [22:39:09]line ТРК (МРК, ГНК) : 32 [22:39:09]line Товар: 2710124130 [22:39:09]line Аи-92-К-5 [22:39:09]line 9.260 * 64.80 [22:39:09]line = 600.05 [22:39:09]line НДС 12% НСП 1% [22:39:09]line > о реализуемом товаре [22:39:09]line ОКРУГЛЕНИЕ: -0.05 [22:39:09]line ИТОГО: 600.00 [22:39:09]line Внесено: 600.00 [22:39:09]line СДАЧА: 0.00 [22:39:09]line НСП 1% : 5.31 [22:39:09]line НДС 12% : 63.72 [22:39:09]line Наличными: 600.00 [22:39:09]line Безнал.: 0.00 [22:39:09]line Место: АЗС № 108 "Партнер Нефть" [22:39:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:39:09]line СНО: Общий режим [22:39:09]line Чек 297 15.04.2024 22:39 [22:39:09]line Смена: 117 ФФД: 1.0 [22:39:09]line ЗНМ: 0300000027 [22:39:09]line РНМ: 0000138879044617 [22:39:09]line Версия ККМ: 001 [22:39:09]line ФМ: 0000000000963154 [22:39:09]line ФД: 29703 [22:39:09]line ФПД: 22391953759873 [22:39:09]line 1/tax-web-control/client/api/v1/ticket?date=20240415T223910&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29703&fm=22391953759873&tin=02508201610067®Number=0000138879044617&sum=60000 [22:39:09]OFD Sender: Processing packet 29703 [packets to send 8, broken 7] [22:39:09]ProducePacketName [22:39:09]name=ofd_packets/00029703 [22:39:09]OFD Sender: To server: pG, [22:39:09]CommunicateWithHost lk.salyk.kg:30040 [22:39:09]ConnectInit lk.salyk.kg [22:39:09]written 0, free lines is 4095 [22:39:09]Connected sock=10 [22:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D2 B1 07 01 B5 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 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 29 01 00 00 F4 03 04 00 8E AC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 74 00 00 35 04 06 00 14 5D 88 73 1E 81 F7 D5 85 03 8D AD 10 04 [22:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A FF 47 00 0D 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 74 00 00 F4 03 04 00 2E 57 1D 66 B6 04 01 00 00 4C 03 8D D5 73 3D 66 8A [22:39:10]CommunicateWithHost err = 0 [22:39:10]CheckOFDResponse [22:39:10]1017 (14) - 77093643461234 [22:39:10]1041 (16) - 0000000000963154 [22:39:10]1040 (4) - 29703 [22:39:10]1012 (4) - 15.04.2024 16:34 [22:39:10]1206 (1) - 0 [22:39:10]OFD Sender: Remove packet 29703 [22:39:10]ProducePacketName [22:39:10]name=ofd_packets/00029703 [22:39:10]NVStorageDeleteData [22:39:10]Write to MH i2c: 01 00 00 1C 27 43 [22:39:10]Write i2c OK [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: 01 [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: 01 07 00 [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: 01 07 00 1C 27 00 00 00 00 00 C2 0C 18 [22:39:10]RasterBufferAndPrint [22:39:10]line [22:39:10]line [22:39:10]line [22:39:10]line [22:39:10]line [22:39:10]written 0, free lines is 3270 [22:39:10]MH_Cut [22:39:10]Write to MH i2c: D1 01 00 23 27 01 1C [22:39:10]Write i2c OK [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: D1 [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: D1 01 00 [22:39:10]MH_I2C_Read... [22:39:10]Read from MH i2c: D1 01 00 23 27 00 1B [22:39:10]Write to MH i2c: 01 00 00 24 27 4B [22:39:10]Write i2c OK [22:39:10]MH_I2C_Read... [22:39:10]OFD Sender: No OFD packet to send [22:39:11]*** Cut start [22:39:11]*** Partial cut [22:39:11]*** CUTSNS_PIN = 1 [22:39:11]*** CUTSNS_PIN = 0 [22:39:11]*** Brake cut motor [22:39:11]Read from MH i2c: 01 [22:39:11]MH_I2C_Read... [22:39:11]*** Stop cut motor [22:39:11]*** Cut end [22:39:11]Read from MH i2c: 01 07 00 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: 01 07 00 24 27 00 00 00 00 00 FF 0F 60 [22:39:11]process_action close_receipt done [22:39:11]requested_data is exist [22:39:11]produce_requested_data [22:39:11]requested_item fm.sn is exist - process it [22:39:11]wFMCommunicate request_size=4 [22:39:11]MH_SAM_APDU [22:39:11]CAPDU: 80 11 00 00 [22:39:11]Write to MH i2c: E2 08 00 25 27 80 11 00 00 00 00 00 00 C6 [22:39:11]Write i2c OK [22:39:11]MH_I2C_Read... [22:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:11]Read from MH i2c: E2 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 17 00 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 17 00 25 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [22:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:39:11]wFMCommunicate OK [22:39:11]requested_item fd.num is exist - process it [22:39:11]SAM_PROTO_GetFieldsCounters [22:39:11]wFMCommunicate request_size=4 [22:39:11]MH_SAM_APDU [22:39:11]CAPDU: 80 13 00 00 [22:39:11]Write to MH i2c: E2 08 00 26 27 80 13 00 00 00 00 00 00 C9 [22:39:11]Write i2c OK [22:39:11]MH_I2C_Read... [22:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:11]Read from MH i2c: E2 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 62 00 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 62 00 26 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [22:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:11]wFMCommunicate OK [22:39:11]SAM_PROTO_GetFieldsCounters done [22:39:11]requested_item shift.num is exist - process it [22:39:11]requested_item shift.opened is exist - process it [22:39:11]req_shift_opened [22:39:11]FM_GetShiftState [22:39:11]SAM_PROTO_GetShiftState [22:39:11]wFMCommunicate request_size=4 [22:39:11]MH_SAM_APDU [22:39:11]CAPDU: 80 13 01 00 [22:39:11]Write to MH i2c: E2 08 00 27 27 80 13 01 00 00 00 00 00 CB [22:39:11]Write i2c OK [22:39:11]MH_I2C_Read... [22:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:11]Read from MH i2c: E2 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 0E 00 [22:39:11]MH_I2C_Read... [22:39:11]Read from MH i2c: E2 0E 00 27 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BF [22:39:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:39:11]wFMCommunicate OK [22:39:11]SAM_PROTO_GetShiftState done [22:39:11]FM_GetShiftState done [22:39:11]req_shift_opened done [22:39:11]requested_item shift.open_date is exist - process it [22:39:11]req_shift_open_date [22:39:11]req_shift_open_date done [22:39:11]produce_requested_data done [22:39:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29703,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:39:11]process_action_free close_receipt [22:39:11]json_value_free [22:39:11]json_value_free done [22:39:11]process_json_proto returns [22:39:11]Send response to host [22:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29703,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:39:11]free response buf [22:39:11]execute_script done [22:39:11]execute_script returns [22:39:11]free content buf [22:39:11]Sock 7.Close socket [22:39:11]Sock 7.Thread stoped [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]accept exits with 9 [22:43:20]New connection [22:43:20]New thread 3067108708 created [22:43:20]Thread 3066965348 joined [22:43:20]Waiting for new connection... [22:43:20] Sock 9.Parse request [22:43:20]Sock 9.Check first char [22:43:20]Sock 9.First char is OK [22:43:20]request: POST /json_proto HTTP/1.0 [22:43:20]Method: POST [22:43:20]URL: /json_proto [22:43:20]Method is POST - this is cgi request [22:43:20]url: /json_proto [22:43:20]query_string will be loaded in cgi processing [22:43:20]execute_cgi json_proto POST (null) [22:43:20]execute_cgi path=json_proto method=POST [22:43:20]POST find Content-Length [22:43:20]Host: 172.17.33.3:8080 [22:43:20]Content-Length: 677 [22:43:20]Content-Type: application/json [22:43:20] [22:43:20]POST finish read [22:43:20]Found Content-Length = 677 [22:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:43:20]execute_script... [22:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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:43:20]POST & json_proto [22:43:20]process_json_proto [22:43:20]json parsed OK: [22:43:20]protocol is kg_v1.0 [22:43:20]action value=close_receipt [22:43:20]process_action close_receipt [22:43:20]cmd_close_receipt [22:43:20]MH_GetDate [22:43:20]Write to MH i2c: F0 00 00 28 27 3E [22:43:20]Write i2c OK [22:43:20]MH_I2C_Read... [22:43:20]Read from MH i2c: F0 [22:43:20]MH_I2C_Read... [22:43:20]Read from MH i2c: F0 09 00 [22:43:20]MH_I2C_Read... [22:43:20]Read from MH i2c: F0 09 00 28 27 00 8A AD 1D 66 23 5B 8F 65 73 [22:43:20]GetLastDocTimeStamp 1713220750 [22:43:20]current date 1713221002 [22:43:20]FM_GetShiftState [22:43:20]SAM_PROTO_GetShiftState [22:43:20]wFMCommunicate request_size=4 [22:43:20]MH_SAM_APDU [22:43:20]CAPDU: 80 13 01 00 [22:43:20]Write to MH i2c: E2 08 00 29 27 80 13 01 00 00 00 00 00 CD [22:43:20]Write i2c OK [22:43:20]MH_I2C_Read... [22:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:20]Read from MH i2c: E2 [22:43:20]MH_I2C_Read... [22:43:20]Read from MH i2c: E2 0E 00 [22:43:20]MH_I2C_Read... [22:43:20]Read from MH i2c: E2 0E 00 29 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C1 [22:43:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:43:20]wFMCommunicate OK [22:43:20]SAM_PROTO_GetShiftState done [22:43:20]FM_GetShiftState done [22:43:20]opened in 1713140468 [22:43:20]opened+sec_in_day 1713226868 [22:43:20]quantity*price = 40046 [22:43:20]sum+1 = 40047 [22:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 298 15.04.2024 22:43 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29704 ФПД: 109533864247602 1/tax-web-control/client/api/v1/ticket?date=20240415T224322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29704&fm=109533864247602&tin=02508201610067®Number=0000138879044617&sum=40000 [22:43:21]StoreToDocumentArchive [22:43:21]shift 117 fd 29704 [22:43:21]save to /storage/0117/doc_00029704 [22:43:21]save last doc name /storage/0117/doc_00029704 to /storage/kkm_last_doc_name [22:43:21]save OK [22:43:21]Clear old archive folders... [22:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:21]tlvbuf is 01A25060 [22:43:21]SAM_PROTO_ClearQueue [22:43:21]wFMCommunicate request_size=4 [22:43:21]MH_SAM_APDU [22:43:21]CAPDU: 80 09 00 00 [22:43:21]Write to MH i2c: E2 08 00 36 27 80 09 00 00 00 00 00 00 CF [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [22:43:21]RAPDU: 90 00 [22:43:21]wFMCommunicate OK [22:43:21]SAM_PROTO_ClearQueue done [22:43:21]KKMCreateOFDPacket [22:43:21]OFDProtocolAddRootSTLVToBuf [22:43:21]FM_MakeSignedData [22:43:21]FM_MakeSignedData [22:43:21]SAM_PROTO_SignData [22:43:21]wFMCommunicate request_size=4 [22:43:21]MH_SAM_APDU [22:43:21]CAPDU: 80 0D 01 02 [22:43:21]Write to MH i2c: E2 08 00 37 27 80 0D 01 02 00 00 00 00 D7 [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 37 27 00 90 00 D2 [22:43:21]RAPDU: 90 00 [22:43:21]wFMCommunicate OK [22:43:21]wFMCommunicate request_size=255 [22:43:21]MH_SAM_APDU [22:43: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 2A 01 00 00 F4 03 04 00 8A AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 74 00 00 35 04 06 00 63 [22:43:21]Write to MH i2c: E2 02 01 38 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 2A 01 00 00 F4 03 04 00 8A AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 74 00 00 35 04 06 00 63 00 00 AE [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 38 27 00 90 00 D3 [22:43:21]RAPDU: 90 00 [22:43:21]wFMCommunicate OK [22:43:21]wFMCommunicate request_size=10 [22:43:21]MH_SAM_APDU [22:43:21]CAPDU: 80 0D 02 02 05 9E D7 11 C1 32 [22:43:21]Write to MH i2c: E2 0D 00 39 27 80 0D 02 02 05 00 9E D7 11 C1 32 00 00 5D [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 03 00 39 27 00 90 00 D4 [22:43:21]RAPDU: 90 00 [22:43:21]wFMCommunicate OK [22:43:21]wFMCommunicate request_size=4 [22:43:21]MH_SAM_APDU [22:43:21]CAPDU: 80 0D 03 02 [22:43:21]Write to MH i2c: E2 08 00 3A 27 80 0D 03 02 00 00 00 00 DC [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 0B 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 0B 00 3A 27 00 29 DD 59 77 49 26 E1 5D 90 00 60 [22:43:21]RAPDU: 29 DD 59 77 49 26 E1 5D 90 00 [22:43:21]wFMCommunicate OK [22:43:21]SAM_PROTO_SignData done [22:43:21]FM_MakeSignedData done [22:43:21]CreateOFDProtocolMessage [22:43:21]wFMCommunicate request_size=4 [22:43:21]MH_SAM_APDU [22:43:21]CAPDU: 80 11 00 00 [22:43:21]Write to MH i2c: E2 08 00 3B 27 80 11 00 00 00 00 00 00 DC [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:21]Read from MH i2c: E2 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 17 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: E2 17 00 3B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [22:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:43:21]wFMCommunicate OK [22:43:21]CreateOFDProtocolMessage done [22:43:21]OFDSenderStorePacket 29704 [22:43:21]StoreOFDPacket docnum=29704 [22:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7F 79 07 01 CE FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 2A 01 00 00 F4 03 04 00 8A AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 74 00 00 35 04 06 00 63 9E D7 11 C1 32 29 DD 59 77 49 26 E1 5D [22:43:21]CheckFolder [22:43:21]dirname=/storage/ofd_packets [22:43:21]CheckFolder done [22:43:21]ProducePacketName [22:43:21]name=ofd_packets/00029704 [22:43:21]NVStorageSaveData ofd_packets/00029704 [22:43:21]File name is /storage/ofd_packets/00029704 [22:43:21]Write 301 bytes [22:43:21]NVStorageSaveData done [22:43:21]OFDSenderStorePacket done [22:43:21]KKMCreateOFDPacket done [22:43:21]NVStorageSaveData kkm_last_timestamp [22:43:21]File name is /storage/kkm_last_timestamp [22:43:21]Write 4 bytes [22:43:21]NVStorageSaveData done [22:43:21]ExternCall_PrintAddStr [22:43:21]wPrintStart [22:43:21]Write to MH i2c: 01 00 00 3C 27 63 [22:43:21]Write i2c OK [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: 01 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: 01 07 00 [22:43:21]MH_I2C_Read... [22:43:21]Read from MH i2c: 01 07 00 3C 27 00 00 00 00 00 FF 0F 78 [22:43:21]RasterBufferAndPrint [22:43:21]line Счет N : (1)348179 [22:43:21]line ИНН: 02508201610067 [22:43:21]line Контрольно-Кассовый Чек [22:43:21]line ПРОДАЖА [22:43:21]line ТРК (МРК, ГНК) : 13 [22:43:21]line Товар: 2710124130 [22:43:21]line Аи-92-К-5 [22:43:21]line 6.180 * 64.80 [22:43:21]line = 400.46 [22:43:21]line НДС 12% НСП 1% [22:43:21]line > о реализуемом товаре [22:43:21]line ОКРУГЛЕНИЕ: -0.46 [22:43:21]line ИТОГО: 400.00 [22:43:21]line Внесено: 400.00 [22:43:21]line СДАЧА: 0.00 [22:43:21]line НСП 1% : 3.54 [22:43:21]line НДС 12% : 42.53 [22:43:21]line Наличными: 400.00 [22:43:21]line Безнал.: 0.00 [22:43:21]line Место: АЗС № 108 "Партнер Нефть" [22:43:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:43:21]line СНО: Общий режим [22:43:21]line Чек 298 15.04.2024 22:43 [22:43:21]line Смена: 117 ФФД: 1.0 [22:43:21]line ЗНМ: 0300000027 [22:43:21]line РНМ: 0000138879044617 [22:43:21]line Версия ККМ: 001 [22:43:21]line ФМ: 0000000000963154 [22:43:21]line ФД: 29704 [22:43:21]line ФПД: 109533864247602 [22:43:21]line 1/tax-web-control/client/api/v1/ticket?date=20240415T224322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29704&fm=109533864247602&tin=02508201610067®Number=0000138879044617&sum=40000 [22:43:22]OFD Sender: Processing packet 29704 [packets to send 8, broken 7] [22:43:22]ProducePacketName [22:43:22]name=ofd_packets/00029704 [22:43:22]OFD Sender: To server: pG, [22:43:22]CommunicateWithHost lk.salyk.kg:30040 [22:43:22]ConnectInit lk.salyk.kg [22:43:22]written 0, free lines is 4095 [22:43:22]Connected sock=10 [22:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7F 79 07 01 CE FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 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 2A 01 00 00 F4 03 04 00 8A AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 74 00 00 35 04 06 00 63 9E D7 11 C1 32 29 DD 59 77 49 26 E1 5D [22:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B3 2C 47 00 DA 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 39 36 33 31 35 34 10 04 04 00 08 74 00 00 F4 03 04 00 2A 58 1D 66 B6 04 01 00 00 2D BA 4A 17 DE 97 9D AD [22:43:22]CommunicateWithHost err = 0 [22:43:22]CheckOFDResponse [22:43:22]1017 (14) - 77093643461234 [22:43:22]1041 (16) - 0000000000963154 [22:43:22]1040 (4) - 29704 [22:43:22]1012 (4) - 15.04.2024 16:39 [22:43:22]1206 (1) - 0 [22:43:22]OFD Sender: Remove packet 29704 [22:43:22]ProducePacketName [22:43:22]name=ofd_packets/00029704 [22:43:22]NVStorageDeleteData [22:43:22]Write to MH i2c: 01 00 00 66 27 8D [22:43:22]Write i2c OK [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: 01 [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: 01 07 00 [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: 01 07 00 66 27 00 00 00 00 00 C2 0C 62 [22:43:22]RasterBufferAndPrint [22:43:22]line [22:43:22]line [22:43:22]line [22:43:22]line [22:43:22]line [22:43:22]written 0, free lines is 3273 [22:43:22]MH_Cut [22:43:22]Write to MH i2c: D1 01 00 6D 27 01 66 [22:43:22]Write i2c OK [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: D1 [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: D1 01 00 [22:43:22]MH_I2C_Read... [22:43:22]Read from MH i2c: D1 01 00 6D 27 00 65 [22:43:22]Write to MH i2c: 01 00 00 6E 27 95 [22:43:22]Write i2c OK [22:43:22]MH_I2C_Read... [22:43:22]OFD Sender: No OFD packet to send [22:43:23]*** Cut start [22:43:23]*** Partial cut [22:43:23]*** CUTSNS_PIN = 1 [22:43:23]*** CUTSNS_PIN = 0 [22:43:23]*** Brake cut motor [22:43:24]Read from MH i2c: 01 [22:43:24]MH_I2C_Read... [22:43:24]*** Stop cut motor [22:43:24]*** Cut end [22:43:24]Read from MH i2c: 01 07 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 FF 0F AA [22:43:24]process_action close_receipt done [22:43:24]requested_data is exist [22:43:24]produce_requested_data [22:43:24]requested_item fm.sn is exist - process it [22:43:24]wFMCommunicate request_size=4 [22:43:24]MH_SAM_APDU [22:43:24]CAPDU: 80 11 00 00 [22:43:24]Write to MH i2c: E2 08 00 6F 27 80 11 00 00 00 00 00 00 10 [22:43:24]Write i2c OK [22:43:24]MH_I2C_Read... [22:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:24]Read from MH i2c: E2 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 17 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 17 00 6F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [22:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:43:24]wFMCommunicate OK [22:43:24]requested_item fd.num is exist - process it [22:43:24]SAM_PROTO_GetFieldsCounters [22:43:24]wFMCommunicate request_size=4 [22:43:24]MH_SAM_APDU [22:43:24]CAPDU: 80 13 00 00 [22:43:24]Write to MH i2c: E2 08 00 70 27 80 13 00 00 00 00 00 00 13 [22:43:24]Write i2c OK [22:43:24]MH_I2C_Read... [22:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:24]Read from MH i2c: E2 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 62 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 62 00 70 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [22:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:24]wFMCommunicate OK [22:43:24]SAM_PROTO_GetFieldsCounters done [22:43:24]requested_item shift.num is exist - process it [22:43:24]requested_item shift.opened is exist - process it [22:43:24]req_shift_opened [22:43:24]FM_GetShiftState [22:43:24]SAM_PROTO_GetShiftState [22:43:24]wFMCommunicate request_size=4 [22:43:24]MH_SAM_APDU [22:43:24]CAPDU: 80 13 01 00 [22:43:24]Write to MH i2c: E2 08 00 71 27 80 13 01 00 00 00 00 00 15 [22:43:24]Write i2c OK [22:43:24]MH_I2C_Read... [22:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:24]Read from MH i2c: E2 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 0E 00 [22:43:24]MH_I2C_Read... [22:43:24]Read from MH i2c: E2 0E 00 71 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 09 [22:43:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:43:24]wFMCommunicate OK [22:43:24]SAM_PROTO_GetShiftState done [22:43:24]FM_GetShiftState done [22:43:24]req_shift_opened done [22:43:24]requested_item shift.open_date is exist - process it [22:43:24]req_shift_open_date [22:43:24]req_shift_open_date done [22:43:24]produce_requested_data done [22:43:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29704,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:43:24]process_action_free close_receipt [22:43:24]json_value_free [22:43:24]json_value_free done [22:43:24]process_json_proto returns [22:43:24]Send response to host [22:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29704,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:43:24]free response buf [22:43:24]execute_script done [22:43:24]execute_script returns [22:43:24]free content buf [22:43:24]Sock 9.Close socket [22:43:24]Sock 9.Thread stoped [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:06]accept exits with 7 [22:44:06]New connection [22:44:06]New thread 3066965348 created [22:44:06]Thread 3067108708 joined [22:44:06]Waiting for new connection... [22:44:06] Sock 7.Parse request [22:44:06]Sock 7.Check first char [22:44:06]Sock 7.First char is OK [22:44:06]request: POST /json_proto HTTP/1.0 [22:44:06]Method: POST [22:44:06]URL: /json_proto [22:44:06]Method is POST - this is cgi request [22:44:06]url: /json_proto [22:44:06]query_string will be loaded in cgi processing [22:44:06]execute_cgi json_proto POST (null) [22:44:06]execute_cgi path=json_proto method=POST [22:44:06]POST find Content-Length [22:44:06]Host: 172.17.33.3:8080 [22:44:06]Content-Length: 833 [22:44:06]Content-Type: application/json [22:44:06] [22:44:06]POST finish read [22:44:06]Found Content-Length = 833 [22:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:06]execute_script... [22:44: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)348180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:06]POST & json_proto [22:44:06]process_json_proto [22:44:06]json parsed OK: [22:44:06]protocol is kg_v1.0 [22:44:06]action value=close_receipt [22:44:06]process_action close_receipt [22:44:06]cmd_close_receipt [22:44:06]MH_GetDate [22:44:06]Write to MH i2c: F0 00 00 72 27 88 [22:44:06]Write i2c OK [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: F0 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: F0 09 00 [22:44:06]MH_I2C_Read... [22:44:06]Read from MH i2c: F0 09 00 72 27 00 B9 AD 1D 66 23 5B 8F 65 EC [22:44:06]GetLastDocTimeStamp 1713221002 [22:44:06]current date 1713221049 [22:44:06]FM_GetShiftState [22:44:06]SAM_PROTO_GetShiftState [22:44:06]wFMCommunicate request_size=4 [22:44:06]MH_SAM_APDU [22:44:06]CAPDU: 80 13 01 00 [22:44:06]Write to MH i2c: E2 08 00 73 27 80 13 01 00 00 00 00 00 17 [22:44:06]Write i2c OK [22:44:06]MH_I2C_Read... [22:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:07]Read from MH i2c: E2 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 0E 00 [22:44:07]MH_I2C_Read... [22:44:07]Read from MH i2c: E2 0E 00 73 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 0B [22:44:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:44:07]wFMCommunicate OK [22:44:07]SAM_PROTO_GetShiftState done [22:44:07]FM_GetShiftState done [22:44:07]opened in 1713140468 [22:44:07]opened+sec_in_day 1713226868 [22:44:07]quantity*price = 20003 [22:44:07]sum+1 = 20004 [22:44:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 299 15.04.2024 22:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29705 ФПД: 178809652091865 1/tax-web-control/client/api/v1/ticket?date=20240415T224409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29705&fm=178809652091865&tin=02508201610067®Number=0000138879044617&sum=20003 [22:44:08]StoreToDocumentArchive [22:44:08]shift 117 fd 29705 [22:44:08]save to /storage/0117/doc_00029705 [22:44:08]save last doc name /storage/0117/doc_00029705 to /storage/kkm_last_doc_name [22:44:08]save OK [22:44:08]Clear old archive folders... [22:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:44:08]tlvbuf is 01A99EA0 [22:44:08]SAM_PROTO_ClearQueue [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 09 00 00 [22:44:08]Write to MH i2c: E2 08 00 80 27 80 09 00 00 00 00 00 00 19 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [22:44:08]RAPDU: 90 00 [22:44:08]wFMCommunicate OK [22:44:08]SAM_PROTO_ClearQueue done [22:44:08]KKMCreateOFDPacket [22:44:08]OFDProtocolAddRootSTLVToBuf [22:44:08]FM_MakeSignedData [22:44:08]FM_MakeSignedData [22:44:08]SAM_PROTO_SignData [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 0D 01 02 [22:44:08]Write to MH i2c: E2 08 00 81 27 80 0D 01 02 00 00 00 00 21 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [22:44:08]RAPDU: 90 00 [22:44:08]wFMCommunicate OK [22:44:08]wFMCommunicate request_size=255 [22:44:08]MH_SAM_APDU [22:44: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B9 AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 74 00 00 35 04 06 00 [22:44:08]Write to MH i2c: E2 02 01 82 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B9 AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 74 00 00 35 04 06 00 00 00 09 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [22:44:08]RAPDU: 90 00 [22:44:08]wFMCommunicate OK [22:44:08]wFMCommunicate request_size=11 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 0D 02 02 06 A2 A0 5D CB 9B D9 [22:44:08]Write to MH i2c: E2 0E 00 83 27 80 0D 02 02 06 00 A2 A0 5D CB 9B D9 00 00 0E [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [22:44:08]RAPDU: 90 00 [22:44:08]wFMCommunicate OK [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 0D 03 02 [22:44:08]Write to MH i2c: E2 08 00 84 27 80 0D 03 02 00 00 00 00 26 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 0B 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 0B 00 84 27 00 4A 17 72 23 5E A1 54 4C 90 00 BC [22:44:08]RAPDU: 4A 17 72 23 5E A1 54 4C 90 00 [22:44:08]wFMCommunicate OK [22:44:08]SAM_PROTO_SignData done [22:44:08]FM_MakeSignedData done [22:44:08]CreateOFDProtocolMessage [22:44:08]wFMCommunicate request_size=4 [22:44:08]MH_SAM_APDU [22:44:08]CAPDU: 80 11 00 00 [22:44:08]Write to MH i2c: E2 08 00 85 27 80 11 00 00 00 00 00 00 26 [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:08]Read from MH i2c: E2 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 17 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: E2 17 00 85 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 75 [22:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:44:08]wFMCommunicate OK [22:44:08]CreateOFDProtocolMessage done [22:44:08]OFDSenderStorePacket 29705 [22:44:08]StoreOFDPacket docnum=29705 [22:44:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9F 16 08 01 45 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B9 AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 74 00 00 35 04 06 00 A2 A0 5D CB 9B D9 4A 17 72 23 5E A1 54 4C [22:44:08]CheckFolder [22:44:08]dirname=/storage/ofd_packets [22:44:08]CheckFolder done [22:44:08]ProducePacketName [22:44:08]name=ofd_packets/00029705 [22:44:08]NVStorageSaveData ofd_packets/00029705 [22:44:08]File name is /storage/ofd_packets/00029705 [22:44:08]Write 302 bytes [22:44:08]NVStorageSaveData done [22:44:08]OFDSenderStorePacket done [22:44:08]KKMCreateOFDPacket done [22:44:08]NVStorageSaveData kkm_last_timestamp [22:44:08]File name is /storage/kkm_last_timestamp [22:44:08]Write 4 bytes [22:44:08]NVStorageSaveData done [22:44:08]ExternCall_PrintAddStr [22:44:08]wPrintStart [22:44:08]Write to MH i2c: 01 00 00 86 27 AD [22:44:08]Write i2c OK [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 07 00 [22:44:08]MH_I2C_Read... [22:44:08]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [22:44:08]RasterBufferAndPrint [22:44:08]line Счет N : (1)348180 [22:44:08]line ИНН: 02508201610067 [22:44:08]line Контрольно-Кассовый Чек [22:44:08]line ПРОДАЖА [22:44:08]line ТРК (МРК, ГНК) : 31 [22:44:08]line Товар: 2710124130 [22:44:08]line SUPER-92-К-5 [22:44:08]line 3.040 * 65.80 [22:44:08]line = 200.03 [22:44:08]line НДС 12% НСП 1% [22:44:08]line > о реализуемом товаре [22:44:08]line ИТОГО: 200.03 [22:44:08]line НСП 1% : 1.77 [22:44:08]line НДС 12% : 21.24 [22:44:08]line Наличными: 0.00 [22:44:08]line Безнал.: 200.03 [22:44:08]line Место: АЗС № 108 "Партнер Нефть" [22:44:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:44:08]line СНО: Общий режим [22:44:08]line Чек 299 15.04.2024 22:44 [22:44:08]line Смена: 117 ФФД: 1.0 [22:44:08]line ЗНМ: 0300000027 [22:44:08]line РНМ: 0000138879044617 [22:44:08]line Версия ККМ: 001 [22:44:08]line Платежная система: АКБ Кыргызстан [22:44:08]line ФМ: 0000000000963154 [22:44:08]line ФД: 29705 [22:44:08]line ФПД: 178809652091865 [22:44:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T224409&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29705&fm=178809652091865&tin=02508201610067®Number=0000138879044617&sum=20003 [22:44:09]OFD Sender: Processing packet 29705 [packets to send 8, broken 7] [22:44:09]ProducePacketName [22:44:09]name=ofd_packets/00029705 [22:44:09]OFD Sender: To server: pG, [22:44:09]CommunicateWithHost lk.salyk.kg:30040 [22:44:09]ConnectInit lk.salyk.kg [22:44:09]written 0, free lines is 4095 [22:44:09]Connected sock=9 [22:44:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9F 16 08 01 45 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 B9 AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 74 00 00 35 04 06 00 A2 A0 5D CB 9B D9 4A 17 72 23 5E A1 54 4C [22:44:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D2 DE 47 00 7F 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 39 36 33 31 35 34 10 04 04 00 09 74 00 00 F4 03 04 00 59 58 1D 66 B6 04 01 00 00 69 CD 16 F8 05 43 F0 30 [22:44:09]CommunicateWithHost err = 0 [22:44:09]CheckOFDResponse [22:44:09]1017 (14) - 77093643461234 [22:44:09]1041 (16) - 0000000000963154 [22:44:09]1040 (4) - 29705 [22:44:09]1012 (4) - 15.04.2024 16:39 [22:44:09]1206 (1) - 0 [22:44:09]OFD Sender: Remove packet 29705 [22:44:09]ProducePacketName [22:44:09]name=ofd_packets/00029705 [22:44:09]NVStorageDeleteData [22:44:09]Write to MH i2c: 01 00 00 AF 27 D6 [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: 01 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: 01 07 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 DD 0C C6 [22:44:09]RasterBufferAndPrint [22:44:09]line [22:44:09]line [22:44:09]line [22:44:09]line [22:44:09]line [22:44:09]written 0, free lines is 3302 [22:44:09]MH_Cut [22:44:09]Write to MH i2c: D1 01 00 B6 27 01 AF [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: D1 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: D1 01 00 [22:44:09]MH_I2C_Read... [22:44:09]Read from MH i2c: D1 01 00 B6 27 00 AE [22:44:09]Write to MH i2c: 01 00 00 B7 27 DE [22:44:09]Write i2c OK [22:44:09]MH_I2C_Read... [22:44:09]OFD Sender: No OFD packet to send [22:44:10]*** Cut start [22:44:10]*** Partial cut [22:44:10]*** CUTSNS_PIN = 1 [22:44:10]*** CUTSNS_PIN = 0 [22:44:10]*** Brake cut motor [22:44:10]Read from MH i2c: 01 [22:44:10]MH_I2C_Read... [22:44:10]*** Stop cut motor [22:44:10]*** Cut end [22:44:10]Read from MH i2c: 01 07 00 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 FF 0F F3 [22:44:10]process_action close_receipt done [22:44:10]requested_data is exist [22:44:10]produce_requested_data [22:44:10]requested_item fm.sn is exist - process it [22:44:10]wFMCommunicate request_size=4 [22:44:10]MH_SAM_APDU [22:44:10]CAPDU: 80 11 00 00 [22:44:10]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [22:44:10]Write i2c OK [22:44:10]MH_I2C_Read... [22:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:10]Read from MH i2c: E2 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: E2 17 00 [22:44:10]MH_I2C_Read... [22:44:10]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [22:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:44:10]wFMCommunicate OK [22:44:10]requested_item fd.num is exist - process it [22:44:10]SAM_PROTO_GetFieldsCounters [22:44:10]wFMCommunicate request_size=4 [22:44:10]MH_SAM_APDU [22:44:10]CAPDU: 80 13 00 00 [22:44:10]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [22:44:10]Write i2c OK [22:44:10]MH_I2C_Read... [22:44:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:11]Read from MH i2c: E2 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 62 00 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 62 00 B9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:44:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:11]wFMCommunicate OK [22:44:11]SAM_PROTO_GetFieldsCounters done [22:44:11]requested_item shift.num is exist - process it [22:44:11]requested_item shift.opened is exist - process it [22:44:11]req_shift_opened [22:44:11]FM_GetShiftState [22:44:11]SAM_PROTO_GetShiftState [22:44:11]wFMCommunicate request_size=4 [22:44:11]MH_SAM_APDU [22:44:11]CAPDU: 80 13 01 00 [22:44:11]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [22:44:11]Write i2c OK [22:44:11]MH_I2C_Read... [22:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:11]Read from MH i2c: E2 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 0E 00 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 52 [22:44:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:44:11]wFMCommunicate OK [22:44:11]SAM_PROTO_GetShiftState done [22:44:11]FM_GetShiftState done [22:44:11]req_shift_opened done [22:44:11]requested_item shift.open_date is exist - process it [22:44:11]req_shift_open_date [22:44:11]req_shift_open_date done [22:44:11]produce_requested_data done [22:44:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29705,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:44:11]process_action_free close_receipt [22:44:11]json_value_free [22:44:11]json_value_free done [22:44:11]process_json_proto returns [22:44:11]Send response to host [22:44:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29705,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:44:11]free response buf [22:44:11]execute_script done [22:44:11]execute_script returns [22:44:11]free content buf [22:44:11]Sock 7.Close socket [22:44:11]Sock 7.Thread stoped [22:44:11]accept exits with 10 [22:44:11]New connection [22:44:11]New thread 3067108708 created [22:44:11]Thread 3066965348 joined [22:44:11]Waiting for new connection... [22:44:11] Sock 10.Parse request [22:44:11]Sock 10.Check first char [22:44:11]Sock 10.First char is OK [22:44:11]request: POST /json_proto HTTP/1.0 [22:44:11]Method: POST [22:44:11]URL: /json_proto [22:44:11]Method is POST - this is cgi request [22:44:11]url: /json_proto [22:44:11]query_string will be loaded in cgi processing [22:44:11]execute_cgi json_proto POST (null) [22:44:11]execute_cgi path=json_proto method=POST [22:44:11]POST find Content-Length [22:44:11]Host: 172.17.33.3:8080 [22:44:11]Content-Length: 670 [22:44:11]Content-Type: application/json [22:44:11] [22:44:11]POST finish read [22:44:11]Found Content-Length = 670 [22:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:11]execute_script... [22:44: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)348181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:11]POST & json_proto [22:44:11]process_json_proto [22:44:11]json parsed OK: [22:44:11]protocol is kg_v1.0 [22:44:11]action value=close_receipt [22:44:11]process_action close_receipt [22:44:11]cmd_close_receipt [22:44:11]MH_GetDate [22:44:11]Write to MH i2c: F0 00 00 BB 27 D1 [22:44:11]Write i2c OK [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: F0 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: F0 09 00 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: F0 09 00 BB 27 00 BD AD 1D 66 23 5B 8F 65 39 [22:44:11]GetLastDocTimeStamp 1713221049 [22:44:11]current date 1713221053 [22:44:11]FM_GetShiftState [22:44:11]SAM_PROTO_GetShiftState [22:44:11]wFMCommunicate request_size=4 [22:44:11]MH_SAM_APDU [22:44:11]CAPDU: 80 13 01 00 [22:44:11]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [22:44:11]Write i2c OK [22:44:11]MH_I2C_Read... [22:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:11]Read from MH i2c: E2 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 0E 00 [22:44:11]MH_I2C_Read... [22:44:11]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 54 [22:44:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:44:11]wFMCommunicate OK [22:44:11]SAM_PROTO_GetShiftState done [22:44:11]FM_GetShiftState done [22:44:11]opened in 1713140468 [22:44:11]opened+sec_in_day 1713226868 [22:44:11]quantity*price = 15002 [22:44:11]sum+1 = 15003 [22:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 300 15.04.2024 22:44 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29706 ФПД: 184145321167861 1/tax-web-control/client/api/v1/ticket?date=20240415T224413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29706&fm=184145321167861&tin=02508201610067®Number=0000138879044617&sum=15000 [22:44:12]StoreToDocumentArchive [22:44:12]shift 117 fd 29706 [22:44:12]save to /storage/0117/doc_00029706 [22:44:12]save last doc name /storage/0117/doc_00029706 to /storage/kkm_last_doc_name [22:44:12]save OK [22:44:12]Clear old archive folders... [22:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:44:12]tlvbuf is 01A81730 [22:44:12]SAM_PROTO_ClearQueue [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 09 00 00 [22:44:12]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]SAM_PROTO_ClearQueue done [22:44:12]KKMCreateOFDPacket [22:44:12]OFDProtocolAddRootSTLVToBuf [22:44:12]FM_MakeSignedData [22:44:12]FM_MakeSignedData [22:44:12]SAM_PROTO_SignData [22:44:12]wFMCommunicate request_size=4 [22:44:12]MH_SAM_APDU [22:44:12]CAPDU: 80 0D 01 02 [22:44:12]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:12]Read from MH i2c: E2 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 [22:44:12]MH_I2C_Read... [22:44:12]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [22:44:12]RAPDU: 90 00 [22:44:12]wFMCommunicate OK [22:44:12]wFMCommunicate request_size=255 [22:44:12]MH_SAM_APDU [22:44: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 BD AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 74 00 00 35 04 06 00 [22:44:12]Write to MH i2c: E2 02 01 CB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 BD AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 74 00 00 35 04 06 00 00 00 41 [22:44:12]Write i2c OK [22:44:12]MH_I2C_Read... [22:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:13]Read from MH i2c: E2 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 03 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [22:44:13]RAPDU: 90 00 [22:44:13]wFMCommunicate OK [22:44:13]wFMCommunicate request_size=11 [22:44:13]MH_SAM_APDU [22:44:13]CAPDU: 80 0D 02 02 06 A7 7A AC 74 8B F5 [22:44:13]Write to MH i2c: E2 0E 00 CC 27 80 0D 02 02 06 00 A7 7A AC 74 8B F5 00 00 3A [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:13]Read from MH i2c: E2 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 03 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [22:44:13]RAPDU: 90 00 [22:44:13]wFMCommunicate OK [22:44:13]wFMCommunicate request_size=4 [22:44:13]MH_SAM_APDU [22:44:13]CAPDU: 80 0D 03 02 [22:44:13]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:13]Read from MH i2c: E2 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 0B 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 0B 00 CD 27 00 BB 6E AE FC 35 C9 68 38 90 00 E1 [22:44:13]RAPDU: BB 6E AE FC 35 C9 68 38 90 00 [22:44:13]wFMCommunicate OK [22:44:13]SAM_PROTO_SignData done [22:44:13]FM_MakeSignedData done [22:44:13]CreateOFDProtocolMessage [22:44:13]wFMCommunicate request_size=4 [22:44:13]MH_SAM_APDU [22:44:13]CAPDU: 80 11 00 00 [22:44:13]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:13]Read from MH i2c: E2 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 17 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [22:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:44:13]wFMCommunicate OK [22:44:13]CreateOFDProtocolMessage done [22:44:13]OFDSenderStorePacket 29706 [22:44:13]StoreOFDPacket docnum=29706 [22:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A7 90 08 01 D7 F7 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 BD AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 74 00 00 35 04 06 00 A7 7A AC 74 8B F5 BB 6E AE FC 35 C9 68 38 [22:44:13]CheckFolder [22:44:13]dirname=/storage/ofd_packets [22:44:13]CheckFolder done [22:44:13]ProducePacketName [22:44:13]name=ofd_packets/00029706 [22:44:13]NVStorageSaveData ofd_packets/00029706 [22:44:13]File name is /storage/ofd_packets/00029706 [22:44:13]Write 302 bytes [22:44:13]NVStorageSaveData done [22:44:13]OFDSenderStorePacket done [22:44:13]KKMCreateOFDPacket done [22:44:13]NVStorageSaveData kkm_last_timestamp [22:44:13]File name is /storage/kkm_last_timestamp [22:44:13]Write 4 bytes [22:44:13]NVStorageSaveData done [22:44:13]ExternCall_PrintAddStr [22:44:13]wPrintStart [22:44:13]Write to MH i2c: 01 00 00 CF 27 F6 [22:44:13]Write i2c OK [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 07 00 [22:44:13]MH_I2C_Read... [22:44:13]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [22:44:13]RasterBufferAndPrint [22:44:13]line Счет N : (1)348181 [22:44:13]line ИНН: 02508201610067 [22:44:13]line Контрольно-Кассовый Чек [22:44:13]line ПРОДАЖА [22:44:13]line ТРК (МРК, ГНК) : 31 [22:44:13]line Товар: 2710124130 [22:44:13]line SUPER-92-К-5 [22:44:13]line 2.280 * 65.80 [22:44:13]line = 150.02 [22:44:13]line НДС 12% НСП 1% [22:44:13]line > о реализуемом товаре [22:44:13]line ОКРУГЛЕНИЕ: -0.02 [22:44:13]line ИТОГО: 150.00 [22:44:13]line Внесено: 150.00 [22:44:13]line СДАЧА: 0.00 [22:44:13]line НСП 1% : 1.33 [22:44:13]line НДС 12% : 15.93 [22:44:13]line Наличными: 150.00 [22:44:13]line Безнал.: 0.00 [22:44:13]line Место: АЗС № 108 "Партнер Нефть" [22:44:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:44:13]line СНО: Общий режим [22:44:13]line Чек 300 15.04.2024 22:44 [22:44:13]line Смена: 117 ФФД: 1.0 [22:44:13]line ЗНМ: 0300000027 [22:44:13]line РНМ: 0000138879044617 [22:44:13]line Версия ККМ: 001 [22:44:13]line ФМ: 0000000000963154 [22:44:13]line ФД: 29706 [22:44:13]line ФПД: 184145321167861 [22:44:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T224413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29706&fm=184145321167861&tin=02508201610067®Number=0000138879044617&sum=15000 [22:44:13]written 0, free lines is 4095 [22:44:13]OFD Sender: Processing packet 29706 [packets to send 8, broken 7] [22:44:13]ProducePacketName [22:44:13]name=ofd_packets/00029706 [22:44:13]OFD Sender: To server: pG, [22:44:13]CommunicateWithHost lk.salyk.kg:30040 [22:44:13]ConnectInit lk.salyk.kg [22:44:13]Connected sock=9 [22:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A7 90 08 01 D7 F7 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 BD AD 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 74 00 00 35 04 06 00 A7 7A AC 74 8B F5 BB 6E AE FC 35 C9 68 38 [22:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE AE 47 00 E5 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 39 36 33 31 35 34 10 04 04 00 0A 74 00 00 F4 03 04 00 5E 58 1D 66 B6 04 01 00 00 EA BB 32 C1 6B BD E4 D1 [22:44:14]CommunicateWithHost err = 0 [22:44:14]CheckOFDResponse [22:44:14]1017 (14) - 77093643461234 [22:44:14]1041 (16) - 0000000000963154 [22:44:14]1040 (4) - 29706 [22:44:14]1012 (4) - 15.04.2024 16:39 [22:44:14]1206 (1) - 0 [22:44:14]OFD Sender: Remove packet 29706 [22:44:14]ProducePacketName [22:44:14]name=ofd_packets/00029706 [22:44:14]NVStorageDeleteData [22:44:14]Write to MH i2c: 01 00 00 F9 27 20 [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: 01 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: 01 07 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 C8 0C FB [22:44:14]RasterBufferAndPrint [22:44:14]line [22:44:14]line [22:44:14]line [22:44:14]line [22:44:14]line [22:44:14]written 0, free lines is 3287 [22:44:14]MH_Cut [22:44:14]Write to MH i2c: D1 01 00 00 28 01 FA [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: D1 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: D1 01 00 [22:44:14]MH_I2C_Read... [22:44:14]Read from MH i2c: D1 01 00 00 28 00 F9 [22:44:14]Write to MH i2c: 01 00 00 01 28 29 [22:44:14]Write i2c OK [22:44:14]MH_I2C_Read... [22:44:14]OFD Sender: No OFD packet to send [22:44:15]*** Cut start [22:44:15]*** Partial cut [22:44:15]*** CUTSNS_PIN = 1 [22:44:15]*** CUTSNS_PIN = 0 [22:44:15]*** Brake cut motor [22:44:15]Read from MH i2c: 01 [22:44:15]MH_I2C_Read... [22:44:15]*** Stop cut motor [22:44:15]*** Cut end [22:44:15]Read from MH i2c: 01 07 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: 01 07 00 01 28 00 00 00 00 00 FF 0F 3E [22:44:15]process_action close_receipt done [22:44:15]requested_data is exist [22:44:15]produce_requested_data [22:44:15]requested_item fm.sn is exist - process it [22:44:15]wFMCommunicate request_size=4 [22:44:15]MH_SAM_APDU [22:44:15]CAPDU: 80 11 00 00 [22:44:15]Write to MH i2c: E2 08 00 02 28 80 11 00 00 00 00 00 00 A4 [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:15]Read from MH i2c: E2 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 17 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 17 00 02 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [22:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:44:15]wFMCommunicate OK [22:44:15]requested_item fd.num is exist - process it [22:44:15]SAM_PROTO_GetFieldsCounters [22:44:15]wFMCommunicate request_size=4 [22:44:15]MH_SAM_APDU [22:44:15]CAPDU: 80 13 00 00 [22:44:15]Write to MH i2c: E2 08 00 03 28 80 13 00 00 00 00 00 00 A7 [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:15]Read from MH i2c: E2 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 62 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 62 00 03 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [22:44:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:15]wFMCommunicate OK [22:44:15]SAM_PROTO_GetFieldsCounters done [22:44:15]requested_item shift.num is exist - process it [22:44:15]requested_item shift.opened is exist - process it [22:44:15]req_shift_opened [22:44:15]FM_GetShiftState [22:44:15]SAM_PROTO_GetShiftState [22:44:15]wFMCommunicate request_size=4 [22:44:15]MH_SAM_APDU [22:44:15]CAPDU: 80 13 01 00 [22:44:15]Write to MH i2c: E2 08 00 04 28 80 13 01 00 00 00 00 00 A9 [22:44:15]Write i2c OK [22:44:15]MH_I2C_Read... [22:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:15]Read from MH i2c: E2 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 [22:44:15]MH_I2C_Read... [22:44:15]Read from MH i2c: E2 0E 00 04 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9D [22:44:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:44:15]wFMCommunicate OK [22:44:15]SAM_PROTO_GetShiftState done [22:44:15]FM_GetShiftState done [22:44:15]req_shift_opened done [22:44:15]requested_item shift.open_date is exist - process it [22:44:15]req_shift_open_date [22:44:15]req_shift_open_date done [22:44:15]produce_requested_data done [22:44:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29706,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:44:15]process_action_free close_receipt [22:44:15]json_value_free [22:44:15]json_value_free done [22:44:15]process_json_proto returns [22:44:15]Send response to host [22:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29706,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:44:15]free response buf [22:44:15]execute_script done [22:44:15]execute_script returns [22:44:15]free content buf [22:44:15]Sock 10.Close socket [22:44:15]Sock 10.Thread stoped [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:11]accept exits with 7 [22:46:11]New connection [22:46:11]New thread 3066965348 created [22:46:11]Thread 3067108708 joined [22:46:11]Waiting for new connection... [22:46:11] Sock 7.Parse request [22:46:11]Sock 7.Check first char [22:46:11]Sock 7.First char is OK [22:46:11]request: POST /json_proto HTTP/1.0 [22:46:11]Method: POST [22:46:11]URL: /json_proto [22:46:11]Method is POST - this is cgi request [22:46:11]url: /json_proto [22:46:11]query_string will be loaded in cgi processing [22:46:11]execute_cgi json_proto POST (null) [22:46:11]execute_cgi path=json_proto method=POST [22:46:11]POST find Content-Length [22:46:11]Host: 172.17.33.3:8080 [22:46:11]Content-Length: 679 [22:46:11]Content-Type: application/json [22:46:11] [22:46:11]POST finish read [22:46:11]Found Content-Length = 679 [22:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 15.000, "sum" : 1093.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1093.00, "total" : 1093.00, "payments": [ { "type": 0, "sum" : 1093.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:11]execute_script... [22:46: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)348183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 15.000, "sum" : 1093.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1093.00, "total" : 1093.00, "payments": [ { "type": 0, "sum" : 1093.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:11]POST & json_proto [22:46:11]process_json_proto [22:46:11]json parsed OK: [22:46:11]protocol is kg_v1.0 [22:46:11]action value=close_receipt [22:46:11]process_action close_receipt [22:46:11]cmd_close_receipt [22:46:11]MH_GetDate [22:46:11]Write to MH i2c: F0 00 00 05 28 1C [22:46:11]Write i2c OK [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 09 00 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: F0 09 00 05 28 00 36 AE 1D 66 23 5B 8F 65 FE [22:46:11]GetLastDocTimeStamp 1713221053 [22:46:11]current date 1713221174 [22:46:11]FM_GetShiftState [22:46:11]SAM_PROTO_GetShiftState [22:46:11]wFMCommunicate request_size=4 [22:46:11]MH_SAM_APDU [22:46:11]CAPDU: 80 13 01 00 [22:46:11]Write to MH i2c: E2 08 00 06 28 80 13 01 00 00 00 00 00 AB [22:46:11]Write i2c OK [22:46:11]MH_I2C_Read... [22:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:11]Read from MH i2c: E2 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: E2 0E 00 [22:46:11]MH_I2C_Read... [22:46:11]Read from MH i2c: E2 0E 00 06 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 9F [22:46:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:46:11]wFMCommunicate OK [22:46:11]SAM_PROTO_GetShiftState done [22:46:11]FM_GetShiftState done [22:46:11]opened in 1713140468 [22:46:11]opened+sec_in_day 1713226868 [22:46:11]quantity*price = 109350 [22:46:11]sum+1 = 109351 [22:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1093.00 Внесено: 1093.00 СДАЧА: 0.00 НСП 1% : 9.68 НДС 12% : 116.12 Наличными: 1093.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 301 15.04.2024 22:46 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29707 ФПД: 183444543663018 1/tax-web-control/client/api/v1/ticket?date=20240415T224614&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29707&fm=183444543663018&tin=02508201610067®Number=0000138879044617&sum=109300 [22:46:13]StoreToDocumentArchive [22:46:13]shift 117 fd 29707 [22:46:13]save to /storage/0117/doc_00029707 [22:46:13]save last doc name /storage/0117/doc_00029707 to /storage/kkm_last_doc_name [22:46:13]save OK [22:46:13]Clear old archive folders... [22:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:46:13]tlvbuf is 01A19040 [22:46:13]SAM_PROTO_ClearQueue [22:46:13]wFMCommunicate request_size=4 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 09 00 00 [22:46:13]Write to MH i2c: E2 08 00 13 28 80 09 00 00 00 00 00 00 AD [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [22:46:13]RAPDU: 90 00 [22:46:13]wFMCommunicate OK [22:46:13]SAM_PROTO_ClearQueue done [22:46:13]KKMCreateOFDPacket [22:46:13]OFDProtocolAddRootSTLVToBuf [22:46:13]FM_MakeSignedData [22:46:13]FM_MakeSignedData [22:46:13]SAM_PROTO_SignData [22:46:13]wFMCommunicate request_size=4 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 0D 01 02 [22:46:13]Write to MH i2c: E2 08 00 14 28 80 0D 01 02 00 00 00 00 B5 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:13]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [22:46:13]RAPDU: 90 00 [22:46:13]wFMCommunicate OK [22:46:13]wFMCommunicate request_size=255 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 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 01 00 00 F4 03 04 00 36 AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 74 00 00 35 04 06 00 A6 D7 82 DC [22:46:13]Write to MH i2c: E2 02 01 15 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 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 01 00 00 F4 03 04 00 36 AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 74 00 00 35 04 06 00 A6 D7 82 DC 00 00 5F [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [22:46:13]RAPDU: 90 00 [22:46:13]wFMCommunicate OK [22:46:13]wFMCommunicate request_size=7 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 0D 02 02 02 6B AA [22:46:13]Write to MH i2c: E2 0A 00 16 28 80 0D 02 02 02 00 6B AA 00 00 D1 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [22:46:13]RAPDU: 90 00 [22:46:13]wFMCommunicate OK [22:46:13]wFMCommunicate request_size=4 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 0D 03 02 [22:46:13]Write to MH i2c: E2 08 00 17 28 80 0D 03 02 00 00 00 00 BA [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 0B 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 0B 00 17 28 00 1F A1 D9 84 04 B7 9D 8D 90 00 BD [22:46:13]RAPDU: 1F A1 D9 84 04 B7 9D 8D 90 00 [22:46:13]wFMCommunicate OK [22:46:13]SAM_PROTO_SignData done [22:46:13]FM_MakeSignedData done [22:46:13]CreateOFDProtocolMessage [22:46:13]wFMCommunicate request_size=4 [22:46:13]MH_SAM_APDU [22:46:13]CAPDU: 80 11 00 00 [22:46:13]Write to MH i2c: E2 08 00 18 28 80 11 00 00 00 00 00 00 BA [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:13]Read from MH i2c: E2 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 17 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: E2 17 00 18 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [22:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:13]wFMCommunicate OK [22:46:13]CreateOFDProtocolMessage done [22:46:13]OFDSenderStorePacket 29707 [22:46:13]StoreOFDPacket docnum=29707 [22:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 19 26 04 01 38 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 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 01 00 00 F4 03 04 00 36 AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 74 00 00 35 04 06 00 A6 D7 82 DC 6B AA 1F A1 D9 84 04 B7 9D 8D [22:46:13]CheckFolder [22:46:13]dirname=/storage/ofd_packets [22:46:13]CheckFolder done [22:46:13]ProducePacketName [22:46:13]name=ofd_packets/00029707 [22:46:13]NVStorageSaveData ofd_packets/00029707 [22:46:13]File name is /storage/ofd_packets/00029707 [22:46:13]Write 298 bytes [22:46:13]NVStorageSaveData done [22:46:13]OFDSenderStorePacket done [22:46:13]KKMCreateOFDPacket done [22:46:13]NVStorageSaveData kkm_last_timestamp [22:46:13]File name is /storage/kkm_last_timestamp [22:46:13]Write 4 bytes [22:46:13]NVStorageSaveData done [22:46:13]ExternCall_PrintAddStr [22:46:13]wPrintStart [22:46:13]Write to MH i2c: 01 00 00 19 28 41 [22:46:13]Write i2c OK [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 07 00 [22:46:13]MH_I2C_Read... [22:46:13]Read from MH i2c: 01 07 00 19 28 00 00 00 00 00 FF 0F 56 [22:46:13]RasterBufferAndPrint [22:46:13]line Счет N : (1)348183 [22:46:13]line ИНН: 02508201610067 [22:46:13]line Контрольно-Кассовый Чек [22:46:13]line ПРОДАЖА [22:46:13]line ТРК (МРК, ГНК) : 51 [22:46:13]line Товар: 2710194210 [22:46:13]line ДТ-К-5 [22:46:13]line 15.000 * 72.90 [22:46:13]line = 1093.50 [22:46:13]line НДС 12% НСП 1% [22:46:13]line > о реализуемом товаре [22:46:13]line ОКРУГЛЕНИЕ: -0.50 [22:46:13]line ИТОГО: 1093.00 [22:46:13]line Внесено: 1093.00 [22:46:13]line СДАЧА: 0.00 [22:46:13]line НСП 1% : 9.68 [22:46:13]line НДС 12% : 116.12 [22:46:13]line Наличными: 1093.00 [22:46:13]line Безнал.: 0.00 [22:46:13]line Место: АЗС № 108 "Партнер Нефть" [22:46:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:46:13]line СНО: Общий режим [22:46:13]line Чек 301 15.04.2024 22:46 [22:46:13]line Смена: 117 ФФД: 1.0 [22:46:13]line ЗНМ: 0300000027 [22:46:13]line РНМ: 0000138879044617 [22:46:13]line Версия ККМ: 001 [22:46:13]line ФМ: 0000000000963154 [22:46:13]line ФД: 29707 [22:46:13]line ФПД: 183444543663018 [22:46:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T224614&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29707&fm=183444543663018&tin=02508201610067®Number=0000138879044617&sum=109300 [22:46:13]OFD Sender: Processing packet 29707 [packets to send 8, broken 7] [22:46:13]ProducePacketName [22:46:13]name=ofd_packets/00029707 [22:46:13]OFD Sender: To server: pG, [22:46:13]CommunicateWithHost lk.salyk.kg:30040 [22:46:13]ConnectInit lk.salyk.kg [22:46:13]written 0, free lines is 4095 [22:46:13]Connected sock=10 [22:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 19 26 04 01 38 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 26 AB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 2D 00 00 00 00 07 04 06 00 F4 AA 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 01 00 00 F4 03 04 00 36 AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 74 00 00 35 04 06 00 A6 D7 82 DC 6B AA 1F A1 D9 84 04 B7 9D 8D [22:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 BE 47 00 57 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 74 00 00 F4 03 04 00 D6 58 1D 66 B6 04 01 00 00 E3 07 C9 61 E3 20 97 52 [22:46:14]CommunicateWithHost err = 0 [22:46:14]CheckOFDResponse [22:46:14]1017 (14) - 77093643461234 [22:46:14]1041 (16) - 0000000000963154 [22:46:14]1040 (4) - 29707 [22:46:14]1012 (4) - 15.04.2024 16:41 [22:46:14]1206 (1) - 0 [22:46:14]OFD Sender: Remove packet 29707 [22:46:14]ProducePacketName [22:46:14]name=ofd_packets/00029707 [22:46:14]NVStorageDeleteData [22:46:14]Write to MH i2c: 01 00 00 43 28 6B [22:46:14]Write i2c OK [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: 01 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: 01 07 00 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 C7 0C 45 [22:46:14]RasterBufferAndPrint [22:46:14]line [22:46:14]line [22:46:14]line [22:46:14]line [22:46:14]line [22:46:14]written 0, free lines is 3275 [22:46:14]MH_Cut [22:46:14]Write to MH i2c: D1 01 00 4A 28 01 44 [22:46:14]Write i2c OK [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: D1 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: D1 01 00 [22:46:14]MH_I2C_Read... [22:46:14]Read from MH i2c: D1 01 00 4A 28 00 43 [22:46:14]Write to MH i2c: 01 00 00 4B 28 73 [22:46:14]Write i2c OK [22:46:14]MH_I2C_Read... [22:46:14]OFD Sender: No OFD packet to send [22:46:15]*** Cut start [22:46:15]*** Partial cut [22:46:15]*** CUTSNS_PIN = 1 [22:46:15]*** CUTSNS_PIN = 0 [22:46:15]*** Brake cut motor [22:46:15]Read from MH i2c: 01 [22:46:15]MH_I2C_Read... [22:46:15]*** Stop cut motor [22:46:15]*** Cut end [22:46:15]Read from MH i2c: 01 07 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: 01 07 00 4B 28 00 00 00 00 00 FF 0F 88 [22:46:15]process_action close_receipt done [22:46:15]requested_data is exist [22:46:15]produce_requested_data [22:46:15]requested_item fm.sn is exist - process it [22:46:15]wFMCommunicate request_size=4 [22:46:15]MH_SAM_APDU [22:46:15]CAPDU: 80 11 00 00 [22:46:15]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [22:46:15]Write i2c OK [22:46:15]MH_I2C_Read... [22:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:15]Read from MH i2c: E2 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 17 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [22:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:46:15]wFMCommunicate OK [22:46:15]requested_item fd.num is exist - process it [22:46:15]SAM_PROTO_GetFieldsCounters [22:46:15]wFMCommunicate request_size=4 [22:46:15]MH_SAM_APDU [22:46:15]CAPDU: 80 13 00 00 [22:46:15]Write to MH i2c: E2 08 00 4D 28 80 13 00 00 00 00 00 00 F1 [22:46:15]Write i2c OK [22:46:15]MH_I2C_Read... [22:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:15]Read from MH i2c: E2 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 62 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 62 00 4D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [22:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:15]wFMCommunicate OK [22:46:15]SAM_PROTO_GetFieldsCounters done [22:46:15]requested_item shift.num is exist - process it [22:46:15]requested_item shift.opened is exist - process it [22:46:15]req_shift_opened [22:46:15]FM_GetShiftState [22:46:15]SAM_PROTO_GetShiftState [22:46:15]wFMCommunicate request_size=4 [22:46:15]MH_SAM_APDU [22:46:15]CAPDU: 80 13 01 00 [22:46:15]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [22:46:15]Write i2c OK [22:46:15]MH_I2C_Read... [22:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:15]Read from MH i2c: E2 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 0E 00 [22:46:15]MH_I2C_Read... [22:46:15]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E7 [22:46:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:46:15]wFMCommunicate OK [22:46:15]SAM_PROTO_GetShiftState done [22:46:15]FM_GetShiftState done [22:46:15]req_shift_opened done [22:46:15]requested_item shift.open_date is exist - process it [22:46:15]req_shift_open_date [22:46:15]req_shift_open_date done [22:46:15]produce_requested_data done [22:46:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29707,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:46:15]process_action_free close_receipt [22:46:15]json_value_free [22:46:15]json_value_free done [22:46:15]process_json_proto returns [22:46:15]Send response to host [22:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29707,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:46:15]free response buf [22:46:15]execute_script done [22:46:15]execute_script returns [22:46:15]free content buf [22:46:15]Sock 7.Close socket [22:46:15]Sock 7.Thread stoped [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:38]accept exits with 9 [22:47:38]New connection [22:47:38]New thread 3067108708 created [22:47:38]Thread 3066965348 joined [22:47:38]Waiting for new connection... [22:47:38] Sock 9.Parse request [22:47:38]Sock 9.Check first char [22:47:38]Sock 9.First char is OK [22:47:38]request: POST /json_proto HTTP/1.0 [22:47:38]Method: POST [22:47:38]URL: /json_proto [22:47:38]Method is POST - this is cgi request [22:47:38]url: /json_proto [22:47:38]query_string will be loaded in cgi processing [22:47:38]execute_cgi json_proto POST (null) [22:47:38]execute_cgi path=json_proto method=POST [22:47:38]POST find Content-Length [22:47:38]Host: 172.17.33.3:8080 [22:47:38]Content-Length: 681 [22:47:38]Content-Type: application/json [22:47:38] [22:47:38]POST finish read [22:47:38]Found Content-Length = 681 [22:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 11.380, "sum" : 380.09, "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" ] } } [22:47:38]execute_script... [22:47: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)348182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 11.380, "sum" : 380.09, "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" ] } } [22:47:38]POST & json_proto [22:47:38]process_json_proto [22:47:38]json parsed OK: [22:47:38]protocol is kg_v1.0 [22:47:38]action value=close_receipt [22:47:38]process_action close_receipt [22:47:38]cmd_close_receipt [22:47:38]MH_GetDate [22:47:38]Write to MH i2c: F0 00 00 4F 28 66 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: F0 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: F0 09 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: F0 09 00 4F 28 00 8C AE 1D 66 23 5B 8F 65 9E [22:47:38]GetLastDocTimeStamp 1713221174 [22:47:38]current date 1713221260 [22:47:38]FM_GetShiftState [22:47:38]SAM_PROTO_GetShiftState [22:47:38]wFMCommunicate request_size=4 [22:47:38]MH_SAM_APDU [22:47:38]CAPDU: 80 13 01 00 [22:47:38]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [22:47:38]Write i2c OK [22:47:38]MH_I2C_Read... [22:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:38]Read from MH i2c: E2 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0E 00 [22:47:38]MH_I2C_Read... [22:47:38]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 E9 [22:47:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:47:38]wFMCommunicate OK [22:47:38]SAM_PROTO_GetShiftState done [22:47:38]FM_GetShiftState done [22:47:38]opened in 1713140468 [22:47:38]opened+sec_in_day 1713226868 [22:47:38]quantity*price = 38009 [22:47:38]sum+1 = 38010 [22:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.36 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 302 15.04.2024 22:47 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29708 ФПД: 126611221360110 1/tax-web-control/client/api/v1/ticket?date=20240415T224740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29708&fm=126611221360110&tin=02508201610067®Number=0000138879044617&sum=38000 [22:47:39]StoreToDocumentArchive [22:47:39]shift 117 fd 29708 [22:47:39]save to /storage/0117/doc_00029708 [22:47:39]save last doc name /storage/0117/doc_00029708 to /storage/kkm_last_doc_name [22:47:39]save OK [22:47:39]Clear old archive folders... [22:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:47:39]tlvbuf is B6DCE130 [22:47:39]SAM_PROTO_ClearQueue [22:47:39]wFMCommunicate request_size=4 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 09 00 00 [22:47:39]Write to MH i2c: E2 08 00 5D 28 80 09 00 00 00 00 00 00 F7 [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [22:47:39]RAPDU: 90 00 [22:47:39]wFMCommunicate OK [22:47:39]SAM_PROTO_ClearQueue done [22:47:39]KKMCreateOFDPacket [22:47:39]OFDProtocolAddRootSTLVToBuf [22:47:39]FM_MakeSignedData [22:47:39]FM_MakeSignedData [22:47:39]SAM_PROTO_SignData [22:47:39]wFMCommunicate request_size=4 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 0D 01 02 [22:47:39]Write to MH i2c: E2 08 00 5E 28 80 0D 01 02 00 00 00 00 FF [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [22:47:39]RAPDU: 90 00 [22:47:39]wFMCommunicate OK [22:47:39]wFMCommunicate request_size=255 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 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 C4 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 2E 01 00 00 F4 03 04 00 8C AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 74 00 00 35 04 06 00 73 26 [22:47:39]Write to MH i2c: E2 02 01 5F 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 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 C4 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 2E 01 00 00 F4 03 04 00 8C AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 74 00 00 35 04 06 00 73 26 00 00 42 [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]OFD Sender: No OFD packet to send [22:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [22:47:39]RAPDU: 90 00 [22:47:39]wFMCommunicate OK [22:47:39]wFMCommunicate request_size=9 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 0D 02 02 04 F8 DF AD EE [22:47:39]Write to MH i2c: E2 0C 00 60 28 80 0D 02 02 04 00 F8 DF AD EE 00 00 7C [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [22:47:39]RAPDU: 90 00 [22:47:39]wFMCommunicate OK [22:47:39]wFMCommunicate request_size=4 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 0D 03 02 [22:47:39]Write to MH i2c: E2 08 00 61 28 80 0D 03 02 00 00 00 00 04 [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 0B 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 0B 00 61 28 00 46 14 CF B8 B2 42 15 B5 90 00 A4 [22:47:39]RAPDU: 46 14 CF B8 B2 42 15 B5 90 00 [22:47:39]wFMCommunicate OK [22:47:39]SAM_PROTO_SignData done [22:47:39]FM_MakeSignedData done [22:47:39]CreateOFDProtocolMessage [22:47:39]wFMCommunicate request_size=4 [22:47:39]MH_SAM_APDU [22:47:39]CAPDU: 80 11 00 00 [22:47:39]Write to MH i2c: E2 08 00 62 28 80 11 00 00 00 00 00 00 04 [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:39]Read from MH i2c: E2 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 17 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: E2 17 00 62 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [22:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:47:39]wFMCommunicate OK [22:47:39]CreateOFDProtocolMessage done [22:47:39]OFDSenderStorePacket 29708 [22:47:39]StoreOFDPacket docnum=29708 [22:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5E 18 06 01 5C EF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 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 C4 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 2E 01 00 00 F4 03 04 00 8C AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 74 00 00 35 04 06 00 73 26 F8 DF AD EE 46 14 CF B8 B2 42 15 B5 [22:47:39]CheckFolder [22:47:39]dirname=/storage/ofd_packets [22:47:39]CheckFolder done [22:47:39]ProducePacketName [22:47:39]name=ofd_packets/00029708 [22:47:39]NVStorageSaveData ofd_packets/00029708 [22:47:39]File name is /storage/ofd_packets/00029708 [22:47:39]Write 300 bytes [22:47:39]NVStorageSaveData done [22:47:39]OFDSenderStorePacket done [22:47:39]KKMCreateOFDPacket done [22:47:39]NVStorageSaveData kkm_last_timestamp [22:47:39]File name is /storage/kkm_last_timestamp [22:47:39]Write 4 bytes [22:47:39]NVStorageSaveData done [22:47:39]ExternCall_PrintAddStr [22:47:39]wPrintStart [22:47:39]Write to MH i2c: 01 00 00 63 28 8B [22:47:39]Write i2c OK [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: 01 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: 01 07 00 [22:47:39]MH_I2C_Read... [22:47:39]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [22:47:39]RasterBufferAndPrint [22:47:39]line Счет N : (1)348182 [22:47:39]line ИНН: 02508201610067 [22:47:39]line Контрольно-Кассовый Чек [22:47:39]line ПРОДАЖА [22:47:39]line ТРК (МРК, ГНК) : 71 [22:47:39]line Товар: 2711129700 [22:47:39]line ГАЗ-К-5 [22:47:39]line 11.380 * 33.40 [22:47:39]line = 380.09 [22:47:39]line НДС 12% НСП 1% [22:47:39]line > о реализуемом товаре [22:47:39]line ОКРУГЛЕНИЕ: -0.09 [22:47:39]line ИТОГО: 380.00 [22:47:39]line Внесено: 380.00 [22:47:39]line СДАЧА: 0.00 [22:47:39]line НСП 1% : 3.36 [22:47:39]line НДС 12% : 40.36 [22:47:39]line Наличными: 380.00 [22:47:39]line Безнал.: 0.00 [22:47:39]line Место: АЗС № 108 "Партнер Нефть" [22:47:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:47:39]line СНО: Общий режим [22:47:39]line Чек 302 15.04.2024 22:47 [22:47:39]line Смена: 117 ФФД: 1.0 [22:47:39]line ЗНМ: 0300000027 [22:47:39]line РНМ: 0000138879044617 [22:47:39]line Версия ККМ: 001 [22:47:39]line ФМ: 0000000000963154 [22:47:39]line ФД: 29708 [22:47:39]line ФПД: 126611221360110 [22:47:40]line 1/tax-web-control/client/api/v1/ticket?date=20240415T224740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29708&fm=126611221360110&tin=02508201610067®Number=0000138879044617&sum=38000 [22:47:40]OFD Sender: Processing packet 29708 [packets to send 8, broken 7] [22:47:40]ProducePacketName [22:47:40]name=ofd_packets/00029708 [22:47:40]OFD Sender: To server: pG, [22:47:40]CommunicateWithHost lk.salyk.kg:30040 [22:47:40]ConnectInit lk.salyk.kg [22:47:40]written 0, free lines is 4095 [22:47:40]Connected sock=10 [22:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5E 18 06 01 5C EF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 79 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 C4 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 2E 01 00 00 F4 03 04 00 8C AE 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 74 00 00 35 04 06 00 73 26 F8 DF AD EE 46 14 CF B8 B2 42 15 B5 [22:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8E 7D 47 00 D7 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 39 36 33 31 35 34 10 04 04 00 0C 74 00 00 F4 03 04 00 2C 59 1D 66 B6 04 01 00 00 B9 66 E3 98 6F 52 FB ED [22:47:40]CommunicateWithHost err = 0 [22:47:40]CheckOFDResponse [22:47:40]1017 (14) - 77093643461234 [22:47:40]1041 (16) - 0000000000963154 [22:47:40]1040 (4) - 29708 [22:47:40]1012 (4) - 15.04.2024 16:43 [22:47:40]1206 (1) - 0 [22:47:40]OFD Sender: Remove packet 29708 [22:47:40]ProducePacketName [22:47:40]name=ofd_packets/00029708 [22:47:40]NVStorageDeleteData [22:47:40]Write to MH i2c: 01 00 00 8D 28 B5 [22:47:40]Write i2c OK [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: 01 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: 01 07 00 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: 01 07 00 8D 28 00 00 00 00 00 C6 0C 8E [22:47:40]RasterBufferAndPrint [22:47:40]line [22:47:40]line [22:47:40]line [22:47:40]line [22:47:40]line [22:47:40]written 0, free lines is 3276 [22:47:40]MH_Cut [22:47:40]Write to MH i2c: D1 01 00 94 28 01 8E [22:47:40]Write i2c OK [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: D1 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: D1 01 00 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: D1 01 00 94 28 00 8D [22:47:40]Write to MH i2c: 01 00 00 95 28 BD [22:47:40]Write i2c OK [22:47:40]MH_I2C_Read... [22:47:41]OFD Sender: No OFD packet to send [22:47:41]*** Cut start [22:47:41]*** Partial cut [22:47:41]*** CUTSNS_PIN = 1 [22:47:41]*** CUTSNS_PIN = 0 [22:47:41]*** Brake cut motor [22:47:42]Read from MH i2c: 01 [22:47:42]MH_I2C_Read... [22:47:42]*** Stop cut motor [22:47:42]*** Cut end [22:47:42]Read from MH i2c: 01 07 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 FF 0F D2 [22:47:42]process_action close_receipt done [22:47:42]requested_data is exist [22:47:42]produce_requested_data [22:47:42]requested_item fm.sn is exist - process it [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 11 00 00 [22:47:42]Write to MH i2c: E2 08 00 96 28 80 11 00 00 00 00 00 00 38 [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 17 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 17 00 96 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [22:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:47:42]wFMCommunicate OK [22:47:42]requested_item fd.num is exist - process it [22:47:42]SAM_PROTO_GetFieldsCounters [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 13 00 00 [22:47:42]Write to MH i2c: E2 08 00 97 28 80 13 00 00 00 00 00 00 3B [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 62 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 62 00 97 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [22:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:42]wFMCommunicate OK [22:47:42]SAM_PROTO_GetFieldsCounters done [22:47:42]requested_item shift.num is exist - process it [22:47:42]requested_item shift.opened is exist - process it [22:47:42]req_shift_opened [22:47:42]FM_GetShiftState [22:47:42]SAM_PROTO_GetShiftState [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 13 01 00 [22:47:42]Write to MH i2c: E2 08 00 98 28 80 13 01 00 00 00 00 00 3D [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0E 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0E 00 98 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [22:47:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:47:42]wFMCommunicate OK [22:47:42]SAM_PROTO_GetShiftState done [22:47:42]FM_GetShiftState done [22:47:42]req_shift_opened done [22:47:42]requested_item shift.open_date is exist - process it [22:47:42]req_shift_open_date [22:47:42]req_shift_open_date done [22:47:42]produce_requested_data done [22:47:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29708,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:47:42]process_action_free close_receipt [22:47:42]json_value_free [22:47:42]json_value_free done [22:47:42]process_json_proto returns [22:47:42]Send response to host [22:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29708,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:47:42]free response buf [22:47:42]execute_script done [22:47:42]execute_script returns [22:47:42]free content buf [22:47:42]Sock 9.Close socket [22:47:42]Sock 9.Thread stoped [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:06]accept exits with 7 [22:52:06]New connection [22:52:06]New thread 3066965348 created [22:52:06]Thread 3067108708 joined [22:52:06]Waiting for new connection... [22:52:06] Sock 7.Parse request [22:52:06]Sock 7.Check first char [22:52:06]Sock 7.First char is OK [22:52:06]request: POST /json_proto HTTP/1.0 [22:52:06]Method: POST [22:52:06]URL: /json_proto [22:52:06]Method is POST - this is cgi request [22:52:06]url: /json_proto [22:52:06]query_string will be loaded in cgi processing [22:52:06]execute_cgi json_proto POST (null) [22:52:06]execute_cgi path=json_proto method=POST [22:52:06]POST find Content-Length [22:52:06]Host: 172.17.33.3:8080 [22:52:06]Content-Length: 678 [22:52:06]Content-Type: application/json [22:52:06] [22:52:06]POST finish read [22:52:06]Found Content-Length = 678 [22:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 11.000, "sum" : 712.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 712.00, "total" : 712.00, "payments": [ { "type": 0, "sum" : 712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:06]execute_script... [22:52: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)348184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 11.000, "sum" : 712.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 712.00, "total" : 712.00, "payments": [ { "type": 0, "sum" : 712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:06]POST & json_proto [22:52:06]process_json_proto [22:52:06]json parsed OK: [22:52:06]protocol is kg_v1.0 [22:52:06]action value=close_receipt [22:52:06]process_action close_receipt [22:52:06]cmd_close_receipt [22:52:06]MH_GetDate [22:52:06]Write to MH i2c: F0 00 00 99 28 B0 [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 09 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 09 00 99 28 00 99 AF 1D 66 23 5B 8F 65 F6 [22:52:06]GetLastDocTimeStamp 1713221260 [22:52:06]current date 1713221529 [22:52:06]FM_GetShiftState [22:52:06]SAM_PROTO_GetShiftState [22:52:06]wFMCommunicate request_size=4 [22:52:06]MH_SAM_APDU [22:52:06]CAPDU: 80 13 01 00 [22:52:06]Write to MH i2c: E2 08 00 9A 28 80 13 01 00 00 00 00 00 3F [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:06]Read from MH i2c: E2 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: E2 0E 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: E2 0E 00 9A 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [22:52:06]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:52:06]wFMCommunicate OK [22:52:06]SAM_PROTO_GetShiftState done [22:52:06]FM_GetShiftState done [22:52:06]opened in 1713140468 [22:52:06]opened+sec_in_day 1713226868 [22:52:06]quantity*price = 71280 [22:52:06]sum+1 = 71281 [22:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 712.00 Внесено: 712.00 СДАЧА: 0.00 НСП 1% : 6.31 НДС 12% : 75.70 Наличными: 712.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 303 15.04.2024 22:52 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29709 ФПД: 139165584912360 1/tax-web-control/client/api/v1/ticket?date=20240415T225209&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29709&fm=139165584912360&tin=02508201610067®Number=0000138879044617&sum=71200 [22:52:07]StoreToDocumentArchive [22:52:07]shift 117 fd 29709 [22:52:07]save to /storage/0117/doc_00029709 [22:52:07]save last doc name /storage/0117/doc_00029709 to /storage/kkm_last_doc_name [22:52:07]save OK [22:52:07]Clear old archive folders... [22:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:07]tlvbuf is 01A25310 [22:52:07]SAM_PROTO_ClearQueue [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 09 00 00 [22:52:07]Write to MH i2c: E2 08 00 A7 28 80 09 00 00 00 00 00 00 41 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [22:52:07]RAPDU: 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_ClearQueue done [22:52:07]KKMCreateOFDPacket [22:52:07]OFDProtocolAddRootSTLVToBuf [22:52:07]FM_MakeSignedData [22:52:07]FM_MakeSignedData [22:52:07]SAM_PROTO_SignData [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 0D 01 02 [22:52:07]Write to MH i2c: E2 08 00 A8 28 80 0D 01 02 00 00 00 00 49 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [22:52:07]RAPDU: 90 00 [22:52:07]wFMCommunicate OK [22:52:07]wFMCommunicate request_size=255 [22:52:07]MH_SAM_APDU [22:52: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 F8 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 99 AF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 74 00 00 35 04 06 00 7E [22:52:07]Write to MH i2c: E2 02 01 A9 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 F8 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 99 AF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 74 00 00 35 04 06 00 7E 00 00 87 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [22:52:08]RAPDU: 90 00 [22:52:08]wFMCommunicate OK [22:52:08]wFMCommunicate request_size=10 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 0D 02 02 05 92 03 40 EF E8 [22:52:08]Write to MH i2c: E2 0D 00 AA 28 80 0D 02 02 05 00 92 03 40 EF E8 00 00 02 [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [22:52:08]RAPDU: 90 00 [22:52:08]wFMCommunicate OK [22:52:08]wFMCommunicate request_size=4 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 0D 03 02 [22:52:08]Write to MH i2c: E2 08 00 AB 28 80 0D 03 02 00 00 00 00 4E [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 0B 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 0B 00 AB 28 00 B8 8B 6A 13 D6 EB 13 7A 90 00 5D [22:52:08]RAPDU: B8 8B 6A 13 D6 EB 13 7A 90 00 [22:52:08]wFMCommunicate OK [22:52:08]SAM_PROTO_SignData done [22:52:08]FM_MakeSignedData done [22:52:08]CreateOFDProtocolMessage [22:52:08]wFMCommunicate request_size=4 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 11 00 00 [22:52:08]Write to MH i2c: E2 08 00 AC 28 80 11 00 00 00 00 00 00 4E [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 17 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 17 00 AC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [22:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:52:08]wFMCommunicate OK [22:52:08]CreateOFDProtocolMessage done [22:52:08]OFDSenderStorePacket 29709 [22:52:08]StoreOFDPacket docnum=29709 [22:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 75 07 01 7C 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 F8 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 99 AF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 74 00 00 35 04 06 00 7E 92 03 40 EF E8 B8 8B 6A 13 D6 EB 13 7A [22:52:08]CheckFolder [22:52:08]dirname=/storage/ofd_packets [22:52:08]CheckFolder done [22:52:08]ProducePacketName [22:52:08]name=ofd_packets/00029709 [22:52:08]NVStorageSaveData ofd_packets/00029709 [22:52:08]File name is /storage/ofd_packets/00029709 [22:52:08]Write 301 bytes [22:52:08]NVStorageSaveData done [22:52:08]OFDSenderStorePacket done [22:52:08]KKMCreateOFDPacket done [22:52:08]NVStorageSaveData kkm_last_timestamp [22:52:08]File name is /storage/kkm_last_timestamp [22:52:08]Write 4 bytes [22:52:08]NVStorageSaveData done [22:52:08]ExternCall_PrintAddStr [22:52:08]wPrintStart [22:52:08]Write to MH i2c: 01 00 00 AD 28 D5 [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 07 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 07 00 AD 28 00 00 00 00 00 FF 0F EA [22:52:08]RasterBufferAndPrint [22:52:08]line Счет N : (1)348184 [22:52:08]line ИНН: 02508201610067 [22:52:08]line Контрольно-Кассовый Чек [22:52:08]line ПРОДАЖА [22:52:08]line ТРК (МРК, ГНК) : 32 [22:52:08]line Товар: 2710124130 [22:52:08]line Аи-92-К-5 [22:52:08]line 11.000 * 64.80 [22:52:08]line = 712.80 [22:52:08]line НДС 12% НСП 1% [22:52:08]line > о реализуемом товаре [22:52:08]line ОКРУГЛЕНИЕ: -0.80 [22:52:08]line ИТОГО: 712.00 [22:52:08]line Внесено: 712.00 [22:52:08]line СДАЧА: 0.00 [22:52:08]line НСП 1% : 6.31 [22:52:08]line НДС 12% : 75.70 [22:52:08]line Наличными: 712.00 [22:52:08]line Безнал.: 0.00 [22:52:08]line Место: АЗС № 108 "Партнер Нефть" [22:52:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:52:08]line СНО: Общий режим [22:52:08]line Чек 303 15.04.2024 22:52 [22:52:08]line Смена: 117 ФФД: 1.0 [22:52:08]line ЗНМ: 0300000027 [22:52:08]line РНМ: 0000138879044617 [22:52:08]line Версия ККМ: 001 [22:52:08]line ФМ: 0000000000963154 [22:52:08]line ФД: 29709 [22:52:08]line ФПД: 139165584912360 [22:52:08]line 1/tax-web-control/client/api/v1/ticket?date=20240415T225209&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29709&fm=139165584912360&tin=02508201610067®Number=0000138879044617&sum=71200 [22:52:08]OFD Sender: Processing packet 29709 [packets to send 8, broken 7] [22:52:08]ProducePacketName [22:52:08]name=ofd_packets/00029709 [22:52:08]OFD Sender: To server: pG, [22:52:08]CommunicateWithHost lk.salyk.kg:30040 [22:52:08]ConnectInit lk.salyk.kg [22:52:08]written 0, free lines is 4095 [22:52:08]Connected sock=10 [22:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 75 07 01 7C 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 F8 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 70 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 99 AF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 74 00 00 35 04 06 00 7E 92 03 40 EF E8 B8 8B 6A 13 D6 EB 13 7A [22:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 66 6F 47 00 FD 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 39 36 33 31 35 34 10 04 04 00 0D 74 00 00 F4 03 04 00 38 5A 1D 66 B6 04 01 00 00 57 F4 BD 14 18 82 33 C1 [22:52:08]CommunicateWithHost err = 0 [22:52:08]CheckOFDResponse [22:52:08]1017 (14) - 77093643461234 [22:52:08]1041 (16) - 0000000000963154 [22:52:08]1040 (4) - 29709 [22:52:08]1012 (4) - 15.04.2024 16:47 [22:52:08]1206 (1) - 0 [22:52:08]OFD Sender: Remove packet 29709 [22:52:08]ProducePacketName [22:52:08]name=ofd_packets/00029709 [22:52:08]NVStorageDeleteData [22:52:09]Write to MH i2c: 01 00 00 D7 28 FF [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 07 00 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 C2 0C D4 [22:52:09]RasterBufferAndPrint [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]written 0, free lines is 3272 [22:52:09]MH_Cut [22:52:09]Write to MH i2c: D1 01 00 DE 28 01 D8 [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 01 00 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 01 00 DE 28 00 D7 [22:52:09]Write to MH i2c: 01 00 00 DF 28 07 [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]OFD Sender: No OFD packet to send [22:52:09]*** Cut start [22:52:09]*** Partial cut [22:52:09]*** CUTSNS_PIN = 1 [22:52:09]*** CUTSNS_PIN = 0 [22:52:10]*** Brake cut motor [22:52:10]Read from MH i2c: 01 [22:52:10]MH_I2C_Read... [22:52:10]*** Stop cut motor [22:52:10]*** Cut end [22:52:10]Read from MH i2c: 01 07 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [22:52:10]process_action close_receipt done [22:52:10]requested_data is exist [22:52:10]produce_requested_data [22:52:10]requested_item fm.sn is exist - process it [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 11 00 00 [22:52:10]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 17 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [22:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:52:10]wFMCommunicate OK [22:52:10]requested_item fd.num is exist - process it [22:52:10]SAM_PROTO_GetFieldsCounters [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 13 00 00 [22:52:10]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 62 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:52:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:10]wFMCommunicate OK [22:52:10]SAM_PROTO_GetFieldsCounters done [22:52:10]requested_item shift.num is exist - process it [22:52:10]requested_item shift.opened is exist - process it [22:52:10]req_shift_opened [22:52:10]FM_GetShiftState [22:52:10]SAM_PROTO_GetShiftState [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 13 01 00 [22:52:10]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7B [22:52:10]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:52:10]wFMCommunicate OK [22:52:10]SAM_PROTO_GetShiftState done [22:52:10]FM_GetShiftState done [22:52:10]req_shift_opened done [22:52:10]requested_item shift.open_date is exist - process it [22:52:10]req_shift_open_date [22:52:10]req_shift_open_date done [22:52:10]produce_requested_data done [22:52:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29709,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:52:10]process_action_free close_receipt [22:52:10]json_value_free [22:52:10]json_value_free done [22:52:10]process_json_proto returns [22:52:10]Send response to host [22:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29709,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:52:10]free response buf [22:52:10]execute_script done [22:52:10]execute_script returns [22:52:10]free content buf [22:52:10]Sock 7.Close socket [22:52:10]Sock 7.Thread stoped [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:53]accept exits with 9 [22:56:53]New connection [22:56:53]New thread 3067108708 created [22:56:53]Thread 3066965348 joined [22:56:53]Waiting for new connection... [22:56:53] Sock 9.Parse request [22:56:53]Sock 9.Check first char [22:56:53]Sock 9.First char is OK [22:56:53]request: POST /json_proto HTTP/1.0 [22:56:53]Method: POST [22:56:53]URL: /json_proto [22:56:53]Method is POST - this is cgi request [22:56:53]url: /json_proto [22:56:53]query_string will be loaded in cgi processing [22:56:53]execute_cgi json_proto POST (null) [22:56:53]execute_cgi path=json_proto method=POST [22:56:53]POST find Content-Length [22:56:53]Host: 172.17.33.3:8080 [22:56:53]Content-Length: 670 [22:56:53]Content-Type: application/json [22:56:53] [22:56:53]POST finish read [22:56:53]Found Content-Length = 670 [22:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:53]execute_script... [22:56: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)348185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:53]POST & json_proto [22:56:53]process_json_proto [22:56:53]json parsed OK: [22:56:53]protocol is kg_v1.0 [22:56:53]action value=close_receipt [22:56:53]process_action close_receipt [22:56:53]cmd_close_receipt [22:56:53]MH_GetDate [22:56:53]Write to MH i2c: F0 00 00 E3 28 FA [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: F0 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: F0 09 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: F0 09 00 E3 28 00 B7 B0 1D 66 23 5B 8F 65 5F [22:56:53]GetLastDocTimeStamp 1713221529 [22:56:53]current date 1713221815 [22:56:53]FM_GetShiftState [22:56:53]SAM_PROTO_GetShiftState [22:56:53]wFMCommunicate request_size=4 [22:56:53]MH_SAM_APDU [22:56:53]CAPDU: 80 13 01 00 [22:56:53]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:53]Read from MH i2c: E2 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 0E 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [22:56:53]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:56:53]wFMCommunicate OK [22:56:53]SAM_PROTO_GetShiftState done [22:56:53]FM_GetShiftState done [22:56:53]opened in 1713140468 [22:56:53]opened+sec_in_day 1713226868 [22:56:53]quantity*price = 35005 [22:56:53]sum+1 = 35007 [22:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 304 15.04.2024 22:56 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29710 ФПД: 64189152338025 1/tax-web-control/client/api/v1/ticket?date=20240415T225655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29710&fm=64189152338025&tin=02508201610067®Number=0000138879044617&sum=35000 [22:56:54]StoreToDocumentArchive [22:56:54]shift 117 fd 29710 [22:56:54]save to /storage/0117/doc_00029710 [22:56:54]save last doc name /storage/0117/doc_00029710 to /storage/kkm_last_doc_name [22:56:54]save OK [22:56:54]Clear old archive folders... [22:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:56:54]tlvbuf is 01A99DB0 [22:56:54]SAM_PROTO_ClearQueue [22:56:54]wFMCommunicate request_size=4 [22:56:54]MH_SAM_APDU [22:56:54]CAPDU: 80 09 00 00 [22:56:54]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [22:56:54]RAPDU: 90 00 [22:56:54]wFMCommunicate OK [22:56:54]SAM_PROTO_ClearQueue done [22:56:54]KKMCreateOFDPacket [22:56:54]OFDProtocolAddRootSTLVToBuf [22:56:54]FM_MakeSignedData [22:56:54]FM_MakeSignedData [22:56:54]SAM_PROTO_SignData [22:56:54]wFMCommunicate request_size=4 [22:56:54]MH_SAM_APDU [22:56:54]CAPDU: 80 0D 01 02 [22:56:54]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [22:56:54]RAPDU: 90 00 [22:56:54]wFMCommunicate OK [22:56:54]wFMCommunicate request_size=255 [22:56:54]MH_SAM_APDU [22:56: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 B7 B0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 74 00 00 35 04 06 00 [22:56:54]Write to MH i2c: E2 02 01 F3 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 B7 B0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 74 00 00 35 04 06 00 00 00 AF [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]OFD Sender: No OFD packet to send [22:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [22:56:54]RAPDU: 90 00 [22:56:54]wFMCommunicate OK [22:56:54]wFMCommunicate request_size=11 [22:56:54]MH_SAM_APDU [22:56:54]CAPDU: 80 0D 02 02 06 3A 61 33 9F A0 69 [22:56:54]Write to MH i2c: E2 0E 00 F4 28 80 0D 02 02 06 00 3A 61 33 9F A0 69 00 00 18 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [22:56:54]RAPDU: 90 00 [22:56:54]wFMCommunicate OK [22:56:54]wFMCommunicate request_size=4 [22:56:54]MH_SAM_APDU [22:56:54]CAPDU: 80 0D 03 02 [22:56:54]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 0B 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 0B 00 F5 28 00 A5 89 83 4D A2 C9 67 60 90 00 C9 [22:56:54]RAPDU: A5 89 83 4D A2 C9 67 60 90 00 [22:56:54]wFMCommunicate OK [22:56:54]SAM_PROTO_SignData done [22:56:54]FM_MakeSignedData done [22:56:54]CreateOFDProtocolMessage [22:56:54]wFMCommunicate request_size=4 [22:56:54]MH_SAM_APDU [22:56:54]CAPDU: 80 11 00 00 [22:56:54]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:54]Read from MH i2c: E2 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 17 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [22:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:56:54]wFMCommunicate OK [22:56:54]CreateOFDProtocolMessage done [22:56:54]OFDSenderStorePacket 29710 [22:56:54]StoreOFDPacket docnum=29710 [22:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B0 B2 08 01 BD 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 B7 B0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 74 00 00 35 04 06 00 3A 61 33 9F A0 69 A5 89 83 4D A2 C9 67 60 [22:56:54]CheckFolder [22:56:54]dirname=/storage/ofd_packets [22:56:54]CheckFolder done [22:56:54]ProducePacketName [22:56:54]name=ofd_packets/00029710 [22:56:54]NVStorageSaveData ofd_packets/00029710 [22:56:54]File name is /storage/ofd_packets/00029710 [22:56:54]Write 302 bytes [22:56:54]NVStorageSaveData done [22:56:54]OFDSenderStorePacket done [22:56:54]KKMCreateOFDPacket done [22:56:54]NVStorageSaveData kkm_last_timestamp [22:56:54]File name is /storage/kkm_last_timestamp [22:56:54]Write 4 bytes [22:56:54]NVStorageSaveData done [22:56:54]ExternCall_PrintAddStr [22:56:54]wPrintStart [22:56:54]Write to MH i2c: 01 00 00 F7 28 1F [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 07 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [22:56:54]RasterBufferAndPrint [22:56:54]line Счет N : (1)348185 [22:56:54]line ИНН: 02508201610067 [22:56:54]line Контрольно-Кассовый Чек [22:56:54]line ПРОДАЖА [22:56:54]line ТРК (МРК, ГНК) : 31 [22:56:54]line Товар: 2710124130 [22:56:54]line SUPER-92-К-5 [22:56:54]line 5.320 * 65.80 [22:56:54]line = 350.06 [22:56:54]line НДС 12% НСП 1% [22:56:54]line > о реализуемом товаре [22:56:54]line ОКРУГЛЕНИЕ: -0.06 [22:56:54]line ИТОГО: 350.00 [22:56:54]line Внесено: 350.00 [22:56:54]line СДАЧА: 0.00 [22:56:54]line НСП 1% : 3.10 [22:56:54]line НДС 12% : 37.17 [22:56:54]line Наличными: 350.00 [22:56:54]line Безнал.: 0.00 [22:56:54]line Место: АЗС № 108 "Партнер Нефть" [22:56:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:56:54]line СНО: Общий режим [22:56:54]line Чек 304 15.04.2024 22:56 [22:56:54]line Смена: 117 ФФД: 1.0 [22:56:54]line ЗНМ: 0300000027 [22:56:54]line РНМ: 0000138879044617 [22:56:54]line Версия ККМ: 001 [22:56:54]line ФМ: 0000000000963154 [22:56:54]line ФД: 29710 [22:56:54]line ФПД: 64189152338025 [22:56:55]line 1/tax-web-control/client/api/v1/ticket?date=20240415T225655&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29710&fm=64189152338025&tin=02508201610067®Number=0000138879044617&sum=35000 [22:56:55]OFD Sender: Processing packet 29710 [packets to send 8, broken 7] [22:56:55]ProducePacketName [22:56:55]name=ofd_packets/00029710 [22:56:55]OFD Sender: To server: pG, [22:56:55]CommunicateWithHost lk.salyk.kg:30040 [22:56:55]ConnectInit lk.salyk.kg [22:56:55]written 0, free lines is 4095 [22:56:55]Connected sock=10 [22:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B0 B2 08 01 BD 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 B7 B0 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 74 00 00 35 04 06 00 3A 61 33 9F A0 69 A5 89 83 4D A2 C9 67 60 [22:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 43 49 47 00 7D 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 39 36 33 31 35 34 10 04 04 00 0E 74 00 00 F4 03 04 00 57 5B 1D 66 B6 04 01 00 00 2F 81 23 47 CD 60 45 FD [22:56:55]CommunicateWithHost err = 0 [22:56:55]CheckOFDResponse [22:56:55]1017 (14) - 77093643461234 [22:56:55]1041 (16) - 0000000000963154 [22:56:55]1040 (4) - 29710 [22:56:55]1012 (4) - 15.04.2024 16:52 [22:56:55]1206 (1) - 0 [22:56:55]OFD Sender: Remove packet 29710 [22:56:55]ProducePacketName [22:56:55]name=ofd_packets/00029710 [22:56:55]NVStorageDeleteData [22:56:55]Write to MH i2c: 01 00 00 21 29 4A [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: 01 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: 01 07 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: 01 07 00 21 29 00 00 00 00 00 C7 0C 24 [22:56:55]RasterBufferAndPrint [22:56:55]line [22:56:55]line [22:56:55]line [22:56:55]line [22:56:55]line [22:56:55]written 0, free lines is 3276 [22:56:55]MH_Cut [22:56:55]Write to MH i2c: D1 01 00 28 29 01 23 [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: D1 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: D1 01 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: D1 01 00 28 29 00 22 [22:56:55]Write to MH i2c: 01 00 00 29 29 52 [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]OFD Sender: No OFD packet to send [22:56:56]*** Cut start [22:56:56]*** Partial cut [22:56:56]*** CUTSNS_PIN = 1 [22:56:56]*** CUTSNS_PIN = 0 [22:56:56]*** Brake cut motor [22:56:57]Read from MH i2c: 01 [22:56:57]MH_I2C_Read... [22:56:57]*** Stop cut motor [22:56:57]*** Cut end [22:56:57]Read from MH i2c: 01 07 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [22:56:57]process_action close_receipt done [22:56:57]requested_data is exist [22:56:57]produce_requested_data [22:56:57]requested_item fm.sn is exist - process it [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 11 00 00 [22:56:57]Write to MH i2c: E2 08 00 2A 29 80 11 00 00 00 00 00 00 CD [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 17 00 2A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [22:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:56:57]wFMCommunicate OK [22:56:57]requested_item fd.num is exist - process it [22:56:57]SAM_PROTO_GetFieldsCounters [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 13 00 00 [22:56:57]Write to MH i2c: E2 08 00 2B 29 80 13 00 00 00 00 00 00 D0 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 62 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 62 00 2B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [22:56:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:57]wFMCommunicate OK [22:56:57]SAM_PROTO_GetFieldsCounters done [22:56:57]requested_item shift.num is exist - process it [22:56:57]requested_item shift.opened is exist - process it [22:56:57]req_shift_opened [22:56:57]FM_GetShiftState [22:56:57]SAM_PROTO_GetShiftState [22:56:57]wFMCommunicate request_size=4 [22:56:57]MH_SAM_APDU [22:56:57]CAPDU: 80 13 01 00 [22:56:57]Write to MH i2c: E2 08 00 2C 29 80 13 01 00 00 00 00 00 D2 [22:56:57]Write i2c OK [22:56:57]MH_I2C_Read... [22:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:57]Read from MH i2c: E2 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0E 00 [22:56:57]MH_I2C_Read... [22:56:57]Read from MH i2c: E2 0E 00 2C 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [22:56:57]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:56:57]wFMCommunicate OK [22:56:57]SAM_PROTO_GetShiftState done [22:56:57]FM_GetShiftState done [22:56:57]req_shift_opened done [22:56:57]requested_item shift.open_date is exist - process it [22:56:57]req_shift_open_date [22:56:57]req_shift_open_date done [22:56:57]produce_requested_data done [22:56:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29710,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:56:57]process_action_free close_receipt [22:56:57]json_value_free [22:56:57]json_value_free done [22:56:57]process_json_proto returns [22:56:57]Send response to host [22:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29710,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:56:57]free response buf [22:56:57]execute_script done [22:56:57]execute_script returns [22:56:57]free content buf [22:56:57]Sock 9.Close socket [22:56:57]Sock 9.Thread stoped [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:29]accept exits with 7 [22:58:29]New connection [22:58:29]New thread 3066965348 created [22:58:29]Thread 3067108708 joined [22:58:29]Waiting for new connection... [22:58:29] Sock 7.Parse request [22:58:29]Sock 7.Check first char [22:58:29]Sock 7.First char is OK [22:58:29]request: POST /json_proto HTTP/1.0 [22:58:29]Method: POST [22:58:29]URL: /json_proto [22:58:29]Method is POST - this is cgi request [22:58:29]url: /json_proto [22:58:29]query_string will be loaded in cgi processing [22:58:29]execute_cgi json_proto POST (null) [22:58:29]execute_cgi path=json_proto method=POST [22:58:29]POST find Content-Length [22:58:29]Host: 172.17.33.3:8080 [22:58:29]Content-Length: 675 [22:58:29]Content-Type: application/json [22:58:29] [22:58:29]POST finish read [22:58:29]Found Content-Length = 675 [22:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.030, "sum" : 731.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 731.00, "total" : 731.00, "payments": [ { "type": 0, "sum" : 731.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:29]execute_script... [22:58: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)348186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.030, "sum" : 731.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 731.00, "total" : 731.00, "payments": [ { "type": 0, "sum" : 731.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:29]POST & json_proto [22:58:29]process_json_proto [22:58:29]json parsed OK: [22:58:29]protocol is kg_v1.0 [22:58:29]action value=close_receipt [22:58:29]process_action close_receipt [22:58:29]cmd_close_receipt [22:58:29]MH_GetDate [22:58:29]Write to MH i2c: F0 00 00 2D 29 45 [22:58:29]Write i2c OK [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: F0 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: F0 09 00 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: F0 09 00 2D 29 00 17 B1 1D 66 23 5B 8F 65 0B [22:58:29]GetLastDocTimeStamp 1713221815 [22:58:29]current date 1713221911 [22:58:29]FM_GetShiftState [22:58:29]SAM_PROTO_GetShiftState [22:58:29]wFMCommunicate request_size=4 [22:58:29]MH_SAM_APDU [22:58:29]CAPDU: 80 13 01 00 [22:58:29]Write to MH i2c: E2 08 00 2E 29 80 13 01 00 00 00 00 00 D4 [22:58:29]Write i2c OK [22:58:29]MH_I2C_Read... [22:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:29]Read from MH i2c: E2 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: E2 0E 00 [22:58:29]MH_I2C_Read... [22:58:29]Read from MH i2c: E2 0E 00 2E 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [22:58:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:58:29]wFMCommunicate OK [22:58:29]SAM_PROTO_GetShiftState done [22:58:29]FM_GetShiftState done [22:58:29]opened in 1713140468 [22:58:29]opened+sec_in_day 1713226868 [22:58:29]quantity*price = 73118 [22:58:29]sum+1 = 73120 [22:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 731.00 Внесено: 731.00 СДАЧА: 0.00 НСП 1% : 6.47 НДС 12% : 77.65 Наличными: 731.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 305 15.04.2024 22:58 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29711 ФПД: 242695104676729 1/tax-web-control/client/api/v1/ticket?date=20240415T225831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29711&fm=242695104676729&tin=02508201610067®Number=0000138879044617&sum=73100 [22:58:30]StoreToDocumentArchive [22:58:30]shift 117 fd 29711 [22:58:30]save to /storage/0117/doc_00029711 [22:58:30]save last doc name /storage/0117/doc_00029711 to /storage/kkm_last_doc_name [22:58:30]save OK [22:58:30]Clear old archive folders... [22:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:58:30]tlvbuf is 01A25060 [22:58:30]SAM_PROTO_ClearQueue [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 09 00 00 [22:58:30]Write to MH i2c: E2 08 00 3B 29 80 09 00 00 00 00 00 00 D6 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [22:58:30]RAPDU: 90 00 [22:58:30]wFMCommunicate OK [22:58:30]SAM_PROTO_ClearQueue done [22:58:30]KKMCreateOFDPacket [22:58:30]OFDProtocolAddRootSTLVToBuf [22:58:30]FM_MakeSignedData [22:58:30]FM_MakeSignedData [22:58:30]SAM_PROTO_SignData [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 0D 01 02 [22:58:30]Write to MH i2c: E2 08 00 3C 29 80 0D 01 02 00 00 00 00 DE [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [22:58:30]RAPDU: 90 00 [22:58:30]wFMCommunicate OK [22:58:30]wFMCommunicate request_size=255 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1E 00 00 00 00 07 04 06 00 8C 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 31 01 00 00 F4 03 04 00 17 B1 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 74 00 00 35 04 06 00 DC BA DB 80 [22:58:30]Write to MH i2c: E2 02 01 3D 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1E 00 00 00 00 07 04 06 00 8C 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 31 01 00 00 F4 03 04 00 17 B1 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 74 00 00 35 04 06 00 DC BA DB 80 00 00 B6 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [22:58:30]RAPDU: 90 00 [22:58:30]wFMCommunicate OK [22:58:30]wFMCommunicate request_size=7 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 0D 02 02 02 C3 79 [22:58:30]Write to MH i2c: E2 0A 00 3E 29 80 0D 02 02 02 00 C3 79 00 00 21 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [22:58:30]RAPDU: 90 00 [22:58:30]wFMCommunicate OK [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 0D 03 02 [22:58:30]Write to MH i2c: E2 08 00 3F 29 80 0D 03 02 00 00 00 00 E3 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0B 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0B 00 3F 29 00 04 01 14 AC CD 3B 22 C4 90 00 97 [22:58:30]RAPDU: 04 01 14 AC CD 3B 22 C4 90 00 [22:58:30]wFMCommunicate OK [22:58:30]SAM_PROTO_SignData done [22:58:30]FM_MakeSignedData done [22:58:30]CreateOFDProtocolMessage [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 11 00 00 [22:58:30]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:31]Read from MH i2c: E2 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 17 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [22:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:58:31]wFMCommunicate OK [22:58:31]CreateOFDProtocolMessage done [22:58:31]OFDSenderStorePacket 29711 [22:58:31]StoreOFDPacket docnum=29711 [22:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C2 34 04 01 45 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1E 00 00 00 00 07 04 06 00 8C 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 31 01 00 00 F4 03 04 00 17 B1 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 74 00 00 35 04 06 00 DC BA DB 80 C3 79 04 01 14 AC CD 3B 22 C4 [22:58:31]CheckFolder [22:58:31]dirname=/storage/ofd_packets [22:58:31]CheckFolder done [22:58:31]ProducePacketName [22:58:31]name=ofd_packets/00029711 [22:58:31]NVStorageSaveData ofd_packets/00029711 [22:58:31]File name is /storage/ofd_packets/00029711 [22:58:31]Write 298 bytes [22:58:31]NVStorageSaveData done [22:58:31]OFDSenderStorePacket done [22:58:31]KKMCreateOFDPacket done [22:58:31]NVStorageSaveData kkm_last_timestamp [22:58:31]File name is /storage/kkm_last_timestamp [22:58:31]Write 4 bytes [22:58:31]NVStorageSaveData done [22:58:31]ExternCall_PrintAddStr [22:58:31]wPrintStart [22:58:31]Write to MH i2c: 01 00 00 41 29 6A [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 07 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 FF 0F 7F [22:58:31]RasterBufferAndPrint [22:58:31]line Счет N : (1)348186 [22:58:31]line ИНН: 02508201610067 [22:58:31]line Контрольно-Кассовый Чек [22:58:31]line ПРОДАЖА [22:58:31]line ТРК (МРК, ГНК) : 51 [22:58:31]line Товар: 2710194210 [22:58:31]line ДТ-К-5 [22:58:31]line 10.030 * 72.90 [22:58:31]line = 731.19 [22:58:31]line НДС 12% НСП 1% [22:58:31]line > о реализуемом товаре [22:58:31]line ОКРУГЛЕНИЕ: -0.19 [22:58:31]line ИТОГО: 731.00 [22:58:31]line Внесено: 731.00 [22:58:31]line СДАЧА: 0.00 [22:58:31]line НСП 1% : 6.47 [22:58:31]line НДС 12% : 77.65 [22:58:31]line Наличными: 731.00 [22:58:31]line Безнал.: 0.00 [22:58:31]line Место: АЗС № 108 "Партнер Нефть" [22:58:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:58:31]line СНО: Общий режим [22:58:31]line Чек 305 15.04.2024 22:58 [22:58:31]line Смена: 117 ФФД: 1.0 [22:58:31]line ЗНМ: 0300000027 [22:58:31]line РНМ: 0000138879044617 [22:58:31]line Версия ККМ: 001 [22:58:31]line ФМ: 0000000000963154 [22:58:31]line ФД: 29711 [22:58:31]line ФПД: 242695104676729 [22:58:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T225831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29711&fm=242695104676729&tin=02508201610067®Number=0000138879044617&sum=73100 [22:58:31]OFD Sender: Processing packet 29711 [packets to send 8, broken 7] [22:58:31]ProducePacketName [22:58:31]name=ofd_packets/00029711 [22:58:31]OFD Sender: To server: pG, [22:58:31]CommunicateWithHost lk.salyk.kg:30040 [22:58:31]ConnectInit lk.salyk.kg [22:58:31]written 0, free lines is 4095 [22:58:31]Connected sock=10 [22:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C2 34 04 01 45 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1E 00 00 00 00 07 04 06 00 8C 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 31 01 00 00 F4 03 04 00 17 B1 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 74 00 00 35 04 06 00 DC BA DB 80 C3 79 04 01 14 AC CD 3B 22 C4 [22:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F9 12 47 00 A2 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 39 36 33 31 35 34 10 04 04 00 0F 74 00 00 F4 03 04 00 B7 5B 1D 66 B6 04 01 00 00 5E 86 AA D7 C7 94 10 9E [22:58:31]CommunicateWithHost err = 0 [22:58:31]CheckOFDResponse [22:58:31]1017 (14) - 77093643461234 [22:58:31]1041 (16) - 0000000000963154 [22:58:31]1040 (4) - 29711 [22:58:31]1012 (4) - 15.04.2024 16:54 [22:58:31]1206 (1) - 0 [22:58:31]OFD Sender: Remove packet 29711 [22:58:31]ProducePacketName [22:58:31]name=ofd_packets/00029711 [22:58:31]NVStorageDeleteData [22:58:31]Write to MH i2c: 01 00 00 6B 29 94 [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 07 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 C2 0C 69 [22:58:31]RasterBufferAndPrint [22:58:31]line [22:58:31]line [22:58:31]line [22:58:31]line [22:58:31]line [22:58:31]written 0, free lines is 3272 [22:58:31]MH_Cut [22:58:31]Write to MH i2c: D1 01 00 72 29 01 6D [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: D1 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: D1 01 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: D1 01 00 72 29 00 6C [22:58:31]Write to MH i2c: 01 00 00 73 29 9C [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:32]OFD Sender: No OFD packet to send [22:58:32]*** Cut start [22:58:32]*** Partial cut [22:58:32]*** CUTSNS_PIN = 1 [22:58:32]*** CUTSNS_PIN = 0 [22:58:32]*** Brake cut motor [22:58:33]Read from MH i2c: 01 [22:58:33]MH_I2C_Read... [22:58:33]*** Stop cut motor [22:58:33]*** Cut end [22:58:33]Read from MH i2c: 01 07 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [22:58:33]process_action close_receipt done [22:58:33]requested_data is exist [22:58:33]produce_requested_data [22:58:33]requested_item fm.sn is exist - process it [22:58:33]wFMCommunicate request_size=4 [22:58:33]MH_SAM_APDU [22:58:33]CAPDU: 80 11 00 00 [22:58:33]Write to MH i2c: E2 08 00 74 29 80 11 00 00 00 00 00 00 17 [22:58:33]Write i2c OK [22:58:33]MH_I2C_Read... [22:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:33]Read from MH i2c: E2 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 17 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 17 00 74 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [22:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:58:33]wFMCommunicate OK [22:58:33]requested_item fd.num is exist - process it [22:58:33]SAM_PROTO_GetFieldsCounters [22:58:33]wFMCommunicate request_size=4 [22:58:33]MH_SAM_APDU [22:58:33]CAPDU: 80 13 00 00 [22:58:33]Write to MH i2c: E2 08 00 75 29 80 13 00 00 00 00 00 00 1A [22:58:33]Write i2c OK [22:58:33]MH_I2C_Read... [22:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:33]Read from MH i2c: E2 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 62 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 62 00 75 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [22:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:33]wFMCommunicate OK [22:58:33]SAM_PROTO_GetFieldsCounters done [22:58:33]requested_item shift.num is exist - process it [22:58:33]requested_item shift.opened is exist - process it [22:58:33]req_shift_opened [22:58:33]FM_GetShiftState [22:58:33]SAM_PROTO_GetShiftState [22:58:33]wFMCommunicate request_size=4 [22:58:33]MH_SAM_APDU [22:58:33]CAPDU: 80 13 01 00 [22:58:33]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [22:58:33]Write i2c OK [22:58:33]MH_I2C_Read... [22:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:33]Read from MH i2c: E2 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 0E 00 [22:58:33]MH_I2C_Read... [22:58:33]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [22:58:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:58:33]wFMCommunicate OK [22:58:33]SAM_PROTO_GetShiftState done [22:58:33]FM_GetShiftState done [22:58:33]req_shift_opened done [22:58:33]requested_item shift.open_date is exist - process it [22:58:33]req_shift_open_date [22:58:33]req_shift_open_date done [22:58:33]produce_requested_data done [22:58:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29711,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:58:33]process_action_free close_receipt [22:58:33]json_value_free [22:58:33]json_value_free done [22:58:33]process_json_proto returns [22:58:33]Send response to host [22:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29711,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:58:33]free response buf [22:58:33]execute_script done [22:58:33]execute_script returns [22:58:33]free content buf [22:58:33]Sock 7.Close socket [22:58:33]Sock 7.Thread stoped [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:08]accept exits with 9 [22:59:08]New connection [22:59:08]New thread 3067108708 created [22:59:08]Thread 3066965348 joined [22:59:08]Waiting for new connection... [22:59:08] Sock 9.Parse request [22:59:08]Sock 9.Check first char [22:59:08]Sock 9.First char is OK [22:59:08]request: POST /json_proto HTTP/1.0 [22:59:08]Method: POST [22:59:08]URL: /json_proto [22:59:08]Method is POST - this is cgi request [22:59:08]url: /json_proto [22:59:08]query_string will be loaded in cgi processing [22:59:08]execute_cgi json_proto POST (null) [22:59:08]execute_cgi path=json_proto method=POST [22:59:08]POST find Content-Length [22:59:08]Host: 172.17.33.3:8080 [22:59:08]Content-Length: 1207 [22:59:08]Content-Type: application/json [22:59:08] [22:59:08]POST finish read [22:59:08]Found Content-Length = 1207 [22:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348187\u000A15.04.2024 22:40\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-\u041A-5\u000A 1.170 x 72.90\u000A\u0418\u0422\u041E\u0413: 85.29\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:08]execute_script... [22:59:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348187\u000A15.04.2024 22:40\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-\u041A-5\u000A 1.170 x 72.90\u000A\u0418\u0422\u041E\u0413: 85.29\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\u000A02136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:08]POST & json_proto [22:59:08]process_json_proto [22:59:08]json parsed OK: [22:59:08]protocol is kg_v1.0 [22:59:08]action value=print_text [22:59:08]process_action print_text [22:59:08]cmd_print_text [22:59:08]ExternCall_PrintAddStr [22:59:08]wPrintStart [22:59:08]Write to MH i2c: 01 00 00 77 29 A0 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 77 29 00 00 00 00 00 FF 0F B5 [22:59:08]RasterBufferAndPrint [22:59:08]line *****ТОВАРНЫЙ ЧЕК***** [22:59:08]line АЗС 108 [22:59:08]line Партнер нефть [22:59:08]line 02508201610067 [22:59:08]line Кассир : Джумагулова Н. [22:59:08]line Счет N : (1)348187 [22:59:08]line 15.04.2024 22:40 [22:59:08]line ПРОДАЖА [22:59:08]line ТРК (МРК, ГНК): 51 [22:59:08]line Вид ГСМ : 2710194210 [22:59:08]line ДТ-К-5 [22:59:08]line 1.170 x 72.90 [22:59:08]line ИТОГ: 85.29 [22:59:08]line Тип оплаты: Талоны: Топливная Карта [22:59:08]line 02136 [22:59:08]line ______________________ [22:59:08]line (подпись) [22:59:08]written 0, free lines is 4095 [22:59:08]Write to MH i2c: 01 00 00 8C 29 B5 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 F2 0D BB [22:59:08]RasterBufferAndPrint [22:59:08]line [22:59:08]line [22:59:08]line [22:59:08]line [22:59:08]line [22:59:08]written 0, free lines is 3571 [22:59:08]MH_Cut [22:59:08]Write to MH i2c: D1 01 00 93 29 01 8E [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: D1 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: D1 01 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: D1 01 00 93 29 00 8D [22:59:08]Write to MH i2c: 01 00 00 94 29 BD [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** Cut start [22:59:08]*** Partial cut [22:59:08]*** CUTSNS_PIN = 1 [22:59:09]*** CUTSNS_PIN = 0 [22:59:09]*** Brake cut motor [22:59:09]Read from MH i2c: 01 [22:59:09]MH_I2C_Read... [22:59:09]*** Stop cut motor [22:59:09]*** Cut end [22:59:09]Read from MH i2c: 01 07 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 94 29 00 00 00 00 00 FF 0F D2 [22:59:09]process_action print_text done [22:59:09]requested_data is exist [22:59:09]produce_requested_data [22:59:09]requested_item fm.sn is exist - process it [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 11 00 00 [22:59:09]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 17 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 17 00 95 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [22:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:59:09]wFMCommunicate OK [22:59:09]requested_item fd.num is exist - process it [22:59:09]SAM_PROTO_GetFieldsCounters [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 00 00 [22:59:09]Write to MH i2c: E2 08 00 96 29 80 13 00 00 00 00 00 00 3B [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 62 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 62 00 96 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [22:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetFieldsCounters done [22:59:09]requested_item shift.num is exist - process it [22:59:09]requested_item shift.opened is exist - process it [22:59:09]req_shift_opened [22:59:09]FM_GetShiftState [22:59:09]SAM_PROTO_GetShiftState [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 13 01 00 [22:59:09]Write to MH i2c: E2 08 00 97 29 80 13 01 00 00 00 00 00 3D [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0E 00 97 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 31 [22:59:09]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_GetShiftState done [22:59:09]FM_GetShiftState done [22:59:09]req_shift_opened done [22:59:09]requested_item shift.open_date is exist - process it [22:59:09]req_shift_open_date [22:59:09]req_shift_open_date done [22:59:09]produce_requested_data done [22:59:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29711,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [22:59:09]process_action_free print_text [22:59:09]json_value_free [22:59:09]json_value_free done [22:59:09]process_json_proto returns [22:59:09]Send response to host [22:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29711,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [22:59:09]free response buf [22:59:09]execute_script done [22:59:09]execute_script returns [22:59:09]free content buf [22:59:09]Sock 9.Close socket [22:59:09]Sock 9.Thread stoped [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:24]accept exits with 7 [23:05:24]New connection [23:05:24]New thread 3066965348 created [23:05:24]Thread 3067108708 joined [23:05:24]Waiting for new connection... [23:05:24] Sock 7.Parse request [23:05:24]Sock 7.Check first char [23:05:24]Sock 7.First char is OK [23:05:24]request: POST /json_proto HTTP/1.0 [23:05:24]Method: POST [23:05:24]URL: /json_proto [23:05:24]Method is POST - this is cgi request [23:05:24]url: /json_proto [23:05:24]query_string will be loaded in cgi processing [23:05:24]execute_cgi json_proto POST (null) [23:05:24]execute_cgi path=json_proto method=POST [23:05:24]POST find Content-Length [23:05:24]Host: 172.17.33.3:8080 [23:05:24]Content-Length: 682 [23:05:24]Content-Type: application/json [23:05:24] [23:05:24]POST finish read [23:05:24]Found Content-Length = 682 [23:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348188", "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" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:24]execute_script... [23:05: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)348188", "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" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:24]POST & json_proto [23:05:24]process_json_proto [23:05:24]json parsed OK: [23:05:24]protocol is kg_v1.0 [23:05:24]action value=close_receipt [23:05:24]process_action close_receipt [23:05:24]cmd_close_receipt [23:05:24]MH_GetDate [23:05:24]Write to MH i2c: F0 00 00 98 29 B0 [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: F0 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: F0 09 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: F0 09 00 98 29 00 B6 B2 1D 66 23 5B 8F 65 16 [23:05:24]GetLastDocTimeStamp 1713221911 [23:05:24]current date 1713222326 [23:05:24]FM_GetShiftState [23:05:24]SAM_PROTO_GetShiftState [23:05:24]wFMCommunicate request_size=4 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 13 01 00 [23:05:24]Write to MH i2c: E2 08 00 99 29 80 13 01 00 00 00 00 00 3F [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 0E 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 0E 00 99 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 33 [23:05:24]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:05:24]wFMCommunicate OK [23:05:24]SAM_PROTO_GetShiftState done [23:05:24]FM_GetShiftState done [23:05:24]opened in 1713140468 [23:05:24]opened+sec_in_day 1713226868 [23:05:24]quantity*price = 120009 [23:05:24]sum+1 = 120011 [23:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 306 15.04.2024 23:05 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29712 ФПД: 86489471679569 1/tax-web-control/client/api/v1/ticket?date=20240415T230526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29712&fm=86489471679569&tin=02508201610067®Number=0000138879044617&sum=120000 [23:05:25]StoreToDocumentArchive [23:05:25]shift 117 fd 29712 [23:05:25]save to /storage/0117/doc_00029712 [23:05:25]save last doc name /storage/0117/doc_00029712 to /storage/kkm_last_doc_name [23:05:25]save OK [23:05:25]Clear old archive folders... [23:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:25]tlvbuf is 01ABCF00 [23:05:25]SAM_PROTO_ClearQueue [23:05:25]wFMCommunicate request_size=4 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 09 00 00 [23:05:25]Write to MH i2c: E2 08 00 A6 29 80 09 00 00 00 00 00 00 41 [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 A6 29 00 90 00 43 [23:05:25]RAPDU: 90 00 [23:05:25]wFMCommunicate OK [23:05:25]SAM_PROTO_ClearQueue done [23:05:25]KKMCreateOFDPacket [23:05:25]OFDProtocolAddRootSTLVToBuf [23:05:25]FM_MakeSignedData [23:05:25]FM_MakeSignedData [23:05:25]SAM_PROTO_SignData [23:05:25]wFMCommunicate request_size=4 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 0D 01 02 [23:05:25]Write to MH i2c: E2 08 00 A7 29 80 0D 01 02 00 00 00 00 49 [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 A7 29 00 90 00 44 [23:05:25]RAPDU: 90 00 [23:05:25]wFMCommunicate OK [23:05:25]wFMCommunicate request_size=255 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 B6 B2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 74 00 00 35 04 06 00 4E [23:05:25]Write to MH i2c: E2 02 01 A8 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 B6 B2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 74 00 00 35 04 06 00 4E 00 00 CA [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [23:05:25]RAPDU: 90 00 [23:05:25]wFMCommunicate OK [23:05:25]wFMCommunicate request_size=10 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 0D 02 02 05 A9 66 3C 7C 51 [23:05:25]Write to MH i2c: E2 0D 00 A9 29 80 0D 02 02 05 00 A9 66 3C 7C 51 00 00 6E [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [23:05:25]RAPDU: 90 00 [23:05:25]wFMCommunicate OK [23:05:25]wFMCommunicate request_size=4 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 0D 03 02 [23:05:25]Write to MH i2c: E2 08 00 AA 29 80 0D 03 02 00 00 00 00 4E [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 0B 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 0B 00 AA 29 00 AC 9C 50 65 87 00 74 B7 90 00 FE [23:05:25]RAPDU: AC 9C 50 65 87 00 74 B7 90 00 [23:05:25]wFMCommunicate OK [23:05:25]SAM_PROTO_SignData done [23:05:25]FM_MakeSignedData done [23:05:25]CreateOFDProtocolMessage [23:05:25]wFMCommunicate request_size=4 [23:05:25]MH_SAM_APDU [23:05:25]CAPDU: 80 11 00 00 [23:05:25]Write to MH i2c: E2 08 00 AB 29 80 11 00 00 00 00 00 00 4E [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:25]Read from MH i2c: E2 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 17 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: E2 17 00 AB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [23:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:25]wFMCommunicate OK [23:05:25]CreateOFDProtocolMessage done [23:05:25]OFDSenderStorePacket 29712 [23:05:25]StoreOFDPacket docnum=29712 [23:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC 4C 07 01 5F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 B6 B2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 74 00 00 35 04 06 00 4E A9 66 3C 7C 51 AC 9C 50 65 87 00 74 B7 [23:05:25]CheckFolder [23:05:25]dirname=/storage/ofd_packets [23:05:25]CheckFolder done [23:05:25]ProducePacketName [23:05:25]name=ofd_packets/00029712 [23:05:25]NVStorageSaveData ofd_packets/00029712 [23:05:25]File name is /storage/ofd_packets/00029712 [23:05:25]Write 301 bytes [23:05:25]NVStorageSaveData done [23:05:25]OFDSenderStorePacket done [23:05:25]KKMCreateOFDPacket done [23:05:25]NVStorageSaveData kkm_last_timestamp [23:05:25]File name is /storage/kkm_last_timestamp [23:05:25]Write 4 bytes [23:05:25]NVStorageSaveData done [23:05:25]ExternCall_PrintAddStr [23:05:25]wPrintStart [23:05:25]Write to MH i2c: 01 00 00 AC 29 D5 [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: 01 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: 01 07 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 FF 0F EA [23:05:25]RasterBufferAndPrint [23:05:25]line Счет N : (1)348188 [23:05:25]line ИНН: 02508201610067 [23:05:25]line Контрольно-Кассовый Чек [23:05:25]line ПРОДАЖА [23:05:25]line ТРК (МРК, ГНК) : 63 [23:05:25]line Товар: 2710124130 [23:05:25]line Аи-92-К-5 [23:05:25]line 18.520 * 64.80 [23:05:25]line = 1200.10 [23:05:25]line НДС 12% НСП 1% [23:05:25]line > о реализуемом товаре [23:05:25]line ОКРУГЛЕНИЕ: -0.10 [23:05:25]line ИТОГО: 1200.00 [23:05:25]line Внесено: 1200.00 [23:05:25]line СДАЧА: 0.00 [23:05:25]line НСП 1% : 10.62 [23:05:25]line НДС 12% : 127.44 [23:05:25]line Наличными: 1200.00 [23:05:25]line Безнал.: 0.00 [23:05:25]line Место: АЗС № 108 "Партнер Нефть" [23:05:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:05:25]line СНО: Общий режим [23:05:25]line Чек 306 15.04.2024 23:05 [23:05:25]line Смена: 117 ФФД: 1.0 [23:05:25]line ЗНМ: 0300000027 [23:05:25]line РНМ: 0000138879044617 [23:05:25]line Версия ККМ: 001 [23:05:25]line ФМ: 0000000000963154 [23:05:25]line ФД: 29712 [23:05:25]line ФПД: 86489471679569 [23:05:25]line 1/tax-web-control/client/api/v1/ticket?date=20240415T230526&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29712&fm=86489471679569&tin=02508201610067®Number=0000138879044617&sum=120000 [23:05:25]written 0, free lines is 4095 [23:05:25]OFD Sender: Processing packet 29712 [packets to send 8, broken 7] [23:05:25]ProducePacketName [23:05:25]name=ofd_packets/00029712 [23:05:25]OFD Sender: To server: pG, [23:05:25]CommunicateWithHost lk.salyk.kg:30040 [23:05:25]ConnectInit lk.salyk.kg [23:05:25]Connected sock=10 [23:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EC 4C 07 01 5F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 B6 B2 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 74 00 00 35 04 06 00 4E A9 66 3C 7C 51 AC 9C 50 65 87 00 74 B7 [23:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 DD 47 00 4B 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 39 36 33 31 35 34 10 04 04 00 10 74 00 00 F4 03 04 00 56 5D 1D 66 B6 04 01 00 00 60 E8 0A 95 00 46 35 33 [23:05:26]CommunicateWithHost err = 0 [23:05:26]CheckOFDResponse [23:05:26]1017 (14) - 77093643461234 [23:05:26]1041 (16) - 0000000000963154 [23:05:26]1040 (4) - 29712 [23:05:26]1012 (4) - 15.04.2024 17:01 [23:05:26]1206 (1) - 0 [23:05:26]OFD Sender: Remove packet 29712 [23:05:26]ProducePacketName [23:05:26]name=ofd_packets/00029712 [23:05:26]NVStorageDeleteData [23:05:26]Write to MH i2c: 01 00 00 D6 29 FF [23:05:26]Write i2c OK [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: 01 [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: 01 07 00 [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: 01 07 00 D6 29 00 00 00 00 00 EC 0C FE [23:05:26]RasterBufferAndPrint [23:05:26]line [23:05:26]line [23:05:26]line [23:05:26]line [23:05:26]line [23:05:26]written 0, free lines is 3314 [23:05:26]MH_Cut [23:05:26]Write to MH i2c: D1 01 00 DD 29 01 D8 [23:05:26]Write i2c OK [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: D1 [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: D1 01 00 [23:05:26]MH_I2C_Read... [23:05:26]Read from MH i2c: D1 01 00 DD 29 00 D7 [23:05:26]Write to MH i2c: 01 00 00 DE 29 07 [23:05:26]Write i2c OK [23:05:26]MH_I2C_Read... [23:05:26]OFD Sender: No OFD packet to send [23:05:27]*** Cut start [23:05:27]*** Partial cut [23:05:27]*** CUTSNS_PIN = 1 [23:05:27]*** CUTSNS_PIN = 0 [23:05:27]*** Brake cut motor [23:05:27]Read from MH i2c: 01 [23:05:27]MH_I2C_Read... [23:05:27]*** Stop cut motor [23:05:27]*** Cut end [23:05:27]Read from MH i2c: 01 07 00 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: 01 07 00 DE 29 00 00 00 00 00 FF 0F 1C [23:05:27]process_action close_receipt done [23:05:27]requested_data is exist [23:05:27]produce_requested_data [23:05:27]requested_item fm.sn is exist - process it [23:05:27]wFMCommunicate request_size=4 [23:05:27]MH_SAM_APDU [23:05:27]CAPDU: 80 11 00 00 [23:05:27]Write to MH i2c: E2 08 00 DF 29 80 11 00 00 00 00 00 00 82 [23:05:27]Write i2c OK [23:05:27]MH_I2C_Read... [23:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:27]Read from MH i2c: E2 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 17 00 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 17 00 DF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [23:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:27]wFMCommunicate OK [23:05:27]requested_item fd.num is exist - process it [23:05:27]SAM_PROTO_GetFieldsCounters [23:05:27]wFMCommunicate request_size=4 [23:05:27]MH_SAM_APDU [23:05:27]CAPDU: 80 13 00 00 [23:05:27]Write to MH i2c: E2 08 00 E0 29 80 13 00 00 00 00 00 00 85 [23:05:27]Write i2c OK [23:05:27]MH_I2C_Read... [23:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:27]Read from MH i2c: E2 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 62 00 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 62 00 E0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [23:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:27]wFMCommunicate OK [23:05:27]SAM_PROTO_GetFieldsCounters done [23:05:27]requested_item shift.num is exist - process it [23:05:27]requested_item shift.opened is exist - process it [23:05:27]req_shift_opened [23:05:27]FM_GetShiftState [23:05:27]SAM_PROTO_GetShiftState [23:05:27]wFMCommunicate request_size=4 [23:05:27]MH_SAM_APDU [23:05:27]CAPDU: 80 13 01 00 [23:05:27]Write to MH i2c: E2 08 00 E1 29 80 13 01 00 00 00 00 00 87 [23:05:27]Write i2c OK [23:05:27]MH_I2C_Read... [23:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:27]Read from MH i2c: E2 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 0E 00 [23:05:27]MH_I2C_Read... [23:05:27]Read from MH i2c: E2 0E 00 E1 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7B [23:05:27]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:05:27]wFMCommunicate OK [23:05:27]SAM_PROTO_GetShiftState done [23:05:27]FM_GetShiftState done [23:05:27]req_shift_opened done [23:05:27]requested_item shift.open_date is exist - process it [23:05:27]req_shift_open_date [23:05:27]req_shift_open_date done [23:05:27]produce_requested_data done [23:05:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29712,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:05:27]process_action_free close_receipt [23:05:27]json_value_free [23:05:27]json_value_free done [23:05:27]process_json_proto returns [23:05:27]Send response to host [23:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29712,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:05:27]free response buf [23:05:27]execute_script done [23:05:27]execute_script returns [23:05:27]free content buf [23:05:27]Sock 7.Close socket [23:05:27]Sock 7.Thread stoped [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:30]accept exits with 9 [23:11:30]New connection [23:11:30]New thread 3067108708 created [23:11:30]Thread 3066965348 joined [23:11:30]Waiting for new connection... [23:11:30] Sock 9.Parse request [23:11:30]Sock 9.Check first char [23:11:30]Sock 9.First char is OK [23:11:30]request: POST /json_proto HTTP/1.0 [23:11:30]Method: POST [23:11:30]URL: /json_proto [23:11:30]Method is POST - this is cgi request [23:11:30]url: /json_proto [23:11:30]query_string will be loaded in cgi processing [23:11:30]execute_cgi json_proto POST (null) [23:11:30]execute_cgi path=json_proto method=POST [23:11:30]POST find Content-Length [23:11:30]Host: 172.17.33.3:8080 [23:11:30]Content-Length: 685 [23:11:30]Content-Type: application/json [23:11:30] [23:11:30]POST finish read [23:11:30]Found Content-Length = 685 [23:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 41.040, "sum" : 1370.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:30]execute_script... [23:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 41.040, "sum" : 1370.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:30]POST & json_proto [23:11:30]process_json_proto [23:11:30]json parsed OK: [23:11:30]protocol is kg_v1.0 [23:11:30]action value=close_receipt [23:11:30]process_action close_receipt [23:11:30]cmd_close_receipt [23:11:30]MH_GetDate [23:11:30]Write to MH i2c: F0 00 00 E2 29 FA [23:11:30]Write i2c OK [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: F0 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: F0 09 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: F0 09 00 E2 29 00 25 B4 1D 66 23 5B 8F 65 D1 [23:11:30]GetLastDocTimeStamp 1713222326 [23:11:30]current date 1713222693 [23:11:30]FM_GetShiftState [23:11:30]SAM_PROTO_GetShiftState [23:11:30]wFMCommunicate request_size=4 [23:11:30]MH_SAM_APDU [23:11:30]CAPDU: 80 13 01 00 [23:11:30]Write to MH i2c: E2 08 00 E3 29 80 13 01 00 00 00 00 00 89 [23:11:30]Write i2c OK [23:11:30]MH_I2C_Read... [23:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:30]Read from MH i2c: E2 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 0E 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 0E 00 E3 29 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 7D [23:11:30]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:11:30]wFMCommunicate OK [23:11:30]SAM_PROTO_GetShiftState done [23:11:30]FM_GetShiftState done [23:11:30]opened in 1713140468 [23:11:30]opened+sec_in_day 1713226868 [23:11:30]quantity*price = 137073 [23:11:30]sum+1 = 137075 [23:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 1370.00 Внесено: 2000.00 СДАЧА: 630.00 НСП 1% : 12.13 НДС 12% : 145.56 Наличными: 1370.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 307 15.04.2024 23:11 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29713 ФПД: 256832851938849 1/tax-web-control/client/api/v1/ticket?date=20240415T231133&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29713&fm=256832851938849&tin=02508201610067®Number=0000138879044617&sum=137000 [23:11:31]StoreToDocumentArchive [23:11:31]shift 117 fd 29713 [23:11:31]save to /storage/0117/doc_00029713 [23:11:31]save last doc name /storage/0117/doc_00029713 to /storage/kkm_last_doc_name [23:11:31]save OK [23:11:31]Clear old archive folders... [23:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:11:31]tlvbuf is 01A99E60 [23:11:31]SAM_PROTO_ClearQueue [23:11:31]wFMCommunicate request_size=4 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 09 00 00 [23:11:31]Write to MH i2c: E2 08 00 F0 29 80 09 00 00 00 00 00 00 8B [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:31]Read from MH i2c: E2 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 03 00 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 03 00 F0 29 00 90 00 8D [23:11:31]RAPDU: 90 00 [23:11:31]wFMCommunicate OK [23:11:31]SAM_PROTO_ClearQueue done [23:11:31]KKMCreateOFDPacket [23:11:31]OFDProtocolAddRootSTLVToBuf [23:11:31]FM_MakeSignedData [23:11:31]FM_MakeSignedData [23:11:31]SAM_PROTO_SignData [23:11:31]wFMCommunicate request_size=4 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 0D 01 02 [23:11:31]Write to MH i2c: E2 08 00 F1 29 80 0D 01 02 00 00 00 00 93 [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:31]Read from MH i2c: E2 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 03 00 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 03 00 F1 29 00 90 00 8E [23:11:31]RAPDU: 90 00 [23:11:31]wFMCommunicate OK [23:11:31]wFMCommunicate request_size=255 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 72 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 33 01 00 00 F4 03 04 00 25 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 74 00 00 35 04 06 00 E9 96 [23:11:31]Write to MH i2c: E2 02 01 F2 29 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 72 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 33 01 00 00 F4 03 04 00 25 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 74 00 00 35 04 06 00 E9 96 00 00 5E [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:31]OFD Sender: No OFD packet to send [23:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 03 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [23:11:32]RAPDU: 90 00 [23:11:32]wFMCommunicate OK [23:11:32]wFMCommunicate request_size=9 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 0D 02 02 04 8E E8 0E 21 [23:11:32]Write to MH i2c: E2 0C 00 F3 29 80 0D 02 02 04 00 8E E8 0E 21 00 00 43 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 03 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 03 00 F3 29 00 90 00 90 [23:11:32]RAPDU: 90 00 [23:11:32]wFMCommunicate OK [23:11:32]wFMCommunicate request_size=4 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 0D 03 02 [23:11:32]Write to MH i2c: E2 08 00 F4 29 80 0D 03 02 00 00 00 00 98 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 0B 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 0B 00 F4 29 00 55 3E EA C6 0F 59 A7 57 90 00 42 [23:11:32]RAPDU: 55 3E EA C6 0F 59 A7 57 90 00 [23:11:32]wFMCommunicate OK [23:11:32]SAM_PROTO_SignData done [23:11:32]FM_MakeSignedData done [23:11:32]CreateOFDProtocolMessage [23:11:32]wFMCommunicate request_size=4 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 11 00 00 [23:11:32]Write to MH i2c: E2 08 00 F5 29 80 11 00 00 00 00 00 00 98 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 17 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 17 00 F5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [23:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:11:32]wFMCommunicate OK [23:11:32]CreateOFDProtocolMessage done [23:11:32]OFDSenderStorePacket 29713 [23:11:32]StoreOFDPacket docnum=29713 [23:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A8 28 06 01 25 E4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 72 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 33 01 00 00 F4 03 04 00 25 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 74 00 00 35 04 06 00 E9 96 8E E8 0E 21 55 3E EA C6 0F 59 A7 57 [23:11:32]CheckFolder [23:11:32]dirname=/storage/ofd_packets [23:11:32]CheckFolder done [23:11:32]ProducePacketName [23:11:32]name=ofd_packets/00029713 [23:11:32]NVStorageSaveData ofd_packets/00029713 [23:11:32]File name is /storage/ofd_packets/00029713 [23:11:32]Write 300 bytes [23:11:32]NVStorageSaveData done [23:11:32]OFDSenderStorePacket done [23:11:32]KKMCreateOFDPacket done [23:11:32]NVStorageSaveData kkm_last_timestamp [23:11:32]File name is /storage/kkm_last_timestamp [23:11:32]Write 4 bytes [23:11:32]NVStorageSaveData done [23:11:32]ExternCall_PrintAddStr [23:11:32]wPrintStart [23:11:32]Write to MH i2c: 01 00 00 F6 29 1F [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 07 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 FF 0F 34 [23:11:32]RasterBufferAndPrint [23:11:32]line Счет N : (1)348189 [23:11:32]line ИНН: 02508201610067 [23:11:32]line Контрольно-Кассовый Чек [23:11:32]line ПРОДАЖА [23:11:32]line ТРК (МРК, ГНК) : 71 [23:11:32]line Товар: 2711129700 [23:11:32]line ГАЗ-К-5 [23:11:32]line 41.040 * 33.40 [23:11:32]line = 1370.74 [23:11:32]line НДС 12% НСП 1% [23:11:32]line > о реализуемом товаре [23:11:32]line ОКРУГЛЕНИЕ: -0.74 [23:11:32]line ИТОГО: 1370.00 [23:11:32]line Внесено: 2000.00 [23:11:32]line СДАЧА: 630.00 [23:11:32]line НСП 1% : 12.13 [23:11:32]line НДС 12% : 145.56 [23:11:32]line Наличными: 1370.00 [23:11:32]line Безнал.: 0.00 [23:11:32]line Место: АЗС № 108 "Партнер Нефть" [23:11:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:11:32]line СНО: Общий режим [23:11:32]line Чек 307 15.04.2024 23:11 [23:11:32]line Смена: 117 ФФД: 1.0 [23:11:32]line ЗНМ: 0300000027 [23:11:32]line РНМ: 0000138879044617 [23:11:32]line Версия ККМ: 001 [23:11:32]line ФМ: 0000000000963154 [23:11:32]line ФД: 29713 [23:11:32]line ФПД: 256832851938849 [23:11:32]line 1/tax-web-control/client/api/v1/ticket?date=20240415T231133&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29713&fm=256832851938849&tin=02508201610067®Number=0000138879044617&sum=137000 [23:11:32]OFD Sender: Processing packet 29713 [packets to send 8, broken 7] [23:11:32]ProducePacketName [23:11:32]name=ofd_packets/00029713 [23:11:32]OFD Sender: To server: pG, [23:11:32]CommunicateWithHost lk.salyk.kg:30040 [23:11:32]ConnectInit lk.salyk.kg [23:11:32]written 0, free lines is 4095 [23:11:32]Connected sock=10 [23:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A8 28 06 01 25 E4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 72 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 33 01 00 00 F4 03 04 00 25 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 74 00 00 35 04 06 00 E9 96 8E E8 0E 21 55 3E EA C6 0F 59 A7 57 [23:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B3 E9 47 00 30 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 74 00 00 F4 03 04 00 C4 5E 1D 66 B6 04 01 00 00 1B 89 06 14 C2 3F C8 A7 [23:11:32]CommunicateWithHost err = 0 [23:11:32]CheckOFDResponse [23:11:32]1017 (14) - 77093643461234 [23:11:32]1041 (16) - 0000000000963154 [23:11:32]1040 (4) - 29713 [23:11:32]1012 (4) - 15.04.2024 17:07 [23:11:32]1206 (1) - 0 [23:11:32]OFD Sender: Remove packet 29713 [23:11:32]ProducePacketName [23:11:32]name=ofd_packets/00029713 [23:11:32]NVStorageDeleteData [23:11:32]Write to MH i2c: 01 00 00 20 2A 4A [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 07 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: 01 07 00 20 2A 00 00 00 00 00 C2 0C 1F [23:11:32]RasterBufferAndPrint [23:11:32]line [23:11:32]line [23:11:32]line [23:11:32]line [23:11:32]line [23:11:32]written 0, free lines is 3271 [23:11:32]MH_Cut [23:11:32]Write to MH i2c: D1 01 00 27 2A 01 23 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: D1 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: D1 01 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: D1 01 00 27 2A 00 22 [23:11:32]Write to MH i2c: 01 00 00 28 2A 52 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:33]OFD Sender: No OFD packet to send [23:11:33]*** Cut start [23:11:33]*** Partial cut [23:11:33]*** CUTSNS_PIN = 1 [23:11:33]*** CUTSNS_PIN = 0 [23:11:34]*** Brake cut motor [23:11:34]Read from MH i2c: 01 [23:11:34]MH_I2C_Read... [23:11:34]*** Stop cut motor [23:11:34]*** Cut end [23:11:34]Read from MH i2c: 01 07 00 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: 01 07 00 28 2A 00 00 00 00 00 FF 0F 67 [23:11:34]process_action close_receipt done [23:11:34]requested_data is exist [23:11:34]produce_requested_data [23:11:34]requested_item fm.sn is exist - process it [23:11:34]wFMCommunicate request_size=4 [23:11:34]MH_SAM_APDU [23:11:34]CAPDU: 80 11 00 00 [23:11:34]Write to MH i2c: E2 08 00 29 2A 80 11 00 00 00 00 00 00 CD [23:11:34]Write i2c OK [23:11:34]MH_I2C_Read... [23:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:34]Read from MH i2c: E2 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 17 00 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 17 00 29 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [23:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:11:34]wFMCommunicate OK [23:11:34]requested_item fd.num is exist - process it [23:11:34]SAM_PROTO_GetFieldsCounters [23:11:34]wFMCommunicate request_size=4 [23:11:34]MH_SAM_APDU [23:11:34]CAPDU: 80 13 00 00 [23:11:34]Write to MH i2c: E2 08 00 2A 2A 80 13 00 00 00 00 00 00 D0 [23:11:34]Write i2c OK [23:11:34]MH_I2C_Read... [23:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:34]Read from MH i2c: E2 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 62 00 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 62 00 2A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [23:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:34]wFMCommunicate OK [23:11:34]SAM_PROTO_GetFieldsCounters done [23:11:34]requested_item shift.num is exist - process it [23:11:34]requested_item shift.opened is exist - process it [23:11:34]req_shift_opened [23:11:34]FM_GetShiftState [23:11:34]SAM_PROTO_GetShiftState [23:11:34]wFMCommunicate request_size=4 [23:11:34]MH_SAM_APDU [23:11:34]CAPDU: 80 13 01 00 [23:11:34]Write to MH i2c: E2 08 00 2B 2A 80 13 01 00 00 00 00 00 D2 [23:11:34]Write i2c OK [23:11:34]MH_I2C_Read... [23:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:34]Read from MH i2c: E2 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 0E 00 [23:11:34]MH_I2C_Read... [23:11:34]Read from MH i2c: E2 0E 00 2B 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C6 [23:11:34]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:11:34]wFMCommunicate OK [23:11:34]SAM_PROTO_GetShiftState done [23:11:34]FM_GetShiftState done [23:11:34]req_shift_opened done [23:11:34]requested_item shift.open_date is exist - process it [23:11:34]req_shift_open_date [23:11:34]req_shift_open_date done [23:11:34]produce_requested_data done [23:11:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29713,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:11:34]process_action_free close_receipt [23:11:34]json_value_free [23:11:34]json_value_free done [23:11:34]process_json_proto returns [23:11:34]Send response to host [23:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29713,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:11:34]free response buf [23:11:34]execute_script done [23:11:34]execute_script returns [23:11:34]free content buf [23:11:34]Sock 9.Close socket [23:11:34]Sock 9.Thread stoped [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:00]accept exits with 7 [23:15:00]New connection [23:15:00]New thread 3066965348 created [23:15:00]Thread 3067108708 joined [23:15:00]Waiting for new connection... [23:15:00] Sock 7.Parse request [23:15:00]Sock 7.Check first char [23:15:00]Sock 7.First char is OK [23:15:00]request: POST /json_proto HTTP/1.0 [23:15:00]Method: POST [23:15:00]URL: /json_proto [23:15:00]Method is POST - this is cgi request [23:15:00]url: /json_proto [23:15:00]query_string will be loaded in cgi processing [23:15:00]execute_cgi json_proto POST (null) [23:15:00]execute_cgi path=json_proto method=POST [23:15:00]POST find Content-Length [23:15:00]Host: 172.17.33.3:8080 [23:15:00]Content-Length: 678 [23:15:00]Content-Type: application/json [23:15:00] [23:15:00]POST finish read [23:15:00]Found Content-Length = 678 [23:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [23:15:00]execute_script... [23:15: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)348190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [23:15:00]POST & json_proto [23:15:00]process_json_proto [23:15:00]json parsed OK: [23:15:00]protocol is kg_v1.0 [23:15:00]action value=close_receipt [23:15:00]process_action close_receipt [23:15:00]cmd_close_receipt [23:15:00]MH_GetDate [23:15:00]Write to MH i2c: F0 00 00 2C 2A 45 [23:15:00]Write i2c OK [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: F0 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: F0 09 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: F0 09 00 2C 2A 00 F7 B4 1D 66 23 5B 8F 65 EE [23:15:00]GetLastDocTimeStamp 1713222693 [23:15:00]current date 1713222903 [23:15:00]FM_GetShiftState [23:15:00]SAM_PROTO_GetShiftState [23:15:00]wFMCommunicate request_size=4 [23:15:00]MH_SAM_APDU [23:15:00]CAPDU: 80 13 01 00 [23:15:00]Write to MH i2c: E2 08 00 2D 2A 80 13 01 00 00 00 00 00 D4 [23:15:00]Write i2c OK [23:15:00]MH_I2C_Read... [23:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:00]Read from MH i2c: E2 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 0E 00 [23:15:00]MH_I2C_Read... [23:15:00]Read from MH i2c: E2 0E 00 2D 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 C8 [23:15:00]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:15:00]wFMCommunicate OK [23:15:00]SAM_PROTO_GetShiftState done [23:15:00]FM_GetShiftState done [23:15:00]opened in 1713140468 [23:15:00]opened+sec_in_day 1713226868 [23:15:00]quantity*price = 65059 [23:15:00]sum+1 = 65060 [23:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 308 15.04.2024 23:15 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29714 ФПД: 191032937338452 1/tax-web-control/client/api/v1/ticket?date=20240415T231503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29714&fm=191032937338452&tin=02508201610067®Number=0000138879044617&sum=65000 [23:15:01]StoreToDocumentArchive [23:15:01]shift 117 fd 29714 [23:15:01]save to /storage/0117/doc_00029714 [23:15:01]save last doc name /storage/0117/doc_00029714 to /storage/kkm_last_doc_name [23:15:01]save OK [23:15:01]Clear old archive folders... [23:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:01]tlvbuf is 01A251E0 [23:15:01]SAM_PROTO_ClearQueue [23:15:01]wFMCommunicate request_size=4 [23:15:01]MH_SAM_APDU [23:15:01]CAPDU: 80 09 00 00 [23:15:01]Write to MH i2c: E2 08 00 3A 2A 80 09 00 00 00 00 00 00 D6 [23:15:01]Write i2c OK [23:15:01]MH_I2C_Read... [23:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:01]Read from MH i2c: E2 [23:15:01]MH_I2C_Read... [23:15:01]Read from MH i2c: E2 03 00 [23:15:01]MH_I2C_Read... [23:15:01]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [23:15:01]RAPDU: 90 00 [23:15:01]wFMCommunicate OK [23:15:01]SAM_PROTO_ClearQueue done [23:15:01]KKMCreateOFDPacket [23:15:01]OFDProtocolAddRootSTLVToBuf [23:15:01]FM_MakeSignedData [23:15:01]FM_MakeSignedData [23:15:01]SAM_PROTO_SignData [23:15:01]wFMCommunicate request_size=4 [23:15:01]MH_SAM_APDU [23:15:01]CAPDU: 80 0D 01 02 [23:15:01]Write to MH i2c: E2 08 00 3B 2A 80 0D 01 02 00 00 00 00 DE [23:15:01]Write i2c OK [23:15:01]MH_I2C_Read... [23:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:01]Read from MH i2c: E2 [23:15:01]MH_I2C_Read... [23:15:01]Read from MH i2c: E2 03 00 [23:15:01]MH_I2C_Read... [23:15:01]Read from MH i2c: E2 03 00 3B 2A 00 90 00 D9 [23:15:01]RAPDU: 90 00 [23:15:01]wFMCommunicate OK [23:15:01]wFMCommunicate request_size=255 [23:15:01]MH_SAM_APDU [23:15:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 F7 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 74 00 00 35 04 06 00 AD [23:15:01]Write to MH i2c: E2 02 01 3C 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 F7 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 74 00 00 35 04 06 00 AD 00 00 1C [23:15:01]Write i2c OK [23:15:01]MH_I2C_Read... [23:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:02]Read from MH i2c: E2 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 03 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 03 00 3C 2A 00 90 00 DA [23:15:02]RAPDU: 90 00 [23:15:02]wFMCommunicate OK [23:15:02]wFMCommunicate request_size=10 [23:15:02]MH_SAM_APDU [23:15:02]CAPDU: 80 0D 02 02 05 BE 52 5E D6 54 [23:15:02]Write to MH i2c: E2 0D 00 3D 2A 80 0D 02 02 05 00 BE 52 5E D6 54 00 00 83 [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:02]Read from MH i2c: E2 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 03 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [23:15:02]RAPDU: 90 00 [23:15:02]wFMCommunicate OK [23:15:02]wFMCommunicate request_size=4 [23:15:02]MH_SAM_APDU [23:15:02]CAPDU: 80 0D 03 02 [23:15:02]Write to MH i2c: E2 08 00 3E 2A 80 0D 03 02 00 00 00 00 E3 [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:02]Read from MH i2c: E2 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 0B 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 0B 00 3E 2A 00 A4 F3 8B 50 D4 37 80 50 90 00 31 [23:15:02]RAPDU: A4 F3 8B 50 D4 37 80 50 90 00 [23:15:02]wFMCommunicate OK [23:15:02]SAM_PROTO_SignData done [23:15:02]FM_MakeSignedData done [23:15:02]CreateOFDProtocolMessage [23:15:02]wFMCommunicate request_size=4 [23:15:02]MH_SAM_APDU [23:15:02]CAPDU: 80 11 00 00 [23:15:02]Write to MH i2c: E2 08 00 3F 2A 80 11 00 00 00 00 00 00 E3 [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:02]Read from MH i2c: E2 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 17 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: E2 17 00 3F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [23:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:15:02]wFMCommunicate OK [23:15:02]CreateOFDProtocolMessage done [23:15:02]OFDSenderStorePacket 29714 [23:15:02]StoreOFDPacket docnum=29714 [23:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 E6 07 01 B4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 F7 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 74 00 00 35 04 06 00 AD BE 52 5E D6 54 A4 F3 8B 50 D4 37 80 50 [23:15:02]CheckFolder [23:15:02]dirname=/storage/ofd_packets [23:15:02]CheckFolder done [23:15:02]ProducePacketName [23:15:02]name=ofd_packets/00029714 [23:15:02]NVStorageSaveData ofd_packets/00029714 [23:15:02]File name is /storage/ofd_packets/00029714 [23:15:02]Write 301 bytes [23:15:02]NVStorageSaveData done [23:15:02]OFDSenderStorePacket done [23:15:02]KKMCreateOFDPacket done [23:15:02]NVStorageSaveData kkm_last_timestamp [23:15:02]File name is /storage/kkm_last_timestamp [23:15:02]Write 4 bytes [23:15:02]NVStorageSaveData done [23:15:02]ExternCall_PrintAddStr [23:15:02]wPrintStart [23:15:02]Write to MH i2c: 01 00 00 40 2A 6A [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 07 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [23:15:02]RasterBufferAndPrint [23:15:02]line Счет N : (1)348190 [23:15:02]line ИНН: 02508201610067 [23:15:02]line Контрольно-Кассовый Чек [23:15:02]line ПРОДАЖА [23:15:02]line ТРК (МРК, ГНК) : 23 [23:15:02]line Товар: 2710124130 [23:15:02]line Аи-92-К-5 [23:15:02]line 10.040 * 64.80 [23:15:02]line = 650.59 [23:15:02]line НДС 12% НСП 1% [23:15:02]line > о реализуемом товаре [23:15:02]line ОКРУГЛЕНИЕ: -0.59 [23:15:02]line ИТОГО: 650.00 [23:15:02]line Внесено: 650.00 [23:15:02]line СДАЧА: 0.00 [23:15:02]line НСП 1% : 5.76 [23:15:02]line НДС 12% : 69.09 [23:15:02]line Наличными: 650.00 [23:15:02]line Безнал.: 0.00 [23:15:02]line Место: АЗС № 108 "Партнер Нефть" [23:15:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:15:02]line СНО: Общий режим [23:15:02]line Чек 308 15.04.2024 23:15 [23:15:02]line Смена: 117 ФФД: 1.0 [23:15:02]line ЗНМ: 0300000027 [23:15:02]line РНМ: 0000138879044617 [23:15:02]line Версия ККМ: 001 [23:15:02]line ФМ: 0000000000963154 [23:15:02]line ФД: 29714 [23:15:02]line ФПД: 191032937338452 [23:15:02]line 1/tax-web-control/client/api/v1/ticket?date=20240415T231503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29714&fm=191032937338452&tin=02508201610067®Number=0000138879044617&sum=65000 [23:15:02]OFD Sender: Processing packet 29714 [packets to send 8, broken 7] [23:15:02]ProducePacketName [23:15:02]name=ofd_packets/00029714 [23:15:02]OFD Sender: To server: pG, [23:15:02]CommunicateWithHost lk.salyk.kg:30040 [23:15:02]ConnectInit lk.salyk.kg [23:15:02]written 0, free lines is 4095 [23:15:02]Connected sock=10 [23:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 43 E6 07 01 B4 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 F7 B4 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 74 00 00 35 04 06 00 AD BE 52 5E D6 54 A4 F3 8B 50 D4 37 80 50 [23:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 4D 47 00 A0 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 39 36 33 31 35 34 10 04 04 00 12 74 00 00 F4 03 04 00 96 5F 1D 66 B6 04 01 00 00 64 0B C8 1A DD 45 DE D3 [23:15:02]CommunicateWithHost err = 0 [23:15:02]CheckOFDResponse [23:15:02]1017 (14) - 77093643461234 [23:15:02]1041 (16) - 0000000000963154 [23:15:02]1040 (4) - 29714 [23:15:02]1012 (4) - 15.04.2024 17:10 [23:15:02]1206 (1) - 0 [23:15:02]OFD Sender: Remove packet 29714 [23:15:02]ProducePacketName [23:15:02]name=ofd_packets/00029714 [23:15:02]NVStorageDeleteData [23:15:02]Write to MH i2c: 01 00 00 6A 2A 94 [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 07 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: 01 07 00 6A 2A 00 00 00 00 00 C1 0C 68 [23:15:02]RasterBufferAndPrint [23:15:02]line [23:15:02]line [23:15:02]line [23:15:02]line [23:15:02]line [23:15:02]written 0, free lines is 3270 [23:15:02]MH_Cut [23:15:02]Write to MH i2c: D1 01 00 71 2A 01 6D [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: D1 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: D1 01 00 [23:15:02]MH_I2C_Read... [23:15:02]Read from MH i2c: D1 01 00 71 2A 00 6C [23:15:02]Write to MH i2c: 01 00 00 72 2A 9C [23:15:02]Write i2c OK [23:15:02]MH_I2C_Read... [23:15:03]OFD Sender: No OFD packet to send [23:15:03]*** Cut start [23:15:03]*** Partial cut [23:15:03]*** CUTSNS_PIN = 1 [23:15:03]*** CUTSNS_PIN = 0 [23:15:04]*** Brake cut motor [23:15:04]Read from MH i2c: 01 [23:15:04]MH_I2C_Read... [23:15:04]*** Stop cut motor [23:15:04]*** Cut end [23:15:04]Read from MH i2c: 01 07 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: 01 07 00 72 2A 00 00 00 00 00 FF 0F B1 [23:15:04]process_action close_receipt done [23:15:04]requested_data is exist [23:15:04]produce_requested_data [23:15:04]requested_item fm.sn is exist - process it [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 11 00 00 [23:15:04]Write to MH i2c: E2 08 00 73 2A 80 11 00 00 00 00 00 00 17 [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 17 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 17 00 73 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [23:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:15:04]wFMCommunicate OK [23:15:04]requested_item fd.num is exist - process it [23:15:04]SAM_PROTO_GetFieldsCounters [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 13 00 00 [23:15:04]Write to MH i2c: E2 08 00 74 2A 80 13 00 00 00 00 00 00 1A [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 62 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 62 00 74 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [23:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:04]wFMCommunicate OK [23:15:04]SAM_PROTO_GetFieldsCounters done [23:15:04]requested_item shift.num is exist - process it [23:15:04]requested_item shift.opened is exist - process it [23:15:04]req_shift_opened [23:15:04]FM_GetShiftState [23:15:04]SAM_PROTO_GetShiftState [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 13 01 00 [23:15:04]Write to MH i2c: E2 08 00 75 2A 80 13 01 00 00 00 00 00 1C [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 0E 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 0E 00 75 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 10 [23:15:04]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:15:04]wFMCommunicate OK [23:15:04]SAM_PROTO_GetShiftState done [23:15:04]FM_GetShiftState done [23:15:04]req_shift_opened done [23:15:04]requested_item shift.open_date is exist - process it [23:15:04]req_shift_open_date [23:15:04]req_shift_open_date done [23:15:04]produce_requested_data done [23:15:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29714,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:15:04]process_action_free close_receipt [23:15:04]json_value_free [23:15:04]json_value_free done [23:15:04]process_json_proto returns [23:15:04]Send response to host [23:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29714,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:15:04]free response buf [23:15:04]execute_script done [23:15:04]execute_script returns [23:15:04]free content buf [23:15:04]Sock 7.Close socket [23:15:04]Sock 7.Thread stoped [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:20]accept exits with 9 [23:17:20]New connection [23:17:20]New thread 3067108708 created [23:17:20]Thread 3066965348 joined [23:17:20]Waiting for new connection... [23:17:20] Sock 9.Parse request [23:17:20]Sock 9.Check first char [23:17:20]Sock 9.First char is OK [23:17:20]request: POST /json_proto HTTP/1.0 [23:17:20]Method: POST [23:17:20]URL: /json_proto [23:17:20]Method is POST - this is cgi request [23:17:20]url: /json_proto [23:17:20]query_string will be loaded in cgi processing [23:17:20]execute_cgi json_proto POST (null) [23:17:20]execute_cgi path=json_proto method=POST [23:17:20]POST find Content-Length [23:17:20]Host: 172.17.33.3:8080 [23:17:20]Content-Length: 680 [23:17:20]Content-Type: application/json [23:17:20] [23:17:20]POST finish read [23:17:20]Found Content-Length = 680 [23:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 8.990, "sum" : 300.27, "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:17:20]execute_script... [23:17: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)348191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 8.990, "sum" : 300.27, "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:17:20]POST & json_proto [23:17:20]process_json_proto [23:17:20]json parsed OK: [23:17:20]protocol is kg_v1.0 [23:17:20]action value=close_receipt [23:17:20]process_action close_receipt [23:17:20]cmd_close_receipt [23:17:20]MH_GetDate [23:17:20]Write to MH i2c: F0 00 00 76 2A 8F [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 09 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 09 00 76 2A 00 83 B5 1D 66 23 5B 8F 65 C5 [23:17:20]GetLastDocTimeStamp 1713222903 [23:17:20]current date 1713223043 [23:17:20]FM_GetShiftState [23:17:20]SAM_PROTO_GetShiftState [23:17:20]wFMCommunicate request_size=4 [23:17:20]MH_SAM_APDU [23:17:20]CAPDU: 80 13 01 00 [23:17:20]Write to MH i2c: E2 08 00 77 2A 80 13 01 00 00 00 00 00 1E [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:20]Read from MH i2c: E2 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: E2 0E 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: E2 0E 00 77 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 12 [23:17:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:17:20]wFMCommunicate OK [23:17:20]SAM_PROTO_GetShiftState done [23:17:20]FM_GetShiftState done [23:17:20]opened in 1713140468 [23:17:20]opened+sec_in_day 1713226868 [23:17:20]quantity*price = 30026 [23:17:20]sum+1 = 30028 [23:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 309 15.04.2024 23:17 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29715 ФПД: 27868905997027 1/tax-web-control/client/api/v1/ticket?date=20240415T231723&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29715&fm=27868905997027&tin=02508201610067®Number=0000138879044617&sum=30000 [23:17:22]StoreToDocumentArchive [23:17:22]shift 117 fd 29715 [23:17:22]save to /storage/0117/doc_00029715 [23:17:22]save last doc name /storage/0117/doc_00029715 to /storage/kkm_last_doc_name [23:17:22]save OK [23:17:22]Clear old archive folders... [23:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:17:22]tlvbuf is 01A88300 [23:17:22]SAM_PROTO_ClearQueue [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 09 00 00 [23:17:22]Write to MH i2c: E2 08 00 84 2A 80 09 00 00 00 00 00 00 20 [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 84 2A 00 90 00 22 [23:17:22]RAPDU: 90 00 [23:17:22]wFMCommunicate OK [23:17:22]SAM_PROTO_ClearQueue done [23:17:22]KKMCreateOFDPacket [23:17:22]OFDProtocolAddRootSTLVToBuf [23:17:22]FM_MakeSignedData [23:17:22]FM_MakeSignedData [23:17:22]SAM_PROTO_SignData [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 0D 01 02 [23:17:22]Write to MH i2c: E2 08 00 85 2A 80 0D 01 02 00 00 00 00 28 [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [23:17:22]RAPDU: 90 00 [23:17:22]wFMCommunicate OK [23:17:22]wFMCommunicate request_size=255 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 35 01 00 00 F4 03 04 00 83 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 74 00 00 35 04 06 00 19 58 [23:17:22]Write to MH i2c: E2 02 01 86 2A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 35 01 00 00 F4 03 04 00 83 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 74 00 00 35 04 06 00 19 58 00 00 4D [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 86 2A 00 90 00 24 [23:17:22]RAPDU: 90 00 [23:17:22]wFMCommunicate OK [23:17:22]wFMCommunicate request_size=9 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 0D 02 02 04 BC 3E 02 E3 [23:17:22]Write to MH i2c: E2 0C 00 87 2A 80 0D 02 02 04 00 BC 3E 02 E3 00 00 12 [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 03 00 87 2A 00 90 00 25 [23:17:22]RAPDU: 90 00 [23:17:22]wFMCommunicate OK [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 0D 03 02 [23:17:22]Write to MH i2c: E2 08 00 88 2A 80 0D 03 02 00 00 00 00 2D [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 0B 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 0B 00 88 2A 00 5B FB CA 1D F3 3F CC 4F 90 00 B8 [23:17:22]RAPDU: 5B FB CA 1D F3 3F CC 4F 90 00 [23:17:22]wFMCommunicate OK [23:17:22]SAM_PROTO_SignData done [23:17:22]FM_MakeSignedData done [23:17:22]CreateOFDProtocolMessage [23:17:22]wFMCommunicate request_size=4 [23:17:22]MH_SAM_APDU [23:17:22]CAPDU: 80 11 00 00 [23:17:22]Write to MH i2c: E2 08 00 89 2A 80 11 00 00 00 00 00 00 2D [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:22]Read from MH i2c: E2 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 17 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: E2 17 00 89 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [23:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:17:22]wFMCommunicate OK [23:17:22]CreateOFDProtocolMessage done [23:17:22]OFDSenderStorePacket 29715 [23:17:22]StoreOFDPacket docnum=29715 [23:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D5 3C 06 01 B8 CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 35 01 00 00 F4 03 04 00 83 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 74 00 00 35 04 06 00 19 58 BC 3E 02 E3 5B FB CA 1D F3 3F CC 4F [23:17:22]CheckFolder [23:17:22]dirname=/storage/ofd_packets [23:17:22]CheckFolder done [23:17:22]ProducePacketName [23:17:22]name=ofd_packets/00029715 [23:17:22]NVStorageSaveData ofd_packets/00029715 [23:17:22]File name is /storage/ofd_packets/00029715 [23:17:22]Write 300 bytes [23:17:22]NVStorageSaveData done [23:17:22]OFDSenderStorePacket done [23:17:22]KKMCreateOFDPacket done [23:17:22]NVStorageSaveData kkm_last_timestamp [23:17:22]File name is /storage/kkm_last_timestamp [23:17:22]Write 4 bytes [23:17:22]NVStorageSaveData done [23:17:22]ExternCall_PrintAddStr [23:17:22]wPrintStart [23:17:22]Write to MH i2c: 01 00 00 8A 2A B4 [23:17:22]Write i2c OK [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: 01 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: 01 07 00 [23:17:22]MH_I2C_Read... [23:17:22]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 FF 0F C9 [23:17:22]RasterBufferAndPrint [23:17:22]line Счет N : (1)348191 [23:17:22]line ИНН: 02508201610067 [23:17:22]line Контрольно-Кассовый Чек [23:17:22]line ПРОДАЖА [23:17:22]line ТРК (МРК, ГНК) : 71 [23:17:22]line Товар: 2711129700 [23:17:22]line ГАЗ-К-5 [23:17:22]line 8.990 * 33.40 [23:17:22]line = 300.27 [23:17:22]line НДС 12% НСП 1% [23:17:22]line > о реализуемом товаре [23:17:22]line ОКРУГЛЕНИЕ: -0.27 [23:17:22]line ИТОГО: 300.00 [23:17:22]line Внесено: 300.00 [23:17:22]line СДАЧА: 0.00 [23:17:22]line НСП 1% : 2.66 [23:17:22]line НДС 12% : 31.89 [23:17:22]line Наличными: 300.00 [23:17:22]line Безнал.: 0.00 [23:17:22]line Место: АЗС № 108 "Партнер Нефть" [23:17:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:17:22]line СНО: Общий режим [23:17:22]line Чек 309 15.04.2024 23:17 [23:17:22]line Смена: 117 ФФД: 1.0 [23:17:22]line ЗНМ: 0300000027 [23:17:22]line РНМ: 0000138879044617 [23:17:22]line Версия ККМ: 001 [23:17:22]line ФМ: 0000000000963154 [23:17:22]line ФД: 29715 [23:17:22]line ФПД: 27868905997027 [23:17:22]line 1/tax-web-control/client/api/v1/ticket?date=20240415T231723&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29715&fm=27868905997027&tin=02508201610067®Number=0000138879044617&sum=30000 [23:17:22]OFD Sender: Processing packet 29715 [packets to send 8, broken 7] [23:17:22]ProducePacketName [23:17:22]name=ofd_packets/00029715 [23:17:22]OFD Sender: To server: pG, [23:17:22]CommunicateWithHost lk.salyk.kg:30040 [23:17:22]ConnectInit lk.salyk.kg [23:17:22]written 0, free lines is 4095 [23:17:23]Connected sock=10 [23:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D5 3C 06 01 B8 CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 4B 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 35 01 00 00 F4 03 04 00 83 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 74 00 00 35 04 06 00 19 58 BC 3E 02 E3 5B FB CA 1D F3 3F CC 4F [23:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 11 00 47 00 AB 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 39 36 33 31 35 34 10 04 04 00 13 74 00 00 F4 03 04 00 23 60 1D 66 B6 04 01 00 00 3B 96 21 84 18 BA A8 87 [23:17:23]CommunicateWithHost err = 0 [23:17:23]CheckOFDResponse [23:17:23]1017 (14) - 77093643461234 [23:17:23]1041 (16) - 0000000000963154 [23:17:23]1040 (4) - 29715 [23:17:23]1012 (4) - 15.04.2024 17:13 [23:17:23]1206 (1) - 0 [23:17:23]OFD Sender: Remove packet 29715 [23:17:23]ProducePacketName [23:17:23]name=ofd_packets/00029715 [23:17:23]NVStorageDeleteData [23:17:23]Write to MH i2c: 01 00 00 B4 2A DE [23:17:23]Write i2c OK [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: 01 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: 01 07 00 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: 01 07 00 B4 2A 00 00 00 00 00 C2 0C B3 [23:17:23]RasterBufferAndPrint [23:17:23]line [23:17:23]line [23:17:23]line [23:17:23]line [23:17:23]line [23:17:23]written 0, free lines is 3272 [23:17:23]MH_Cut [23:17:23]Write to MH i2c: D1 01 00 BB 2A 01 B7 [23:17:23]Write i2c OK [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: D1 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: D1 01 00 [23:17:23]MH_I2C_Read... [23:17:23]Read from MH i2c: D1 01 00 BB 2A 00 B6 [23:17:23]Write to MH i2c: 01 00 00 BC 2A E6 [23:17:23]Write i2c OK [23:17:23]MH_I2C_Read... [23:17:23]OFD Sender: No OFD packet to send [23:17:24]*** Cut start [23:17:24]*** Partial cut [23:17:24]*** CUTSNS_PIN = 1 [23:17:24]*** CUTSNS_PIN = 0 [23:17:24]*** Brake cut motor [23:17:24]Read from MH i2c: 01 [23:17:24]MH_I2C_Read... [23:17:24]*** Stop cut motor [23:17:24]*** Cut end [23:17:24]Read from MH i2c: 01 07 00 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: 01 07 00 BC 2A 00 00 00 00 00 FF 0F FB [23:17:24]process_action close_receipt done [23:17:24]requested_data is exist [23:17:24]produce_requested_data [23:17:24]requested_item fm.sn is exist - process it [23:17:24]wFMCommunicate request_size=4 [23:17:24]MH_SAM_APDU [23:17:24]CAPDU: 80 11 00 00 [23:17:24]Write to MH i2c: E2 08 00 BD 2A 80 11 00 00 00 00 00 00 61 [23:17:24]Write i2c OK [23:17:24]MH_I2C_Read... [23:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:24]Read from MH i2c: E2 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: E2 17 00 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: E2 17 00 BD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [23:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:17:24]wFMCommunicate OK [23:17:24]requested_item fd.num is exist - process it [23:17:24]SAM_PROTO_GetFieldsCounters [23:17:24]wFMCommunicate request_size=4 [23:17:24]MH_SAM_APDU [23:17:24]CAPDU: 80 13 00 00 [23:17:24]Write to MH i2c: E2 08 00 BE 2A 80 13 00 00 00 00 00 00 64 [23:17:24]Write i2c OK [23:17:24]MH_I2C_Read... [23:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:25]Read from MH i2c: E2 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 62 00 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 62 00 BE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:25]wFMCommunicate OK [23:17:25]SAM_PROTO_GetFieldsCounters done [23:17:25]requested_item shift.num is exist - process it [23:17:25]requested_item shift.opened is exist - process it [23:17:25]req_shift_opened [23:17:25]FM_GetShiftState [23:17:25]SAM_PROTO_GetShiftState [23:17:25]wFMCommunicate request_size=4 [23:17:25]MH_SAM_APDU [23:17:25]CAPDU: 80 13 01 00 [23:17:25]Write to MH i2c: E2 08 00 BF 2A 80 13 01 00 00 00 00 00 66 [23:17:25]Write i2c OK [23:17:25]MH_I2C_Read... [23:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:25]Read from MH i2c: E2 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 0E 00 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 0E 00 BF 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5A [23:17:25]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:17:25]wFMCommunicate OK [23:17:25]SAM_PROTO_GetShiftState done [23:17:25]FM_GetShiftState done [23:17:25]req_shift_opened done [23:17:25]requested_item shift.open_date is exist - process it [23:17:25]req_shift_open_date [23:17:25]req_shift_open_date done [23:17:25]produce_requested_data done [23:17:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29715,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:17:25]process_action_free close_receipt [23:17:25]json_value_free [23:17:25]json_value_free done [23:17:25]process_json_proto returns [23:17:25]Send response to host [23:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29715,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:17:25]free response buf [23:17:25]execute_script done [23:17:25]execute_script returns [23:17:25]free content buf [23:17:25]Sock 9.Close socket [23:17:25]Sock 9.Thread stoped [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:18:59]accept exits with 7 [23:18:59]New connection [23:18:59]New thread 3066965348 created [23:18:59]Thread 3067108708 joined [23:18:59]Waiting for new connection... [23:18:59] Sock 7.Parse request [23:18:59]Sock 7.Check first char [23:18:59]Sock 7.First char is OK [23:18:59]request: POST /json_proto HTTP/1.0 [23:18:59]Method: POST [23:18:59]URL: /json_proto [23:18:59]Method is POST - this is cgi request [23:18:59]url: /json_proto [23:18:59]query_string will be loaded in cgi processing [23:18:59]execute_cgi json_proto POST (null) [23:18:59]execute_cgi path=json_proto method=POST [23:18:59]POST find Content-Length [23:18:59]Host: 172.17.33.3:8080 [23:18:59]Content-Length: 677 [23:18:59]Content-Type: application/json [23:18:59] [23:18:59]POST finish read [23:18:59]Found Content-Length = 677 [23:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:18:59]execute_script... [23:18: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)348192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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:18:59]POST & json_proto [23:18:59]process_json_proto [23:18:59]json parsed OK: [23:18:59]protocol is kg_v1.0 [23:18:59]action value=close_receipt [23:18:59]process_action close_receipt [23:18:59]cmd_close_receipt [23:18:59]MH_GetDate [23:18:59]Write to MH i2c: F0 00 00 C0 2A D9 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: F0 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: F0 09 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: F0 09 00 C0 2A 00 E6 B5 1D 66 23 5B 8F 65 72 [23:18:59]GetLastDocTimeStamp 1713223043 [23:18:59]current date 1713223142 [23:18:59]FM_GetShiftState [23:18:59]SAM_PROTO_GetShiftState [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 13 01 00 [23:18:59]Write to MH i2c: E2 08 00 C1 2A 80 13 01 00 00 00 00 00 68 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 0E 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 0E 00 C1 2A 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 5C [23:18:59]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:18:59]wFMCommunicate OK [23:18:59]SAM_PROTO_GetShiftState done [23:18:59]FM_GetShiftState done [23:18:59]opened in 1713140468 [23:18:59]opened+sec_in_day 1713226868 [23:18:59]quantity*price = 30002 [23:18:59]sum+1 = 30003 [23:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 310 15.04.2024 23:19 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29716 ФПД: 55485810207970 1/tax-web-control/client/api/v1/ticket?date=20240415T231902&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29716&fm=55485810207970&tin=02508201610067®Number=0000138879044617&sum=30000 [23:19:00]StoreToDocumentArchive [23:19:00]shift 117 fd 29716 [23:19:00]save to /storage/0117/doc_00029716 [23:19:00]save last doc name /storage/0117/doc_00029716 to /storage/kkm_last_doc_name [23:19:00]save OK [23:19:00]Clear old archive folders... [23:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:00]tlvbuf is 01ABD200 [23:19:00]SAM_PROTO_ClearQueue [23:19:00]wFMCommunicate request_size=4 [23:19:00]MH_SAM_APDU [23:19:00]CAPDU: 80 09 00 00 [23:19:00]Write to MH i2c: E2 08 00 CE 2A 80 09 00 00 00 00 00 00 6A [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:00]Read from MH i2c: E2 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 03 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [23:19:00]RAPDU: 90 00 [23:19:00]wFMCommunicate OK [23:19:00]SAM_PROTO_ClearQueue done [23:19:00]KKMCreateOFDPacket [23:19:00]OFDProtocolAddRootSTLVToBuf [23:19:00]FM_MakeSignedData [23:19:00]FM_MakeSignedData [23:19:00]SAM_PROTO_SignData [23:19:00]wFMCommunicate request_size=4 [23:19:00]MH_SAM_APDU [23:19:00]CAPDU: 80 0D 01 02 [23:19:00]Write to MH i2c: E2 08 00 CF 2A 80 0D 01 02 00 00 00 00 72 [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:00]Read from MH i2c: E2 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 03 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 03 00 CF 2A 00 90 00 6D [23:19:00]RAPDU: 90 00 [23:19:00]wFMCommunicate OK [23:19:00]wFMCommunicate request_size=255 [23:19:00]MH_SAM_APDU [23:19: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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 36 01 00 00 F4 03 04 00 E6 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 74 00 00 35 04 06 00 32 [23:19:00]Write to MH i2c: E2 02 01 D0 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 36 01 00 00 F4 03 04 00 E6 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 74 00 00 35 04 06 00 32 00 00 27 [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 D0 2A 00 90 00 6E [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=10 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 02 02 05 76 CC 01 EC E2 [23:19:01]Write to MH i2c: E2 0D 00 D1 2A 80 0D 02 02 05 00 76 CC 01 EC E2 00 00 90 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 D1 2A 00 90 00 6F [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 03 02 [23:19:01]Write to MH i2c: E2 08 00 D2 2A 80 0D 03 02 00 00 00 00 77 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 0B 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 0B 00 D2 2A 00 B4 18 E8 B2 23 17 68 E4 90 00 64 [23:19:01]RAPDU: B4 18 E8 B2 23 17 68 E4 90 00 [23:19:01]wFMCommunicate OK [23:19:01]SAM_PROTO_SignData done [23:19:01]FM_MakeSignedData done [23:19:01]CreateOFDProtocolMessage [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 11 00 00 [23:19:01]Write to MH i2c: E2 08 00 D3 2A 80 11 00 00 00 00 00 00 77 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 17 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 17 00 D3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [23:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:19:01]wFMCommunicate OK [23:19:01]CreateOFDProtocolMessage done [23:19:01]OFDSenderStorePacket 29716 [23:19:01]StoreOFDPacket docnum=29716 [23:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 51 07 01 73 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 36 01 00 00 F4 03 04 00 E6 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 74 00 00 35 04 06 00 32 76 CC 01 EC E2 B4 18 E8 B2 23 17 68 E4 [23:19:01]CheckFolder [23:19:01]dirname=/storage/ofd_packets [23:19:01]CheckFolder done [23:19:01]ProducePacketName [23:19:01]name=ofd_packets/00029716 [23:19:01]NVStorageSaveData ofd_packets/00029716 [23:19:01]File name is /storage/ofd_packets/00029716 [23:19:01]Write 301 bytes [23:19:01]NVStorageSaveData done [23:19:01]OFDSenderStorePacket done [23:19:01]KKMCreateOFDPacket done [23:19:01]NVStorageSaveData kkm_last_timestamp [23:19:01]File name is /storage/kkm_last_timestamp [23:19:01]Write 4 bytes [23:19:01]NVStorageSaveData done [23:19:01]ExternCall_PrintAddStr [23:19:01]wPrintStart [23:19:01]Write to MH i2c: 01 00 00 D4 2A FE [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 07 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [23:19:01]RasterBufferAndPrint [23:19:01]line Счет N : (1)348192 [23:19:01]line ИНН: 02508201610067 [23:19:01]line Контрольно-Кассовый Чек [23:19:01]line ПРОДАЖА [23:19:01]line ТРК (МРК, ГНК) : 32 [23:19:01]line Товар: 2710124130 [23:19:01]line Аи-92-К-5 [23:19:01]line 4.630 * 64.80 [23:19:01]line = 300.02 [23:19:01]line НДС 12% НСП 1% [23:19:01]line > о реализуемом товаре [23:19:01]line ОКРУГЛЕНИЕ: -0.02 [23:19:01]line ИТОГО: 300.00 [23:19:01]line Внесено: 300.00 [23:19:01]line СДАЧА: 0.00 [23:19:01]line НСП 1% : 2.65 [23:19:01]line НДС 12% : 31.86 [23:19:01]line Наличными: 300.00 [23:19:01]line Безнал.: 0.00 [23:19:01]line Место: АЗС № 108 "Партнер Нефть" [23:19:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:19:01]line СНО: Общий режим [23:19:01]line Чек 310 15.04.2024 23:19 [23:19:01]line Смена: 117 ФФД: 1.0 [23:19:01]line ЗНМ: 0300000027 [23:19:01]line РНМ: 0000138879044617 [23:19:01]line Версия ККМ: 001 [23:19:01]line ФМ: 0000000000963154 [23:19:01]line ФД: 29716 [23:19:01]line ФПД: 55485810207970 [23:19:01]line 1/tax-web-control/client/api/v1/ticket?date=20240415T231902&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29716&fm=55485810207970&tin=02508201610067®Number=0000138879044617&sum=30000 [23:19:01]OFD Sender: Processing packet 29716 [packets to send 8, broken 7] [23:19:01]ProducePacketName [23:19:01]name=ofd_packets/00029716 [23:19:01]OFD Sender: To server: pG, [23:19:01]CommunicateWithHost lk.salyk.kg:30040 [23:19:01]ConnectInit lk.salyk.kg [23:19:01]written 0, free lines is 4095 [23:19:01]Connected sock=10 [23:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 51 07 01 73 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 36 01 00 00 F4 03 04 00 E6 B5 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 74 00 00 35 04 06 00 32 76 CC 01 EC E2 B4 18 E8 B2 23 17 68 E4 [23:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A8 91 47 00 B0 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 39 36 33 31 35 34 10 04 04 00 14 74 00 00 F4 03 04 00 85 60 1D 66 B6 04 01 00 00 12 42 F7 87 2B B4 85 3C [23:19:01]CommunicateWithHost err = 0 [23:19:01]CheckOFDResponse [23:19:01]1017 (14) - 77093643461234 [23:19:01]1041 (16) - 0000000000963154 [23:19:01]1040 (4) - 29716 [23:19:01]1012 (4) - 15.04.2024 17:14 [23:19:01]1206 (1) - 0 [23:19:01]OFD Sender: Remove packet 29716 [23:19:01]ProducePacketName [23:19:01]name=ofd_packets/00029716 [23:19:01]NVStorageDeleteData [23:19:02]Write to MH i2c: 01 00 00 FE 2A 28 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 07 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 07 00 FE 2A 00 00 00 00 00 C2 0C FD [23:19:02]RasterBufferAndPrint [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]written 0, free lines is 3272 [23:19:02]MH_Cut [23:19:02]Write to MH i2c: D1 01 00 05 2B 01 02 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 01 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 01 00 05 2B 00 01 [23:19:02]Write to MH i2c: 01 00 00 06 2B 31 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]OFD Sender: No OFD packet to send [23:19:02]*** Cut start [23:19:02]*** Partial cut [23:19:02]*** CUTSNS_PIN = 1 [23:19:02]*** CUTSNS_PIN = 0 [23:19:03]*** Brake cut motor [23:19:03]Read from MH i2c: 01 [23:19:03]MH_I2C_Read... [23:19:03]*** Stop cut motor [23:19:03]*** Cut end [23:19:03]Read from MH i2c: 01 07 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: 01 07 00 06 2B 00 00 00 00 00 FF 0F 46 [23:19:03]process_action close_receipt done [23:19:03]requested_data is exist [23:19:03]produce_requested_data [23:19:03]requested_item fm.sn is exist - process it [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 11 00 00 [23:19:03]Write to MH i2c: E2 08 00 07 2B 80 11 00 00 00 00 00 00 AC [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 17 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 17 00 07 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [23:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:19:03]wFMCommunicate OK [23:19:03]requested_item fd.num is exist - process it [23:19:03]SAM_PROTO_GetFieldsCounters [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 13 00 00 [23:19:03]Write to MH i2c: E2 08 00 08 2B 80 13 00 00 00 00 00 00 AF [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 62 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 62 00 08 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [23:19:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:03]wFMCommunicate OK [23:19:03]SAM_PROTO_GetFieldsCounters done [23:19:03]requested_item shift.num is exist - process it [23:19:03]requested_item shift.opened is exist - process it [23:19:03]req_shift_opened [23:19:03]FM_GetShiftState [23:19:03]SAM_PROTO_GetShiftState [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 13 01 00 [23:19:03]Write to MH i2c: E2 08 00 09 2B 80 13 01 00 00 00 00 00 B1 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 0E 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 0E 00 09 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A5 [23:19:03]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:19:03]wFMCommunicate OK [23:19:03]SAM_PROTO_GetShiftState done [23:19:03]FM_GetShiftState done [23:19:03]req_shift_opened done [23:19:03]requested_item shift.open_date is exist - process it [23:19:03]req_shift_open_date [23:19:03]req_shift_open_date done [23:19:03]produce_requested_data done [23:19:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29716,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:19:03]process_action_free close_receipt [23:19:03]json_value_free [23:19:03]json_value_free done [23:19:03]process_json_proto returns [23:19:03]Send response to host [23:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29716,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:19:03]free response buf [23:19:03]execute_script done [23:19:03]execute_script returns [23:19:03]free content buf [23:19:03]Sock 7.Close socket [23:19:03]Sock 7.Thread stoped [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:16]accept exits with 9 [23:23:16]New connection [23:23:16]New thread 3067108708 created [23:23:16]Thread 3066965348 joined [23:23:16]Waiting for new connection... [23:23:16] Sock 9.Parse request [23:23:16]Sock 9.Check first char [23:23:16]Sock 9.First char is OK [23:23:16]request: POST /json_proto HTTP/1.0 [23:23:16]Method: POST [23:23:16]URL: /json_proto [23:23:16]Method is POST - this is cgi request [23:23:16]url: /json_proto [23:23:16]query_string will be loaded in cgi processing [23:23:16]execute_cgi json_proto POST (null) [23:23:16]execute_cgi path=json_proto method=POST [23:23:16]POST find Content-Length [23:23:16]Host: 172.17.33.3:8080 [23:23:16]Content-Length: 670 [23:23:16]Content-Type: application/json [23:23:16] [23:23:16]POST finish read [23:23:16]Found Content-Length = 670 [23:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [23:23:16]execute_script... [23:23: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)348193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [23:23:16]POST & json_proto [23:23:16]process_json_proto [23:23:16]json parsed OK: [23:23:16]protocol is kg_v1.0 [23:23:16]action value=close_receipt [23:23:16]process_action close_receipt [23:23:16]cmd_close_receipt [23:23:16]MH_GetDate [23:23:16]Write to MH i2c: F0 00 00 0A 2B 24 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: F0 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: F0 09 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: F0 09 00 0A 2B 00 E7 B6 1D 66 23 5B 8F 65 BF [23:23:16]GetLastDocTimeStamp 1713223142 [23:23:16]current date 1713223399 [23:23:16]FM_GetShiftState [23:23:16]SAM_PROTO_GetShiftState [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 13 01 00 [23:23:16]Write to MH i2c: E2 08 00 0B 2B 80 13 01 00 00 00 00 00 B3 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 0B 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A7 [23:23:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:23:16]wFMCommunicate OK [23:23:16]SAM_PROTO_GetShiftState done [23:23:16]FM_GetShiftState done [23:23:16]opened in 1713140468 [23:23:16]opened+sec_in_day 1713226868 [23:23:16]quantity*price = 60009 [23:23:16]sum+1 = 60011 [23:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 311 15.04.2024 23:23 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29717 ФПД: 13775299315509 1/tax-web-control/client/api/v1/ticket?date=20240415T232319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29717&fm=13775299315509&tin=02508201610067®Number=0000138879044617&sum=60000 [23:23:18]StoreToDocumentArchive [23:23:18]shift 117 fd 29717 [23:23:18]save to /storage/0117/doc_00029717 [23:23:18]save last doc name /storage/0117/doc_00029717 to /storage/kkm_last_doc_name [23:23:18]save OK [23:23:18]Clear old archive folders... [23:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:23:18]tlvbuf is 01A884B0 [23:23:18]SAM_PROTO_ClearQueue [23:23:18]wFMCommunicate request_size=4 [23:23:18]MH_SAM_APDU [23:23:18]CAPDU: 80 09 00 00 [23:23:18]Write to MH i2c: E2 08 00 18 2B 80 09 00 00 00 00 00 00 B5 [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 18 2B 00 90 00 B7 [23:23:18]RAPDU: 90 00 [23:23:18]wFMCommunicate OK [23:23:18]SAM_PROTO_ClearQueue done [23:23:18]KKMCreateOFDPacket [23:23:18]OFDProtocolAddRootSTLVToBuf [23:23:18]FM_MakeSignedData [23:23:18]FM_MakeSignedData [23:23:18]SAM_PROTO_SignData [23:23:18]wFMCommunicate request_size=4 [23:23:18]MH_SAM_APDU [23:23:18]CAPDU: 80 0D 01 02 [23:23:18]Write to MH i2c: E2 08 00 19 2B 80 0D 01 02 00 00 00 00 BD [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 19 2B 00 90 00 B8 [23:23:18]RAPDU: 90 00 [23:23:18]wFMCommunicate OK [23:23:18]wFMCommunicate request_size=255 [23:23:18]MH_SAM_APDU [23:23: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E7 B6 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 74 00 00 35 04 06 00 [23:23:18]Write to MH i2c: E2 02 01 1A 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E7 B6 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 74 00 00 35 04 06 00 00 00 6E [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 1A 2B 00 90 00 B9 [23:23:18]RAPDU: 90 00 [23:23:18]wFMCommunicate OK [23:23:18]wFMCommunicate request_size=11 [23:23:18]MH_SAM_APDU [23:23:18]CAPDU: 80 0D 02 02 06 0C 87 4F D2 87 35 [23:23:18]Write to MH i2c: E2 0E 00 1B 2B 80 0D 02 02 06 00 0C 87 4F D2 87 35 00 00 3C [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 03 00 1B 2B 00 90 00 BA [23:23:18]RAPDU: 90 00 [23:23:18]wFMCommunicate OK [23:23:18]wFMCommunicate request_size=4 [23:23:18]MH_SAM_APDU [23:23:18]CAPDU: 80 0D 03 02 [23:23:18]Write to MH i2c: E2 08 00 1C 2B 80 0D 03 02 00 00 00 00 C2 [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 0B 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 0B 00 1C 2B 00 7A FF BB 24 E3 7D 24 26 90 00 C5 [23:23:18]RAPDU: 7A FF BB 24 E3 7D 24 26 90 00 [23:23:18]wFMCommunicate OK [23:23:18]SAM_PROTO_SignData done [23:23:18]FM_MakeSignedData done [23:23:18]CreateOFDProtocolMessage [23:23:18]wFMCommunicate request_size=4 [23:23:18]MH_SAM_APDU [23:23:18]CAPDU: 80 11 00 00 [23:23:18]Write to MH i2c: E2 08 00 1D 2B 80 11 00 00 00 00 00 00 C2 [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:18]Read from MH i2c: E2 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 17 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: E2 17 00 1D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [23:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:23:18]wFMCommunicate OK [23:23:18]CreateOFDProtocolMessage done [23:23:18]OFDSenderStorePacket 29717 [23:23:18]StoreOFDPacket docnum=29717 [23:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BB 94 08 01 FA 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E7 B6 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 74 00 00 35 04 06 00 0C 87 4F D2 87 35 7A FF BB 24 E3 7D 24 26 [23:23:18]CheckFolder [23:23:18]dirname=/storage/ofd_packets [23:23:18]CheckFolder done [23:23:18]ProducePacketName [23:23:18]name=ofd_packets/00029717 [23:23:18]NVStorageSaveData ofd_packets/00029717 [23:23:18]File name is /storage/ofd_packets/00029717 [23:23:18]Write 302 bytes [23:23:18]NVStorageSaveData done [23:23:18]OFDSenderStorePacket done [23:23:18]KKMCreateOFDPacket done [23:23:18]NVStorageSaveData kkm_last_timestamp [23:23:18]File name is /storage/kkm_last_timestamp [23:23:18]Write 4 bytes [23:23:18]NVStorageSaveData done [23:23:18]ExternCall_PrintAddStr [23:23:18]wPrintStart [23:23:18]Write to MH i2c: 01 00 00 1E 2B 49 [23:23:18]Write i2c OK [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: 01 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: 01 07 00 [23:23:18]MH_I2C_Read... [23:23:18]Read from MH i2c: 01 07 00 1E 2B 00 00 00 00 00 FF 0F 5E [23:23:18]RasterBufferAndPrint [23:23:18]line Счет N : (1)348193 [23:23:18]line ИНН: 02508201610067 [23:23:18]line Контрольно-Кассовый Чек [23:23:18]line ПРОДАЖА [23:23:18]line ТРК (МРК, ГНК) : 31 [23:23:18]line Товар: 2710124130 [23:23:18]line SUPER-92-К-5 [23:23:18]line 9.120 * 65.80 [23:23:18]line = 600.10 [23:23:18]line НДС 12% НСП 1% [23:23:18]line > о реализуемом товаре [23:23:18]line ОКРУГЛЕНИЕ: -0.10 [23:23:18]line ИТОГО: 600.00 [23:23:18]line Внесено: 600.00 [23:23:18]line СДАЧА: 0.00 [23:23:18]line НСП 1% : 5.31 [23:23:18]line НДС 12% : 63.73 [23:23:18]line Наличными: 600.00 [23:23:18]line Безнал.: 0.00 [23:23:18]line Место: АЗС № 108 "Партнер Нефть" [23:23:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:23:18]line СНО: Общий режим [23:23:18]line Чек 311 15.04.2024 23:23 [23:23:18]line Смена: 117 ФФД: 1.0 [23:23:18]line ЗНМ: 0300000027 [23:23:18]line РНМ: 0000138879044617 [23:23:18]line Версия ККМ: 001 [23:23:18]line ФМ: 0000000000963154 [23:23:18]line ФД: 29717 [23:23:18]line ФПД: 13775299315509 [23:23:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T232319&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29717&fm=13775299315509&tin=02508201610067®Number=0000138879044617&sum=60000 [23:23:18]OFD Sender: Processing packet 29717 [packets to send 8, broken 7] [23:23:18]ProducePacketName [23:23:18]name=ofd_packets/00029717 [23:23:18]OFD Sender: To server: pG, [23:23:18]CommunicateWithHost lk.salyk.kg:30040 [23:23:18]ConnectInit lk.salyk.kg [23:23:18]written 0, free lines is 4095 [23:23:18]Connected sock=10 [23:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BB 94 08 01 FA 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E7 B6 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 74 00 00 35 04 06 00 0C 87 4F D2 87 35 7A FF BB 24 E3 7D 24 26 [23:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4E 6A 47 00 33 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 39 36 33 31 35 34 10 04 04 00 15 74 00 00 F4 03 04 00 87 61 1D 66 B6 04 01 00 00 28 B4 F2 3D 66 D9 21 D3 [23:23:19]CommunicateWithHost err = 0 [23:23:19]CheckOFDResponse [23:23:19]1017 (14) - 77093643461234 [23:23:19]1041 (16) - 0000000000963154 [23:23:19]1040 (4) - 29717 [23:23:19]1012 (4) - 15.04.2024 17:19 [23:23:19]1206 (1) - 0 [23:23:19]OFD Sender: Remove packet 29717 [23:23:19]ProducePacketName [23:23:19]name=ofd_packets/00029717 [23:23:19]NVStorageDeleteData [23:23:19]Write to MH i2c: 01 00 00 48 2B 73 [23:23:19]Write i2c OK [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: 01 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: 01 07 00 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: 01 07 00 48 2B 00 00 00 00 00 C2 0C 48 [23:23:19]RasterBufferAndPrint [23:23:19]line [23:23:19]line [23:23:19]line [23:23:19]line [23:23:19]line [23:23:19]written 0, free lines is 3272 [23:23:19]MH_Cut [23:23:19]Write to MH i2c: D1 01 00 4F 2B 01 4C [23:23:19]Write i2c OK [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: D1 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: D1 01 00 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: D1 01 00 4F 2B 00 4B [23:23:19]Write to MH i2c: 01 00 00 50 2B 7B [23:23:19]Write i2c OK [23:23:19]MH_I2C_Read... [23:23:19]OFD Sender: No OFD packet to send [23:23:20]*** Cut start [23:23:20]*** Partial cut [23:23:20]*** CUTSNS_PIN = 1 [23:23:20]*** CUTSNS_PIN = 0 [23:23:20]*** Brake cut motor [23:23:20]Read from MH i2c: 01 [23:23:20]MH_I2C_Read... [23:23:20]*** Stop cut motor [23:23:20]*** Cut end [23:23:20]Read from MH i2c: 01 07 00 [23:23:20]MH_I2C_Read... [23:23:20]Read from MH i2c: 01 07 00 50 2B 00 00 00 00 00 FF 0F 90 [23:23:20]process_action close_receipt done [23:23:20]requested_data is exist [23:23:20]produce_requested_data [23:23:20]requested_item fm.sn is exist - process it [23:23:20]wFMCommunicate request_size=4 [23:23:20]MH_SAM_APDU [23:23:20]CAPDU: 80 11 00 00 [23:23:20]Write to MH i2c: E2 08 00 51 2B 80 11 00 00 00 00 00 00 F6 [23:23:20]Write i2c OK [23:23:20]MH_I2C_Read... [23:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:20]Read from MH i2c: E2 [23:23:20]MH_I2C_Read... [23:23:20]Read from MH i2c: E2 17 00 [23:23:20]MH_I2C_Read... [23:23:20]Read from MH i2c: E2 17 00 51 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [23:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:23:20]wFMCommunicate OK [23:23:20]requested_item fd.num is exist - process it [23:23:20]SAM_PROTO_GetFieldsCounters [23:23:20]wFMCommunicate request_size=4 [23:23:20]MH_SAM_APDU [23:23:20]CAPDU: 80 13 00 00 [23:23:20]Write to MH i2c: E2 08 00 52 2B 80 13 00 00 00 00 00 00 F9 [23:23:20]Write i2c OK [23:23:20]MH_I2C_Read... [23:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:20]Read from MH i2c: E2 [23:23:20]MH_I2C_Read... [23:23:20]Read from MH i2c: E2 62 00 [23:23:20]MH_I2C_Read... [23:23:20]Read from MH i2c: E2 62 00 52 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:20]wFMCommunicate OK [23:23:20]SAM_PROTO_GetFieldsCounters done [23:23:20]requested_item shift.num is exist - process it [23:23:20]requested_item shift.opened is exist - process it [23:23:20]req_shift_opened [23:23:20]FM_GetShiftState [23:23:20]SAM_PROTO_GetShiftState [23:23:20]wFMCommunicate request_size=4 [23:23:20]MH_SAM_APDU [23:23:20]CAPDU: 80 13 01 00 [23:23:20]Write to MH i2c: E2 08 00 53 2B 80 13 01 00 00 00 00 00 FB [23:23:20]Write i2c OK [23:23:20]MH_I2C_Read... [23:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0E 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0E 00 53 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 EF [23:23:21]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:23:21]wFMCommunicate OK [23:23:21]SAM_PROTO_GetShiftState done [23:23:21]FM_GetShiftState done [23:23:21]req_shift_opened done [23:23:21]requested_item shift.open_date is exist - process it [23:23:21]req_shift_open_date [23:23:21]req_shift_open_date done [23:23:21]produce_requested_data done [23:23:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29717,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:23:21]process_action_free close_receipt [23:23:21]json_value_free [23:23:21]json_value_free done [23:23:21]process_json_proto returns [23:23:21]Send response to host [23:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29717,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:23:21]free response buf [23:23:21]execute_script done [23:23:21]execute_script returns [23:23:21]free content buf [23:23:21]Sock 9.Close socket [23:23:21]Sock 9.Thread stoped [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 54 2B 7F [23:27:07]*** FLAG_PRN_KEY set [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 54 2B 00 08 00 00 00 FF 0F 9C [23:27:07]state=0 [23:27:07]Key pressed [23:27:07]Feed [23:27:07]Write to MH i2c: D8 00 00 55 2B 57 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 55 2B 00 58 [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 56 2B 81 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 56 2B 00 48 00 00 00 3C 00 0C [23:27:07]state=2 [23:27:07]Key pressed [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 57 2B 82 [23:27:07]*** FLAG_PRN_KEY reset [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 57 2B 00 00 00 00 00 F5 0F 8D [23:27:07]state=2 [23:27:07]Stop feed [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 58 2B 83 [23:27:07]*** FLAG_PRN_KEY set [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 58 2B 00 08 00 00 00 FF 0F A0 [23:27:07]state=0 [23:27:07]Key pressed [23:27:07]Feed [23:27:07]Write to MH i2c: D8 00 00 59 2B 5B [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 59 2B 00 5C [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 5A 2B 85 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 5A 2B 00 48 00 00 00 3C 00 10 [23:27:07]state=2 [23:27:07]Key pressed [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 5B 2B 86 [23:27:07]*** FLAG_PRN_KEY reset [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 5B 2B 00 00 00 00 00 F6 0F 92 [23:27:07]state=2 [23:27:07]Stop feed [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 5C 2B 87 [23:27:07]*** FLAG_PRN_KEY set [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 5C 2B 00 08 00 00 00 FF 0F A4 [23:27:07]state=0 [23:27:07]Key pressed [23:27:07]Feed [23:27:07]Write to MH i2c: D8 00 00 5D 2B 5F [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: D8 01 00 5D 2B 00 60 [23:27:07]int [23:27:07]Write to MH i2c: 01 00 00 5E 2B 89 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 5E 2B 00 48 00 00 00 3C 00 14 [23:27:07]state=2 [23:27:07]Key pressed [23:27:08]int [23:27:08]Write to MH i2c: 01 00 00 5F 2B 8A [23:27:08]*** FLAG_PRN_KEY reset [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 07 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 07 00 5F 2B 00 00 00 00 00 F6 0F 96 [23:27:08]state=2 [23:27:08]Stop feed [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]accept exits with 7 [23:27:54]New connection [23:27:54]New thread 3066965348 created [23:27:54]Thread 3067108708 joined [23:27:54]Waiting for new connection... [23:27:54] Sock 7.Parse request [23:27:54]Sock 7.Check first char [23:27:54]Sock 7.First char is OK [23:27:54]request: POST /json_proto HTTP/1.0 [23:27:54]Method: POST [23:27:54]URL: /json_proto [23:27:54]Method is POST - this is cgi request [23:27:54]url: /json_proto [23:27:54]query_string will be loaded in cgi processing [23:27:54]execute_cgi json_proto POST (null) [23:27:54]execute_cgi path=json_proto method=POST [23:27:54]POST find Content-Length [23:27:54]Host: 172.17.33.3:8080 [23:27:54]Content-Length: 1210 [23:27:54]Content-Type: application/json [23:27:54] [23:27:54]POST finish read [23:27:54]Found Content-Length = 1210 [23:27: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348194\u000A15.04.2024 23:09\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-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A89319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:54]execute_script... [23:27: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 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)348194\u000A15.04.2024 23:09\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-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A89319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:54]POST & json_proto [23:27:54]process_json_proto [23:27:54]json parsed OK: [23:27:54]protocol is kg_v1.0 [23:27:54]action value=print_text [23:27:54]process_action print_text [23:27:54]cmd_print_text [23:27:54]ExternCall_PrintAddStr [23:27:54]wPrintStart [23:27:54]Write to MH i2c: 01 00 00 60 2B 8B [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 60 2B 00 00 00 00 00 FF 0F A0 [23:27:54]RasterBufferAndPrint [23:27:54]line *****ТОВАРНЫЙ ЧЕК***** [23:27:54]line АЗС 108 [23:27:54]line Партнер нефть [23:27:54]line 02508201610067 [23:27:54]line Кассир : Джумагулова Н. [23:27:54]line Счет N : (1)348194 [23:27:54]line 15.04.2024 23:09 [23:27:54]line ПРОДАЖА [23:27:54]line ТРК (МРК, ГНК): 11 [23:27:54]line Вид ГСМ : 2710194210 [23:27:54]line ДТ-К-5 [23:27:54]line 30.000 x 72.90 [23:27:54]line ИТОГ: 2187.00 [23:27:54]line Тип оплаты: Талоны: Топливная Карта [23:27:54]line 89319 [23:27:54]line ______________________ [23:27:54]line (подпись) [23:27:54]written 0, free lines is 4095 [23:27:54]Write to MH i2c: 01 00 00 75 2B A0 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 75 2B 00 00 00 00 00 F7 0D AB [23:27:54]RasterBufferAndPrint [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]written 0, free lines is 3576 [23:27:54]MH_Cut [23:27:54]Write to MH i2c: D1 01 00 7C 2B 01 79 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 01 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 01 00 7C 2B 00 78 [23:27:54]Write to MH i2c: 01 00 00 7D 2B A8 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]OFD Sender: No OFD packet to send [23:27:55]*** Cut start [23:27:55]*** Partial cut [23:27:55]*** CUTSNS_PIN = 1 [23:27:55]*** CUTSNS_PIN = 0 [23:27:55]*** Brake cut motor [23:27:55]Read from MH i2c: 01 [23:27:55]MH_I2C_Read... [23:27:55]*** Stop cut motor [23:27:55]*** Cut end [23:27:55]Read from MH i2c: 01 07 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: 01 07 00 7D 2B 00 00 00 00 00 FF 0F BD [23:27:55]process_action print_text done [23:27:55]requested_data is exist [23:27:55]produce_requested_data [23:27:55]requested_item fm.sn is exist - process it [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 11 00 00 [23:27:55]Write to MH i2c: E2 08 00 7E 2B 80 11 00 00 00 00 00 00 23 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 7E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [23:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:27:55]wFMCommunicate OK [23:27:55]requested_item fd.num is exist - process it [23:27:55]SAM_PROTO_GetFieldsCounters [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 13 00 00 [23:27:55]Write to MH i2c: E2 08 00 7F 2B 80 13 00 00 00 00 00 00 26 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:56]Read from MH i2c: E2 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 62 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 62 00 7F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [23:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:56]wFMCommunicate OK [23:27:56]SAM_PROTO_GetFieldsCounters done [23:27:56]requested_item shift.num is exist - process it [23:27:56]requested_item shift.opened is exist - process it [23:27:56]req_shift_opened [23:27:56]FM_GetShiftState [23:27:56]SAM_PROTO_GetShiftState [23:27:56]wFMCommunicate request_size=4 [23:27:56]MH_SAM_APDU [23:27:56]CAPDU: 80 13 01 00 [23:27:56]Write to MH i2c: E2 08 00 80 2B 80 13 01 00 00 00 00 00 28 [23:27:56]Write i2c OK [23:27:56]MH_I2C_Read... [23:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:56]Read from MH i2c: E2 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 0E 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 0E 00 80 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1C [23:27:56]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:27:56]wFMCommunicate OK [23:27:56]SAM_PROTO_GetShiftState done [23:27:56]FM_GetShiftState done [23:27:56]req_shift_opened done [23:27:56]requested_item shift.open_date is exist - process it [23:27:56]req_shift_open_date [23:27:56]req_shift_open_date done [23:27:56]produce_requested_data done [23:27:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29717,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:27:56]process_action_free print_text [23:27:56]json_value_free [23:27:56]json_value_free done [23:27:56]process_json_proto returns [23:27:56]Send response to host [23:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29717,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:27:56]free response buf [23:27:56]execute_script done [23:27:56]execute_script returns [23:27:56]free content buf [23:27:56]Sock 7.Close socket [23:27:56]Sock 7.Thread stoped [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:16]accept exits with 9 [23:38:16]New connection [23:38:16]New thread 3067108708 created [23:38:16]Thread 3066965348 joined [23:38:16]Waiting for new connection... [23:38:16] Sock 9.Parse request [23:38:16]Sock 9.Check first char [23:38:16]Sock 9.First char is OK [23:38:16]request: POST /json_proto HTTP/1.0 [23:38:16]Method: POST [23:38:16]URL: /json_proto [23:38:16]Method is POST - this is cgi request [23:38:16]url: /json_proto [23:38:16]query_string will be loaded in cgi processing [23:38:16]execute_cgi json_proto POST (null) [23:38:16]execute_cgi path=json_proto method=POST [23:38:16]POST find Content-Length [23:38:16]Host: 172.17.33.3:8080 [23:38:16]Content-Length: 837 [23:38:16]Content-Type: application/json [23:38:16] [23:38:16]POST finish read [23:38:16]Found Content-Length = 837 [23:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:16]execute_script... [23:38: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)348195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:16]POST & json_proto [23:38:16]process_json_proto [23:38:16]json parsed OK: [23:38:16]protocol is kg_v1.0 [23:38:16]action value=close_receipt [23:38:16]process_action close_receipt [23:38:16]cmd_close_receipt [23:38:16]MH_GetDate [23:38:16]Write to MH i2c: F0 00 00 81 2B 9B [23:38:16]Write i2c OK [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: F0 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: F0 09 00 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: F0 09 00 81 2B 00 6B BA 1D 66 23 5B 8F 65 BE [23:38:16]GetLastDocTimeStamp 1713223399 [23:38:16]current date 1713224299 [23:38:16]FM_GetShiftState [23:38:16]SAM_PROTO_GetShiftState [23:38:16]wFMCommunicate request_size=4 [23:38:16]MH_SAM_APDU [23:38:16]CAPDU: 80 13 01 00 [23:38:16]Write to MH i2c: E2 08 00 82 2B 80 13 01 00 00 00 00 00 2A [23:38:16]Write i2c OK [23:38:16]MH_I2C_Read... [23:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:16]Read from MH i2c: E2 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 0E 00 [23:38:16]MH_I2C_Read... [23:38:16]Read from MH i2c: E2 0E 00 82 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 1E [23:38:16]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:38:16]wFMCommunicate OK [23:38:16]SAM_PROTO_GetShiftState done [23:38:16]FM_GetShiftState done [23:38:16]opened in 1713140468 [23:38:16]opened+sec_in_day 1713226868 [23:38:16]quantity*price = 50009 [23:38:16]sum+1 = 50010 [23:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 312 15.04.2024 23:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29718 ФПД: 216729787608215 1/tax-web-control/client/api/v1/ticket?date=20240415T233819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29718&fm=216729787608215&tin=02508201610067®Number=0000138879044617&sum=50009 [23:38:17]StoreToDocumentArchive [23:38:17]shift 117 fd 29718 [23:38:17]save to /storage/0117/doc_00029718 [23:38:17]save last doc name /storage/0117/doc_00029718 to /storage/kkm_last_doc_name [23:38:17]save OK [23:38:17]Clear old archive folders... [23:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:38:18]tlvbuf is 01A56C00 [23:38:18]SAM_PROTO_ClearQueue [23:38:18]wFMCommunicate request_size=4 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 09 00 00 [23:38:18]Write to MH i2c: E2 08 00 8F 2B 80 09 00 00 00 00 00 00 2C [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [23:38:18]RAPDU: 90 00 [23:38:18]wFMCommunicate OK [23:38:18]SAM_PROTO_ClearQueue done [23:38:18]KKMCreateOFDPacket [23:38:18]OFDProtocolAddRootSTLVToBuf [23:38:18]FM_MakeSignedData [23:38:18]FM_MakeSignedData [23:38:18]SAM_PROTO_SignData [23:38:18]wFMCommunicate request_size=4 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 0D 01 02 [23:38:18]Write to MH i2c: E2 08 00 90 2B 80 0D 01 02 00 00 00 00 34 [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [23:38:18]RAPDU: 90 00 [23:38:18]wFMCommunicate OK [23:38:18]wFMCommunicate request_size=255 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 6B BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 74 00 00 35 04 06 00 C5 1D 56 00 [23:38:18]Write to MH i2c: E2 02 01 91 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 6B BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 74 00 00 35 04 06 00 C5 1D 56 00 00 00 25 [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [23:38:18]RAPDU: 90 00 [23:38:18]wFMCommunicate OK [23:38:18]wFMCommunicate request_size=7 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 0D 02 02 02 AC 97 [23:38:18]Write to MH i2c: E2 0A 00 92 2B 80 0D 02 02 02 00 AC 97 00 00 7E [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [23:38:18]RAPDU: 90 00 [23:38:18]wFMCommunicate OK [23:38:18]wFMCommunicate request_size=4 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 0D 03 02 [23:38:18]Write to MH i2c: E2 08 00 93 2B 80 0D 03 02 00 00 00 00 39 [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 0B 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 0B 00 93 2B 00 AF 6F 6A 4F 53 75 CB AB 90 00 4F [23:38:18]RAPDU: AF 6F 6A 4F 53 75 CB AB 90 00 [23:38:18]wFMCommunicate OK [23:38:18]SAM_PROTO_SignData done [23:38:18]FM_MakeSignedData done [23:38:18]CreateOFDProtocolMessage [23:38:18]wFMCommunicate request_size=4 [23:38:18]MH_SAM_APDU [23:38:18]CAPDU: 80 11 00 00 [23:38:18]Write to MH i2c: E2 08 00 94 2B 80 11 00 00 00 00 00 00 39 [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:18]Read from MH i2c: E2 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 17 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: E2 17 00 94 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [23:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:38:18]wFMCommunicate OK [23:38:18]CreateOFDProtocolMessage done [23:38:18]OFDSenderStorePacket 29718 [23:38:18]StoreOFDPacket docnum=29718 [23:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 51 D3 04 01 F7 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 6B BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 74 00 00 35 04 06 00 C5 1D 56 00 AC 97 AF 6F 6A 4F 53 75 CB AB [23:38:18]CheckFolder [23:38:18]dirname=/storage/ofd_packets [23:38:18]CheckFolder done [23:38:18]ProducePacketName [23:38:18]name=ofd_packets/00029718 [23:38:18]NVStorageSaveData ofd_packets/00029718 [23:38:18]File name is /storage/ofd_packets/00029718 [23:38:18]Write 298 bytes [23:38:18]NVStorageSaveData done [23:38:18]OFDSenderStorePacket done [23:38:18]KKMCreateOFDPacket done [23:38:18]NVStorageSaveData kkm_last_timestamp [23:38:18]File name is /storage/kkm_last_timestamp [23:38:18]Write 4 bytes [23:38:18]NVStorageSaveData done [23:38:18]ExternCall_PrintAddStr [23:38:18]wPrintStart [23:38:18]Write to MH i2c: 01 00 00 95 2B C0 [23:38:18]Write i2c OK [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: 01 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: 01 07 00 [23:38:18]MH_I2C_Read... [23:38:18]Read from MH i2c: 01 07 00 95 2B 00 00 00 00 00 FF 0F D5 [23:38:18]RasterBufferAndPrint [23:38:18]line Счет N : (1)348195 [23:38:18]line ИНН: 02508201610067 [23:38:18]line Контрольно-Кассовый Чек [23:38:18]line ПРОДАЖА [23:38:18]line ТРК (МРК, ГНК) : 51 [23:38:18]line Товар: 2710194210 [23:38:18]line ДТ-К-5 [23:38:18]line 6.860 * 72.90 [23:38:18]line = 500.09 [23:38:18]line НДС 12% НСП 1% [23:38:18]line > о реализуемом товаре [23:38:18]line ИТОГО: 500.09 [23:38:18]line НСП 1% : 4.43 [23:38:18]line НДС 12% : 53.11 [23:38:18]line Наличными: 0.00 [23:38:18]line Безнал.: 500.09 [23:38:18]line Место: АЗС № 108 "Партнер Нефть" [23:38:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:38:18]line СНО: Общий режим [23:38:18]line Чек 312 15.04.2024 23:38 [23:38:18]line Смена: 117 ФФД: 1.0 [23:38:18]line ЗНМ: 0300000027 [23:38:18]line РНМ: 0000138879044617 [23:38:18]line Версия ККМ: 001 [23:38:18]line Платежная система: АКБ Кыргызстан [23:38:18]line ФМ: 0000000000963154 [23:38:18]line ФД: 29718 [23:38:18]line ФПД: 216729787608215 [23:38:18]line 1/tax-web-control/client/api/v1/ticket?date=20240415T233819&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29718&fm=216729787608215&tin=02508201610067®Number=0000138879044617&sum=50009 [23:38:18]OFD Sender: Processing packet 29718 [packets to send 8, broken 7] [23:38:18]ProducePacketName [23:38:18]name=ofd_packets/00029718 [23:38:18]OFD Sender: To server: pG, [23:38:18]CommunicateWithHost lk.salyk.kg:30040 [23:38:18]ConnectInit lk.salyk.kg [23:38:18]written 0, free lines is 4095 [23:38:18]Connected sock=10 [23:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 51 D3 04 01 F7 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 6B BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 74 00 00 35 04 06 00 C5 1D 56 00 AC 97 AF 6F 6A 4F 53 75 CB AB [23:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B6 79 47 00 BD 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 39 36 33 31 35 34 10 04 04 00 16 74 00 00 F4 03 04 00 0B 65 1D 66 B6 04 01 00 00 88 82 24 18 36 47 28 20 [23:38:19]CommunicateWithHost err = 0 [23:38:19]CheckOFDResponse [23:38:19]1017 (14) - 77093643461234 [23:38:19]1041 (16) - 0000000000963154 [23:38:19]1040 (4) - 29718 [23:38:19]1012 (4) - 15.04.2024 17:34 [23:38:19]1206 (1) - 0 [23:38:19]OFD Sender: Remove packet 29718 [23:38:19]ProducePacketName [23:38:19]name=ofd_packets/00029718 [23:38:19]NVStorageDeleteData [23:38:19]Write to MH i2c: 01 00 00 BE 2B E9 [23:38:19]Write i2c OK [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: 01 [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: 01 07 00 [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: 01 07 00 BE 2B 00 00 00 00 00 DB 0C D7 [23:38:19]RasterBufferAndPrint [23:38:19]line [23:38:19]line [23:38:19]line [23:38:19]line [23:38:19]line [23:38:19]written 0, free lines is 3298 [23:38:19]MH_Cut [23:38:19]Write to MH i2c: D1 01 00 C5 2B 01 C2 [23:38:19]Write i2c OK [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: D1 [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: D1 01 00 [23:38:19]MH_I2C_Read... [23:38:19]Read from MH i2c: D1 01 00 C5 2B 00 C1 [23:38:19]Write to MH i2c: 01 00 00 C6 2B F1 [23:38:19]Write i2c OK [23:38:19]MH_I2C_Read... [23:38:19]OFD Sender: No OFD packet to send [23:38:20]*** Cut start [23:38:20]*** Partial cut [23:38:20]*** CUTSNS_PIN = 1 [23:38:20]*** CUTSNS_PIN = 0 [23:38:20]*** Brake cut motor [23:38:20]Read from MH i2c: 01 [23:38:20]MH_I2C_Read... [23:38:20]*** Stop cut motor [23:38:20]*** Cut end [23:38:20]Read from MH i2c: 01 07 00 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: 01 07 00 C6 2B 00 00 00 00 00 FF 0F 06 [23:38:20]process_action close_receipt done [23:38:20]requested_data is exist [23:38:20]produce_requested_data [23:38:20]requested_item fm.sn is exist - process it [23:38:20]wFMCommunicate request_size=4 [23:38:20]MH_SAM_APDU [23:38:20]CAPDU: 80 11 00 00 [23:38:20]Write to MH i2c: E2 08 00 C7 2B 80 11 00 00 00 00 00 00 6C [23:38:20]Write i2c OK [23:38:20]MH_I2C_Read... [23:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:20]Read from MH i2c: E2 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 17 00 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 17 00 C7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [23:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:38:20]wFMCommunicate OK [23:38:20]requested_item fd.num is exist - process it [23:38:20]SAM_PROTO_GetFieldsCounters [23:38:20]wFMCommunicate request_size=4 [23:38:20]MH_SAM_APDU [23:38:20]CAPDU: 80 13 00 00 [23:38:20]Write to MH i2c: E2 08 00 C8 2B 80 13 00 00 00 00 00 00 6F [23:38:20]Write i2c OK [23:38:20]MH_I2C_Read... [23:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:20]Read from MH i2c: E2 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 62 00 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 62 00 C8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [23:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:20]wFMCommunicate OK [23:38:20]SAM_PROTO_GetFieldsCounters done [23:38:20]requested_item shift.num is exist - process it [23:38:20]requested_item shift.opened is exist - process it [23:38:20]req_shift_opened [23:38:20]FM_GetShiftState [23:38:20]SAM_PROTO_GetShiftState [23:38:20]wFMCommunicate request_size=4 [23:38:20]MH_SAM_APDU [23:38:20]CAPDU: 80 13 01 00 [23:38:20]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [23:38:20]Write i2c OK [23:38:20]MH_I2C_Read... [23:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:20]Read from MH i2c: E2 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 0E 00 [23:38:20]MH_I2C_Read... [23:38:20]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 65 [23:38:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:38:20]wFMCommunicate OK [23:38:20]SAM_PROTO_GetShiftState done [23:38:20]FM_GetShiftState done [23:38:20]req_shift_opened done [23:38:20]requested_item shift.open_date is exist - process it [23:38:20]req_shift_open_date [23:38:20]req_shift_open_date done [23:38:20]produce_requested_data done [23:38:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29718,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:38:20]process_action_free close_receipt [23:38:20]json_value_free [23:38:20]json_value_free done [23:38:20]process_json_proto returns [23:38:20]Send response to host [23:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29718,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:38:20]free response buf [23:38:20]execute_script done [23:38:20]execute_script returns [23:38:20]free content buf [23:38:20]Sock 9.Close socket [23:38:20]Sock 9.Thread stoped [23:38:24]OFD Sender: No OFD packet to send [23:38:29]accept exits with 7 [23:38:29]New connection [23:38:29]New thread 3066965348 created [23:38:29]Thread 3067108708 joined [23:38:29]Waiting for new connection... [23:38:29] Sock 7.Parse request [23:38:29]Sock 7.Check first char [23:38:29]Sock 7.First char is OK [23:38:29]request: POST /json_proto HTTP/1.0 [23:38:29]Method: POST [23:38:29]URL: /json_proto [23:38:29]Method is POST - this is cgi request [23:38:29]url: /json_proto [23:38:29]query_string will be loaded in cgi processing [23:38:29]execute_cgi json_proto POST (null) [23:38:29]execute_cgi path=json_proto method=POST [23:38:29]POST find Content-Length [23:38:29]Host: 172.17.33.3:8080 [23:38:29]Content-Length: 674 [23:38:29]Content-Type: application/json [23:38:29] [23:38:29]POST finish read [23:38:29]Found Content-Length = 674 [23:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.390, "sum" : 320.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:29]execute_script... [23:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.390, "sum" : 320.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:29]POST & json_proto [23:38:29]process_json_proto [23:38:29]json parsed OK: [23:38:29]protocol is kg_v1.0 [23:38:29]action value=close_receipt [23:38:29]process_action close_receipt [23:38:29]cmd_close_receipt [23:38:29]MH_GetDate [23:38:29]Write to MH i2c: F0 00 00 CA 2B E4 [23:38:29]Write i2c OK [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: F0 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: F0 09 00 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: F0 09 00 CA 2B 00 77 BA 1D 66 23 5B 8F 65 13 [23:38:29]GetLastDocTimeStamp 1713224299 [23:38:29]current date 1713224311 [23:38:29]FM_GetShiftState [23:38:29]SAM_PROTO_GetShiftState [23:38:29]wFMCommunicate request_size=4 [23:38:29]MH_SAM_APDU [23:38:29]CAPDU: 80 13 01 00 [23:38:29]Write to MH i2c: E2 08 00 CB 2B 80 13 01 00 00 00 00 00 73 [23:38:29]Write i2c OK [23:38:29]MH_I2C_Read... [23:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:29]Read from MH i2c: E2 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: E2 0E 00 [23:38:29]MH_I2C_Read... [23:38:29]Read from MH i2c: E2 0E 00 CB 2B 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 67 [23:38:29]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:38:29]wFMCommunicate OK [23:38:29]SAM_PROTO_GetShiftState done [23:38:29]FM_GetShiftState done [23:38:29]opened in 1713140468 [23:38:29]opened+sec_in_day 1713226868 [23:38:29]quantity*price = 32003 [23:38:29]sum+1 = 32004 [23:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 313 15.04.2024 23:38 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29719 ФПД: 2907775874782 1/tax-web-control/client/api/v1/ticket?date=20240415T233831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29719&fm=2907775874782&tin=02508201610067®Number=0000138879044617&sum=32000 [23:38:30]StoreToDocumentArchive [23:38:30]shift 117 fd 29719 [23:38:30]save to /storage/0117/doc_00029719 [23:38:30]save last doc name /storage/0117/doc_00029719 to /storage/kkm_last_doc_name [23:38:30]save OK [23:38:30]Clear old archive folders... [23:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:38:30]tlvbuf is 01A88E20 [23:38:30]SAM_PROTO_ClearQueue [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 09 00 00 [23:38:30]Write to MH i2c: E2 08 00 D8 2B 80 09 00 00 00 00 00 00 75 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [23:38:30]RAPDU: 90 00 [23:38:30]wFMCommunicate OK [23:38:30]SAM_PROTO_ClearQueue done [23:38:30]KKMCreateOFDPacket [23:38:30]OFDProtocolAddRootSTLVToBuf [23:38:30]FM_MakeSignedData [23:38:30]FM_MakeSignedData [23:38:30]SAM_PROTO_SignData [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 0D 01 02 [23:38:30]Write to MH i2c: E2 08 00 D9 2B 80 0D 01 02 00 00 00 00 7D [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [23:38:30]RAPDU: 90 00 [23:38:30]wFMCommunicate OK [23:38:30]wFMCommunicate request_size=255 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 77 BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 74 00 00 35 04 06 00 02 A5 04 F2 [23:38:30]Write to MH i2c: E2 02 01 DA 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 77 BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 74 00 00 35 04 06 00 02 A5 04 F2 00 00 38 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 DA 2B 00 90 00 79 [23:38:30]RAPDU: 90 00 [23:38:30]wFMCommunicate OK [23:38:30]wFMCommunicate request_size=7 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 0D 02 02 02 B6 DE [23:38:30]Write to MH i2c: E2 0A 00 DB 2B 80 0D 02 02 02 00 B6 DE 00 00 18 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 03 00 DB 2B 00 90 00 7A [23:38:30]RAPDU: 90 00 [23:38:30]wFMCommunicate OK [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 0D 03 02 [23:38:30]Write to MH i2c: E2 08 00 DC 2B 80 0D 03 02 00 00 00 00 82 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 0B 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 0B 00 DC 2B 00 2B 83 D4 1F 80 A0 23 D2 90 00 39 [23:38:30]RAPDU: 2B 83 D4 1F 80 A0 23 D2 90 00 [23:38:30]wFMCommunicate OK [23:38:30]SAM_PROTO_SignData done [23:38:30]FM_MakeSignedData done [23:38:30]CreateOFDProtocolMessage [23:38:30]wFMCommunicate request_size=4 [23:38:30]MH_SAM_APDU [23:38:30]CAPDU: 80 11 00 00 [23:38:30]Write to MH i2c: E2 08 00 DD 2B 80 11 00 00 00 00 00 00 82 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:30]Read from MH i2c: E2 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 17 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: E2 17 00 DD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [23:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:38:30]wFMCommunicate OK [23:38:30]CreateOFDProtocolMessage done [23:38:30]OFDSenderStorePacket 29719 [23:38:30]StoreOFDPacket docnum=29719 [23:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1C 91 04 01 AD 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 77 BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 74 00 00 35 04 06 00 02 A5 04 F2 B6 DE 2B 83 D4 1F 80 A0 23 D2 [23:38:30]CheckFolder [23:38:30]dirname=/storage/ofd_packets [23:38:30]CheckFolder done [23:38:30]ProducePacketName [23:38:30]name=ofd_packets/00029719 [23:38:30]NVStorageSaveData ofd_packets/00029719 [23:38:30]File name is /storage/ofd_packets/00029719 [23:38:30]Write 298 bytes [23:38:30]NVStorageSaveData done [23:38:30]OFDSenderStorePacket done [23:38:30]KKMCreateOFDPacket done [23:38:30]NVStorageSaveData kkm_last_timestamp [23:38:30]File name is /storage/kkm_last_timestamp [23:38:30]Write 4 bytes [23:38:30]NVStorageSaveData done [23:38:30]ExternCall_PrintAddStr [23:38:30]wPrintStart [23:38:30]Write to MH i2c: 01 00 00 DE 2B 09 [23:38:30]Write i2c OK [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: 01 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: 01 07 00 [23:38:30]MH_I2C_Read... [23:38:30]Read from MH i2c: 01 07 00 DE 2B 00 00 00 00 00 FF 0F 1E [23:38:30]RasterBufferAndPrint [23:38:30]line Счет N : (1)348196 [23:38:30]line ИНН: 02508201610067 [23:38:30]line Контрольно-Кассовый Чек [23:38:30]line ПРОДАЖА [23:38:30]line ТРК (МРК, ГНК) : 61 [23:38:30]line Товар: 2710194210 [23:38:30]line ДТ-К-5 [23:38:30]line 4.390 * 72.90 [23:38:30]line = 320.03 [23:38:30]line НДС 12% НСП 1% [23:38:30]line > о реализуемом товаре [23:38:30]line ОКРУГЛЕНИЕ: -0.03 [23:38:30]line ИТОГО: 320.00 [23:38:30]line Внесено: 320.00 [23:38:30]line СДАЧА: 0.00 [23:38:30]line НСП 1% : 2.83 [23:38:30]line НДС 12% : 33.98 [23:38:30]line Наличными: 320.00 [23:38:30]line Безнал.: 0.00 [23:38:30]line Место: АЗС № 108 "Партнер Нефть" [23:38:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:38:30]line СНО: Общий режим [23:38:30]line Чек 313 15.04.2024 23:38 [23:38:30]line Смена: 117 ФФД: 1.0 [23:38:30]line ЗНМ: 0300000027 [23:38:30]line РНМ: 0000138879044617 [23:38:30]line Версия ККМ: 001 [23:38:30]line ФМ: 0000000000963154 [23:38:30]line ФД: 29719 [23:38:30]line ФПД: 2907775874782 [23:38:31]line 1/tax-web-control/client/api/v1/ticket?date=20240415T233831&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29719&fm=2907775874782&tin=02508201610067®Number=0000138879044617&sum=32000 [23:38:31]OFD Sender: Processing packet 29719 [packets to send 8, broken 7] [23:38:31]ProducePacketName [23:38:31]name=ofd_packets/00029719 [23:38:31]OFD Sender: To server: pG, [23:38:31]CommunicateWithHost lk.salyk.kg:30040 [23:38:31]ConnectInit lk.salyk.kg [23:38:31]written 0, free lines is 4095 [23:38:31]Connected sock=10 [23:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1C 91 04 01 AD 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 77 BA 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 74 00 00 35 04 06 00 02 A5 04 F2 B6 DE 2B 83 D4 1F 80 A0 23 D2 [23:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E B1 47 00 1F 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 39 36 33 31 35 34 10 04 04 00 17 74 00 00 F4 03 04 00 17 65 1D 66 B6 04 01 00 00 55 56 DE 4C FF A7 BD FD [23:38:31]CommunicateWithHost err = 0 [23:38:31]CheckOFDResponse [23:38:31]1017 (14) - 77093643461234 [23:38:31]1041 (16) - 0000000000963154 [23:38:31]1040 (4) - 29719 [23:38:31]1012 (4) - 15.04.2024 17:34 [23:38:31]1206 (1) - 0 [23:38:31]OFD Sender: Remove packet 29719 [23:38:31]ProducePacketName [23:38:31]name=ofd_packets/00029719 [23:38:31]NVStorageDeleteData [23:38:31]Write to MH i2c: 01 00 00 08 2C 34 [23:38:31]Write i2c OK [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: 01 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: 01 07 00 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 C0 0C 07 [23:38:31]RasterBufferAndPrint [23:38:31]line [23:38:31]line [23:38:31]line [23:38:31]line [23:38:31]line [23:38:31]written 0, free lines is 3270 [23:38:31]MH_Cut [23:38:31]Write to MH i2c: D1 01 00 0F 2C 01 0D [23:38:31]Write i2c OK [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: D1 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: D1 01 00 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: D1 01 00 0F 2C 00 0C [23:38:31]Write to MH i2c: 01 00 00 10 2C 3C [23:38:31]Write i2c OK [23:38:31]MH_I2C_Read... [23:38:31]OFD Sender: No OFD packet to send [23:38:32]*** Cut start [23:38:32]*** Partial cut [23:38:32]*** CUTSNS_PIN = 1 [23:38:32]*** CUTSNS_PIN = 0 [23:38:32]*** Brake cut motor [23:38:32]Read from MH i2c: 01 [23:38:32]MH_I2C_Read... [23:38:32]*** Stop cut motor [23:38:32]*** Cut end [23:38:32]Read from MH i2c: 01 07 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: 01 07 00 10 2C 00 00 00 00 00 FF 0F 51 [23:38:32]process_action close_receipt done [23:38:32]requested_data is exist [23:38:32]produce_requested_data [23:38:32]requested_item fm.sn is exist - process it [23:38:32]wFMCommunicate request_size=4 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 11 00 00 [23:38:32]Write to MH i2c: E2 08 00 11 2C 80 11 00 00 00 00 00 00 B7 [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:32]Read from MH i2c: E2 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 17 00 [23:38:32]MH_I2C_Read... [23:38:32]Read from MH i2c: E2 17 00 11 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 06 [23:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:38:32]wFMCommunicate OK [23:38:32]requested_item fd.num is exist - process it [23:38:32]SAM_PROTO_GetFieldsCounters [23:38:32]wFMCommunicate request_size=4 [23:38:32]MH_SAM_APDU [23:38:32]CAPDU: 80 13 00 00 [23:38:32]Write to MH i2c: E2 08 00 12 2C 80 13 00 00 00 00 00 00 BA [23:38:32]Write i2c OK [23:38:32]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 62 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 62 00 12 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [23:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:33]wFMCommunicate OK [23:38:33]SAM_PROTO_GetFieldsCounters done [23:38:33]requested_item shift.num is exist - process it [23:38:33]requested_item shift.opened is exist - process it [23:38:33]req_shift_opened [23:38:33]FM_GetShiftState [23:38:33]SAM_PROTO_GetShiftState [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 13 01 00 [23:38:33]Write to MH i2c: E2 08 00 13 2C 80 13 01 00 00 00 00 00 BC [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0E 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0E 00 13 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B0 [23:38:33]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:38:33]wFMCommunicate OK [23:38:33]SAM_PROTO_GetShiftState done [23:38:33]FM_GetShiftState done [23:38:33]req_shift_opened done [23:38:33]requested_item shift.open_date is exist - process it [23:38:33]req_shift_open_date [23:38:33]req_shift_open_date done [23:38:33]produce_requested_data done [23:38:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29719,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:38:33]process_action_free close_receipt [23:38:33]json_value_free [23:38:33]json_value_free done [23:38:33]process_json_proto returns [23:38:33]Send response to host [23:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29719,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:38:33]free response buf [23:38:33]execute_script done [23:38:33]execute_script returns [23:38:33]free content buf [23:38:33]Sock 7.Close socket [23:38:33]Sock 7.Thread stoped [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:11]accept exits with 9 [23:45:11]New connection [23:45:11]New thread 3067108708 created [23:45:11]Thread 3066965348 joined [23:45:11]Waiting for new connection... [23:45:11] Sock 9.Parse request [23:45:11]Sock 9.Check first char [23:45:11]Sock 9.First char is OK [23:45:11]request: POST /json_proto HTTP/1.0 [23:45:11]Method: POST [23:45:11]URL: /json_proto [23:45:11]Method is POST - this is cgi request [23:45:11]url: /json_proto [23:45:11]query_string will be loaded in cgi processing [23:45:11]execute_cgi json_proto POST (null) [23:45:11]execute_cgi path=json_proto method=POST [23:45:11]POST find Content-Length [23:45:11]Host: 172.17.33.3:8080 [23:45:11]Content-Length: 682 [23:45:11]Content-Type: application/json [23:45:11] [23:45:11]POST finish read [23:45:11]Found Content-Length = 682 [23:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 16.210, "sum" : 1050.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:11]execute_script... [23:45: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)348197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 16.210, "sum" : 1050.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:11]POST & json_proto [23:45:11]process_json_proto [23:45:11]json parsed OK: [23:45:11]protocol is kg_v1.0 [23:45:11]action value=close_receipt [23:45:11]process_action close_receipt [23:45:11]cmd_close_receipt [23:45:11]MH_GetDate [23:45:11]Write to MH i2c: F0 00 00 14 2C 2F [23:45:11]Write i2c OK [23:45:11]MH_I2C_Read... [23:45:11]Read from MH i2c: F0 [23:45:11]MH_I2C_Read... [23:45:11]Read from MH i2c: F0 09 00 [23:45:11]MH_I2C_Read... [23:45:11]Read from MH i2c: F0 09 00 14 2C 00 0A BC 1D 66 23 5B 8F 65 F3 [23:45:11]GetLastDocTimeStamp 1713224311 [23:45:11]current date 1713224714 [23:45:11]FM_GetShiftState [23:45:11]SAM_PROTO_GetShiftState [23:45:11]wFMCommunicate request_size=4 [23:45:11]MH_SAM_APDU [23:45:11]CAPDU: 80 13 01 00 [23:45:11]Write to MH i2c: E2 08 00 15 2C 80 13 01 00 00 00 00 00 BE [23:45:11]Write i2c OK [23:45:11]MH_I2C_Read... [23:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:11]Read from MH i2c: E2 [23:45:11]MH_I2C_Read... [23:45:11]Read from MH i2c: E2 0E 00 [23:45:11]MH_I2C_Read... [23:45:11]Read from MH i2c: E2 0E 00 15 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 B2 [23:45:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:45:11]wFMCommunicate OK [23:45:11]SAM_PROTO_GetShiftState done [23:45:11]FM_GetShiftState done [23:45:11]opened in 1713140468 [23:45:11]opened+sec_in_day 1713226868 [23:45:11]quantity*price = 105040 [23:45:11]sum+1 = 105042 [23:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.55 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 314 15.04.2024 23:45 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29720 ФПД: 91106794428582 1/tax-web-control/client/api/v1/ticket?date=20240415T234514&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29720&fm=91106794428582&tin=02508201610067®Number=0000138879044617&sum=105000 [23:45:12]StoreToDocumentArchive [23:45:12]shift 117 fd 29720 [23:45:12]save to /storage/0117/doc_00029720 [23:45:12]save last doc name /storage/0117/doc_00029720 to /storage/kkm_last_doc_name [23:45:12]save OK [23:45:12]Clear old archive folders... [23:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:45:12]tlvbuf is 01ABD6D0 [23:45:12]SAM_PROTO_ClearQueue [23:45:12]wFMCommunicate request_size=4 [23:45:12]MH_SAM_APDU [23:45:12]CAPDU: 80 09 00 00 [23:45:12]Write to MH i2c: E2 08 00 22 2C 80 09 00 00 00 00 00 00 C0 [23:45:12]Write i2c OK [23:45:12]MH_I2C_Read... [23:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:12]Read from MH i2c: E2 [23:45:12]MH_I2C_Read... [23:45:12]Read from MH i2c: E2 03 00 [23:45:12]MH_I2C_Read... [23:45:12]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [23:45:12]RAPDU: 90 00 [23:45:12]wFMCommunicate OK [23:45:12]SAM_PROTO_ClearQueue done [23:45:12]KKMCreateOFDPacket [23:45:12]OFDProtocolAddRootSTLVToBuf [23:45:12]FM_MakeSignedData [23:45:12]FM_MakeSignedData [23:45:12]SAM_PROTO_SignData [23:45:12]wFMCommunicate request_size=4 [23:45:12]MH_SAM_APDU [23:45:12]CAPDU: 80 0D 01 02 [23:45:12]Write to MH i2c: E2 08 00 23 2C 80 0D 01 02 00 00 00 00 C8 [23:45:12]Write i2c OK [23:45:12]MH_I2C_Read... [23:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:12]Read from MH i2c: E2 [23:45:12]MH_I2C_Read... [23:45:12]Read from MH i2c: E2 03 00 [23:45:12]MH_I2C_Read... [23:45:12]Read from MH i2c: E2 03 00 23 2C 00 90 00 C3 [23:45:12]RAPDU: 90 00 [23:45:12]wFMCommunicate OK [23:45:12]wFMCommunicate request_size=255 [23:45:12]MH_SAM_APDU [23:45: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 52 3F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 51 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 0A BC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 74 00 00 35 04 06 00 52 [23:45:12]Write to MH i2c: E2 02 01 24 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 52 3F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 51 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 0A BC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 74 00 00 35 04 06 00 52 00 00 95 [23:45:12]Write i2c OK [23:45:12]MH_I2C_Read... [23:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:13]Read from MH i2c: E2 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 03 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 03 00 24 2C 00 90 00 C4 [23:45:13]RAPDU: 90 00 [23:45:13]wFMCommunicate OK [23:45:13]wFMCommunicate request_size=10 [23:45:13]MH_SAM_APDU [23:45:13]CAPDU: 80 0D 02 02 05 DC 74 1E 58 A6 [23:45:13]Write to MH i2c: E2 0D 00 25 2C 80 0D 02 02 05 00 DC 74 1E 58 A6 00 00 41 [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:13]Read from MH i2c: E2 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 03 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 03 00 25 2C 00 90 00 C5 [23:45:13]RAPDU: 90 00 [23:45:13]wFMCommunicate OK [23:45:13]wFMCommunicate request_size=4 [23:45:13]MH_SAM_APDU [23:45:13]CAPDU: 80 0D 03 02 [23:45:13]Write to MH i2c: E2 08 00 26 2C 80 0D 03 02 00 00 00 00 CD [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:13]Read from MH i2c: E2 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 0B 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 0B 00 26 2C 00 8B 79 FA 20 D0 4A 9E 95 90 00 39 [23:45:13]RAPDU: 8B 79 FA 20 D0 4A 9E 95 90 00 [23:45:13]wFMCommunicate OK [23:45:13]SAM_PROTO_SignData done [23:45:13]FM_MakeSignedData done [23:45:13]CreateOFDProtocolMessage [23:45:13]wFMCommunicate request_size=4 [23:45:13]MH_SAM_APDU [23:45:13]CAPDU: 80 11 00 00 [23:45:13]Write to MH i2c: E2 08 00 27 2C 80 11 00 00 00 00 00 00 CD [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:13]Read from MH i2c: E2 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 17 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: E2 17 00 27 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [23:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:45:13]wFMCommunicate OK [23:45:13]CreateOFDProtocolMessage done [23:45:13]OFDSenderStorePacket 29720 [23:45:13]StoreOFDPacket docnum=29720 [23:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 45 07 01 A4 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 52 3F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 51 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 0A BC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 74 00 00 35 04 06 00 52 DC 74 1E 58 A6 8B 79 FA 20 D0 4A 9E 95 [23:45:13]CheckFolder [23:45:13]dirname=/storage/ofd_packets [23:45:13]CheckFolder done [23:45:13]ProducePacketName [23:45:13]name=ofd_packets/00029720 [23:45:13]NVStorageSaveData ofd_packets/00029720 [23:45:13]File name is /storage/ofd_packets/00029720 [23:45:13]Write 301 bytes [23:45:13]NVStorageSaveData done [23:45:13]OFDSenderStorePacket done [23:45:13]KKMCreateOFDPacket done [23:45:13]NVStorageSaveData kkm_last_timestamp [23:45:13]File name is /storage/kkm_last_timestamp [23:45:13]Write 4 bytes [23:45:13]NVStorageSaveData done [23:45:13]ExternCall_PrintAddStr [23:45:13]wPrintStart [23:45:13]Write to MH i2c: 01 00 00 28 2C 54 [23:45:13]Write i2c OK [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: 01 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: 01 07 00 [23:45:13]MH_I2C_Read... [23:45:13]Read from MH i2c: 01 07 00 28 2C 00 00 00 00 00 FF 0F 69 [23:45:13]RasterBufferAndPrint [23:45:13]line Счет N : (1)348197 [23:45:13]line ИНН: 02508201610067 [23:45:13]line Контрольно-Кассовый Чек [23:45:13]line ПРОДАЖА [23:45:13]line ТРК (МРК, ГНК) : 42 [23:45:13]line Товар: 2710124130 [23:45:13]line Аи-92-К-5 [23:45:13]line 16.210 * 64.80 [23:45:13]line = 1050.41 [23:45:13]line НДС 12% НСП 1% [23:45:13]line > о реализуемом товаре [23:45:13]line ОКРУГЛЕНИЕ: -0.41 [23:45:13]line ИТОГО: 1050.00 [23:45:13]line Внесено: 1050.00 [23:45:13]line СДАЧА: 0.00 [23:45:13]line НСП 1% : 9.30 [23:45:13]line НДС 12% : 111.55 [23:45:13]line Наличными: 1050.00 [23:45:13]line Безнал.: 0.00 [23:45:13]line Место: АЗС № 108 "Партнер Нефть" [23:45:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:45:13]line СНО: Общий режим [23:45:13]line Чек 314 15.04.2024 23:45 [23:45:13]line Смена: 117 ФФД: 1.0 [23:45:13]line ЗНМ: 0300000027 [23:45:13]line РНМ: 0000138879044617 [23:45:13]line Версия ККМ: 001 [23:45:13]line ФМ: 0000000000963154 [23:45:13]line ФД: 29720 [23:45:13]line ФПД: 91106794428582 [23:45:13]line 1/tax-web-control/client/api/v1/ticket?date=20240415T234514&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29720&fm=91106794428582&tin=02508201610067®Number=0000138879044617&sum=105000 [23:45:13]OFD Sender: Processing packet 29720 [packets to send 8, broken 7] [23:45:13]ProducePacketName [23:45:13]name=ofd_packets/00029720 [23:45:13]OFD Sender: To server: pG, [23:45:13]CommunicateWithHost lk.salyk.kg:30040 [23:45:13]ConnectInit lk.salyk.kg [23:45:13]written 0, free lines is 4095 [23:45:13]Connected sock=10 [23:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F2 45 07 01 A4 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 52 3F 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 51 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 0A BC 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 74 00 00 35 04 06 00 52 DC 74 1E 58 A6 8B 79 FA 20 D0 4A 9E 95 [23:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 36 B2 47 00 E1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 74 00 00 F4 03 04 00 A9 66 1D 66 B6 04 01 00 00 19 2D 8E 2C 5B 67 A0 43 [23:45:13]CommunicateWithHost err = 0 [23:45:13]CheckOFDResponse [23:45:13]1017 (14) - 77093643461234 [23:45:13]1041 (16) - 0000000000963154 [23:45:13]1040 (4) - 29720 [23:45:13]1012 (4) - 15.04.2024 17:40 [23:45:13]1206 (1) - 0 [23:45:13]OFD Sender: Remove packet 29720 [23:45:13]ProducePacketName [23:45:13]name=ofd_packets/00029720 [23:45:13]NVStorageDeleteData [23:45:14]Write to MH i2c: 01 00 00 52 2C 7E [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 07 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 BE 0C 4F [23:45:14]RasterBufferAndPrint [23:45:14]line [23:45:14]line [23:45:14]line [23:45:14]line [23:45:14]line [23:45:14]written 0, free lines is 3266 [23:45:14]MH_Cut [23:45:14]Write to MH i2c: D1 01 00 59 2C 01 57 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: D1 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: D1 01 00 [23:45:14]MH_I2C_Read... [23:45:14]Read from MH i2c: D1 01 00 59 2C 00 56 [23:45:14]Write to MH i2c: 01 00 00 5A 2C 86 [23:45:14]Write i2c OK [23:45:14]MH_I2C_Read... [23:45:14]OFD Sender: No OFD packet to send [23:45:14]*** Cut start [23:45:14]*** Partial cut [23:45:14]*** CUTSNS_PIN = 1 [23:45:14]*** CUTSNS_PIN = 0 [23:45:15]*** Brake cut motor [23:45:15]Read from MH i2c: 01 [23:45:15]MH_I2C_Read... [23:45:15]*** Stop cut motor [23:45:15]*** Cut end [23:45:15]Read from MH i2c: 01 07 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: 01 07 00 5A 2C 00 00 00 00 00 FF 0F 9B [23:45:15]process_action close_receipt done [23:45:15]requested_data is exist [23:45:15]produce_requested_data [23:45:15]requested_item fm.sn is exist - process it [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 11 00 00 [23:45:15]Write to MH i2c: E2 08 00 5B 2C 80 11 00 00 00 00 00 00 01 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 17 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 17 00 5B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 50 [23:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:45:15]wFMCommunicate OK [23:45:15]requested_item fd.num is exist - process it [23:45:15]SAM_PROTO_GetFieldsCounters [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 13 00 00 [23:45:15]Write to MH i2c: E2 08 00 5C 2C 80 13 00 00 00 00 00 00 04 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 62 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 62 00 5C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [23:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:15]wFMCommunicate OK [23:45:15]SAM_PROTO_GetFieldsCounters done [23:45:15]requested_item shift.num is exist - process it [23:45:15]requested_item shift.opened is exist - process it [23:45:15]req_shift_opened [23:45:15]FM_GetShiftState [23:45:15]SAM_PROTO_GetShiftState [23:45:15]wFMCommunicate request_size=4 [23:45:15]MH_SAM_APDU [23:45:15]CAPDU: 80 13 01 00 [23:45:15]Write to MH i2c: E2 08 00 5D 2C 80 13 01 00 00 00 00 00 06 [23:45:15]Write i2c OK [23:45:15]MH_I2C_Read... [23:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:15]Read from MH i2c: E2 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 0E 00 [23:45:15]MH_I2C_Read... [23:45:15]Read from MH i2c: E2 0E 00 5D 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FA [23:45:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:45:15]wFMCommunicate OK [23:45:15]SAM_PROTO_GetShiftState done [23:45:15]FM_GetShiftState done [23:45:15]req_shift_opened done [23:45:15]requested_item shift.open_date is exist - process it [23:45:15]req_shift_open_date [23:45:15]req_shift_open_date done [23:45:15]produce_requested_data done [23:45:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29720,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:45:15]process_action_free close_receipt [23:45:15]json_value_free [23:45:15]json_value_free done [23:45:15]process_json_proto returns [23:45:15]Send response to host [23:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29720,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:45:15]free response buf [23:45:15]execute_script done [23:45:15]execute_script returns [23:45:15]free content buf [23:45:15]Sock 9.Close socket [23:45:15]Sock 9.Thread stoped [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]accept exits with 7 [23:59:44]New connection [23:59:44]New thread 3066965348 created [23:59:44]Thread 3067108708 joined [23:59:44]Waiting for new connection... [23:59:44] Sock 7.Parse request [23:59:44]Sock 7.Check first char [23:59:44]Sock 7.First char is OK [23:59:44]request: POST /json_proto HTTP/1.0 [23:59:44]Method: POST [23:59:44]URL: /json_proto [23:59:44]Method is POST - this is cgi request [23:59:44]url: /json_proto [23:59:44]query_string will be loaded in cgi processing [23:59:44]execute_cgi json_proto POST (null) [23:59:44]execute_cgi path=json_proto method=POST [23:59:44]POST find Content-Length [23:59:44]Host: 172.17.33.3:8080 [23:59:44]Content-Length: 671 [23:59:44]Content-Type: application/json [23:59:44] [23:59:44]POST finish read [23:59:44]Found Content-Length = 671 [23:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.230, "sum" : 870.53, "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" ] } } [23:59:44]execute_script... [23:59: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)348198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.230, "sum" : 870.53, "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" ] } } [23:59:44]POST & json_proto [23:59:44]process_json_proto [23:59:44]json parsed OK: [23:59:44]protocol is kg_v1.0 [23:59:44]action value=close_receipt [23:59:44]process_action close_receipt [23:59:44]cmd_close_receipt [23:59:44]MH_GetDate [23:59:44]Write to MH i2c: F0 00 00 5E 2C 79 [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: F0 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: F0 09 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: F0 09 00 5E 2C 00 72 BF 1D 66 23 5B 8F 65 A8 [23:59:44]GetLastDocTimeStamp 1713224714 [23:59:44]current date 1713225586 [23:59:44]FM_GetShiftState [23:59:44]SAM_PROTO_GetShiftState [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 13 01 00 [23:59:44]Write to MH i2c: E2 08 00 5F 2C 80 13 01 00 00 00 00 00 08 [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0E 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0E 00 5F 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 FC [23:59:44]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:59:44]wFMCommunicate OK [23:59:44]SAM_PROTO_GetShiftState done [23:59:44]FM_GetShiftState done [23:59:44]opened in 1713140468 [23:59:44]opened+sec_in_day 1713226868 [23:59:44]quantity*price = 87053 [23:59:44]sum+1 = 87054 [23:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.45 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 315 15.04.2024 23:59 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29721 ФПД: 159355703315641 1/tax-web-control/client/api/v1/ticket?date=20240415T235946&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29721&fm=159355703315641&tin=02508201610067®Number=0000138879044617&sum=87000 [23:59:45]StoreToDocumentArchive [23:59:45]shift 117 fd 29721 [23:59:45]save to /storage/0117/doc_00029721 [23:59:45]save last doc name /storage/0117/doc_00029721 to /storage/kkm_last_doc_name [23:59:45]save OK [23:59:45]Clear old archive folders... [23:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:59:45]tlvbuf is B6F00460 [23:59:45]SAM_PROTO_ClearQueue [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 09 00 00 [23:59:45]Write to MH i2c: E2 08 00 6C 2C 80 09 00 00 00 00 00 00 0A [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 6C 2C 00 90 00 0C [23:59:45]RAPDU: 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_ClearQueue done [23:59:45]KKMCreateOFDPacket [23:59:45]OFDProtocolAddRootSTLVToBuf [23:59:45]FM_MakeSignedData [23:59:45]FM_MakeSignedData [23:59:45]SAM_PROTO_SignData [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 0D 01 02 [23:59:45]Write to MH i2c: E2 08 00 6D 2C 80 0D 01 02 00 00 00 00 12 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 6D 2C 00 90 00 0D [23:59:45]RAPDU: 90 00 [23:59:45]wFMCommunicate OK [23:59:45]wFMCommunicate request_size=255 [23:59:45]MH_SAM_APDU [23:59: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 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 1D 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 3B 01 00 00 F4 03 04 00 72 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 74 00 00 35 04 06 00 [23:59:45]Write to MH i2c: E2 02 01 6E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 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 1D 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 3B 01 00 00 F4 03 04 00 72 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 74 00 00 35 04 06 00 00 00 83 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 6E 2C 00 90 00 0E [23:59:45]RAPDU: 90 00 [23:59:45]wFMCommunicate OK [23:59:45]wFMCommunicate request_size=11 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 0D 02 02 06 90 EE E4 16 CC B9 [23:59:45]Write to MH i2c: E2 0E 00 6F 2C 80 0D 02 02 06 00 90 EE E4 16 CC B9 00 00 1E [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [23:59:45]RAPDU: 90 00 [23:59:45]wFMCommunicate OK [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 0D 03 02 [23:59:45]Write to MH i2c: E2 08 00 70 2C 80 0D 03 02 00 00 00 00 17 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0B 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0B 00 70 2C 00 2E 40 03 5D 50 17 4D 17 90 00 B1 [23:59:45]RAPDU: 2E 40 03 5D 50 17 4D 17 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_SignData done [23:59:45]FM_MakeSignedData done [23:59:45]CreateOFDProtocolMessage [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 11 00 00 [23:59:45]Write to MH i2c: E2 08 00 71 2C 80 11 00 00 00 00 00 00 17 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 71 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [23:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:45]wFMCommunicate OK [23:59:45]CreateOFDProtocolMessage done [23:59:45]OFDSenderStorePacket 29721 [23:59:45]StoreOFDPacket docnum=29721 [23:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 37 D2 08 01 0A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 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 1D 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 3B 01 00 00 F4 03 04 00 72 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 74 00 00 35 04 06 00 90 EE E4 16 CC B9 2E 40 03 5D 50 17 4D 17 [23:59:45]CheckFolder [23:59:45]dirname=/storage/ofd_packets [23:59:45]CheckFolder done [23:59:45]ProducePacketName [23:59:45]name=ofd_packets/00029721 [23:59:45]NVStorageSaveData ofd_packets/00029721 [23:59:45]File name is /storage/ofd_packets/00029721 [23:59:45]Write 302 bytes [23:59:45]NVStorageSaveData done [23:59:45]OFDSenderStorePacket done [23:59:45]KKMCreateOFDPacket done [23:59:45]NVStorageSaveData kkm_last_timestamp [23:59:45]File name is /storage/kkm_last_timestamp [23:59:45]Write 4 bytes [23:59:45]NVStorageSaveData done [23:59:45]ExternCall_PrintAddStr [23:59:45]wPrintStart [23:59:45]Write to MH i2c: 01 00 00 72 2C 9E [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 07 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: 01 07 00 72 2C 00 00 00 00 00 FF 0F B3 [23:59:45]RasterBufferAndPrint [23:59:45]line Счет N : (1)348198 [23:59:45]line ИНН: 02508201610067 [23:59:45]line Контрольно-Кассовый Чек [23:59:45]line ПРОДАЖА [23:59:45]line ТРК (МРК, ГНК) : 31 [23:59:45]line Товар: 2710124130 [23:59:45]line SUPER-92-К-5 [23:59:45]line 13.230 * 65.80 [23:59:45]line = 870.53 [23:59:45]line НДС 12% НСП 1% [23:59:45]line > о реализуемом товаре [23:59:45]line ОКРУГЛЕНИЕ: -0.53 [23:59:45]line ИТОГО: 870.00 [23:59:45]line Внесено: 870.00 [23:59:45]line СДАЧА: 0.00 [23:59:45]line НСП 1% : 7.70 [23:59:45]line НДС 12% : 92.45 [23:59:45]line Наличными: 870.00 [23:59:45]line Безнал.: 0.00 [23:59:45]line Место: АЗС № 108 "Партнер Нефть" [23:59:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:59:45]line СНО: Общий режим [23:59:45]line Чек 315 15.04.2024 23:59 [23:59:45]line Смена: 117 ФФД: 1.0 [23:59:45]line ЗНМ: 0300000027 [23:59:45]line РНМ: 0000138879044617 [23:59:45]line Версия ККМ: 001 [23:59:45]line ФМ: 0000000000963154 [23:59:45]line ФД: 29721 [23:59:45]line ФПД: 159355703315641 [23:59:45]line 1/tax-web-control/client/api/v1/ticket?date=20240415T235946&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29721&fm=159355703315641&tin=02508201610067®Number=0000138879044617&sum=87000 [23:59:46]OFD Sender: Processing packet 29721 [packets to send 8, broken 7] [23:59:46]ProducePacketName [23:59:46]name=ofd_packets/00029721 [23:59:46]OFD Sender: To server: pG, [23:59:46]CommunicateWithHost lk.salyk.kg:30040 [23:59:46]ConnectInit lk.salyk.kg [23:59:46]written 0, free lines is 4095 [23:59:46]Connected sock=10 [23:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 37 D2 08 01 0A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 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 1D 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 3B 01 00 00 F4 03 04 00 72 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 74 00 00 35 04 06 00 90 EE E4 16 CC B9 2E 40 03 5D 50 17 4D 17 [23:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 70 47 00 4C 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 39 36 33 31 35 34 10 04 04 00 19 74 00 00 F4 03 04 00 12 6A 1D 66 B6 04 01 00 00 FB EB CA E8 4D 5B 82 4E [23:59:46]CommunicateWithHost err = 0 [23:59:46]CheckOFDResponse [23:59:46]1017 (14) - 77093643461234 [23:59:46]1041 (16) - 0000000000963154 [23:59:46]1040 (4) - 29721 [23:59:46]1012 (4) - 15.04.2024 17:55 [23:59:46]1206 (1) - 0 [23:59:46]OFD Sender: Remove packet 29721 [23:59:46]ProducePacketName [23:59:46]name=ofd_packets/00029721 [23:59:46]NVStorageDeleteData [23:59:46]Write to MH i2c: 01 00 00 9C 2C C8 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: 01 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: 01 07 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: 01 07 00 9C 2C 00 00 00 00 00 C6 0C A1 [23:59:46]RasterBufferAndPrint [23:59:46]line [23:59:46]line [23:59:46]line [23:59:46]line [23:59:46]line [23:59:46]written 0, free lines is 3276 [23:59:46]MH_Cut [23:59:46]Write to MH i2c: D1 01 00 A3 2C 01 A1 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: D1 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: D1 01 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: D1 01 00 A3 2C 00 A0 [23:59:46]Write to MH i2c: 01 00 00 A4 2C D0 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]OFD Sender: No OFD packet to send [23:59:47]*** Cut start [23:59:47]*** Partial cut [23:59:47]*** CUTSNS_PIN = 1 [23:59:47]*** CUTSNS_PIN = 0 [23:59:47]*** Brake cut motor [23:59:47]Read from MH i2c: 01 [23:59:47]MH_I2C_Read... [23:59:47]*** Stop cut motor [23:59:47]*** Cut end [23:59:47]Read from MH i2c: 01 07 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: 01 07 00 A4 2C 00 00 00 00 00 FF 0F E5 [23:59:47]process_action close_receipt done [23:59:47]requested_data is exist [23:59:47]produce_requested_data [23:59:47]requested_item fm.sn is exist - process it [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 11 00 00 [23:59:47]Write to MH i2c: E2 08 00 A5 2C 80 11 00 00 00 00 00 00 4B [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 17 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 17 00 A5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [23:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:59:47]wFMCommunicate OK [23:59:47]requested_item fd.num is exist - process it [23:59:47]SAM_PROTO_GetFieldsCounters [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 13 00 00 [23:59:47]Write to MH i2c: E2 08 00 A6 2C 80 13 00 00 00 00 00 00 4E [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 62 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 62 00 A6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [23:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:48]wFMCommunicate OK [23:59:48]SAM_PROTO_GetFieldsCounters done [23:59:48]requested_item shift.num is exist - process it [23:59:48]requested_item shift.opened is exist - process it [23:59:48]req_shift_opened [23:59:48]FM_GetShiftState [23:59:48]SAM_PROTO_GetShiftState [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 13 01 00 [23:59:48]Write to MH i2c: E2 08 00 A7 2C 80 13 01 00 00 00 00 00 50 [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 0E 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 0E 00 A7 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 44 [23:59:48]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [23:59:48]wFMCommunicate OK [23:59:48]SAM_PROTO_GetShiftState done [23:59:48]FM_GetShiftState done [23:59:48]req_shift_opened done [23:59:48]requested_item shift.open_date is exist - process it [23:59:48]req_shift_open_date [23:59:48]req_shift_open_date done [23:59:48]produce_requested_data done [23:59:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29721,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [23:59:48]process_action_free close_receipt [23:59:48]json_value_free [23:59:48]json_value_free done [23:59:48]process_json_proto returns [23:59:48]Send response to host [23:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29721,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [23:59:48]free response buf [23:59:48]execute_script done [23:59:48]execute_script returns [23:59:48]free content buf [23:59:48]Sock 7.Close socket [23:59:48]Sock 7.Thread stoped [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:07]accept exits with 9 [00:00:07]New connection [00:00:07]New thread 3067108708 created [00:00:07]Thread 3066965348 joined [00:00:07]Waiting for new connection... [00:00:07] Sock 9.Parse request [00:00:07]Sock 9.Check first char [00:00:07]Sock 9.First char is OK [00:00:07]request: POST /json_proto HTTP/1.0 [00:00:07]Method: POST [00:00:07]URL: /json_proto [00:00:07]Method is POST - this is cgi request [00:00:07]url: /json_proto [00:00:07]query_string will be loaded in cgi processing [00:00:07]execute_cgi json_proto POST (null) [00:00:07]execute_cgi path=json_proto method=POST [00:00:07]POST find Content-Length [00:00:07]Host: 172.17.33.3:8080 [00:00:07]Content-Length: 671 [00:00:07]Content-Type: application/json [00:00:07] [00:00:07]POST finish read [00:00:07]Found Content-Length = 671 [00:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]execute_script... [00:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]POST & json_proto [00:00:07]process_json_proto [00:00:07]json parsed OK: [00:00:07]protocol is kg_v1.0 [00:00:07]action value=close_receipt [00:00:07]process_action close_receipt [00:00:07]cmd_close_receipt [00:00:07]MH_GetDate [00:00:07]Write to MH i2c: F0 00 00 A8 2C C3 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 A8 2C 00 8A BF 1D 66 23 5B 8F 65 0A [00:00:07]GetLastDocTimeStamp 1713225586 [00:00:07]current date 1713225610 [00:00:07]FM_GetShiftState [00:00:07]SAM_PROTO_GetShiftState [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 01 00 [00:00:07]Write to MH i2c: E2 08 00 A9 2C 80 13 01 00 00 00 00 00 52 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 A9 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 46 [00:00:07]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetShiftState done [00:00:07]FM_GetShiftState done [00:00:07]opened in 1713140468 [00:00:07]opened+sec_in_day 1713226868 [00:00:07]quantity*price = 70011 [00:00:07]sum+1 = 70012 [00:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 316 16.04.2024 00:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29722 ФПД: 94095644342770 1/tax-web-control/client/api/v1/ticket?date=20240416T000010&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29722&fm=94095644342770&tin=02508201610067®Number=0000138879044617&sum=70000 [00:00:08]StoreToDocumentArchive [00:00:08]shift 117 fd 29722 [00:00:08]save to /storage/0117/doc_00029722 [00:00:08]save last doc name /storage/0117/doc_00029722 to /storage/kkm_last_doc_name [00:00:08]save OK [00:00:08]Clear old archive folders... [00:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:00:08]tlvbuf is 01A15E90 [00:00:08]SAM_PROTO_ClearQueue [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 09 00 00 [00:00:08]Write to MH i2c: E2 08 00 B6 2C 80 09 00 00 00 00 00 00 54 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 B6 2C 00 90 00 56 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_ClearQueue done [00:00:08]KKMCreateOFDPacket [00:00:08]OFDProtocolAddRootSTLVToBuf [00:00:08]FM_MakeSignedData [00:00:08]FM_MakeSignedData [00:00:08]SAM_PROTO_SignData [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 01 02 [00:00:08]Write to MH i2c: E2 08 00 B7 2C 80 0D 01 02 00 00 00 00 5C [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 B7 2C 00 90 00 57 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=255 [00:00:08]MH_SAM_APDU [00:00: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 3C 01 00 00 F4 03 04 00 8A BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 74 00 00 35 04 06 00 [00:00:08]Write to MH i2c: E2 02 01 B8 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 3C 01 00 00 F4 03 04 00 8A BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 74 00 00 35 04 06 00 00 00 E6 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 B8 2C 00 90 00 58 [00:00:09]RAPDU: 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=11 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 0D 02 02 06 55 94 59 74 B9 F2 [00:00:09]Write to MH i2c: E2 0E 00 B9 2C 80 0D 02 02 06 00 55 94 59 74 B9 F2 00 00 CC [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 B9 2C 00 90 00 59 [00:00:09]RAPDU: 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 0D 03 02 [00:00:09]Write to MH i2c: E2 08 00 BA 2C 80 0D 03 02 00 00 00 00 61 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0B 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0B 00 BA 2C 00 E2 B1 6A 7A 31 B0 40 16 90 00 10 [00:00:09]RAPDU: E2 B1 6A 7A 31 B0 40 16 90 00 [00:00:09]wFMCommunicate OK [00:00:09]SAM_PROTO_SignData done [00:00:09]FM_MakeSignedData done [00:00:09]CreateOFDProtocolMessage [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 11 00 00 [00:00:09]Write to MH i2c: E2 08 00 BB 2C 80 11 00 00 00 00 00 00 61 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 BB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [00:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:00:09]wFMCommunicate OK [00:00:09]CreateOFDProtocolMessage done [00:00:09]OFDSenderStorePacket 29722 [00:00:09]StoreOFDPacket docnum=29722 [00:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6B 8D 08 01 D4 6C 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 3C 01 00 00 F4 03 04 00 8A BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 74 00 00 35 04 06 00 55 94 59 74 B9 F2 E2 B1 6A 7A 31 B0 40 16 [00:00:09]CheckFolder [00:00:09]dirname=/storage/ofd_packets [00:00:09]CheckFolder done [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00029722 [00:00:09]NVStorageSaveData ofd_packets/00029722 [00:00:09]File name is /storage/ofd_packets/00029722 [00:00:09]Write 302 bytes [00:00:09]NVStorageSaveData done [00:00:09]OFDSenderStorePacket done [00:00:09]KKMCreateOFDPacket done [00:00:09]NVStorageSaveData kkm_last_timestamp [00:00:09]File name is /storage/kkm_last_timestamp [00:00:09]Write 4 bytes [00:00:09]NVStorageSaveData done [00:00:09]ExternCall_PrintAddStr [00:00:09]wPrintStart [00:00:09]Write to MH i2c: 01 00 00 BC 2C E8 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 BC 2C 00 00 00 00 00 FF 0F FD [00:00:09]RasterBufferAndPrint [00:00:09]line Счет N : (1)348200 [00:00:09]line ИНН: 02508201610067 [00:00:09]line Контрольно-Кассовый Чек [00:00:09]line ПРОДАЖА [00:00:09]line ТРК (МРК, ГНК) : 12 [00:00:09]line Товар: 2710124130 [00:00:09]line SUPER-92-К-5 [00:00:09]line 10.640 * 65.80 [00:00:09]line = 700.11 [00:00:09]line НДС 12% НСП 1% [00:00:09]line > о реализуемом товаре [00:00:09]line ОКРУГЛЕНИЕ: -0.11 [00:00:09]line ИТОГО: 700.00 [00:00:09]line Внесено: 700.00 [00:00:09]line СДАЧА: 0.00 [00:00:09]line НСП 1% : 6.20 [00:00:09]line НДС 12% : 74.35 [00:00:09]line Наличными: 700.00 [00:00:09]line Безнал.: 0.00 [00:00:09]line Место: АЗС № 108 "Партнер Нефть" [00:00:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:00:09]line СНО: Общий режим [00:00:09]line Чек 316 16.04.2024 00:00 [00:00:09]line Смена: 117 ФФД: 1.0 [00:00:09]line ЗНМ: 0300000027 [00:00:09]line РНМ: 0000138879044617 [00:00:09]line Версия ККМ: 001 [00:00:09]line ФМ: 0000000000963154 [00:00:09]line ФД: 29722 [00:00:09]line ФПД: 94095644342770 [00:00:09]line 1/tax-web-control/client/api/v1/ticket?date=20240416T000010&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29722&fm=94095644342770&tin=02508201610067®Number=0000138879044617&sum=70000 [00:00:09]OFD Sender: Processing packet 29722 [packets to send 8, broken 7] [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00029722 [00:00:09]OFD Sender: To server: pG, [00:00:09]CommunicateWithHost lk.salyk.kg:30040 [00:00:09]ConnectInit lk.salyk.kg [00:00:09]written 0, free lines is 4095 [00:00:09]Connected sock=10 [00:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6B 8D 08 01 D4 6C 5A 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 3C 01 00 00 F4 03 04 00 8A BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 74 00 00 35 04 06 00 55 94 59 74 B9 F2 E2 B1 6A 7A 31 B0 40 16 [00:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 34 47 00 D5 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 74 00 00 F4 03 04 00 29 6A 1D 66 B6 04 01 00 00 1C 43 56 C8 B0 40 06 E1 [00:00:09]CommunicateWithHost err = 0 [00:00:09]CheckOFDResponse [00:00:09]1017 (14) - 77093643461234 [00:00:09]1041 (16) - 0000000000963154 [00:00:09]1040 (4) - 29722 [00:00:09]1012 (4) - 15.04.2024 17:55 [00:00:09]1206 (1) - 0 [00:00:09]OFD Sender: Remove packet 29722 [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00029722 [00:00:09]NVStorageDeleteData [00:00:09]Write to MH i2c: 01 00 00 E6 2C 12 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 CD 0C F2 [00:00:09]RasterBufferAndPrint [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]written 0, free lines is 3281 [00:00:09]MH_Cut [00:00:09]Write to MH i2c: D1 01 00 ED 2C 01 EB [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D1 01 00 ED 2C 00 EA [00:00:09]Write to MH i2c: 01 00 00 EE 2C 1A [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]OFD Sender: No OFD packet to send [00:00:10]*** Cut start [00:00:10]*** Partial cut [00:00:10]*** CUTSNS_PIN = 1 [00:00:10]*** CUTSNS_PIN = 0 [00:00:11]*** Brake cut motor [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]*** Stop cut motor [00:00:11]*** Cut end [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 EE 2C 00 00 00 00 00 FF 0F 2F [00:00:11]process_action close_receipt done [00:00:11]requested_data is exist [00:00:11]produce_requested_data [00:00:11]requested_item fm.sn is exist - process it [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 EF 2C 80 11 00 00 00 00 00 00 95 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 EF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:00:11]wFMCommunicate OK [00:00:11]requested_item fd.num is exist - process it [00:00:11]SAM_PROTO_GetFieldsCounters [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 00 00 [00:00:11]Write to MH i2c: E2 08 00 F0 2C 80 13 00 00 00 00 00 00 98 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 F0 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [00:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetFieldsCounters done [00:00:11]requested_item shift.num is exist - process it [00:00:11]requested_item shift.opened is exist - process it [00:00:11]req_shift_opened [00:00:11]FM_GetShiftState [00:00:11]SAM_PROTO_GetShiftState [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 01 00 [00:00:11]Write to MH i2c: E2 08 00 F1 2C 80 13 01 00 00 00 00 00 9A [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 F1 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 8E [00:00:11]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]req_shift_opened done [00:00:11]requested_item shift.open_date is exist - process it [00:00:11]req_shift_open_date [00:00:11]req_shift_open_date done [00:00:11]produce_requested_data done [00:00:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29722,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:00:11]process_action_free close_receipt [00:00:11]json_value_free [00:00:11]json_value_free done [00:00:11]process_json_proto returns [00:00:11]Send response to host [00:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29722,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:00:11]free response buf [00:00:11]execute_script done [00:00:11]execute_script returns [00:00:11]free content buf [00:00:11]Sock 9.Close socket [00:00:11]Sock 9.Thread stoped [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:37]accept exits with 7 [00:00:37]New connection [00:00:37]New thread 3066965348 created [00:00:37]Thread 3067108708 joined [00:00:37]Waiting for new connection... [00:00:37] Sock 7.Parse request [00:00:37]Sock 7.Check first char [00:00:37]Sock 7.First char is OK [00:00:37]request: POST /json_proto HTTP/1.0 [00:00:37]Method: POST [00:00:37]URL: /json_proto [00:00:37]Method is POST - this is cgi request [00:00:37]url: /json_proto [00:00:37]query_string will be loaded in cgi processing [00:00:37]execute_cgi json_proto POST (null) [00:00:37]execute_cgi path=json_proto method=POST [00:00:37]POST find Content-Length [00:00:37]Host: 172.17.33.3:8080 [00:00:37]Content-Length: 677 [00:00:37]Content-Type: application/json [00:00:37] [00:00:37]POST finish read [00:00:37]Found Content-Length = 677 [00:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.480, "sum" : 290.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:37]execute_script... [00:00: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)348199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.480, "sum" : 290.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:37]POST & json_proto [00:00:37]process_json_proto [00:00:37]json parsed OK: [00:00:37]protocol is kg_v1.0 [00:00:37]action value=close_receipt [00:00:37]process_action close_receipt [00:00:37]cmd_close_receipt [00:00:37]MH_GetDate [00:00:37]Write to MH i2c: F0 00 00 F2 2C 0D [00:00:37]Write i2c OK [00:00:37]MH_I2C_Read... [00:00:37]Read from MH i2c: F0 [00:00:37]MH_I2C_Read... [00:00:37]Read from MH i2c: F0 09 00 [00:00:37]MH_I2C_Read... [00:00:37]Read from MH i2c: F0 09 00 F2 2C 00 A8 BF 1D 66 23 5B 8F 65 72 [00:00:37]GetLastDocTimeStamp 1713225610 [00:00:37]current date 1713225640 [00:00:37]FM_GetShiftState [00:00:37]SAM_PROTO_GetShiftState [00:00:37]wFMCommunicate request_size=4 [00:00:37]MH_SAM_APDU [00:00:37]CAPDU: 80 13 01 00 [00:00:37]Write to MH i2c: E2 08 00 F3 2C 80 13 01 00 00 00 00 00 9C [00:00:37]Write i2c OK [00:00:37]MH_I2C_Read... [00:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:38]Read from MH i2c: E2 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 0E 00 [00:00:38]MH_I2C_Read... [00:00:38]Read from MH i2c: E2 0E 00 F3 2C 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 90 [00:00:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:00:38]wFMCommunicate OK [00:00:38]SAM_PROTO_GetShiftState done [00:00:38]FM_GetShiftState done [00:00:38]opened in 1713140468 [00:00:38]opened+sec_in_day 1713226868 [00:00:38]quantity*price = 29030 [00:00:38]sum+1 = 29031 [00:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 317 16.04.2024 00:00 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29723 ФПД: 85561909538632 1/tax-web-control/client/api/v1/ticket?date=20240416T000040&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29723&fm=85561909538632&tin=02508201610067®Number=0000138879044617&sum=29000 [00:00:39]StoreToDocumentArchive [00:00:39]shift 117 fd 29723 [00:00:39]save to /storage/0117/doc_00029723 [00:00:39]save last doc name /storage/0117/doc_00029723 to /storage/kkm_last_doc_name [00:00:39]save OK [00:00:39]Clear old archive folders... [00:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:39]tlvbuf is B6F7B5F0 [00:00:39]SAM_PROTO_ClearQueue [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 09 00 00 [00:00:39]Write to MH i2c: E2 08 00 00 2D 80 09 00 00 00 00 00 00 9F [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 00 2D 00 90 00 A1 [00:00:39]RAPDU: 90 00 [00:00:39]wFMCommunicate OK [00:00:39]SAM_PROTO_ClearQueue done [00:00:39]KKMCreateOFDPacket [00:00:39]OFDProtocolAddRootSTLVToBuf [00:00:39]FM_MakeSignedData [00:00:39]FM_MakeSignedData [00:00:39]SAM_PROTO_SignData [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 0D 01 02 [00:00:39]Write to MH i2c: E2 08 00 01 2D 80 0D 01 02 00 00 00 00 A7 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 01 2D 00 90 00 A2 [00:00:39]RAPDU: 90 00 [00:00:39]wFMCommunicate OK [00:00:39]wFMCommunicate request_size=255 [00:00:39]MH_SAM_APDU [00:00: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 80 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A8 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 74 00 00 35 04 06 00 4D [00:00:39]Write to MH i2c: E2 02 01 02 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A8 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 74 00 00 35 04 06 00 4D 00 00 A3 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 02 2D 00 90 00 A3 [00:00:39]RAPDU: 90 00 [00:00:39]wFMCommunicate OK [00:00:39]wFMCommunicate request_size=10 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 0D 02 02 05 D1 6F 39 6F 48 [00:00:39]Write to MH i2c: E2 0D 00 03 2D 80 0D 02 02 05 00 D1 6F 39 6F 48 00 00 E4 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [00:00:39]RAPDU: 90 00 [00:00:39]wFMCommunicate OK [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 0D 03 02 [00:00:39]Write to MH i2c: E2 08 00 04 2D 80 0D 03 02 00 00 00 00 AC [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 0B 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 0B 00 04 2D 00 DB F1 27 75 6A E2 18 F0 90 00 69 [00:00:39]RAPDU: DB F1 27 75 6A E2 18 F0 90 00 [00:00:39]wFMCommunicate OK [00:00:39]SAM_PROTO_SignData done [00:00:39]FM_MakeSignedData done [00:00:39]CreateOFDProtocolMessage [00:00:39]wFMCommunicate request_size=4 [00:00:39]MH_SAM_APDU [00:00:39]CAPDU: 80 11 00 00 [00:00:39]Write to MH i2c: E2 08 00 05 2D 80 11 00 00 00 00 00 00 AC [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:39]Read from MH i2c: E2 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 17 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: E2 17 00 05 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [00:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:00:39]wFMCommunicate OK [00:00:39]CreateOFDProtocolMessage done [00:00:39]OFDSenderStorePacket 29723 [00:00:39]StoreOFDPacket docnum=29723 [00:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 17 33 07 01 2C D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A8 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 74 00 00 35 04 06 00 4D D1 6F 39 6F 48 DB F1 27 75 6A E2 18 F0 [00:00:39]CheckFolder [00:00:39]dirname=/storage/ofd_packets [00:00:39]CheckFolder done [00:00:39]ProducePacketName [00:00:39]name=ofd_packets/00029723 [00:00:39]NVStorageSaveData ofd_packets/00029723 [00:00:39]File name is /storage/ofd_packets/00029723 [00:00:39]Write 301 bytes [00:00:39]NVStorageSaveData done [00:00:39]OFDSenderStorePacket done [00:00:39]KKMCreateOFDPacket done [00:00:39]NVStorageSaveData kkm_last_timestamp [00:00:39]File name is /storage/kkm_last_timestamp [00:00:39]Write 4 bytes [00:00:39]NVStorageSaveData done [00:00:39]ExternCall_PrintAddStr [00:00:39]wPrintStart [00:00:39]Write to MH i2c: 01 00 00 06 2D 33 [00:00:39]Write i2c OK [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: 01 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: 01 07 00 [00:00:39]MH_I2C_Read... [00:00:39]Read from MH i2c: 01 07 00 06 2D 00 00 00 00 00 FF 0F 48 [00:00:39]RasterBufferAndPrint [00:00:39]line Счет N : (1)348199 [00:00:39]line ИНН: 02508201610067 [00:00:39]line Контрольно-Кассовый Чек [00:00:39]line ПРОДАЖА [00:00:39]line ТРК (МРК, ГНК) : 42 [00:00:39]line Товар: 2710124130 [00:00:39]line Аи-92-К-5 [00:00:39]line 4.480 * 64.80 [00:00:39]line = 290.30 [00:00:39]line НДС 12% НСП 1% [00:00:39]line > о реализуемом товаре [00:00:39]line ОКРУГЛЕНИЕ: -0.30 [00:00:39]line ИТОГО: 290.00 [00:00:39]line Внесено: 290.00 [00:00:39]line СДАЧА: 0.00 [00:00:39]line НСП 1% : 2.57 [00:00:39]line НДС 12% : 30.83 [00:00:39]line Наличными: 290.00 [00:00:39]line Безнал.: 0.00 [00:00:39]line Место: АЗС № 108 "Партнер Нефть" [00:00:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:00:39]line СНО: Общий режим [00:00:39]line Чек 317 16.04.2024 00:00 [00:00:39]line Смена: 117 ФФД: 1.0 [00:00:39]line ЗНМ: 0300000027 [00:00:39]line РНМ: 0000138879044617 [00:00:39]line Версия ККМ: 001 [00:00:39]line ФМ: 0000000000963154 [00:00:39]line ФД: 29723 [00:00:39]line ФПД: 85561909538632 [00:00:39]line 1/tax-web-control/client/api/v1/ticket?date=20240416T000040&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29723&fm=85561909538632&tin=02508201610067®Number=0000138879044617&sum=29000 [00:00:40]OFD Sender: Processing packet 29723 [packets to send 8, broken 7] [00:00:40]ProducePacketName [00:00:40]name=ofd_packets/00029723 [00:00:40]OFD Sender: To server: pG, [00:00:40]CommunicateWithHost lk.salyk.kg:30040 [00:00:40]ConnectInit lk.salyk.kg [00:00:40]written 0, free lines is 4095 [00:00:40]Connected sock=11 [00:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 17 33 07 01 2C D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 66 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 A8 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 74 00 00 35 04 06 00 4D D1 6F 39 6F 48 DB F1 27 75 6A E2 18 F0 [00:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 09 3C 47 00 35 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 39 36 33 31 35 34 10 04 04 00 1B 74 00 00 F4 03 04 00 48 6A 1D 66 B6 04 01 00 00 BD 0F 26 49 E8 EC 38 88 [00:00:40]CommunicateWithHost err = 0 [00:00:40]CheckOFDResponse [00:00:40]1017 (14) - 77093643461234 [00:00:40]1041 (16) - 0000000000963154 [00:00:40]1040 (4) - 29723 [00:00:40]1012 (4) - 15.04.2024 17:56 [00:00:40]1206 (1) - 0 [00:00:40]OFD Sender: Remove packet 29723 [00:00:40]ProducePacketName [00:00:40]name=ofd_packets/00029723 [00:00:40]NVStorageDeleteData [00:00:40]Write to MH i2c: 01 00 00 30 2D 5D [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 07 00 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: 01 07 00 30 2D 00 00 00 00 00 D3 0C 43 [00:00:40]RasterBufferAndPrint [00:00:40]line [00:00:40]line [00:00:40]line [00:00:40]line [00:00:40]line [00:00:40]written 0, free lines is 3290 [00:00:40]MH_Cut [00:00:40]Write to MH i2c: D1 01 00 37 2D 01 36 [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: D1 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: D1 01 00 [00:00:40]MH_I2C_Read... [00:00:40]Read from MH i2c: D1 01 00 37 2D 00 35 [00:00:40]Write to MH i2c: 01 00 00 38 2D 65 [00:00:40]Write i2c OK [00:00:40]MH_I2C_Read... [00:00:40]OFD Sender: No OFD packet to send [00:00:41]*** Cut start [00:00:41]*** Partial cut [00:00:41]*** CUTSNS_PIN = 1 [00:00:41]*** CUTSNS_PIN = 0 [00:00:41]*** Brake cut motor [00:00:41]Read from MH i2c: 01 [00:00:41]MH_I2C_Read... [00:00:41]*** Stop cut motor [00:00:41]*** Cut end [00:00:41]Read from MH i2c: 01 07 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: 01 07 00 38 2D 00 00 00 00 00 FF 0F 7A [00:00:41]process_action close_receipt done [00:00:41]requested_data is exist [00:00:41]produce_requested_data [00:00:41]requested_item fm.sn is exist - process it [00:00:41]wFMCommunicate request_size=4 [00:00:41]MH_SAM_APDU [00:00:41]CAPDU: 80 11 00 00 [00:00:41]Write to MH i2c: E2 08 00 39 2D 80 11 00 00 00 00 00 00 E0 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:41]Read from MH i2c: E2 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 17 00 [00:00:41]MH_I2C_Read... [00:00:41]Read from MH i2c: E2 17 00 39 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [00:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:00:41]wFMCommunicate OK [00:00:41]requested_item fd.num is exist - process it [00:00:41]SAM_PROTO_GetFieldsCounters [00:00:41]wFMCommunicate request_size=4 [00:00:41]MH_SAM_APDU [00:00:41]CAPDU: 80 13 00 00 [00:00:41]Write to MH i2c: E2 08 00 3A 2D 80 13 00 00 00 00 00 00 E3 [00:00:41]Write i2c OK [00:00:41]MH_I2C_Read... [00:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:42]Read from MH i2c: E2 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 62 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 62 00 3A 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [00:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:42]wFMCommunicate OK [00:00:42]SAM_PROTO_GetFieldsCounters done [00:00:42]requested_item shift.num is exist - process it [00:00:42]requested_item shift.opened is exist - process it [00:00:42]req_shift_opened [00:00:42]FM_GetShiftState [00:00:42]SAM_PROTO_GetShiftState [00:00:42]wFMCommunicate request_size=4 [00:00:42]MH_SAM_APDU [00:00:42]CAPDU: 80 13 01 00 [00:00:42]Write to MH i2c: E2 08 00 3B 2D 80 13 01 00 00 00 00 00 E5 [00:00:42]Write i2c OK [00:00:42]MH_I2C_Read... [00:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:42]Read from MH i2c: E2 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 0E 00 [00:00:42]MH_I2C_Read... [00:00:42]Read from MH i2c: E2 0E 00 3B 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 D9 [00:00:42]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:00:42]wFMCommunicate OK [00:00:42]SAM_PROTO_GetShiftState done [00:00:42]FM_GetShiftState done [00:00:42]req_shift_opened done [00:00:42]requested_item shift.open_date is exist - process it [00:00:42]req_shift_open_date [00:00:42]req_shift_open_date done [00:00:42]produce_requested_data done [00:00:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29723,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:00:42]process_action_free close_receipt [00:00:42]json_value_free [00:00:42]json_value_free done [00:00:42]process_json_proto returns [00:00:42]Send response to host [00:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29723,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:00:42]free response buf [00:00:42]execute_script done [00:00:42]execute_script returns [00:00:42]free content buf [00:00:42]Sock 7.Close socket [00:00:42]Sock 7.Thread stoped [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:53]accept exits with 9 [00:01:53]New connection [00:01:53]New thread 3067108708 created [00:01:53]Thread 3066965348 joined [00:01:53]Waiting for new connection... [00:01:53] Sock 9.Parse request [00:01:53]Sock 9.Check first char [00:01:53]Sock 9.First char is OK [00:01:53]request: POST /json_proto HTTP/1.0 [00:01:53]Method: POST [00:01:53]URL: /json_proto [00:01:53]Method is POST - this is cgi request [00:01:53]url: /json_proto [00:01:53]query_string will be loaded in cgi processing [00:01:53]execute_cgi json_proto POST (null) [00:01:53]execute_cgi path=json_proto method=POST [00:01:53]POST find Content-Length [00:01:53]Host: 172.17.33.3:8080 [00:01:53]Content-Length: 677 [00:01:53]Content-Type: application/json [00:01:53] [00:01:53]POST finish read [00:01:53]Found Content-Length = 677 [00:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.800, "sum" : 570.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:53]execute_script... [00:01: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)348201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.800, "sum" : 570.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:53]POST & json_proto [00:01:53]process_json_proto [00:01:53]json parsed OK: [00:01:53]protocol is kg_v1.0 [00:01:53]action value=close_receipt [00:01:53]process_action close_receipt [00:01:53]cmd_close_receipt [00:01:53]MH_GetDate [00:01:53]Write to MH i2c: F0 00 00 3C 2D 58 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 09 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 09 00 3C 2D 00 F4 BF 1D 66 23 5B 8F 65 09 [00:01:53]GetLastDocTimeStamp 1713225640 [00:01:53]current date 1713225716 [00:01:53]FM_GetShiftState [00:01:53]SAM_PROTO_GetShiftState [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 13 01 00 [00:01:53]Write to MH i2c: E2 08 00 3D 2D 80 13 01 00 00 00 00 00 E7 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0E 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0E 00 3D 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 DB [00:01:54]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_GetShiftState done [00:01:54]FM_GetShiftState done [00:01:54]opened in 1713140468 [00:01:54]opened+sec_in_day 1713226868 [00:01:54]quantity*price = 57024 [00:01:54]sum+1 = 57025 [00:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.56 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 318 16.04.2024 00:01 Смена: 117 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29724 ФПД: 43433888988753 1/tax-web-control/client/api/v1/ticket?date=20240416T000156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29724&fm=43433888988753&tin=02508201610067®Number=0000138879044617&sum=57000 [00:01:55]StoreToDocumentArchive [00:01:55]shift 117 fd 29724 [00:01:55]save to /storage/0117/doc_00029724 [00:01:55]save last doc name /storage/0117/doc_00029724 to /storage/kkm_last_doc_name [00:01:55]save OK [00:01:55]Clear old archive folders... [00:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:55]tlvbuf is 01A61240 [00:01:55]SAM_PROTO_ClearQueue [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 09 00 00 [00:01:55]Write to MH i2c: E2 08 00 4A 2D 80 09 00 00 00 00 00 00 E9 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 4A 2D 00 90 00 EB [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_ClearQueue done [00:01:55]KKMCreateOFDPacket [00:01:55]OFDProtocolAddRootSTLVToBuf [00:01:55]FM_MakeSignedData [00:01:55]FM_MakeSignedData [00:01:55]SAM_PROTO_SignData [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 0D 01 02 [00:01:55]Write to MH i2c: E2 08 00 4B 2D 80 0D 01 02 00 00 00 00 F1 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 4B 2D 00 90 00 EC [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]wFMCommunicate request_size=255 [00:01:55]MH_SAM_APDU [00:01: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 60 22 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C0 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 F4 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 74 00 00 35 04 06 00 27 [00:01:55]Write to MH i2c: E2 02 01 4C 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C0 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 F4 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 74 00 00 35 04 06 00 27 00 00 07 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 4C 2D 00 90 00 ED [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]wFMCommunicate request_size=10 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 0D 02 02 05 80 BD 86 3E 51 [00:01:55]Write to MH i2c: E2 0D 00 4D 2D 80 0D 02 02 05 00 80 BD 86 3E 51 00 00 50 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 03 00 4D 2D 00 90 00 EE [00:01:55]RAPDU: 90 00 [00:01:55]wFMCommunicate OK [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 0D 03 02 [00:01:55]Write to MH i2c: E2 08 00 4E 2D 80 0D 03 02 00 00 00 00 F6 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0B 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0B 00 4E 2D 00 5B 94 26 76 D5 37 54 D7 90 00 B9 [00:01:55]RAPDU: 5B 94 26 76 D5 37 54 D7 90 00 [00:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_SignData done [00:01:55]FM_MakeSignedData done [00:01:55]CreateOFDProtocolMessage [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 11 00 00 [00:01:55]Write to MH i2c: E2 08 00 4F 2D 80 11 00 00 00 00 00 00 F6 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 17 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 17 00 4F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [00:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:01:55]wFMCommunicate OK [00:01:55]CreateOFDProtocolMessage done [00:01:55]OFDSenderStorePacket 29724 [00:01:55]StoreOFDPacket docnum=29724 [00:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B2 33 07 01 D3 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 60 22 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C0 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 F4 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 74 00 00 35 04 06 00 27 80 BD 86 3E 51 5B 94 26 76 D5 37 54 D7 [00:01:55]CheckFolder [00:01:55]dirname=/storage/ofd_packets [00:01:55]CheckFolder done [00:01:55]ProducePacketName [00:01:55]name=ofd_packets/00029724 [00:01:55]NVStorageSaveData ofd_packets/00029724 [00:01:55]File name is /storage/ofd_packets/00029724 [00:01:55]Write 301 bytes [00:01:55]NVStorageSaveData done [00:01:55]OFDSenderStorePacket done [00:01:55]KKMCreateOFDPacket done [00:01:55]NVStorageSaveData kkm_last_timestamp [00:01:55]File name is /storage/kkm_last_timestamp [00:01:55]Write 4 bytes [00:01:55]NVStorageSaveData done [00:01:55]ExternCall_PrintAddStr [00:01:55]wPrintStart [00:01:55]Write to MH i2c: 01 00 00 50 2D 7D [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 50 2D 00 00 00 00 00 FF 0F 92 [00:01:55]RasterBufferAndPrint [00:01:55]line Счет N : (1)348201 [00:01:55]line ИНН: 02508201610067 [00:01:55]line Контрольно-Кассовый Чек [00:01:55]line ПРОДАЖА [00:01:55]line ТРК (МРК, ГНК) : 13 [00:01:55]line Товар: 2710124130 [00:01:55]line Аи-92-К-5 [00:01:55]line 8.800 * 64.80 [00:01:55]line = 570.24 [00:01:55]line НДС 12% НСП 1% [00:01:55]line > о реализуемом товаре [00:01:55]line ОКРУГЛЕНИЕ: -0.24 [00:01:55]line ИТОГО: 570.00 [00:01:55]line Внесено: 570.00 [00:01:55]line СДАЧА: 0.00 [00:01:55]line НСП 1% : 5.05 [00:01:55]line НДС 12% : 60.56 [00:01:55]line Наличными: 570.00 [00:01:55]line Безнал.: 0.00 [00:01:55]line Место: АЗС № 108 "Партнер Нефть" [00:01:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:01:55]line СНО: Общий режим [00:01:55]line Чек 318 16.04.2024 00:01 [00:01:55]line Смена: 117 ФФД: 1.0 [00:01:55]line ЗНМ: 0300000027 [00:01:55]line РНМ: 0000138879044617 [00:01:55]line Версия ККМ: 001 [00:01:55]line ФМ: 0000000000963154 [00:01:55]line ФД: 29724 [00:01:55]line ФПД: 43433888988753 [00:01:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T000156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29724&fm=43433888988753&tin=02508201610067®Number=0000138879044617&sum=57000 [00:01:56]OFD Sender: Processing packet 29724 [packets to send 8, broken 7] [00:01:56]ProducePacketName [00:01:56]name=ofd_packets/00029724 [00:01:56]OFD Sender: To server: pG, [00:01:56]CommunicateWithHost lk.salyk.kg:30040 [00:01:56]ConnectInit lk.salyk.kg [00:01:56]written 0, free lines is 4095 [00:01:56]Connected sock=10 [00:01:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B2 33 07 01 D3 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 60 22 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 C0 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 F4 BF 1D 66 0E 04 04 00 75 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 74 00 00 35 04 06 00 27 80 BD 86 3E 51 5B 94 26 76 D5 37 54 D7 [00:01:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C2 25 47 00 B2 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 74 00 00 F4 03 04 00 94 6A 1D 66 B6 04 01 00 00 52 4D A8 C5 E3 4E C1 A3 [00:01:56]CommunicateWithHost err = 0 [00:01:56]CheckOFDResponse [00:01:56]1017 (14) - 77093643461234 [00:01:56]1041 (16) - 0000000000963154 [00:01:56]1040 (4) - 29724 [00:01:56]1012 (4) - 15.04.2024 17:57 [00:01:56]1206 (1) - 0 [00:01:56]OFD Sender: Remove packet 29724 [00:01:56]ProducePacketName [00:01:56]name=ofd_packets/00029724 [00:01:56]NVStorageDeleteData [00:01:56]Write to MH i2c: 01 00 00 7A 2D A7 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: 01 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: 01 07 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 CC 0C 86 [00:01:56]RasterBufferAndPrint [00:01:56]line [00:01:56]line [00:01:56]line [00:01:56]line [00:01:56]line [00:01:56]written 0, free lines is 3283 [00:01:56]MH_Cut [00:01:56]Write to MH i2c: D1 01 00 81 2D 01 80 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: D1 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: D1 01 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: D1 01 00 81 2D 00 7F [00:01:56]Write to MH i2c: 01 00 00 82 2D AF [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]OFD Sender: No OFD packet to send [00:01:57]*** Cut start [00:01:57]*** Partial cut [00:01:57]*** CUTSNS_PIN = 1 [00:01:57]*** CUTSNS_PIN = 0 [00:01:57]*** Brake cut motor [00:01:57]Read from MH i2c: 01 [00:01:57]MH_I2C_Read... [00:01:57]*** Stop cut motor [00:01:57]*** Cut end [00:01:57]Read from MH i2c: 01 07 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: 01 07 00 82 2D 00 00 00 00 00 FF 0F C4 [00:01:57]process_action close_receipt done [00:01:57]requested_data is exist [00:01:57]produce_requested_data [00:01:57]requested_item fm.sn is exist - process it [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 11 00 00 [00:01:57]Write to MH i2c: E2 08 00 83 2D 80 11 00 00 00 00 00 00 2A [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 17 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 17 00 83 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [00:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:01:57]wFMCommunicate OK [00:01:57]requested_item fd.num is exist - process it [00:01:57]SAM_PROTO_GetFieldsCounters [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 13 00 00 [00:01:57]Write to MH i2c: E2 08 00 84 2D 80 13 00 00 00 00 00 00 2D [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 62 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 62 00 84 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [00:01:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:58]wFMCommunicate OK [00:01:58]SAM_PROTO_GetFieldsCounters done [00:01:58]requested_item shift.num is exist - process it [00:01:58]requested_item shift.opened is exist - process it [00:01:58]req_shift_opened [00:01:58]FM_GetShiftState [00:01:58]SAM_PROTO_GetShiftState [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 13 01 00 [00:01:58]Write to MH i2c: E2 08 00 85 2D 80 13 01 00 00 00 00 00 2F [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 0E 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 0E 00 85 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 23 [00:01:58]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:01:58]wFMCommunicate OK [00:01:58]SAM_PROTO_GetShiftState done [00:01:58]FM_GetShiftState done [00:01:58]req_shift_opened done [00:01:58]requested_item shift.open_date is exist - process it [00:01:58]req_shift_open_date [00:01:58]req_shift_open_date done [00:01:58]produce_requested_data done [00:01:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:01:58]process_action_free close_receipt [00:01:58]json_value_free [00:01:58]json_value_free done [00:01:58]process_json_proto returns [00:01:58]Send response to host [00:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:01:58]free response buf [00:01:58]execute_script done [00:01:58]execute_script returns [00:01:58]free content buf [00:01:58]Sock 9.Close socket [00:01:58]Sock 9.Thread stoped [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:20]accept exits with 7 [00:03:20]New connection [00:03:20]New thread 3066965348 created [00:03:20]Thread 3067108708 joined [00:03:20]Waiting for new connection... [00:03:20] Sock 7.Parse request [00:03:20]Sock 7.Check first char [00:03:20]Sock 7.First char is OK [00:03:20]request: POST /json_proto HTTP/1.0 [00:03:20]Method: POST [00:03:20]URL: /json_proto [00:03:20]Method is POST - this is cgi request [00:03:20]url: /json_proto [00:03:20]query_string will be loaded in cgi processing [00:03:20]execute_cgi json_proto POST (null) [00:03:20]execute_cgi path=json_proto method=POST [00:03:20]POST find Content-Length [00:03:20]Host: 172.17.33.3:8080 [00:03:20]Content-Length: 215 [00:03:20]Content-Type: application/json [00:03:20] [00:03:20]POST finish read [00:03:20]Found Content-Length = 215 [00:03:20]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:20]execute_script... [00:03:20]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:20]POST & json_proto [00:03:20]process_json_proto [00:03:20]json parsed OK: [00:03:20]protocol is kg_v1.0 [00:03:20]action value=get_value [00:03:20]process_action get_value [00:03:20]cmd_get_value [00:03:20]process_action get_value done [00:03:20]requested_data is exist [00:03:20]produce_requested_data [00:03:20]requested_item kkm.sn is exist - process it [00:03:20]requested_item kkm.ver is exist - process it [00:03:20]requested_item fm.sn is exist - process it [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 11 00 00 [00:03:20]Write to MH i2c: E2 08 00 86 2D 80 11 00 00 00 00 00 00 2D [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 17 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 17 00 86 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [00:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:03:20]wFMCommunicate OK [00:03:20]requested_item fd.num is exist - process it [00:03:20]SAM_PROTO_GetFieldsCounters [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 13 00 00 [00:03:20]Write to MH i2c: E2 08 00 87 2D 80 13 00 00 00 00 00 00 30 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 62 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 62 00 87 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [00:03:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_GetFieldsCounters done [00:03:20]requested_item shift.num is exist - process it [00:03:20]requested_item shift.opened is exist - process it [00:03:20]req_shift_opened [00:03:20]FM_GetShiftState [00:03:20]SAM_PROTO_GetShiftState [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 13 01 00 [00:03:20]Write to MH i2c: E2 08 00 88 2D 80 13 01 00 00 00 00 00 32 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 0E 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 0E 00 88 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 26 [00:03:20]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_GetShiftState done [00:03:20]FM_GetShiftState done [00:03:20]req_shift_opened done [00:03:20]requested_item shift.open_date is exist - process it [00:03:20]req_shift_open_date [00:03:20]req_shift_open_date done [00:03:20]produce_requested_data done [00:03:20]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:03:20]process_action_free get_value [00:03:20]json_value_free [00:03:20]json_value_free done [00:03:20]process_json_proto returns [00:03:20]Send response to host [00:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:03:20]free response buf [00:03:20]execute_script done [00:03:20]execute_script returns [00:03:20]free content buf [00:03:20]Sock 7.Close socket [00:03:20]Sock 7.Thread stoped [00:03:20]accept exits with 5 [00:03:20]New connection [00:03:20]New thread 3067108708 created [00:03:20]Thread 3066965348 joined [00:03:20]Waiting for new connection... [00:03:20] Sock 5.Parse request [00:03:20]Sock 5.Check first char [00:03:20]Sock 5.First char is OK [00:03:20]request: POST /json_proto HTTP/1.0 [00:03:20]Method: POST [00:03:20]URL: /json_proto [00:03:20]Method is POST - this is cgi request [00:03:20]url: /json_proto [00:03:20]query_string will be loaded in cgi processing [00:03:20]execute_cgi json_proto POST (null) [00:03:20]execute_cgi path=json_proto method=POST [00:03:20]POST find Content-Length [00:03:20]Host: 172.17.33.3:8080 [00:03:20]Content-Length: 331 [00:03:20]Content-Type: application/json [00:03:20] [00:03:20]POST finish read [00:03:20]Found Content-Length = 331 [00:03:20]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:20]execute_script... [00:03:20]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:20]POST & json_proto [00:03:20]process_json_proto [00:03:20]json parsed OK: [00:03:20]protocol is kg_v1.0 [00:03:20]action value=get_value [00:03:20]process_action get_value [00:03:20]cmd_get_value [00:03:20]process_action get_value done [00:03:20]requested_data is exist [00:03:20]produce_requested_data [00:03:20]requested_item fm.sale.total is exist - process it [00:03:20]SAM_PROTO_GetFMData [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 13 03 00 [00:03:20]Write to MH i2c: E2 08 00 89 2D 80 13 03 00 00 00 00 00 35 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 13 03 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 89 2D 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 C3 [00:03:21]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 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 8A 2D 80 17 00 00 00 00 00 00 37 [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 8A 2D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F1 [00:03:21]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 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 8B 2D 80 17 00 00 00 00 00 00 38 [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 8B 2D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [00:03:21]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 8C 2D 80 17 00 00 00 00 00 00 39 [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 8C 2D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:03:21]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 8D 2D 80 17 00 00 00 00 00 00 3A [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]OFD Sender: No OFD packet to send [00:03:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 E0 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 E0 00 8D 2D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 24 [00:03:22]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:22]wFMCommunicate OK [00:03:22]SAM_PROTO_GetFMData done [00:03:22]requested_item fm.sale_refund.total is exist - process it [00:03:22]requested_item fm.buy.total is exist - process it [00:03:22]requested_item shift.sale.total is exist - process it [00:03:22]SAM_PROTO_GetShiftData [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 13 02 00 [00:03:22]Write to MH i2c: E2 08 00 8E 2D 80 13 02 00 00 00 00 00 39 [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 13 02 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 8E 2D 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 A2 [00:03:22]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 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 8F 2D 80 17 00 00 00 00 00 00 3C [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 8F 2D 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:03:22]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 90 2D 80 17 00 00 00 00 00 00 3D [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 = 250! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 90 2D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 6F [00:03:23]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:03:23]wFMCommunicate OK [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 17 00 00 [00:03:23]Write to MH i2c: E2 08 00 91 2D 80 17 00 00 00 00 00 00 3E [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 FD 00 91 2D 00 F7 03 00 00 EF 03 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 90 00 B5 [00:03:23]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:03:23]wFMCommunicate OK [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 17 00 00 [00:03:23]Write to MH i2c: E2 08 00 92 2D 80 17 00 00 00 00 00 00 3F [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 DA 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 DA 00 92 2D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:03:23]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.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":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.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 5.Close socket [00:03:23]Sock 5.Thread stoped [00:03:23]accept exits with 7 [00:03:23]New connection [00:03:23]New thread 3066965348 created [00:03:23]Thread 3067108708 joined [00:03:23]Waiting for new connection... [00:03:23] Sock 7.Parse request [00:03:23]Sock 7.Check first char [00:03:23]Sock 7.First char is OK [00:03:23]request: POST /json_proto HTTP/1.0 [00:03:23]Method: POST [00:03:23]URL: /json_proto [00:03:23]Method is POST - this is cgi request [00:03:23]url: /json_proto [00:03:23]query_string will be loaded in cgi processing [00:03:23]execute_cgi json_proto POST (null) [00:03:23]execute_cgi path=json_proto method=POST [00:03:23]POST find Content-Length [00:03:23]Host: 172.17.33.3:8080 [00:03:23]Content-Length: 331 [00:03:23]Content-Type: application/json [00:03:23] [00:03:23]POST finish read [00:03:23]Found Content-Length = 331 [00:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:23]execute_script... [00:03:23]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:23]POST & json_proto [00:03:23]process_json_proto [00:03:23]json parsed OK: [00:03:23]protocol is kg_v1.0 [00:03:23]action value=get_value [00:03:23]process_action get_value [00:03:23]cmd_get_value [00:03:23]process_action get_value done [00:03:23]requested_data is exist [00:03:23]produce_requested_data [00:03:23]requested_item fm.sale.total is exist - process it [00:03:23]SAM_PROTO_GetFMData [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 13 03 00 [00:03:23]Write to MH i2c: E2 08 00 93 2D 80 13 03 00 00 00 00 00 3F [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 93 2D 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 CD [00:03:24]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:03:24]wFMCommunicate OK [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 17 00 00 [00:03:24]Write to MH i2c: E2 08 00 94 2D 80 17 00 00 00 00 00 00 41 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 94 2D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FB [00:03:24]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:03:24]wFMCommunicate OK [00:03:24]wFMCommunicate request_size=4 [00:03:24]MH_SAM_APDU [00:03:24]CAPDU: 80 17 00 00 [00:03:24]Write to MH i2c: E2 08 00 95 2D 80 17 00 00 00 00 00 00 42 [00:03:24]Write i2c OK [00:03:24]MH_I2C_Read... [00:03:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:24]Read from MH i2c: E2 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 [00:03:24]MH_I2C_Read... [00:03:24]Read from MH i2c: E2 FD 00 95 2D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 60 [00:03:25]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:25]wFMCommunicate OK [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 17 00 00 [00:03:25]Write to MH i2c: E2 08 00 96 2D 80 17 00 00 00 00 00 00 43 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 FD 00 96 2D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [00:03:25]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:25]wFMCommunicate OK [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 17 00 00 [00:03:25]Write to MH i2c: E2 08 00 97 2D 80 17 00 00 00 00 00 00 44 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:03:25]Read from MH i2c: E2 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 E0 00 [00:03:25]MH_I2C_Read... [00:03:25]Read from MH i2c: E2 E0 00 97 2D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2E [00:03:25]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25]wFMCommunicate OK [00:03:25]SAM_PROTO_GetFMData done [00:03:25]requested_item fm.sale_refund.total is exist - process it [00:03:25]requested_item fm.buy.total is exist - process it [00:03:25]requested_item shift.sale.total is exist - process it [00:03:25]SAM_PROTO_GetShiftData [00:03:25]wFMCommunicate request_size=4 [00:03:25]MH_SAM_APDU [00:03:25]CAPDU: 80 13 02 00 [00:03:25]Write to MH i2c: E2 08 00 98 2D 80 13 02 00 00 00 00 00 43 [00:03:25]Write i2c OK [00:03:25]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 98 2D 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 AC [00:03:26]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:03:26]wFMCommunicate OK [00:03:26]wFMCommunicate request_size=4 [00:03:26]MH_SAM_APDU [00:03:26]CAPDU: 80 17 00 00 [00:03:26]Write to MH i2c: E2 08 00 99 2D 80 17 00 00 00 00 00 00 46 [00:03:26]Write i2c OK [00:03:26]MH_I2C_Read... [00:03:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:26]Read from MH i2c: E2 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 [00:03:26]MH_I2C_Read... [00:03:26]Read from MH i2c: E2 FD 00 99 2D 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:03:26]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:26]wFMCommunicate OK [00:03:26]wFMCommunicate request_size=4 [00:03:26]MH_SAM_APDU [00:03:26]CAPDU: 80 17 00 00 [00:03:26]Write to MH i2c: E2 08 00 9A 2D 80 17 00 00 00 00 00 00 47 [00:03:26]Write i2c OK [00:03:26]MH_I2C_Read... [00:03:27]OFD Sender: No OFD packet to send [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 9A 2D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 79 [00:03:27]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 9B 2D 80 17 00 00 00 00 00 00 48 [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 FD 00 9B 2D 00 F7 03 00 00 EF 03 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 90 00 BF [00:03:27]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:03:27]wFMCommunicate OK [00:03:27]wFMCommunicate request_size=4 [00:03:27]MH_SAM_APDU [00:03:27]CAPDU: 80 17 00 00 [00:03:27]Write to MH i2c: E2 08 00 9C 2D 80 17 00 00 00 00 00 00 49 [00:03:27]Write i2c OK [00:03:27]MH_I2C_Read... [00:03:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:03:27]Read from MH i2c: E2 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 DA 00 [00:03:27]MH_I2C_Read... [00:03:27]Read from MH i2c: E2 DA 00 9C 2D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:03:28]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:28]wFMCommunicate OK [00:03:28]SAM_PROTO_GetShiftData done [00:03:28]requested_item shift.sale.total_cash is exist - process it [00:03:28]requested_item shift.sale_refund.total is exist - process it [00:03:28]requested_item shift.sale_refund.total_cash is exist - process it [00:03:28]requested_item shift.buy.total is exist - process it [00:03:28]requested_item shift.buy.total_cash is exist - process it [00:03:28]produce_requested_data done [00:03:28]produce_requested_data return {"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:28]process_action_free get_value [00:03:28]json_value_free [00:03:28]json_value_free done [00:03:28]process_json_proto returns [00:03:28]Send response to host [00:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:28]free response buf [00:03:28]execute_script done [00:03:28]execute_script returns [00:03:28]free content buf [00:03:28]Sock 7.Close socket [00:03:28]Sock 7.Thread stoped [00:03:28]accept exits with 5 [00:03:28]New connection [00:03:28]New thread 3067108708 created [00:03:28]Thread 3066965348 joined [00:03:28]Waiting for new connection... [00:03:28] Sock 5.Parse request [00:03:28]Sock 5.Check first char [00:03:28]Sock 5.First char is OK [00:03:28]request: POST /json_proto HTTP/1.0 [00:03:28]Method: POST [00:03:28]URL: /json_proto [00:03:28]Method is POST - this is cgi request [00:03:28]url: /json_proto [00:03:28]query_string will be loaded in cgi processing [00:03:28]execute_cgi json_proto POST (null) [00:03:28]execute_cgi path=json_proto method=POST [00:03:28]POST find Content-Length [00:03:28]Host: 172.17.33.3:8080 [00:03:28]Content-Length: 275 [00:03:28]Content-Type: application/json [00:03:28] [00:03:28]POST finish read [00:03:28]Found Content-Length = 275 [00:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:28]execute_script... [00:03:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:28]POST & json_proto [00:03:28]process_json_proto [00:03:28]json parsed OK: [00:03:28]protocol is kg_v1.0 [00:03:28]action value=x_report [00:03:28]process_action x_report [00:03:28]cmd_x_report [00:03:28]MH_GetDate [00:03:28]Write to MH i2c: F0 00 00 9D 2D B9 [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 09 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 09 00 9D 2D 00 52 C0 1D 66 23 5B 8F 65 C9 [00:03:28]GetLastDocTimeStamp 1713225716 [00:03:28]current date 1713225810 [00:03:28]FM_GetShiftState [00:03:28]SAM_PROTO_GetShiftState [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 13 01 00 [00:03:28]Write to MH i2c: E2 08 00 9E 2D 80 13 01 00 00 00 00 00 48 [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 0E 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 0E 00 9E 2D 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 3C [00:03:28]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:03:28]wFMCommunicate OK [00:03:28]SAM_PROTO_GetShiftState done [00:03:28]FM_GetShiftState done [00:03:28]KKMCreateXReportDocument [00:03:28]Load OK [00:03:28]Malloc new data [00:03:28]MH_GetDate [00:03:28]Write to MH i2c: F0 00 00 9F 2D BB [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 09 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: F0 09 00 9F 2D 00 52 C0 1D 66 23 5B 8F 65 CB [00:03:28]Malloc new data [00:03:28]Malloc new data [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 11 00 00 [00:03:28]Write to MH i2c: E2 08 00 A0 2D 80 11 00 00 00 00 00 00 47 [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 17 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 17 00 A0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [00:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:03:28]wFMCommunicate OK [00:03:28]SAM_PROTO_GetFieldsCounters [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 13 00 00 [00:03:28]Write to MH i2c: E2 08 00 A1 2D 80 13 00 00 00 00 00 00 4A [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 62 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 62 00 A1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [00:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:28]wFMCommunicate OK [00:03:28]SAM_PROTO_GetFieldsCounters done [00:03:28]Malloc new data [00:03:28]Malloc new data [00:03:28]Malloc new data [00:03:28]KKMCreateXReportDocument OK [00:03:28]KKMSetXReportData OK [00:03:28]KKMPrepareXReportFMData [00:03:28]SAM_PROTO_GetShiftData [00:03:28]wFMCommunicate request_size=4 [00:03:28]MH_SAM_APDU [00:03:28]CAPDU: 80 13 02 00 [00:03:28]Write to MH i2c: E2 08 00 A2 2D 80 13 02 00 00 00 00 00 4D [00:03:28]Write i2c OK [00:03:28]MH_I2C_Read... [00:03:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:28]Read from MH i2c: E2 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 [00:03:28]MH_I2C_Read... [00:03:28]Read from MH i2c: E2 FD 00 A2 2D 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 B6 [00:03:29]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 A3 2D 80 17 00 00 00 00 00 00 50 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 A3 2D 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:03:29]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:29]wFMCommunicate OK [00:03:29]wFMCommunicate request_size=4 [00:03:29]MH_SAM_APDU [00:03:29]CAPDU: 80 17 00 00 [00:03:29]Write to MH i2c: E2 08 00 A4 2D 80 17 00 00 00 00 00 00 51 [00:03:29]Write i2c OK [00:03:29]MH_I2C_Read... [00:03:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:29]Read from MH i2c: E2 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 [00:03:29]MH_I2C_Read... [00:03:29]Read from MH i2c: E2 FD 00 A4 2D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 83 [00:03:29]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 17 00 00 [00:03:30]Write to MH i2c: E2 08 00 A5 2D 80 17 00 00 00 00 00 00 52 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 FD 00 A5 2D 00 F7 03 00 00 EF 03 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 90 00 C9 [00:03:30]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:03:30]wFMCommunicate OK [00:03:30]wFMCommunicate request_size=4 [00:03:30]MH_SAM_APDU [00:03:30]CAPDU: 80 17 00 00 [00:03:30]Write to MH i2c: E2 08 00 A6 2D 80 17 00 00 00 00 00 00 53 [00:03:30]Write i2c OK [00:03:30]MH_I2C_Read... [00:03:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:03:30]Read from MH i2c: E2 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 DA 00 [00:03:30]MH_I2C_Read... [00:03:30]Read from MH i2c: E2 DA 00 A6 2D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 34 [00:03:30]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30]wFMCommunicate OK [00:03:30]SAM_PROTO_GetShiftData done [00:03:30]1194 (1209) - счетчики итогов смены [00:03:30] 1134 (4) - 318 - количество чеков со всеми признаками расчетов [00:03:30] 1129 (159) - счетчики операций «приход» [00:03:30] 1135 (4) - 312 - количество чеков по признаку расчетов [00:03:30] 1201 (4) - 348913.13 - общая итоговая сумма в чеках [00:03:30] 1136 (4) - 171524.00 - итоговая сумма в чеках наличными [00:03:30] 1138 (4) - 177389.13 - итоговая сумма в чеках безналичными [00:03:30] 1024 (123) - суммы налогов [00:03:30] 1006 (9) - суммы НДС [00:03:30] 1010 (1) - 0% - код ставки НДС [00:03:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:30] 1006 (12) - суммы НДС [00:03:30] 1010 (1) - 12% - код ставки НДС [00:03:30] 1011 (3) - 37059.22 - сумма НДС по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 0% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1007 (12) - суммы НСП [00:03:30] 1014 (1) - 1% - код ставки НСП [00:03:30] 1015 (3) - 3088.15 - сумма НСП по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 2% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 3% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 5% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 0,50% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1007 (9) - суммы НСП [00:03:30] 1014 (1) - 1,50% - код ставки НСП [00:03:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:30] 1130 (152) - счетчики операций «возврат прихода» [00:03:30] 1135 (4) - 6 - количество чеков по признаку расчетов [00:03:31] 1201 (3) - 16000.00 - общая итоговая сумма в чеках [00:03:31] 1136 (3) - 16000.00 - итоговая сумма в чеках наличными [00:03:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:31] 1024 (122) - суммы налогов [00:03:31] 1006 (9) - суммы НДС [00:03:31] 1010 (1) - 0% - код ставки НДС [00:03:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:31] 1006 (12) - суммы НДС [00:03:31] 1010 (1) - 12% - код ставки НДС [00:03:31] 1011 (3) - 1699.38 - сумма НДС по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (11) - суммы НСП [00:03:31] 1014 (1) - 1% - код ставки НСП [00:03:31] 1015 (2) - 141.61 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 2% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 3% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 5% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 1,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1131 (141) - счетчики операций «расход» [00:03:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:31] 1024 (117) - суммы налогов [00:03:31] 1006 (9) - суммы НДС [00:03:31] 1010 (1) - 0% - код ставки НДС [00:03:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:31] 1006 (9) - суммы НДС [00:03:31] 1010 (1) - 12% - код ставки НДС [00:03:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 1% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 2% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 3% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 5% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 1,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1132 (141) - счетчики операций «возврат расхода» [00:03:31] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:31] 1024 (117) - суммы налогов [00:03:31] 1006 (9) - суммы НДС [00:03:31] 1010 (1) - 0% - код ставки НДС [00:03:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:31] 1006 (9) - суммы НДС [00:03:31] 1010 (1) - 12% - код ставки НДС [00:03:31] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 1% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 2% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 3% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 5% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 0,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1007 (9) - суммы НСП [00:03:31] 1014 (1) - 1,50% - код ставки НСП [00:03:31] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:31] 1133 (588) - - счетчики коррекции - не используются [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1194 (04AA) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1134 (046E) [00:03:31]Malloc new data [00:03:31]Processing tag 1129 (0469) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1135 (046F) [00:03:31]Malloc new data [00:03:31]Processing tag 1201 (04B1) [00:03:31]Malloc new data [00:03:31]Processing tag 1136 (0470) [00:03:31]Malloc new data [00:03:31]Processing tag 1138 (0472) [00:03:31]Malloc new data [00:03:31]Processing tag 1024 (0400) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]SetTLVBufToDocument err=0 [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1130 (046A) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1135 (046F) [00:03:31]Malloc new data [00:03:31]Processing tag 1201 (04B1) [00:03:31]Malloc new data [00:03:31]Processing tag 1136 (0470) [00:03:31]Malloc new data [00:03:31]Processing tag 1138 (0472) [00:03:31]Malloc new data [00:03:31]Processing tag 1024 (0400) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]SetTLVBufToDocument err=0 [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1131 (046B) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1135 (046F) [00:03:31]Malloc new data [00:03:31]Processing tag 1201 (04B1) [00:03:31]Malloc new data [00:03:31]Processing tag 1136 (0470) [00:03:31]Malloc new data [00:03:31]Processing tag 1138 (0472) [00:03:31]Malloc new data [00:03:31]Processing tag 1024 (0400) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1006 (03EE) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1010 (03F2) [00:03:31]Malloc new data [00:03:31]Processing tag 1011 (03F3) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:31]Malloc new data [00:03:31]SetTLVBufToDocument err=0 [00:03:31]Processing tag 1007 (03EF) [00:03:31]Load OK [00:03:31]SetTLVBufToDocument [00:03:31]Processing tag 1014 (03F6) [00:03:31]Malloc new data [00:03:31]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]SetTLVBufToDocument err=0 [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1132 (046C) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1135 (046F) [00:03:32]Malloc new data [00:03:32]Processing tag 1201 (04B1) [00:03:32]Malloc new data [00:03:32]Processing tag 1136 (0470) [00:03:32]Malloc new data [00:03:32]Processing tag 1138 (0472) [00:03:32]Malloc new data [00:03:32]Processing tag 1024 (0400) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1006 (03EE) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1010 (03F2) [00:03:32]Malloc new data [00:03:32]Processing tag 1011 (03F3) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1006 (03EE) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1010 (03F2) [00:03:32]Malloc new data [00:03:32]Processing tag 1011 (03F3) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1007 (03EF) [00:03:32]Load OK [00:03:32]SetTLVBufToDocument [00:03:32]Processing tag 1014 (03F6) [00:03:32]Malloc new data [00:03:32]Processing tag 1015 (03F7) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]SetTLVBufToDocument err=0 [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Processing tag 1133 (046D) [00:03:32]Malloc new data [00:03:32]SetTLVBufToDocument err=0 [00:03:32]SetTLVBufToDocument err=0 [00:03:32]Malloc new data [00:03:32]SAM_PROTO_GetFMData [00:03:32]wFMCommunicate request_size=4 [00:03:32]MH_SAM_APDU [00:03:32]CAPDU: 80 13 03 00 [00:03:32]Write to MH i2c: E2 08 00 A7 2D 80 13 03 00 00 00 00 00 53 [00:03:32]OFD Sender: No OFD packet to send [00:03:32]Write i2c OK [00:03:32]MH_I2C_Read... [00:03:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:32]Read from MH i2c: E2 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 [00:03:32]MH_I2C_Read... [00:03:32]Read from MH i2c: E2 FD 00 A7 2D 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 E1 [00:03:32]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:03:32]wFMCommunicate OK [00:03:32]wFMCommunicate request_size=4 [00:03:32]MH_SAM_APDU [00:03:32]CAPDU: 80 17 00 00 [00:03:32]Write to MH i2c: E2 08 00 A8 2D 80 17 00 00 00 00 00 00 55 [00:03:32]Write i2c OK [00:03:32]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 A8 2D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0F [00:03:33]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:03:33]wFMCommunicate OK [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 17 00 00 [00:03:33]Write to MH i2c: E2 08 00 A9 2D 80 17 00 00 00 00 00 00 56 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 FD 00 A9 2D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [00:03:33]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:33]wFMCommunicate OK [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 17 00 00 [00:03:33]Write to MH i2c: E2 08 00 AA 2D 80 17 00 00 00 00 00 00 57 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:34]Read from MH i2c: E2 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 FD 00 AA 2D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [00:03:34]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:34]wFMCommunicate OK [00:03:34]wFMCommunicate request_size=4 [00:03:34]MH_SAM_APDU [00:03:34]CAPDU: 80 17 00 00 [00:03:34]Write to MH i2c: E2 08 00 AB 2D 80 17 00 00 00 00 00 00 58 [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:03:34]Read from MH i2c: E2 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 E0 00 [00:03:34]MH_I2C_Read... [00:03:34]Read from MH i2c: E2 E0 00 AB 2D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 [00:03:34]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34]wFMCommunicate OK [00:03:34]SAM_PROTO_GetFMData done [00:03:34]FM_GetFMData:85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [00:03:35]oper:6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 [00:03:35]total:7D 7A 32 B6 [00:03:35]Malloc new data [00:03:35]oper:6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:03:35]total:D4 09 10 0D [00:03:35]Malloc new data [00:03:35]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 [00:03:35]total: [00:03:35]Malloc new data [00:03:35]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 [00:03:35]total: [00:03:35]Malloc new data [00:03:35]KKMPrepareXReportFMData err=0 [00:03:35]Х отчет ИНН: 02508201610067 Кассир: Джумагулова Н. 16.04.2024 00:03 Смена: 117 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 318 ИТОГИ ПРИХОД Чеков: 312 Общий итог: 348913.13 Итого наличными: 171524.00 Итого безнал.: 177389.13 НДС 0% : 0.00 НДС 12% : 37059.22 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3088.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 16000.00 Итого наличными: 16000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1699.38 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 141.61 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 155524.00 НС Приход: 30567614.69 НС Возвр.Прихода: 2191549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [00:03:35]StoreToDocumentArchive [00:03:35]MH_GetDate [00:03:35]Write to MH i2c: F0 00 00 AC 2D C8 [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: F0 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: F0 09 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: F0 09 00 AC 2D 00 5A C0 1D 66 23 5B 8F 65 E0 [00:03:35]shift 117 fd 1713225818 [00:03:35]save to /storage/0117/doc_1713225818 [00:03:35]save last doc name /storage/0117/doc_1713225818 to /storage/kkm_last_doc_name [00:03:35]save OK [00:03:35]Clear old archive folders... [00:03:35]NVStorageSaveData kkm_last_timestamp [00:03:35]File name is /storage/kkm_last_timestamp [00:03:35]Write 4 bytes [00:03:35]NVStorageSaveData done [00:03:35]ExternCall_PrintAddStr [00:03:35]wPrintStart [00:03:35]Write to MH i2c: 01 00 00 AD 2D DA [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: 01 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: 01 07 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [00:03:35]RasterBufferAndPrint [00:03:35]line Х отчет [00:03:35]line ИНН: 02508201610067 [00:03:35]line Кассир: Джумагулова Н. [00:03:35]line 16.04.2024 00:03 [00:03:35]line Смена: 117 [00:03:35]line РНМ: 0000138879044617 [00:03:35]line ЗНМ: 0300000027 [00:03:35]line СНО: Общий режим [00:03:35]line Всего чеков: 318 [00:03:35]line ИТОГИ ПРИХОД [00:03:35]line Чеков: 312 [00:03:35]line Общий итог: 348913.13 [00:03:35]line Итого наличными: 171524.00 [00:03:35]line Итого безнал.: 177389.13 [00:03:35]line НДС 0% : 0.00 [00:03:35]line НДС 12% : 37059.22 [00:03:35]line НСП 0% : 0.00 [00:03:35]line НСП 1,50% : 0.00 [00:03:35]line НСП 0,50% : 0.00 [00:03:35]line НСП 5% : 0.00 [00:03:35]line НСП 3% : 0.00 [00:03:35]line НСП 2% : 0.00 [00:03:35]line НСП 1% : 3088.15 [00:03:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:03:35]line Чеков: 6 [00:03:35]line Общий итог: 16000.00 [00:03:35]line Итого наличными: 16000.00 [00:03:35]line Итого безнал.: 0.00 [00:03:35]line НДС 0% : 0.00 [00:03:35]line НДС 12% : 1699.38 [00:03:35]line НСП 0% : 0.00 [00:03:35]line НСП 1,50% : 0.00 [00:03:35]line НСП 0,50% : 0.00 [00:03:35]line НСП 5% : 0.00 [00:03:35]line НСП 3% : 0.00 [00:03:35]line НСП 2% : 0.00 [00:03:35]line НСП 1% : 141.61 [00:03:35]line ИТОГИ РАСХОД [00:03:35]line Чеков: 0 [00:03:35]line Общий итог: 0.00 [00:03:35]line Итого наличными: 0.00 [00:03:35]line Итого безнал.: 0.00 [00:03:35]line НДС 0% : 0.00 [00:03:35]line НДС 12% : 0.00 [00:03:35]line НСП 0% : 0.00 [00:03:35]line НСП 1,50% : 0.00 [00:03:35]line НСП 0,50% : 0.00 [00:03:35]line НСП 5% : 0.00 [00:03:35]line НСП 3% : 0.00 [00:03:35]line НСП 2% : 0.00 [00:03:35]line НСП 1% : 0.00 [00:03:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:03:35]line Чеков: 0 [00:03:35]line Общий итог: 0.00 [00:03:35]line Итого наличными: 0.00 [00:03:35]line Итого безнал.: 0.00 [00:03:35]line НДС 0% : 0.00 [00:03:35]line НДС 12% : 0.00 [00:03:35]line НСП 0% : 0.00 [00:03:35]line НСП 1,50% : 0.00 [00:03:35]line НСП 0,50% : 0.00 [00:03:35]line НСП 5% : 0.00 [00:03:35]line НСП 3% : 0.00 [00:03:35]line НСП 2% : 0.00 [00:03:35]line НСП 1% : 0.00 [00:03:35]line Сумма внесений: 0.00 [00:03:35]line Сумма выплат: 0.00 [00:03:35]line Нал. в кассе: 155524.00 [00:03:35]line НС Приход: 30567614.69 [00:03:35]line НС Возвр.Прихода: 2191549.00 [00:03:35]line НС Расход: 0.00 [00:03:35]line НС Возвр.Расхода: 0.00 [00:03:35]line ФМ: 0000000000963154 [00:03:35]written 0, free lines is 4095 [00:03:36]Write to MH i2c: 01 00 00 F8 2D 25 [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 A6 0A DC [00:03:36]RasterBufferAndPrint [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]line [00:03:36]written 0, free lines is 2758 [00:03:36]MH_Cut [00:03:36]Write to MH i2c: D1 01 00 FF 2D 01 FE [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 01 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: D1 01 00 FF 2D 00 FD [00:03:36]Write to MH i2c: 01 00 00 00 2E 2E [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:37]OFD Sender: No OFD packet to send [00:03:37]*** Cut start [00:03:37]*** Partial cut [00:03:37]*** CUTSNS_PIN = 1 [00:03:37]*** CUTSNS_PIN = 0 [00:03:38]*** Brake cut motor [00:03:38]Read from MH i2c: 01 [00:03:38]MH_I2C_Read... [00:03:38]*** Stop cut motor [00:03:38]*** Cut end [00:03:38]Read from MH i2c: 01 07 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: 01 07 00 00 2E 00 00 00 00 00 FF 0F 43 [00:03:38]process_action x_report done [00:03:38]requested_data is exist [00:03:38]produce_requested_data [00:03:38]requested_item fd.num is exist - process it [00:03:38]SAM_PROTO_GetFieldsCounters [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 13 00 00 [00:03:38]Write to MH i2c: E2 08 00 01 2E 80 13 00 00 00 00 00 00 AB [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 62 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 62 00 01 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [00:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:38]wFMCommunicate OK [00:03:38]SAM_PROTO_GetFieldsCounters done [00:03:38]requested_item shift.num is exist - process it [00:03:38]requested_item shift.opened is exist - process it [00:03:38]req_shift_opened [00:03:38]FM_GetShiftState [00:03:38]SAM_PROTO_GetShiftState [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 13 01 00 [00:03:38]Write to MH i2c: E2 08 00 02 2E 80 13 01 00 00 00 00 00 AD [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 0E 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 0E 00 02 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A1 [00:03:38]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:03:38]wFMCommunicate OK [00:03:38]SAM_PROTO_GetShiftState done [00:03:38]FM_GetShiftState done [00:03:38]req_shift_opened done [00:03:38]requested_item shift.open_date is exist - process it [00:03:38]req_shift_open_date [00:03:38]req_shift_open_date done [00:03:38]produce_requested_data done [00:03:38]produce_requested_data return {"fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:03:38]process_action_free x_report [00:03:38]json_value_free [00:03:38]json_value_free done [00:03:38]process_json_proto returns [00:03:38]Send response to host [00:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:03:38]free response buf [00:03:38]execute_script done [00:03:38]execute_script returns [00:03:38]free content buf [00:03:38]Sock 5.Close socket [00:03:38]Sock 5.Thread stoped [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:14]accept exits with 7 [00:04:14]New connection [00:04:14]New thread 3066965348 created [00:04:14]Thread 3067108708 joined [00:04:14]Waiting for new connection... [00:04:14] Sock 7.Parse request [00:04:14]Sock 7.Check first char [00:04:14]Sock 7.First char is OK [00:04:14]request: POST /json_proto HTTP/1.0 [00:04:14]Method: POST [00:04:14]URL: /json_proto [00:04:14]Method is POST - this is cgi request [00:04:14]url: /json_proto [00:04:14]query_string will be loaded in cgi processing [00:04:14]execute_cgi json_proto POST (null) [00:04:14]execute_cgi path=json_proto method=POST [00:04:14]POST find Content-Length [00:04:14]Host: 172.17.33.3:8080 [00:04:14]Content-Length: 215 [00:04:14]Content-Type: application/json [00:04:14] [00:04:14]POST finish read [00:04:14]Found Content-Length = 215 [00:04:14]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:04:14]execute_script... [00:04:14]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:04:14]POST & json_proto [00:04:14]process_json_proto [00:04:14]json parsed OK: [00:04:14]protocol is kg_v1.0 [00:04:14]action value=get_value [00:04:14]process_action get_value [00:04:14]cmd_get_value [00:04:14]process_action get_value done [00:04:14]requested_data is exist [00:04:14]produce_requested_data [00:04:14]requested_item kkm.sn is exist - process it [00:04:14]requested_item kkm.ver is exist - process it [00:04:14]requested_item fm.sn is exist - process it [00:04:14]wFMCommunicate request_size=4 [00:04:14]MH_SAM_APDU [00:04:14]CAPDU: 80 11 00 00 [00:04:14]Write to MH i2c: E2 08 00 03 2E 80 11 00 00 00 00 00 00 AB [00:04:14]Write i2c OK [00:04:14]MH_I2C_Read... [00:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:15]Read from MH i2c: E2 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 17 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 17 00 03 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [00:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:04:15]wFMCommunicate OK [00:04:15]requested_item fd.num is exist - process it [00:04:15]SAM_PROTO_GetFieldsCounters [00:04:15]wFMCommunicate request_size=4 [00:04:15]MH_SAM_APDU [00:04:15]CAPDU: 80 13 00 00 [00:04:15]Write to MH i2c: E2 08 00 04 2E 80 13 00 00 00 00 00 00 AE [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:15]Read from MH i2c: E2 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 62 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 62 00 04 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [00:04:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:15]wFMCommunicate OK [00:04:15]SAM_PROTO_GetFieldsCounters done [00:04:15]requested_item shift.num is exist - process it [00:04:15]requested_item shift.opened is exist - process it [00:04:15]req_shift_opened [00:04:15]FM_GetShiftState [00:04:15]SAM_PROTO_GetShiftState [00:04:15]wFMCommunicate request_size=4 [00:04:15]MH_SAM_APDU [00:04:15]CAPDU: 80 13 01 00 [00:04:15]Write to MH i2c: E2 08 00 05 2E 80 13 01 00 00 00 00 00 B0 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:15]Read from MH i2c: E2 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 0E 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 0E 00 05 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 A4 [00:04:15]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:04:15]wFMCommunicate OK [00:04:15]SAM_PROTO_GetShiftState done [00:04:15]FM_GetShiftState done [00:04:15]req_shift_opened done [00:04:15]requested_item shift.open_date is exist - process it [00:04:15]req_shift_open_date [00:04:15]req_shift_open_date done [00:04:15]produce_requested_data done [00:04:15]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468} [00:04:15]process_action_free get_value [00:04:15]json_value_free [00:04:15]json_value_free done [00:04:15]process_json_proto returns [00:04:15]Send response to host [00:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29724,"shift.num":117,"shift.opened":1,"shift.open_date":1713140468}}} [00:04:15]free response buf [00:04:15]execute_script done [00:04:15]execute_script returns [00:04:15]free content buf [00:04:15]Sock 7.Close socket [00:04:15]Sock 7.Thread stoped [00:04:15]accept exits with 9 [00:04:15]New connection [00:04:15]New thread 3067108708 created [00:04:15]Thread 3066965348 joined [00:04:15]Waiting for new connection... [00:04:15] Sock 9.Parse request [00:04:15]Sock 9.Check first char [00:04:15]Sock 9.First char is OK [00:04:15]request: POST /json_proto HTTP/1.0 [00:04:15]Method: POST [00:04:15]URL: /json_proto [00:04:15]Method is POST - this is cgi request [00:04:15]url: /json_proto [00:04:15]query_string will be loaded in cgi processing [00:04:15]execute_cgi json_proto POST (null) [00:04:15]execute_cgi path=json_proto method=POST [00:04:15]POST find Content-Length [00:04:15]Host: 172.17.33.3:8080 [00:04:15]Content-Length: 331 [00:04:15]Content-Type: application/json [00:04:15] [00:04:15]POST finish read [00:04:15]Found Content-Length = 331 [00:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:15]execute_script... [00:04:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:15]POST & json_proto [00:04:15]process_json_proto [00:04:15]json parsed OK: [00:04:15]protocol is kg_v1.0 [00:04:15]action value=get_value [00:04:15]process_action get_value [00:04:15]cmd_get_value [00:04:15]process_action get_value done [00:04:15]requested_data is exist [00:04:15]produce_requested_data [00:04:15]requested_item fm.sale.total is exist - process it [00:04:15]SAM_PROTO_GetFMData [00:04:15]wFMCommunicate request_size=4 [00:04:15]MH_SAM_APDU [00:04:15]CAPDU: 80 13 03 00 [00:04:15]Write to MH i2c: E2 08 00 06 2E 80 13 03 00 00 00 00 00 B3 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:15]Read from MH i2c: E2 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 FD 00 [00:04:15]MH_I2C_Read... [00:04:15]Read from MH i2c: E2 FD 00 06 2E 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 41 [00:04:15]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:04:15]wFMCommunicate OK [00:04:15]wFMCommunicate request_size=4 [00:04:15]MH_SAM_APDU [00:04:15]CAPDU: 80 17 00 00 [00:04:15]Write to MH i2c: E2 08 00 07 2E 80 17 00 00 00 00 00 00 B5 [00:04:15]Write i2c OK [00:04:15]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 07 2E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6F [00:04:16]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:04:16]wFMCommunicate OK [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 17 00 00 [00:04:16]Write to MH i2c: E2 08 00 08 2E 80 17 00 00 00 00 00 00 B6 [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 08 2E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:04:16]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:16]wFMCommunicate OK [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 17 00 00 [00:04:16]Write to MH i2c: E2 08 00 09 2E 80 17 00 00 00 00 00 00 B7 [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:16]Read from MH i2c: E2 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 [00:04:16]MH_I2C_Read... [00:04:16]Read from MH i2c: E2 FD 00 09 2E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:04:16]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:16]wFMCommunicate OK [00:04:16]wFMCommunicate request_size=4 [00:04:16]MH_SAM_APDU [00:04:16]CAPDU: 80 17 00 00 [00:04:16]Write to MH i2c: E2 08 00 0A 2E 80 17 00 00 00 00 00 00 B8 [00:04:16]Write i2c OK [00:04:16]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 [00:04:17]MH_I2C_Read... [00:04:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:17]Read from MH i2c: E2 E0 00 [00:04:17]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 E0 00 0A 2E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A2 [00:04:17]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:17]wFMCommunicate OK [00:04:17]SAM_PROTO_GetFMData done [00:04:17]requested_item fm.sale_refund.total is exist - process it [00:04:17]requested_item fm.buy.total is exist - process it [00:04:17]requested_item shift.sale.total is exist - process it [00:04:17]SAM_PROTO_GetShiftData [00:04:17]wFMCommunicate request_size=4 [00:04:17]MH_SAM_APDU [00:04:17]CAPDU: 80 13 02 00 [00:04:17]Write to MH i2c: E2 08 00 0B 2E 80 13 02 00 00 00 00 00 B7 [00:04:17]Write i2c OK [00:04:17]MH_I2C_Read... [00:04:17]OFD Sender: No OFD packet to send [00:04:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:17]Read from MH i2c: E2 [00:04:17]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 FD 00 [00:04:17]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 FD 00 0B 2E 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 20 [00:04:17]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:04:17]wFMCommunicate OK [00:04:17]wFMCommunicate request_size=4 [00:04:17]MH_SAM_APDU [00:04:17]CAPDU: 80 17 00 00 [00:04:17]Write to MH i2c: E2 08 00 0C 2E 80 17 00 00 00 00 00 00 BA [00:04:17]Write i2c OK [00:04:17]MH_I2C_Read... [00:04:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:17]Read from MH i2c: E2 [00:04:17]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 FD 00 [00:04:17]MH_I2C_Read... [00:04:17]Read from MH i2c: E2 FD 00 0C 2E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:04:17]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:17]wFMCommunicate OK [00:04:17]wFMCommunicate request_size=4 [00:04:17]MH_SAM_APDU [00:04:17]CAPDU: 80 17 00 00 [00:04:17]Write to MH i2c: E2 08 00 0D 2E 80 17 00 00 00 00 00 00 BB [00:04:17]Write i2c OK [00:04:17]MH_I2C_Read... [00:04:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:18]Read from MH i2c: E2 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 FD 00 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 FD 00 0D 2E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 ED [00:04:18]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:04:18]wFMCommunicate OK [00:04:18]wFMCommunicate request_size=4 [00:04:18]MH_SAM_APDU [00:04:18]CAPDU: 80 17 00 00 [00:04:18]Write to MH i2c: E2 08 00 0E 2E 80 17 00 00 00 00 00 00 BC [00:04:18]Write i2c OK [00:04:18]MH_I2C_Read... [00:04:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:18]Read from MH i2c: E2 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 FD 00 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 FD 00 0E 2E 00 F7 03 00 00 EF 03 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 90 00 33 [00:04:18]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:04:18]wFMCommunicate OK [00:04:18]wFMCommunicate request_size=4 [00:04:18]MH_SAM_APDU [00:04:18]CAPDU: 80 17 00 00 [00:04:18]Write to MH i2c: E2 08 00 0F 2E 80 17 00 00 00 00 00 00 BD [00:04:18]Write i2c OK [00:04:18]MH_I2C_Read... [00:04:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:04:18]Read from MH i2c: E2 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 DA 00 [00:04:18]MH_I2C_Read... [00:04:18]Read from MH i2c: E2 DA 00 0F 2E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [00:04:18]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:18]wFMCommunicate OK [00:04:18]SAM_PROTO_GetShiftData done [00:04:18]requested_item shift.sale.total_cash is exist - process it [00:04:18]requested_item shift.sale_refund.total is exist - process it [00:04:18]requested_item shift.sale_refund.total_cash is exist - process it [00:04:18]requested_item shift.buy.total is exist - process it [00:04:18]requested_item shift.buy.total_cash is exist - process it [00:04:18]produce_requested_data done [00:04:18]produce_requested_data return {"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:18]process_action_free get_value [00:04:18]json_value_free [00:04:18]json_value_free done [00:04:18]process_json_proto returns [00:04:18]Send response to host [00:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:18]free response buf [00:04:18]execute_script done [00:04:18]execute_script returns [00:04:18]free content buf [00:04:18]Sock 9.Close socket [00:04:18]Sock 9.Thread stoped [00:04:18]accept exits with 7 [00:04:18]New connection [00:04:18]New thread 3066965348 created [00:04:18]Thread 3067108708 joined [00:04:18]Waiting for new connection... [00:04:18] Sock 7.Parse request [00:04:18]Sock 7.Check first char [00:04:18]Sock 7.First char is OK [00:04:18]request: POST /json_proto HTTP/1.0 [00:04:18]Method: POST [00:04:18]URL: /json_proto [00:04:18]Method is POST - this is cgi request [00:04:18]url: /json_proto [00:04:18]query_string will be loaded in cgi processing [00:04:18]execute_cgi json_proto POST (null) [00:04:18]execute_cgi path=json_proto method=POST [00:04:18]POST find Content-Length [00:04:18]Host: 172.17.33.3:8080 [00:04:18]Content-Length: 331 [00:04:18]Content-Type: application/json [00:04:18] [00:04:18]POST finish read [00:04:18]Found Content-Length = 331 [00:04: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:04:18]execute_script... [00:04: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:04:18]POST & json_proto [00:04:18]process_json_proto [00:04:18]json parsed OK: [00:04:18]protocol is kg_v1.0 [00:04:18]action value=get_value [00:04:18]process_action get_value [00:04:18]cmd_get_value [00:04:18]process_action get_value done [00:04:18]requested_data is exist [00:04:18]produce_requested_data [00:04:18]requested_item fm.sale.total is exist - process it [00:04:18]SAM_PROTO_GetFMData [00:04:18]wFMCommunicate request_size=4 [00:04:18]MH_SAM_APDU [00:04:18]CAPDU: 80 13 03 00 [00:04:18]Write to MH i2c: E2 08 00 10 2E 80 13 03 00 00 00 00 00 BD [00:04:18]Write i2c OK [00:04:18]MH_I2C_Read... [00:04:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:19]Read from MH i2c: E2 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: E2 FD 00 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: E2 FD 00 10 2E 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 4B [00:04:19]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:04:19]wFMCommunicate OK [00:04:19]wFMCommunicate request_size=4 [00:04:19]MH_SAM_APDU [00:04:19]CAPDU: 80 17 00 00 [00:04:19]Write to MH i2c: E2 08 00 11 2E 80 17 00 00 00 00 00 00 BF [00:04:19]Write i2c OK [00:04:19]MH_I2C_Read... [00:04:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:19]Read from MH i2c: E2 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: E2 FD 00 [00:04:19]MH_I2C_Read... [00:04:19]Read from MH i2c: E2 FD 00 11 2E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 79 [00:04:19]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:04:19]wFMCommunicate OK [00:04:19]wFMCommunicate request_size=4 [00:04:19]MH_SAM_APDU [00:04:19]CAPDU: 80 17 00 00 [00:04:19]Write to MH i2c: E2 08 00 12 2E 80 17 00 00 00 00 00 00 C0 [00:04:19]Write i2c OK [00:04:19]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 FD 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 FD 00 12 2E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:04:20]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:20]wFMCommunicate OK [00:04:20]wFMCommunicate request_size=4 [00:04:20]MH_SAM_APDU [00:04:20]CAPDU: 80 17 00 00 [00:04:20]Write to MH i2c: E2 08 00 13 2E 80 17 00 00 00 00 00 00 C1 [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 FD 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 FD 00 13 2E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:04:20]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:20]wFMCommunicate OK [00:04:20]wFMCommunicate request_size=4 [00:04:20]MH_SAM_APDU [00:04:20]CAPDU: 80 17 00 00 [00:04:20]Write to MH i2c: E2 08 00 14 2E 80 17 00 00 00 00 00 00 C2 [00:04:20]Write i2c OK [00:04:20]MH_I2C_Read... [00:04:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:20]Read from MH i2c: E2 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 E0 00 [00:04:20]MH_I2C_Read... [00:04:20]Read from MH i2c: E2 E0 00 14 2E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AC [00:04:20]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:21]wFMCommunicate OK [00:04:21]SAM_PROTO_GetFMData done [00:04:21]requested_item fm.sale_refund.total is exist - process it [00:04:21]requested_item fm.buy.total is exist - process it [00:04:21]requested_item shift.sale.total is exist - process it [00:04:21]SAM_PROTO_GetShiftData [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 13 02 00 [00:04:21]Write to MH i2c: E2 08 00 15 2E 80 13 02 00 00 00 00 00 C1 [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 15 2E 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 2A [00:04:21]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:04:21]wFMCommunicate OK [00:04:21]wFMCommunicate request_size=4 [00:04:21]MH_SAM_APDU [00:04:21]CAPDU: 80 17 00 00 [00:04:21]Write to MH i2c: E2 08 00 16 2E 80 17 00 00 00 00 00 00 C4 [00:04:21]Write i2c OK [00:04:21]MH_I2C_Read... [00:04:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:21]Read from MH i2c: E2 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 [00:04:21]MH_I2C_Read... [00:04:21]Read from MH i2c: E2 FD 00 16 2E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:04:22]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 17 2E 80 17 00 00 00 00 00 00 C5 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]OFD Sender: No OFD packet to send [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 17 2E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 F7 [00:04:22]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:04:22]wFMCommunicate OK [00:04:22]wFMCommunicate request_size=4 [00:04:22]MH_SAM_APDU [00:04:22]CAPDU: 80 17 00 00 [00:04:22]Write to MH i2c: E2 08 00 18 2E 80 17 00 00 00 00 00 00 C6 [00:04:22]Write i2c OK [00:04:22]MH_I2C_Read... [00:04:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:22]Read from MH i2c: E2 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 [00:04:22]MH_I2C_Read... [00:04:22]Read from MH i2c: E2 FD 00 18 2E 00 F7 03 00 00 EF 03 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 90 00 3D [00:04:22]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 17 00 00 [00:04:23]Write to MH i2c: E2 08 00 19 2E 80 17 00 00 00 00 00 00 C7 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 DA 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 DA 00 19 2E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:04:23]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:23]wFMCommunicate OK [00:04:23]SAM_PROTO_GetShiftData done [00:04:23]requested_item shift.sale.total_cash is exist - process it [00:04:23]requested_item shift.sale_refund.total is exist - process it [00:04:23]requested_item shift.sale_refund.total_cash is exist - process it [00:04:23]requested_item shift.buy.total is exist - process it [00:04:23]requested_item shift.buy.total_cash is exist - process it [00:04:23]produce_requested_data done [00:04:23]produce_requested_data return {"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:04:23]process_action_free get_value [00:04:23]json_value_free [00:04:23]json_value_free done [00:04:23]process_json_proto returns [00:04:23]Send response to host [00:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:04:23]free response buf [00:04:23]execute_script done [00:04:23]execute_script returns [00:04:23]free content buf [00:04:23]Sock 7.Close socket [00:04:23]Sock 7.Thread stoped [00:04:23]accept exits with 9 [00:04:23]New connection [00:04:23]New thread 3067108708 created [00:04:23]Thread 3066965348 joined [00:04:23]Waiting for new connection... [00:04:23] Sock 9.Parse request [00:04:23]Sock 9.Check first char [00:04:23]Sock 9.First char is OK [00:04:23]request: POST /json_proto HTTP/1.0 [00:04:23]Method: POST [00:04:23]URL: /json_proto [00:04:23]Method is POST - this is cgi request [00:04:23]url: /json_proto [00:04:23]query_string will be loaded in cgi processing [00:04:23]execute_cgi json_proto POST (null) [00:04:23]execute_cgi path=json_proto method=POST [00:04:23]POST find Content-Length [00:04:23]Host: 172.17.33.3:8080 [00:04:23]Content-Length: 278 [00:04:23]Content-Type: application/json [00:04:23] [00:04:23]POST finish read [00:04:23]Found Content-Length = 278 [00:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:23]execute_script... [00:04:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0436\u0443\u043C\u0430\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:23]POST & json_proto [00:04:23]process_json_proto [00:04:23]json parsed OK: [00:04:23]protocol is kg_v1.0 [00:04:23]action value=close_shift [00:04:23]process_action close_shift [00:04:23]cmd_close_shift [00:04:23]MH_GetDate [00:04:23]Write to MH i2c: F0 00 00 1A 2E 37 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 09 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 09 00 1A 2E 00 8A C0 1D 66 23 5B 8F 65 7F [00:04:23]GetLastDocTimeStamp 1713225810 [00:04:23]current date 1713225866 [00:04:23]FM_GetShiftState [00:04:23]SAM_PROTO_GetShiftState [00:04:23]wFMCommunicate request_size=4 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 13 01 00 [00:04:23]Write to MH i2c: E2 08 00 1B 2E 80 13 01 00 00 00 00 00 C6 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 0E 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 0E 00 1B 2E 00 09 00 01 F4 72 1C 66 00 00 00 00 90 00 BA [00:04:23]RAPDU: 09 00 01 F4 72 1C 66 00 00 00 00 90 00 [00:04:23]wFMCommunicate OK [00:04:23]SAM_PROTO_GetShiftState done [00:04:23]FM_GetShiftState done [00:04:23]KKMCreateCloseShiftDocument [00:04:23]Load OK [00:04:23]Malloc new data [00:04:23]MH_GetDate [00:04:23]Write to MH i2c: F0 00 00 1C 2E 39 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 09 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: F0 09 00 1C 2E 00 8A C0 1D 66 23 5B 8F 65 81 [00:04:23]Malloc new data [00:04:23]Malloc new data [00:04:23]Malloc new data [00:04:23]Malloc new data [00:04:23]KKMCreateCloseShiftDocument OK [00:04:23]KKMSetCloseShiftData OK [00:04:23]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:04:23]tlvbuf is 01AED8F0 [00:04:23]KKMLoadAndSignCloseShiftData [00:04:23]SAM_PROTO_ProcessDocument [00:04:23]wFMCommunicate request_size=9 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:04:23]Write to MH i2c: E2 0C 00 1D 2E 80 15 01 00 04 00 05 00 4D 00 00 00 24 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 1D 2E 00 90 00 BF [00:04:23]RAPDU: 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=23 [00:04:23]MH_SAM_APDU [00:04:23]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:04:23]Write to MH i2c: E2 1A 00 1E 2E 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 C1 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 1E 2E 00 90 00 C0 [00:04:23]RAPDU: 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=36 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [00:04:23]Write to MH i2c: E2 27 00 1F 2E 80 15 02 00 1F 00 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 3D [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:23]Read from MH i2c: E2 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 [00:04:23]MH_I2C_Read... [00:04:23]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [00:04:23]RAPDU: 90 00 [00:04:23]wFMCommunicate OK [00:04:23]wFMCommunicate request_size=13 [00:04:23]MH_SAM_APDU [00:04:23]CAPDU: 80 15 02 00 08 F4 03 04 00 8A C0 1D 66 [00:04:23]Write to MH i2c: E2 10 00 20 2E 80 15 02 00 08 00 F4 03 04 00 8A C0 1D 66 00 00 A6 [00:04:23]Write i2c OK [00:04:23]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 03 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [00:04:24]RAPDU: 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=25 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:04:24]Write to MH i2c: E2 1C 00 21 2E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 52 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 03 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [00:04:24]RAPDU: 90 00 [00:04:24]wFMCommunicate OK [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 15 03 00 [00:04:24]Write to MH i2c: E2 08 00 22 2E 80 15 03 00 00 00 00 00 D1 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:04:24]Read from MH i2c: E2 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 [00:04:24]MH_I2C_Read... [00:04:24]Read from MH i2c: E2 FD 00 22 2E 00 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 90 00 5B [00:04:24]RAPDU: 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 90 00 [00:04:24]wFMCommunicate OK [00:04:24]SAM_PROTO_ProcessDocument answer len = 1280 [00:04:24]SAM_PROTO_ProcessDocument remain to read = 1032 [00:04:24]wFMCommunicate request_size=4 [00:04:24]MH_SAM_APDU [00:04:24]CAPDU: 80 17 00 00 [00:04:24]Write to MH i2c: E2 08 00 23 2E 80 17 00 00 00 00 00 00 D1 [00:04:24]Write i2c OK [00:04:24]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 23 2E 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:04:25]RAPDU: 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:25]SAM_PROTO_ProcessDocument remain to read = 782 [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 24 2E 80 17 00 00 00 00 00 00 D2 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:25]Read from MH i2c: E2 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 [00:04:25]MH_I2C_Read... [00:04:25]Read from MH i2c: E2 FD 00 24 2E 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:04:25]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:25]wFMCommunicate OK [00:04:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:25]SAM_PROTO_ProcessDocument remain to read = 532 [00:04:25]wFMCommunicate request_size=4 [00:04:25]MH_SAM_APDU [00:04:25]CAPDU: 80 17 00 00 [00:04:25]Write to MH i2c: E2 08 00 25 2E 80 17 00 00 00 00 00 00 D3 [00:04:25]Write i2c OK [00:04:25]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 25 2E 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:04:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:26]SAM_PROTO_ProcessDocument remain to read = 282 [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 17 00 00 [00:04:26]Write to MH i2c: E2 08 00 26 2E 80 17 00 00 00 00 00 00 D4 [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 FD 00 26 2E 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 8A [00:04:26]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [00:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:04:26]SAM_PROTO_ProcessDocument remain to read = 32 [00:04:26]wFMCommunicate request_size=4 [00:04:26]MH_SAM_APDU [00:04:26]CAPDU: 80 17 00 00 [00:04:26]Write to MH i2c: E2 08 00 27 2E 80 17 00 00 00 00 00 00 D5 [00:04:26]Write i2c OK [00:04:26]MH_I2C_Read... [00:04:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 32! [00:04:26]Read from MH i2c: E2 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 23 00 [00:04:26]MH_I2C_Read... [00:04:26]Read from MH i2c: E2 23 00 27 2E 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 53 C4 BC FB 8A 99 90 00 07 [00:04:26]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 53 C4 BC FB 8A 99 90 00 [00:04:26]wFMCommunicate OK [00:04:26]SAM_PROTO_ProcessDocument received (without SW) 32 bytes [00:04:26]SAM_PROTO_ProcessDocument done [00:04:26]1209 (1) - 1.0 - номер версии ФФД [00:04:26]1041 (16) - 0000000000963154 - номер ФМ [00:04:26]1040 (4) - 29725 - номер ФД [00:04:26]1038 (4) - 117 - номер смены [00:04:26]1118 (4) - 318 - количество кассовых чеков за смену [00:04:26]1111 (4) - 320 - общее количество ФД за смену [00:04:26]1194 (1209) - счетчики итогов смены [00:04:26] 1134 (4) - 318 - количество чеков со всеми признаками расчетов [00:04:26] 1129 (159) - счетчики операций «приход» [00:04:26] 1135 (4) - 312 - количество чеков по признаку расчетов [00:04:26] 1201 (4) - 348913.13 - общая итоговая сумма в чеках [00:04:26] 1136 (4) - 171524.00 - итоговая сумма в чеках наличными [00:04:27] 1138 (4) - 177389.13 - итоговая сумма в чеках безналичными [00:04:27] 1024 (123) - суммы налогов [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 0% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1006 (12) - суммы НДС [00:04:27] 1010 (1) - 12% - код ставки НДС [00:04:27] 1011 (3) - 37059.22 - сумма НДС по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (12) - суммы НСП [00:04:27] 1014 (1) - 1% - код ставки НСП [00:04:27] 1015 (3) - 3088.15 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 2% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 3% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 5% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1130 (152) - счетчики операций «возврат прихода» [00:04:27] 1135 (4) - 6 - количество чеков по признаку расчетов [00:04:27] 1201 (3) - 16000.00 - общая итоговая сумма в чеках [00:04:27] 1136 (3) - 16000.00 - итоговая сумма в чеках наличными [00:04:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:27] 1024 (122) - суммы налогов [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 0% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1006 (12) - суммы НДС [00:04:27] 1010 (1) - 12% - код ставки НДС [00:04:27] 1011 (3) - 1699.38 - сумма НДС по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (11) - суммы НСП [00:04:27] 1014 (1) - 1% - код ставки НСП [00:04:27] 1015 (2) - 141.61 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 2% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 3% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 5% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1131 (141) - счетчики операций «расход» [00:04:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:27] 1024 (117) - суммы налогов [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 0% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 12% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 2% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 3% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 5% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1132 (141) - счетчики операций «возврат расхода» [00:04:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:04:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:04:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:04:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:04:27] 1024 (117) - суммы налогов [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 0% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1006 (9) - суммы НДС [00:04:27] 1010 (1) - 12% - код ставки НДС [00:04:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 2% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 3% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 5% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 0,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1007 (9) - суммы НСП [00:04:27] 1014 (1) - 1,50% - код ставки НСП [00:04:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:04:27] 1133 (588) - - счетчики коррекции - не используются [00:04:27]1077 (6) - 92104449297049 - ФПД [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1209 (04B9) [00:04:27]Malloc new data [00:04:27]Processing tag 1041 (0411) [00:04:27]Processing tag 1040 (0410) [00:04:27]Malloc new data [00:04:27]Processing tag 1038 (040E) [00:04:27]Malloc new data [00:04:27]Processing tag 1118 (045E) [00:04:27]Malloc new data [00:04:27]Processing tag 1111 (0457) [00:04:27]Malloc new data [00:04:27]Processing tag 1194 (04AA) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1134 (046E) [00:04:27]Malloc new data [00:04:27]Processing tag 1129 (0469) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1135 (046F) [00:04:27]Malloc new data [00:04:27]Processing tag 1201 (04B1) [00:04:27]Malloc new data [00:04:27]Processing tag 1136 (0470) [00:04:27]Malloc new data [00:04:27]Processing tag 1138 (0472) [00:04:27]Malloc new data [00:04:27]Processing tag 1024 (0400) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1130 (046A) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1135 (046F) [00:04:27]Malloc new data [00:04:27]Processing tag 1201 (04B1) [00:04:27]Malloc new data [00:04:27]Processing tag 1136 (0470) [00:04:27]Malloc new data [00:04:27]Processing tag 1138 (0472) [00:04:27]Malloc new data [00:04:27]Processing tag 1024 (0400) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1131 (046B) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1135 (046F) [00:04:27]Malloc new data [00:04:27]Processing tag 1201 (04B1) [00:04:27]Malloc new data [00:04:27]Processing tag 1136 (0470) [00:04:27]Malloc new data [00:04:27]Processing tag 1138 (0472) [00:04:27]Malloc new data [00:04:27]Processing tag 1024 (0400) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]OFD Sender: No OFD packet to send [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1132 (046C) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1135 (046F) [00:04:27]Malloc new data [00:04:27]Processing tag 1201 (04B1) [00:04:27]Malloc new data [00:04:27]Processing tag 1136 (0470) [00:04:27]Malloc new data [00:04:27]Processing tag 1138 (0472) [00:04:27]Malloc new data [00:04:27]Processing tag 1024 (0400) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1006 (03EE) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1010 (03F2) [00:04:27]Malloc new data [00:04:27]Processing tag 1011 (03F3) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:27]Processing tag 1014 (03F6) [00:04:27]Malloc new data [00:04:27]Processing tag 1015 (03F7) [00:04:27]Malloc new data [00:04:27]SetTLVBufToDocument err=0 [00:04:27]Processing tag 1007 (03EF) [00:04:27]Load OK [00:04:27]SetTLVBufToDocument [00:04:28]Processing tag 1014 (03F6) [00:04:28]Malloc new data [00:04:28]Processing tag 1015 (03F7) [00:04:28]Malloc new data [00:04:28]SetTLVBufToDocument err=0 [00:04:28]Processing tag 1007 (03EF) [00:04:28]Load OK [00:04:28]SetTLVBufToDocument [00:04:28]Processing tag 1014 (03F6) [00:04:28]Malloc new data [00:04:28]Processing tag 1015 (03F7) [00:04:28]Malloc new data [00:04:28]SetTLVBufToDocument err=0 [00:04:28]Processing tag 1007 (03EF) [00:04:28]Load OK [00:04:28]SetTLVBufToDocument [00:04:28]Processing tag 1014 (03F6) [00:04:28]Malloc new data [00:04:28]Processing tag 1015 (03F7) [00:04:28]Malloc new data [00:04:28]SetTLVBufToDocument err=0 [00:04:28]SetTLVBufToDocument err=0 [00:04:28]SetTLVBufToDocument err=0 [00:04:28]Processing tag 1133 (046D) [00:04:28]Malloc new data [00:04:28]SetTLVBufToDocument err=0 [00:04:28]Processing tag 1077 (0435) [00:04:28]Malloc new data [00:04:28]SetTLVBufToDocument err=0 [00:04:28]Malloc new data [00:04:28]SAM_PROTO_GetFMData [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 13 03 00 [00:04:28]Write to MH i2c: E2 08 00 28 2E 80 13 03 00 00 00 00 00 D5 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:28]Read from MH i2c: E2 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 [00:04:28]MH_I2C_Read... [00:04:28]Read from MH i2c: E2 FD 00 28 2E 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 63 [00:04:28]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:04:28]wFMCommunicate OK [00:04:28]wFMCommunicate request_size=4 [00:04:28]MH_SAM_APDU [00:04:28]CAPDU: 80 17 00 00 [00:04:28]Write to MH i2c: E2 08 00 29 2E 80 17 00 00 00 00 00 00 D7 [00:04:28]Write i2c OK [00:04:28]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 29 2E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 91 [00:04:29]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 2A 2E 80 17 00 00 00 00 00 00 D8 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:29]Read from MH i2c: E2 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 [00:04:29]MH_I2C_Read... [00:04:29]Read from MH i2c: E2 FD 00 2A 2E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [00:04:29]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:29]wFMCommunicate OK [00:04:29]wFMCommunicate request_size=4 [00:04:29]MH_SAM_APDU [00:04:29]CAPDU: 80 17 00 00 [00:04:29]Write to MH i2c: E2 08 00 2B 2E 80 17 00 00 00 00 00 00 D9 [00:04:29]Write i2c OK [00:04:29]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 FD 00 2B 2E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [00:04:30]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:04:30]wFMCommunicate OK [00:04:30]wFMCommunicate request_size=4 [00:04:30]MH_SAM_APDU [00:04:30]CAPDU: 80 17 00 00 [00:04:30]Write to MH i2c: E2 08 00 2C 2E 80 17 00 00 00 00 00 00 DA [00:04:30]Write i2c OK [00:04:30]MH_I2C_Read... [00:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:04:30]Read from MH i2c: E2 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 E0 00 [00:04:30]MH_I2C_Read... [00:04:30]Read from MH i2c: E2 E0 00 2C 2E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [00:04:30]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_GetFMData done [00:04:31]Malloc new data [00:04:31]Malloc new data [00:04:31]Malloc new data [00:04:31]Malloc new data [00:04:31]KKMLoadAndSignCloseShiftData err=0 [00:04:31]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Джумагулова Н. 16.04.2024 00:04 Смена: 117 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 318 ФД за смену: 320 Всего чеков: 318 ИТОГИ ПРИХОД Чеков: 312 Общий итог: 348913.13 Итого наличными: 171524.00 Итого безнал.: 177389.13 НДС 0% : 0.00 НДС 12% : 37059.22 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3088.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 16000.00 Итого наличными: 16000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1699.38 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 141.61 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 155524.00 НС Приход: 30567614.69 НС Возвр.Прихода: 2191549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 29725 ФМ: 0000000000963154 ФПД: 92104449297049 [00:04:31]StoreToDocumentArchive [00:04:31]shift 117 fd 29725 [00:04:31]save to /storage/0117/doc_00029725 [00:04:31]save last doc name /storage/0117/doc_00029725 to /storage/kkm_last_doc_name [00:04:31]save OK [00:04:31]Clear old archive folders... [00:04:31]NVStorageSaveData kkm_registers [00:04:31]File name is /storage/kkm_registers [00:04:31]Write 24 bytes [00:04:31]NVStorageSaveData done [00:04:31]NVStorageSaveData kkm_registers [00:04:31]File name is /storage/kkm_registers [00:04:31]Write 24 bytes [00:04:31]NVStorageSaveData done [00:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=1396 [00:04:31]tlvbuf is 01A98290 [00:04:31]SAM_PROTO_ClearQueue [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 09 00 00 [00:04:31]Write to MH i2c: E2 08 00 2D 2E 80 09 00 00 00 00 00 00 CD [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]SAM_PROTO_ClearQueue done [00:04:31]KKMCreateOFDPacket [00:04:31]OFDProtocolAddRootSTLVToBuf [00:04:31]FM_MakeSignedData [00:04:31]FM_MakeSignedData [00:04:31]SAM_PROTO_SignData [00:04:31]wFMCommunicate request_size=4 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 0D 01 02 [00:04:31]Write to MH i2c: E2 08 00 2E 2E 80 0D 01 02 00 00 00 00 D5 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=255 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 0D 02 02 FA 05 00 74 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 8A C0 1D 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 E0 04 6E 04 04 00 3E 01 00 00 69 04 A6 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 [00:04:31]Write to MH i2c: E2 02 01 2F 2E 80 0D 02 02 FA 00 05 00 74 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 8A C0 1D 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 E0 04 6E 04 04 00 3E 01 00 00 69 04 A6 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 00 00 32 [00:04:31]Write i2c OK [00:04:31]MH_I2C_Read... [00:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:31]Read from MH i2c: E2 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 [00:04:31]MH_I2C_Read... [00:04:31]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [00:04:31]RAPDU: 90 00 [00:04:31]wFMCommunicate OK [00:04:31]wFMCommunicate request_size=255 [00:04:31]MH_SAM_APDU [00:04:31]CAPDU: 80 0D 02 02 FA 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 4F B6 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 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:04:32]Write to MH i2c: E2 02 01 30 2E 80 0D 02 02 FA 00 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 4F B6 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 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 00 7C [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:32]Read from MH i2c: E2 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 [00:04:32]MH_I2C_Read... [00:04:32]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [00:04:32]RAPDU: 90 00 [00:04:32]wFMCommunicate OK [00:04:32]wFMCommunicate request_size=255 [00:04:32]MH_SAM_APDU [00:04:32]CAPDU: 80 0D 02 02 FA 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 [00:04:32]Write to MH i2c: E2 02 01 31 2E 80 0D 02 02 FA 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 00 00 95 [00:04:32]Write i2c OK [00:04:32]MH_I2C_Read... [00:04:32]OFD Sender: No OFD packet to send [00:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 31 2E 00 90 00 D3 [00:04:33]RAPDU: 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=255 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 0D 02 02 FA 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 [00:04:33]Write to MH i2c: E2 02 01 32 2E 80 0D 02 02 FA 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 00 00 A1 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 03 00 32 2E 00 90 00 D4 [00:04:33]RAPDU: 90 00 [00:04:33]wFMCommunicate OK [00:04:33]wFMCommunicate request_size=255 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 0D 02 02 FA 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 [00:04:33]Write to MH i2c: E2 02 01 33 2E 80 0D 02 02 FA 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 00 00 6D [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 33 2E 00 90 00 D5 [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=155 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 02 02 96 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 53 C4 BC FB 8A 99 [00:04:34]Write to MH i2c: E2 9E 00 34 2E 80 0D 02 02 96 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 53 C4 BC FB 8A 99 00 00 A1 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 34 2E 00 90 00 D6 [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 03 02 [00:04:34]Write to MH i2c: E2 08 00 35 2E 80 0D 03 02 00 00 00 00 DE [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 35 2E 00 DD 17 68 37 3E F4 F0 7C 90 00 10 [00:04:34]RAPDU: DD 17 68 37 3E F4 F0 7C 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_SignData done [00:04:34]FM_MakeSignedData done [00:04:34]CreateOFDProtocolMessage [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 11 00 00 [00:04:34]Write to MH i2c: E2 08 00 36 2E 80 11 00 00 00 00 00 00 DE [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 36 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [00:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:04:34]wFMCommunicate OK [00:04:34]CreateOFDProtocolMessage done [00:04:34]OFDSenderStorePacket 29725 [00:04:34]StoreOFDPacket docnum=29725 [00:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 88 05 00 00 46 F9 80 05 7F 75 5A 05 01 00 05 00 74 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 8A C0 1D 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 E0 04 6E 04 04 00 3E 01 00 00 69 04 A6 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 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 1D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 53 C4 BC FB 8A 99 DD 17 68 37 3E F4 F0 7C [00:04:35]CheckFolder [00:04:35]dirname=/storage/ofd_packets [00:04:35]CheckFolder done [00:04:35]ProducePacketName [00:04:35]name=ofd_packets/00029725 [00:04:35]NVStorageSaveData ofd_packets/00029725 [00:04:35]File name is /storage/ofd_packets/00029725 [00:04:35]Write 1446 bytes [00:04:35]NVStorageSaveData done [00:04:35]OFDSenderStorePacket done [00:04:35]KKMCreateOFDPacket done [00:04:35]NVStorageSaveData kkm_last_timestamp [00:04:35]File name is /storage/kkm_last_timestamp [00:04:35]Write 4 bytes [00:04:35]NVStorageSaveData done [00:04:35]ExternCall_PrintAddStr [00:04:35]wPrintStart [00:04:35]Write to MH i2c: 01 00 00 37 2E 65 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 37 2E 00 00 00 00 00 FF 0F 7A [00:04:35]RasterBufferAndPrint [00:04:35]line Отчет о закрытии смены [00:04:35]line ФФД: 1.0 [00:04:35]line ИНН: 02508201610067 [00:04:35]line Кассир: Джумагулова Н. [00:04:35]line 16.04.2024 00:04 [00:04:35]line Смена: 117 [00:04:35]line РНМ: 0000138879044617 [00:04:35]line ЗНМ: 0300000027 [00:04:35]line СНО: Общий режим [00:04:35]line Чеков за смену: 318 [00:04:35]line ФД за смену: 320 [00:04:35]line Всего чеков: 318 [00:04:35]line ИТОГИ ПРИХОД [00:04:35]line Чеков: 312 [00:04:35]line Общий итог: 348913.13 [00:04:35]line Итого наличными: 171524.00 [00:04:35]line Итого безнал.: 177389.13 [00:04:35]line НДС 0% : 0.00 [00:04:35]line НДС 12% : 37059.22 [00:04:35]line НСП 0% : 0.00 [00:04:35]line НСП 1,50% : 0.00 [00:04:35]line НСП 0,50% : 0.00 [00:04:35]line НСП 5% : 0.00 [00:04:35]line НСП 3% : 0.00 [00:04:35]line НСП 2% : 0.00 [00:04:35]line НСП 1% : 3088.15 [00:04:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:04:35]line Чеков: 6 [00:04:35]line Общий итог: 16000.00 [00:04:35]line Итого наличными: 16000.00 [00:04:35]line Итого безнал.: 0.00 [00:04:35]line НДС 0% : 0.00 [00:04:35]line НДС 12% : 1699.38 [00:04:35]line НСП 0% : 0.00 [00:04:35]line НСП 1,50% : 0.00 [00:04:35]line НСП 0,50% : 0.00 [00:04:35]line НСП 5% : 0.00 [00:04:35]line НСП 3% : 0.00 [00:04:35]line НСП 2% : 0.00 [00:04:35]line НСП 1% : 141.61 [00:04:35]line ИТОГИ РАСХОД [00:04:35]line Чеков: 0 [00:04:35]line Общий итог: 0.00 [00:04:35]line Итого наличными: 0.00 [00:04:35]line Итого безнал.: 0.00 [00:04:35]line НДС 0% : 0.00 [00:04:35]line НДС 12% : 0.00 [00:04:35]line НСП 0% : 0.00 [00:04:35]line НСП 1,50% : 0.00 [00:04:35]line НСП 0,50% : 0.00 [00:04:35]line НСП 5% : 0.00 [00:04:35]line НСП 3% : 0.00 [00:04:35]line НСП 2% : 0.00 [00:04:35]line НСП 1% : 0.00 [00:04:35]OFD Sender: Processing packet 29725 [packets to send 8, broken 7] [00:04:35]ProducePacketName [00:04:35]name=ofd_packets/00029725 [00:04:35]OFD Sender: To server: pG, [00:04:35]CommunicateWithHost lk.salyk.kg:30040 [00:04:35]ConnectInit lk.salyk.kg [00:04:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:04:35]line Чеков: 0 [00:04:35]line Общий итог: 0.00 [00:04:35]line Итого наличными: 0.00 [00:04:35]line Итого безнал.: 0.00 [00:04:35]line НДС 0% : 0.00 [00:04:35]line НДС 12% : 0.00 [00:04:35]line НСП 0% : 0.00 [00:04:35]line НСП 1,50% : 0.00 [00:04:35]line НСП 0,50% : 0.00 [00:04:35]line НСП 5% : 0.00 [00:04:35]line НСП 3% : 0.00 [00:04:35]line НСП 2% : 0.00 [00:04:35]line НСП 1% : 0.00 [00:04:35]line Сумма внесений: 0.00 [00:04:35]line Сумма выплат: 0.00 [00:04:35]line Нал. в кассе: 155524.00 [00:04:35]line НС Приход: 30567614.69 [00:04:35]line НС Возвр.Прихода: 2191549.00 [00:04:35]line НС Расход: 0.00 [00:04:35]line НС Возвр.Расхода: 0.00 [00:04:35]line ФД: 29725 [00:04:35]line ФМ: 0000000000963154 [00:04:35]line ФПД: 92104449297049 [00:04:35]written 0, free lines is 4095 [00:04:35]Connected sock=10 [00:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 88 05 00 00 46 F9 80 05 7F 75 5A 05 01 00 05 00 74 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 94 D0 B6 D1 83 D0 BC D0 B0 D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 8A C0 1D 66 0E 04 04 00 75 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 AA 04 E0 04 6E 04 04 00 3E 01 00 00 69 04 A6 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D2 97 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 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 Write to MH i2c: F3 01 03 00 00 00 00 87 EF 2E 03 B5 09 [00:04:36]00 F6 Write i2c OK [00:04:36]03 MH_I2C_Read... [00:04:36]01 Read from MH i2c: 00 01 00 [00:04:36]F7 MH_I2C_Read... [00:04:36]03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 Read from MH i2c: EF 01 03 07 00 [00:04:36]09 MH_I2C_Read... [00:04:36]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Read from MH i2c: 03 01 00 07 00 00 EF 87 03 2E 09 00 00 00 F6 00 03 00 01 00 00 42 0B 04 09 F7 [00:04:36]03 RasterBufferAndPrint [00:04:36]00 line [00:04:36]00 line [00:04:36]EF line [00:04:36]03 line [00:04:36]09 line [00:04:36]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 written 0, free lines is 3002 [00:04:36]03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 MH_Cut [00:04:36]00 Write to MH i2c: B1 D1 01 00 8E 2E 01 8E [00:04:36]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:04:36]00 MH_I2C_Read... [00:04:36]05 Read from MH i2c: F7 D1 03 [00:04:36]00 MH_I2C_Read... [00:04:36]00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Read from MH i2c: F7 D1 03 01 00 00 00 [00:04:36]EF MH_I2C_Read... [00:04:36]03 09 00 F6 03 01 Read from MH i2c: 00 D1 02 01 F7 00 03 8E 00 2E 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 00 09 8D 00 [00:04:36]F6 Write to MH i2c: 03 01 01 00 00 00 04 8F F7 2E 03 00 00 EF 03 09 00 F6 03 01 00 05 BD F7 [00:04:36]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 Write i2c OK [00:04:36]03 MH_I2C_Read... [00:04:36]00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 53 C4 BC FB 8A 99 DD 17 68 37 3E F4 F0 7C [00:04:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 33 8B 47 00 03 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 39 36 33 31 35 34 10 04 04 00 1D 74 00 00 F4 03 04 00 35 6B 1D 66 B6 04 01 00 00 D1 43 34 A9 5B 0C 75 D7 [00:04:37]CommunicateWithHost err = 0 [00:04:37]CheckOFDResponse [00:04:37]1017 (14) - 77093643461234 [00:04:37]1041 (16) - 0000000000963154 [00:04:37]1040 (4) - 29725 [00:04:37]1012 (4) - 15.04.2024 18:00 [00:04:37]1206 (1) - 0 [00:04:37]OFD Sender: Remove packet 29725 [00:04:37]ProducePacketName [00:04:37]name=ofd_packets/00029725 [00:04:37]NVStorageDeleteData [00:04:37]*** Cut start [00:04:37]*** Partial cut [00:04:37]*** CUTSNS_PIN = 1 [00:04:37]*** CUTSNS_PIN = 0 [00:04:37]*** Brake cut motor [00:04:37]OFD Sender: No OFD packet to send [00:04:38]Read from MH i2c: 01 [00:04:38]MH_I2C_Read... [00:04:38]*** Stop cut motor [00:04:38]*** Cut end [00:04:38]Read from MH i2c: 01 07 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: 01 07 00 8F 2E 00 00 00 00 00 FF 0F D2 [00:04:38]process_action close_shift done [00:04:38]requested_data is exist [00:04:38]produce_requested_data [00:04:38]requested_item fd.num is exist - process it [00:04:38]SAM_PROTO_GetFieldsCounters [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 00 00 [00:04:38]Write to MH i2c: E2 08 00 90 2E 80 13 00 00 00 00 00 00 3A [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 62 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 62 00 90 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [00:04:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:38]wFMCommunicate OK [00:04:38]SAM_PROTO_GetFieldsCounters done [00:04:38]requested_item shift.num is exist - process it [00:04:38]requested_item shift.opened is exist - process it [00:04:38]req_shift_opened [00:04:38]FM_GetShiftState [00:04:38]SAM_PROTO_GetShiftState [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 01 00 [00:04:38]Write to MH i2c: E2 08 00 91 2E 80 13 01 00 00 00 00 00 3C [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 91 2E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 47 [00:04:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:38]wFMCommunicate OK [00:04:38]SAM_PROTO_GetShiftState done [00:04:38]FM_GetShiftState done [00:04:38]req_shift_opened done [00:04:38]requested_item shift.open_date is exist - process it [00:04:38]req_shift_open_date [00:04:38]FM_GetShiftState [00:04:38]SAM_PROTO_GetShiftState [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 01 00 [00:04:38]Write to MH i2c: E2 08 00 92 2E 80 13 01 00 00 00 00 00 3D [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 92 2E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 48 [00:04:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:38]wFMCommunicate OK [00:04:38]SAM_PROTO_GetShiftState done [00:04:38]FM_GetShiftState done [00:04:38]req_shift_open_date done [00:04:38]produce_requested_data done [00:04:38]produce_requested_data return {"fd.num":29725,"shift.num":117,"shift.opened":0,"shift.open_date":0} [00:04:38]process_action_free close_shift [00:04:38]json_value_free [00:04:38]json_value_free done [00:04:38]process_json_proto returns [00:04:38]Send response to host [00:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29725,"shift.num":117,"shift.opened":0,"shift.open_date":0}}} [00:04:38]free response buf [00:04:38]execute_script done [00:04:38]execute_script returns [00:04:38]free content buf [00:04:38]Sock 9.Close socket [00:04:38]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07: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:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]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:36]accept exits with 7 [00:20:36]New connection [00:20:36]New thread 3066965348 created [00:20:36]Thread 3067108708 joined [00:20:36]Waiting for new connection... [00:20:36] Sock 7.Parse request [00:20:36]Sock 7.Check first char [00:20:36]Sock 7.First char is OK [00:20:36]request: POST /json_proto HTTP/1.0 [00:20:36]Method: POST [00:20:36]URL: /json_proto [00:20:36]Method is POST - this is cgi request [00:20:36]url: /json_proto [00:20:36]query_string will be loaded in cgi processing [00:20:36]execute_cgi json_proto POST (null) [00:20:36]execute_cgi path=json_proto method=POST [00:20:36]POST find Content-Length [00:20:36]Host: 172.17.33.3:8080 [00:20:36]Content-Length: 215 [00:20:36]Content-Type: application/json [00:20:36] [00:20:36]POST finish read [00:20:36]Found Content-Length = 215 [00:20:36]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:20:36]execute_script... [00:20:36]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:20:36]POST & json_proto [00:20:36]process_json_proto [00:20:36]json parsed OK: [00:20:36]protocol is kg_v1.0 [00:20:36]action value=get_value [00:20:36]process_action get_value [00:20:36]cmd_get_value [00:20:36]process_action get_value done [00:20:36]requested_data is exist [00:20:36]produce_requested_data [00:20:36]requested_item kkm.sn is exist - process it [00:20:36]requested_item kkm.ver is exist - process it [00:20:36]requested_item fm.sn is exist - process it [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 11 00 00 [00:20:36]Write to MH i2c: E2 08 00 93 2E 80 11 00 00 00 00 00 00 3B [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 17 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 17 00 93 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [00:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:20:37]wFMCommunicate OK [00:20:37]requested_item fd.num is exist - process it [00:20:37]SAM_PROTO_GetFieldsCounters [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 00 00 [00:20:37]Write to MH i2c: E2 08 00 94 2E 80 13 00 00 00 00 00 00 3E [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 94 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [00:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 74 00 00 0E 04 04 00 75 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetFieldsCounters done [00:20:37]requested_item shift.num is exist - process it [00:20:37]requested_item shift.opened is exist - process it [00:20:37]req_shift_opened [00:20:37]FM_GetShiftState [00:20:37]SAM_PROTO_GetShiftState [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 01 00 [00:20:37]Write to MH i2c: E2 08 00 95 2E 80 13 01 00 00 00 00 00 40 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 95 2E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4B [00:20:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetShiftState done [00:20:37]FM_GetShiftState done [00:20:37]req_shift_opened done [00:20:37]requested_item shift.open_date is exist - process it [00:20:37]req_shift_open_date [00:20:37]FM_GetShiftState [00:20:37]SAM_PROTO_GetShiftState [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 01 00 [00:20:37]Write to MH i2c: E2 08 00 96 2E 80 13 01 00 00 00 00 00 41 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 96 2E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4C [00:20:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetShiftState done [00:20:37]FM_GetShiftState done [00:20:37]req_shift_open_date done [00:20:37]produce_requested_data done [00:20:37]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29725,"shift.num":117,"shift.opened":0,"shift.open_date":0} [00:20:37]process_action_free get_value [00:20:37]json_value_free [00:20:37]json_value_free done [00:20:37]process_json_proto returns [00:20:37]Send response to host [00:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29725,"shift.num":117,"shift.opened":0,"shift.open_date":0}}} [00:20:37]free response buf [00:20:37]execute_script done [00:20:37]execute_script returns [00:20:37]free content buf [00:20:37]Sock 7.Close socket [00:20:37]Sock 7.Thread stoped [00:20:37]accept exits with 9 [00:20:37]New connection [00:20:37]New thread 3067108708 created [00:20:37]Thread 3066965348 joined [00:20:37]Waiting for new connection... [00:20:37] Sock 9.Parse request [00:20:37]Sock 9.Check first char [00:20:37]Sock 9.First char is OK [00:20:37]request: POST /json_proto HTTP/1.0 [00:20:37]Method: POST [00:20:37]URL: /json_proto [00:20:37]Method is POST - this is cgi request [00:20:37]url: /json_proto [00:20:37]query_string will be loaded in cgi processing [00:20:37]execute_cgi json_proto POST (null) [00:20:37]execute_cgi path=json_proto method=POST [00:20:37]POST find Content-Length [00:20:37]Host: 172.17.33.3:8080 [00:20:37]Content-Length: 331 [00:20:37]Content-Type: application/json [00:20:37] [00:20:37]POST finish read [00:20:37]Found Content-Length = 331 [00:20:37]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:20:37]execute_script... [00:20:37]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:20:37]POST & json_proto [00:20:37]process_json_proto [00:20:37]json parsed OK: [00:20:37]protocol is kg_v1.0 [00:20:37]action value=get_value [00:20:37]process_action get_value [00:20:37]cmd_get_value [00:20:37]process_action get_value done [00:20:37]requested_data is exist [00:20:37]produce_requested_data [00:20:37]requested_item fm.sale.total is exist - process it [00:20:37]SAM_PROTO_GetFMData [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 03 00 [00:20:37]Write to MH i2c: E2 08 00 97 2E 80 13 03 00 00 00 00 00 44 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 97 2E 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 D2 [00:20:38]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 98 2E 80 17 00 00 00 00 00 00 46 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 98 2E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 00 [00:20:38]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 99 2E 80 17 00 00 00 00 00 00 47 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 99 2E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:20:38]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 9A 2E 80 17 00 00 00 00 00 00 48 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]OFD Sender: No OFD packet to send [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 9A 2E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [00:20:38]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 9B 2E 80 17 00 00 00 00 00 00 49 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 E0 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 E0 00 9B 2E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 33 [00:20:39]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:39]wFMCommunicate OK [00:20:39]SAM_PROTO_GetFMData done [00:20:39]requested_item fm.sale_refund.total is exist - process it [00:20:39]requested_item fm.buy.total is exist - process it [00:20:39]requested_item shift.sale.total is exist - process it [00:20:39]SAM_PROTO_GetShiftData [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 13 02 00 [00:20:39]Write to MH i2c: E2 08 00 9C 2E 80 13 02 00 00 00 00 00 48 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 9C 2E 00 BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 B1 [00:20:39]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3E 01 00 00 69 04 9F 00 6F 04 04 00 38 01 00 00 B1 04 04 00 31 66 14 02 70 04 04 00 90 B9 05 01 72 04 04 00 A1 AC 0E 01 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 42 8C 38 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 4F B6 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 00 00 00 B1 04 03 00 00 6A 18 70 04 03 00 00 6A 18 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 D2 97 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 9D 2E 80 17 00 00 00 00 00 00 4B [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:39]Read from MH i2c: E2 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 [00:20:39]MH_I2C_Read... [00:20:39]Read from MH i2c: E2 FD 00 9D 2E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [00:20:39]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 51 37 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:39]wFMCommunicate OK [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 17 00 00 [00:20:39]Write to MH i2c: E2 08 00 9E 2E 80 17 00 00 00 00 00 00 4C [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 9E 2E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 7E [00:20:40]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 9F 2E 80 17 00 00 00 00 00 00 4D [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 9F 2E 00 F7 03 00 00 EF 03 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 90 00 C4 [00:20:40]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 A0 2E 80 17 00 00 00 00 00 00 4E [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 DA 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 DA 00 A0 2E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:40]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:40]wFMCommunicate OK [00:20:40]SAM_PROTO_GetShiftData done [00:20:40]requested_item shift.sale.total_cash is exist - process it [00:20:40]requested_item shift.sale_refund.total is exist - process it [00:20:40]requested_item shift.sale_refund.total_cash is exist - process it [00:20:40]requested_item shift.buy.total is exist - process it [00:20:40]requested_item shift.buy.total_cash is exist - process it [00:20:40]produce_requested_data done [00:20:40]produce_requested_data return {"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:40]process_action_free get_value [00:20:40]json_value_free [00:20:40]json_value_free done [00:20:40]process_json_proto returns [00:20:40]Send response to host [00:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":348913.13,"shift.sale.total_cash":171524.00,"shift.sale_refund.total":16000.00,"shift.sale_refund.total_cash":16000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:40]free response buf [00:20:40]execute_script done [00:20:40]execute_script returns [00:20:40]free content buf [00:20:40]Sock 9.Close socket [00:20:40]Sock 9.Thread stoped [00:20:41]accept exits with 7 [00:20:41]New connection [00:20:41]New thread 3066965348 created [00:20:41]Thread 3067108708 joined [00:20:41]Waiting for new connection... [00:20:41] Sock 7.Parse request [00:20:41]Sock 7.Check first char [00:20:41]Sock 7.First char is OK [00:20:41]request: POST /json_proto HTTP/1.0 [00:20:41]Method: POST [00:20:41]URL: /json_proto [00:20:41]Method is POST - this is cgi request [00:20:41]url: /json_proto [00:20:41]query_string will be loaded in cgi processing [00:20:41]execute_cgi json_proto POST (null) [00:20:41]execute_cgi path=json_proto method=POST [00:20:41]POST find Content-Length [00:20:41]Host: 172.17.33.3:8080 [00:20:41]Content-Length: 271 [00:20:41]Content-Type: application/json [00:20:41] [00:20:41]POST finish read [00:20:41]Found Content-Length = 271 [00:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:41]execute_script... [00:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:41]POST & json_proto [00:20:41]process_json_proto [00:20:41]json parsed OK: [00:20:41]protocol is kg_v1.0 [00:20:41]action value=open_shift [00:20:41]process_action open_shift [00:20:41]cmd_open_shift [00:20:41]MH_GetDate [00:20:41]Write to MH i2c: F0 00 00 A1 2E BE [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 09 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 09 00 A1 2E 00 5B C4 1D 66 23 5B 8F 65 DB [00:20:41]GetLastDocTimeStamp 1713225866 [00:20:41]current date 1713226843 [00:20:41]FM_GetShiftState [00:20:41]SAM_PROTO_GetShiftState [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 13 01 00 [00:20:41]Write to MH i2c: E2 08 00 A2 2E 80 13 01 00 00 00 00 00 4D [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 0E 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 0E 00 A2 2E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 58 [00:20:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:41]wFMCommunicate OK [00:20:41]SAM_PROTO_GetShiftState done [00:20:41]FM_GetShiftState done [00:20:41]KKMCreateOpenShiftDocument [00:20:41]Load OK [00:20:41]Malloc new data [00:20:41]MH_GetDate [00:20:41]Write to MH i2c: F0 00 00 A3 2E C0 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 09 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: F0 09 00 A3 2E 00 5B C4 1D 66 23 5B 8F 65 DD [00:20:41]Malloc new data [00:20:41]KKMCreateOpenShiftDocument OK [00:20:41]KKMSetOpenShiftData OK [00:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:20:41]tlvbuf is 01AE62A0 [00:20:41]KKMLoadAndSignOpenShiftData [00:20:41]SAM_PROTO_ProcessDocument [00:20:41]wFMCommunicate request_size=9 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:20:41]Write to MH i2c: E2 0C 00 A4 2E 80 15 01 00 04 00 02 00 CB 00 00 00 26 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A4 2E 00 90 00 46 [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=23 [00:20:41]MH_SAM_APDU [00:20:41]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:20:41]Write to MH i2c: E2 1A 00 A5 2E 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 48 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A5 2E 00 90 00 47 [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=34 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [00:20:41]Write to MH i2c: E2 25 00 A6 2E 80 15 02 00 1D 00 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 7A [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A6 2E 00 90 00 48 [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=87 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 [00:20:41]Write to MH i2c: E2 5A 00 A7 2E 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 00 00 79 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A7 2E 00 90 00 49 [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=51 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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:20:41]Write to MH i2c: E2 36 00 A8 2E 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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 01 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A8 2E 00 90 00 4A [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=13 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 02 00 08 F4 03 04 00 5B C4 1D 66 [00:20:41]Write to MH i2c: E2 10 00 A9 2E 80 15 02 00 08 00 F4 03 04 00 5B C4 1D 66 00 00 04 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 A9 2E 00 90 00 4B [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=25 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:20:41]Write to MH i2c: E2 1C 00 AA 2E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 DB [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 03 00 AA 2E 00 90 00 4C [00:20:41]RAPDU: 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 15 03 00 [00:20:41]Write to MH i2c: E2 08 00 AB 2E 80 15 03 00 00 00 00 00 5A [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 38 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 38 00 AB 2E 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 74 00 00 0E 04 04 00 76 00 00 00 35 04 06 00 5C 00 38 59 79 0D 90 00 9D [00:20:42]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 74 00 00 0E 04 04 00 76 00 00 00 35 04 06 00 5C 00 38 59 79 0D 90 00 [00:20:42]wFMCommunicate OK [00:20:42]SAM_PROTO_ProcessDocument answer len = 51 [00:20:42]SAM_PROTO_ProcessDocument done [00:20:42]SetTLVBufToDocument [00:20:42]Processing tag 1209 (04B9) [00:20:42]Malloc new data [00:20:42]Processing tag 1041 (0411) [00:20:42]Processing tag 1040 (0410) [00:20:42]Malloc new data [00:20:42]Processing tag 1038 (040E) [00:20:42]Malloc new data [00:20:42]Processing tag 1077 (0435) [00:20:42]Malloc new data [00:20:42]SetTLVBufToDocument err=0 [00:20:42]KKMLoadAndSignOpenShiftData store KKM data [00:20:42]KKMLoadAndSignOpenShiftData err=0 [00:20:42]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шадыканова Ж. Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 Место: АЗС № 108 "Партнер Нефть" 16.04.2024 00:20 Смена: 118 РНМ: 0000138879044617 ЗНМ: 0300000027 ФД: 29726 ФМ: 0000000000963154 ФПД: 101156015143181 [00:20:42]StoreToDocumentArchive [00:20:42]shift 118 fd 29726 [00:20:42]Create dir for shift 0118 [00:20:42]save to /storage/0118/doc_00029726 [00:20:42]save last doc name /storage/0118/doc_00029726 to /storage/kkm_last_doc_name [00:20:42]save OK [00:20:42]Clear old archive folders... [00:20:42]Remove dir /storage/0117 [00:20:42]opendir ok [00:20:42]file . [00:20:42]file .. [00:20:42]file doc_00029406 [00:20:42]remove file /storage/0117/doc_00029406 [00:20:42]file doc_00029407 [00:20:42]remove file /storage/0117/doc_00029407 [00:20:42]file doc_00029408 [00:20:42]remove file /storage/0117/doc_00029408 [00:20:42]file doc_00029409 [00:20:42]remove file /storage/0117/doc_00029409 [00:20:42]file doc_00029410 [00:20:42]remove file /storage/0117/doc_00029410 [00:20:42]file doc_00029411 [00:20:42]remove file /storage/0117/doc_00029411 [00:20:42]file doc_00029412 [00:20:42]remove file /storage/0117/doc_00029412 [00:20:42]file doc_00029413 [00:20:42]remove file /storage/0117/doc_00029413 [00:20:42]file doc_00029414 [00:20:42]remove file /storage/0117/doc_00029414 [00:20:42]file doc_00029415 [00:20:42]remove file /storage/0117/doc_00029415 [00:20:42]file doc_00029416 [00:20:42]remove file /storage/0117/doc_00029416 [00:20:42]file doc_00029417 [00:20:42]remove file /storage/0117/doc_00029417 [00:20:42]file doc_00029418 [00:20:42]remove file /storage/0117/doc_00029418 [00:20:42]file doc_00029419 [00:20:42]remove file /storage/0117/doc_00029419 [00:20:42]file doc_00029420 [00:20:42]remove file /storage/0117/doc_00029420 [00:20:42]file doc_00029421 [00:20:42]remove file /storage/0117/doc_00029421 [00:20:42]file doc_00029422 [00:20:42]remove file /storage/0117/doc_00029422 [00:20:42]file doc_00029423 [00:20:42]remove file /storage/0117/doc_00029423 [00:20:42]file doc_00029424 [00:20:42]remove file /storage/0117/doc_00029424 [00:20:42]file doc_00029425 [00:20:42]remove file /storage/0117/doc_00029425 [00:20:42]file doc_00029426 [00:20:42]remove file /storage/0117/doc_00029426 [00:20:42]file doc_00029427 [00:20:42]remove file /storage/0117/doc_00029427 [00:20:42]file doc_00029428 [00:20:42]remove file /storage/0117/doc_00029428 [00:20:42]file doc_00029429 [00:20:42]remove file /storage/0117/doc_00029429 [00:20:42]file doc_00029430 [00:20:42]remove file /storage/0117/doc_00029430 [00:20:42]file doc_00029431 [00:20:42]remove file /storage/0117/doc_00029431 [00:20:42]file doc_00029432 [00:20:42]remove file /storage/0117/doc_00029432 [00:20:42]file doc_00029433 [00:20:42]remove file /storage/0117/doc_00029433 [00:20:42]file doc_00029434 [00:20:42]remove file /storage/0117/doc_00029434 [00:20:42]file doc_00029435 [00:20:42]remove file /storage/0117/doc_00029435 [00:20:42]file doc_00029436 [00:20:42]remove file /storage/0117/doc_00029436 [00:20:42]file doc_00029437 [00:20:42]remove file /storage/0117/doc_00029437 [00:20:42]file doc_00029438 [00:20:42]remove file /storage/0117/doc_00029438 [00:20:42]file doc_00029439 [00:20:42]remove file /storage/0117/doc_00029439 [00:20:42]file doc_00029440 [00:20:42]remove file /storage/0117/doc_00029440 [00:20:42]file doc_00029441 [00:20:42]remove file /storage/0117/doc_00029441 [00:20:42]file doc_00029442 [00:20:42]remove file /storage/0117/doc_00029442 [00:20:42]file doc_00029443 [00:20:42]remove file /storage/0117/doc_00029443 [00:20:42]file doc_00029444 [00:20:42]remove file /storage/0117/doc_00029444 [00:20:42]file doc_00029445 [00:20:42]remove file /storage/0117/doc_00029445 [00:20:42]file doc_00029446 [00:20:42]remove file /storage/0117/doc_00029446 [00:20:42]file doc_00029447 [00:20:42]remove file /storage/0117/doc_00029447 [00:20:42]file doc_00029448 [00:20:42]remove file /storage/0117/doc_00029448 [00:20:42]file doc_00029449 [00:20:42]remove file /storage/0117/doc_00029449 [00:20:42]file doc_00029450 [00:20:42]remove file /storage/0117/doc_00029450 [00:20:42]file doc_00029451 [00:20:42]remove file /storage/0117/doc_00029451 [00:20:42]file doc_00029452 [00:20:42]remove file /storage/0117/doc_00029452 [00:20:42]file doc_00029453 [00:20:42]remove file /storage/0117/doc_00029453 [00:20:42]file doc_00029454 [00:20:42]remove file /storage/0117/doc_00029454 [00:20:42]file doc_00029455 [00:20:42]remove file /storage/0117/doc_00029455 [00:20:42]file doc_00029456 [00:20:42]remove file /storage/0117/doc_00029456 [00:20:42]file doc_00029457 [00:20:42]remove file /storage/0117/doc_00029457 [00:20:42]file doc_00029458 [00:20:42]remove file /storage/0117/doc_00029458 [00:20:42]file doc_00029459 [00:20:42]remove file /storage/0117/doc_00029459 [00:20:42]file doc_00029460 [00:20:42]remove file /storage/0117/doc_00029460 [00:20:42]file doc_00029461 [00:20:42]remove file /storage/0117/doc_00029461 [00:20:42]file doc_00029462 [00:20:42]remove file /storage/0117/doc_00029462 [00:20:42]file doc_00029463 [00:20:42]remove file /storage/0117/doc_00029463 [00:20:42]file doc_00029464 [00:20:42]remove file /storage/0117/doc_00029464 [00:20:42]file doc_00029465 [00:20:42]remove file /storage/0117/doc_00029465 [00:20:42]file doc_00029466 [00:20:42]remove file /storage/0117/doc_00029466 [00:20:42]file doc_00029467 [00:20:42]remove file /storage/0117/doc_00029467 [00:20:42]file doc_00029468 [00:20:42]remove file /storage/0117/doc_00029468 [00:20:42]file doc_00029469 [00:20:42]remove file /storage/0117/doc_00029469 [00:20:42]file doc_00029470 [00:20:42]remove file /storage/0117/doc_00029470 [00:20:42]file doc_00029471 [00:20:42]remove file /storage/0117/doc_00029471 [00:20:42]file doc_00029472 [00:20:42]remove file /storage/0117/doc_00029472 [00:20:42]file doc_00029473 [00:20:42]remove file /storage/0117/doc_00029473 [00:20:42]file doc_00029474 [00:20:42]remove file /storage/0117/doc_00029474 [00:20:42]file doc_00029475 [00:20:42]remove file /storage/0117/doc_00029475 [00:20:42]file doc_00029476 [00:20:42]remove file /storage/0117/doc_00029476 [00:20:42]file doc_00029477 [00:20:42]remove file /storage/0117/doc_00029477 [00:20:42]file doc_00029478 [00:20:42]remove file /storage/0117/doc_00029478 [00:20:42]file doc_00029479 [00:20:42]remove file /storage/0117/doc_00029479 [00:20:42]file doc_00029480 [00:20:42]remove file /storage/0117/doc_00029480 [00:20:42]file doc_00029481 [00:20:42]remove file /storage/0117/doc_00029481 [00:20:42]file doc_00029482 [00:20:42]remove file /storage/0117/doc_00029482 [00:20:42]file doc_00029483 [00:20:42]remove file /storage/0117/doc_00029483 [00:20:42]file doc_00029484 [00:20:42]remove file /storage/0117/doc_00029484 [00:20:42]file doc_00029485 [00:20:42]remove file /storage/0117/doc_00029485 [00:20:42]file doc_00029486 [00:20:42]remove file /storage/0117/doc_00029486 [00:20:42]file doc_00029487 [00:20:42]remove file /storage/0117/doc_00029487 [00:20:42]file doc_00029488 [00:20:42]remove file /storage/0117/doc_00029488 [00:20:42]file doc_00029489 [00:20:42]remove file /storage/0117/doc_00029489 [00:20:42]file doc_00029490 [00:20:42]remove file /storage/0117/doc_00029490 [00:20:42]file doc_00029491 [00:20:42]remove file /storage/0117/doc_00029491 [00:20:42]file doc_00029492 [00:20:42]remove file /storage/0117/doc_00029492 [00:20:42]file doc_00029493 [00:20:42]remove file /storage/0117/doc_00029493 [00:20:42]file doc_00029494 [00:20:42]remove file /storage/0117/doc_00029494 [00:20:42]file doc_00029495 [00:20:42]remove file /storage/0117/doc_00029495 [00:20:42]file doc_00029496 [00:20:42]remove file /storage/0117/doc_00029496 [00:20:42]file doc_00029497 [00:20:42]remove file /storage/0117/doc_00029497 [00:20:42]file doc_00029498 [00:20:42]remove file /storage/0117/doc_00029498 [00:20:42]file doc_00029499 [00:20:42]remove file /storage/0117/doc_00029499 [00:20:42]file doc_00029500 [00:20:42]remove file /storage/0117/doc_00029500 [00:20:42]file doc_00029501 [00:20:42]remove file /storage/0117/doc_00029501 [00:20:42]file doc_00029502 [00:20:42]remove file /storage/0117/doc_00029502 [00:20:42]file doc_00029503 [00:20:42]remove file /storage/0117/doc_00029503 [00:20:42]file doc_00029504 [00:20:42]remove file /storage/0117/doc_00029504 [00:20:42]file doc_00029505 [00:20:42]remove file /storage/0117/doc_00029505 [00:20:42]file doc_00029506 [00:20:42]remove file /storage/0117/doc_00029506 [00:20:42]file doc_00029507 [00:20:42]remove file /storage/0117/doc_00029507 [00:20:42]file doc_00029508 [00:20:42]remove file /storage/0117/doc_00029508 [00:20:42]file doc_00029509 [00:20:42]remove file /storage/0117/doc_00029509 [00:20:42]file doc_00029510 [00:20:42]remove file /storage/0117/doc_00029510 [00:20:42]file doc_00029511 [00:20:42]remove file /storage/0117/doc_00029511 [00:20:42]file doc_00029512 [00:20:42]remove file /storage/0117/doc_00029512 [00:20:42]file doc_00029513 [00:20:42]remove file /storage/0117/doc_00029513 [00:20:42]file doc_00029514 [00:20:42]remove file /storage/0117/doc_00029514 [00:20:42]file doc_00029515 [00:20:42]remove file /storage/0117/doc_00029515 [00:20:42]file doc_00029516 [00:20:42]remove file /storage/0117/doc_00029516 [00:20:42]file doc_00029517 [00:20:42]remove file /storage/0117/doc_00029517 [00:20:42]file doc_00029518 [00:20:42]remove file /storage/0117/doc_00029518 [00:20:42]file doc_00029519 [00:20:42]remove file /storage/0117/doc_00029519 [00:20:42]file doc_00029520 [00:20:42]remove file /storage/0117/doc_00029520 [00:20:42]file doc_00029521 [00:20:42]remove file /storage/0117/doc_00029521 [00:20:42]file doc_00029522 [00:20:42]remove file /storage/0117/doc_00029522 [00:20:42]file doc_00029523 [00:20:42]remove file /storage/0117/doc_00029523 [00:20:42]file doc_00029524 [00:20:42]remove file /storage/0117/doc_00029524 [00:20:42]file doc_00029525 [00:20:42]remove file /storage/0117/doc_00029525 [00:20:42]file doc_00029526 [00:20:42]remove file /storage/0117/doc_00029526 [00:20:42]file doc_00029527 [00:20:42]remove file /storage/0117/doc_00029527 [00:20:42]file doc_00029528 [00:20:42]remove file /storage/0117/doc_00029528 [00:20:42]file doc_00029529 [00:20:42]remove file /storage/0117/doc_00029529 [00:20:42]file doc_00029530 [00:20:42]remove file /storage/0117/doc_00029530 [00:20:42]file doc_00029531 [00:20:42]remove file /storage/0117/doc_00029531 [00:20:42]file doc_00029532 [00:20:42]remove file /storage/0117/doc_00029532 [00:20:42]file doc_00029533 [00:20:42]remove file /storage/0117/doc_00029533 [00:20:42]file doc_00029534 [00:20:42]remove file /storage/0117/doc_00029534 [00:20:42]file doc_00029535 [00:20:42]remove file /storage/0117/doc_00029535 [00:20:42]file doc_00029536 [00:20:42]remove file /storage/0117/doc_00029536 [00:20:42]file doc_00029537 [00:20:42]remove file /storage/0117/doc_00029537 [00:20:42]file doc_00029538 [00:20:42]remove file /storage/0117/doc_00029538 [00:20:42]file doc_00029539 [00:20:42]remove file /storage/0117/doc_00029539 [00:20:42]file doc_00029540 [00:20:42]remove file /storage/0117/doc_00029540 [00:20:42]file doc_00029541 [00:20:42]remove file /storage/0117/doc_00029541 [00:20:42]file doc_00029542 [00:20:42]remove file /storage/0117/doc_00029542 [00:20:42]file doc_00029543 [00:20:42]remove file /storage/0117/doc_00029543 [00:20:42]file doc_00029544 [00:20:42]remove file /storage/0117/doc_00029544 [00:20:42]file doc_00029545 [00:20:42]remove file /storage/0117/doc_00029545 [00:20:42]file doc_00029546 [00:20:42]remove file /storage/0117/doc_00029546 [00:20:42]file doc_00029547 [00:20:42]remove file /storage/0117/doc_00029547 [00:20:42]file doc_00029548 [00:20:42]remove file /storage/0117/doc_00029548 [00:20:42]file doc_00029549 [00:20:42]remove file /storage/0117/doc_00029549 [00:20:42]file doc_00029550 [00:20:42]remove file /storage/0117/doc_00029550 [00:20:42]file doc_00029551 [00:20:42]remove file /storage/0117/doc_00029551 [00:20:42]file doc_00029552 [00:20:42]remove file /storage/0117/doc_00029552 [00:20:42]file doc_00029553 [00:20:42]remove file /storage/0117/doc_00029553 [00:20:42]file doc_00029554 [00:20:42]remove file /storage/0117/doc_00029554 [00:20:42]file doc_00029555 [00:20:42]remove file /storage/0117/doc_00029555 [00:20:42]file doc_00029556 [00:20:42]remove file /storage/0117/doc_00029556 [00:20:42]file doc_00029557 [00:20:42]remove file /storage/0117/doc_00029557 [00:20:42]file doc_00029558 [00:20:42]remove file /storage/0117/doc_00029558 [00:20:42]file doc_00029559 [00:20:42]remove file /storage/0117/doc_00029559 [00:20:42]file doc_00029560 [00:20:42]remove file /storage/0117/doc_00029560 [00:20:42]file doc_00029561 [00:20:42]remove file /storage/0117/doc_00029561 [00:20:42]file doc_00029562 [00:20:42]remove file /storage/0117/doc_00029562 [00:20:42]file doc_00029563 [00:20:42]remove file /storage/0117/doc_00029563 [00:20:42]file doc_00029564 [00:20:42]remove file /storage/0117/doc_00029564 [00:20:42]file doc_00029565 [00:20:42]remove file /storage/0117/doc_00029565 [00:20:42]file doc_00029566 [00:20:42]remove file /storage/0117/doc_00029566 [00:20:42]file doc_00029567 [00:20:43]remove file /storage/0117/doc_00029567 [00:20:43]file doc_00029568 [00:20:43]remove file /storage/0117/doc_00029568 [00:20:43]file doc_00029569 [00:20:43]remove file /storage/0117/doc_00029569 [00:20:43]file doc_00029570 [00:20:43]remove file /storage/0117/doc_00029570 [00:20:43]file doc_00029571 [00:20:43]remove file /storage/0117/doc_00029571 [00:20:43]file doc_00029572 [00:20:43]remove file /storage/0117/doc_00029572 [00:20:43]file doc_00029573 [00:20:43]remove file /storage/0117/doc_00029573 [00:20:43]file doc_00029574 [00:20:43]remove file /storage/0117/doc_00029574 [00:20:43]file doc_00029575 [00:20:43]remove file /storage/0117/doc_00029575 [00:20:43]file doc_00029576 [00:20:43]remove file /storage/0117/doc_00029576 [00:20:43]file doc_00029577 [00:20:43]remove file /storage/0117/doc_00029577 [00:20:43]file doc_00029578 [00:20:43]remove file /storage/0117/doc_00029578 [00:20:43]file doc_00029579 [00:20:43]remove file /storage/0117/doc_00029579 [00:20:43]file doc_00029580 [00:20:43]remove file /storage/0117/doc_00029580 [00:20:43]file doc_00029581 [00:20:43]remove file /storage/0117/doc_00029581 [00:20:43]file doc_00029582 [00:20:43]remove file /storage/0117/doc_00029582 [00:20:43]file doc_00029583 [00:20:43]remove file /storage/0117/doc_00029583 [00:20:43]file doc_00029584 [00:20:43]remove file /storage/0117/doc_00029584 [00:20:43]file doc_00029585 [00:20:43]remove file /storage/0117/doc_00029585 [00:20:43]file doc_00029586 [00:20:43]remove file /storage/0117/doc_00029586 [00:20:43]file doc_00029587 [00:20:43]remove file /storage/0117/doc_00029587 [00:20:43]file doc_00029588 [00:20:43]remove file /storage/0117/doc_00029588 [00:20:43]file doc_00029589 [00:20:43]remove file /storage/0117/doc_00029589 [00:20:43]file doc_00029590 [00:20:43]remove file /storage/0117/doc_00029590 [00:20:43]file doc_00029591 [00:20:43]remove file /storage/0117/doc_00029591 [00:20:43]file doc_00029592 [00:20:43]remove file /storage/0117/doc_00029592 [00:20:43]file doc_00029593 [00:20:43]remove file /storage/0117/doc_00029593 [00:20:43]file doc_00029594 [00:20:43]remove file /storage/0117/doc_00029594 [00:20:43]file doc_00029595 [00:20:43]remove file /storage/0117/doc_00029595 [00:20:43]file doc_00029596 [00:20:43]remove file /storage/0117/doc_00029596 [00:20:43]file doc_00029597 [00:20:43]remove file /storage/0117/doc_00029597 [00:20:43]file doc_00029598 [00:20:43]remove file /storage/0117/doc_00029598 [00:20:43]file doc_00029599 [00:20:43]remove file /storage/0117/doc_00029599 [00:20:43]file doc_00029600 [00:20:43]remove file /storage/0117/doc_00029600 [00:20:43]file doc_00029601 [00:20:43]remove file /storage/0117/doc_00029601 [00:20:43]file doc_00029602 [00:20:43]remove file /storage/0117/doc_00029602 [00:20:43]file doc_00029603 [00:20:43]remove file /storage/0117/doc_00029603 [00:20:43]file doc_00029604 [00:20:43]remove file /storage/0117/doc_00029604 [00:20:43]file doc_00029605 [00:20:43]remove file /storage/0117/doc_00029605 [00:20:43]file doc_00029606 [00:20:43]remove file /storage/0117/doc_00029606 [00:20:43]file doc_00029607 [00:20:43]remove file /storage/0117/doc_00029607 [00:20:43]file doc_00029608 [00:20:43]remove file /storage/0117/doc_00029608 [00:20:43]file doc_00029609 [00:20:43]remove file /storage/0117/doc_00029609 [00:20:43]file doc_00029610 [00:20:43]remove file /storage/0117/doc_00029610 [00:20:43]file doc_00029611 [00:20:43]remove file /storage/0117/doc_00029611 [00:20:43]file doc_00029612 [00:20:43]remove file /storage/0117/doc_00029612 [00:20:43]file doc_00029613 [00:20:43]remove file /storage/0117/doc_00029613 [00:20:43]file doc_00029614 [00:20:43]remove file /storage/0117/doc_00029614 [00:20:43]file doc_00029615 [00:20:43]remove file /storage/0117/doc_00029615 [00:20:43]file doc_00029616 [00:20:43]remove file /storage/0117/doc_00029616 [00:20:43]file doc_00029617 [00:20:43]remove file /storage/0117/doc_00029617 [00:20:43]file doc_00029618 [00:20:43]remove file /storage/0117/doc_00029618 [00:20:43]file doc_00029619 [00:20:43]remove file /storage/0117/doc_00029619 [00:20:43]file doc_00029620 [00:20:43]remove file /storage/0117/doc_00029620 [00:20:43]file doc_00029621 [00:20:43]remove file /storage/0117/doc_00029621 [00:20:43]file doc_00029622 [00:20:43]remove file /storage/0117/doc_00029622 [00:20:43]file doc_00029623 [00:20:43]remove file /storage/0117/doc_00029623 [00:20:43]file doc_00029624 [00:20:43]remove file /storage/0117/doc_00029624 [00:20:43]file doc_00029625 [00:20:43]remove file /storage/0117/doc_00029625 [00:20:43]file doc_00029626 [00:20:43]remove file /storage/0117/doc_00029626 [00:20:43]file doc_00029627 [00:20:43]remove file /storage/0117/doc_00029627 [00:20:43]file doc_00029628 [00:20:43]remove file /storage/0117/doc_00029628 [00:20:43]file doc_00029629 [00:20:43]remove file /storage/0117/doc_00029629 [00:20:43]file doc_00029630 [00:20:43]remove file /storage/0117/doc_00029630 [00:20:43]file doc_00029631 [00:20:43]remove file /storage/0117/doc_00029631 [00:20:43]file doc_00029632 [00:20:43]remove file /storage/0117/doc_00029632 [00:20:43]file doc_00029633 [00:20:43]remove file /storage/0117/doc_00029633 [00:20:43]file doc_00029634 [00:20:43]remove file /storage/0117/doc_00029634 [00:20:43]file doc_00029635 [00:20:43]remove file /storage/0117/doc_00029635 [00:20:43]file doc_00029636 [00:20:43]remove file /storage/0117/doc_00029636 [00:20:43]file doc_00029637 [00:20:43]remove file /storage/0117/doc_00029637 [00:20:43]file doc_00029638 [00:20:43]remove file /storage/0117/doc_00029638 [00:20:43]file doc_00029639 [00:20:43]remove file /storage/0117/doc_00029639 [00:20:43]file doc_00029640 [00:20:43]remove file /storage/0117/doc_00029640 [00:20:43]file doc_00029641 [00:20:43]remove file /storage/0117/doc_00029641 [00:20:43]file doc_00029642 [00:20:43]remove file /storage/0117/doc_00029642 [00:20:43]file doc_00029643 [00:20:43]remove file /storage/0117/doc_00029643 [00:20:43]file doc_00029644 [00:20:43]remove file /storage/0117/doc_00029644 [00:20:43]file doc_00029645 [00:20:43]remove file /storage/0117/doc_00029645 [00:20:43]file doc_00029646 [00:20:43]remove file /storage/0117/doc_00029646 [00:20:43]file doc_00029647 [00:20:43]remove file /storage/0117/doc_00029647 [00:20:43]file doc_00029648 [00:20:43]remove file /storage/0117/doc_00029648 [00:20:43]file doc_00029649 [00:20:43]remove file /storage/0117/doc_00029649 [00:20:43]file doc_00029650 [00:20:43]remove file /storage/0117/doc_00029650 [00:20:43]file doc_00029651 [00:20:43]remove file /storage/0117/doc_00029651 [00:20:43]file doc_00029652 [00:20:43]remove file /storage/0117/doc_00029652 [00:20:43]file doc_00029653 [00:20:43]remove file /storage/0117/doc_00029653 [00:20:43]file doc_00029654 [00:20:43]remove file /storage/0117/doc_00029654 [00:20:43]file doc_00029655 [00:20:43]remove file /storage/0117/doc_00029655 [00:20:43]file doc_00029656 [00:20:43]remove file /storage/0117/doc_00029656 [00:20:43]file doc_00029657 [00:20:43]remove file /storage/0117/doc_00029657 [00:20:43]file doc_00029658 [00:20:43]remove file /storage/0117/doc_00029658 [00:20:43]file doc_00029659 [00:20:43]remove file /storage/0117/doc_00029659 [00:20:43]file doc_00029660 [00:20:43]remove file /storage/0117/doc_00029660 [00:20:43]file doc_00029661 [00:20:43]remove file /storage/0117/doc_00029661 [00:20:43]file doc_00029662 [00:20:43]remove file /storage/0117/doc_00029662 [00:20:43]file doc_00029663 [00:20:43]remove file /storage/0117/doc_00029663 [00:20:43]file doc_00029664 [00:20:43]remove file /storage/0117/doc_00029664 [00:20:43]file doc_00029665 [00:20:43]remove file /storage/0117/doc_00029665 [00:20:43]file doc_00029666 [00:20:43]remove file /storage/0117/doc_00029666 [00:20:43]file doc_00029667 [00:20:43]remove file /storage/0117/doc_00029667 [00:20:43]file doc_00029668 [00:20:43]remove file /storage/0117/doc_00029668 [00:20:43]file doc_00029669 [00:20:43]remove file /storage/0117/doc_00029669 [00:20:43]file doc_00029670 [00:20:43]remove file /storage/0117/doc_00029670 [00:20:43]file doc_00029671 [00:20:43]remove file /storage/0117/doc_00029671 [00:20:43]file doc_00029672 [00:20:43]remove file /storage/0117/doc_00029672 [00:20:43]file doc_00029673 [00:20:43]remove file /storage/0117/doc_00029673 [00:20:43]file doc_00029674 [00:20:43]remove file /storage/0117/doc_00029674 [00:20:43]file doc_00029675 [00:20:43]remove file /storage/0117/doc_00029675 [00:20:43]file doc_00029676 [00:20:43]remove file /storage/0117/doc_00029676 [00:20:43]file doc_00029677 [00:20:43]remove file /storage/0117/doc_00029677 [00:20:43]file doc_00029678 [00:20:43]remove file /storage/0117/doc_00029678 [00:20:43]file doc_00029679 [00:20:43]remove file /storage/0117/doc_00029679 [00:20:43]file doc_00029680 [00:20:43]remove file /storage/0117/doc_00029680 [00:20:43]file doc_00029681 [00:20:43]remove file /storage/0117/doc_00029681 [00:20:43]file doc_00029682 [00:20:43]remove file /storage/0117/doc_00029682 [00:20:43]file doc_00029683 [00:20:43]remove file /storage/0117/doc_00029683 [00:20:43]file doc_00029684 [00:20:43]remove file /storage/0117/doc_00029684 [00:20:43]file doc_00029685 [00:20:43]remove file /storage/0117/doc_00029685 [00:20:43]file doc_00029686 [00:20:43]remove file /storage/0117/doc_00029686 [00:20:43]file doc_00029687 [00:20:43]remove file /storage/0117/doc_00029687 [00:20:43]file doc_00029688 [00:20:43]remove file /storage/0117/doc_00029688 [00:20:43]file doc_00029689 [00:20:43]remove file /storage/0117/doc_00029689 [00:20:43]file doc_00029690 [00:20:43]remove file /storage/0117/doc_00029690 [00:20:43]file doc_00029691 [00:20:43]remove file /storage/0117/doc_00029691 [00:20:43]file doc_00029692 [00:20:43]remove file /storage/0117/doc_00029692 [00:20:43]file doc_00029693 [00:20:43]remove file /storage/0117/doc_00029693 [00:20:43]file doc_00029694 [00:20:43]remove file /storage/0117/doc_00029694 [00:20:43]file doc_00029695 [00:20:43]remove file /storage/0117/doc_00029695 [00:20:43]file doc_00029696 [00:20:43]remove file /storage/0117/doc_00029696 [00:20:43]file doc_00029697 [00:20:43]remove file /storage/0117/doc_00029697 [00:20:43]file doc_00029698 [00:20:43]remove file /storage/0117/doc_00029698 [00:20:43]file doc_00029699 [00:20:43]remove file /storage/0117/doc_00029699 [00:20:43]file doc_00029700 [00:20:43]remove file /storage/0117/doc_00029700 [00:20:43]file doc_00029701 [00:20:43]remove file /storage/0117/doc_00029701 [00:20:43]file doc_00029702 [00:20:43]remove file /storage/0117/doc_00029702 [00:20:43]file doc_00029703 [00:20:43]remove file /storage/0117/doc_00029703 [00:20:43]file doc_00029704 [00:20:43]remove file /storage/0117/doc_00029704 [00:20:43]file doc_00029705 [00:20:43]remove file /storage/0117/doc_00029705 [00:20:43]file doc_00029706 [00:20:43]remove file /storage/0117/doc_00029706 [00:20:43]file doc_00029707 [00:20:43]remove file /storage/0117/doc_00029707 [00:20:43]file doc_00029708 [00:20:43]remove file /storage/0117/doc_00029708 [00:20:43]file doc_00029709 [00:20:43]remove file /storage/0117/doc_00029709 [00:20:43]file doc_00029710 [00:20:43]remove file /storage/0117/doc_00029710 [00:20:43]file doc_00029711 [00:20:43]remove file /storage/0117/doc_00029711 [00:20:43]file doc_00029712 [00:20:43]remove file /storage/0117/doc_00029712 [00:20:43]file doc_00029713 [00:20:43]remove file /storage/0117/doc_00029713 [00:20:43]file doc_00029714 [00:20:43]remove file /storage/0117/doc_00029714 [00:20:43]file doc_00029715 [00:20:43]remove file /storage/0117/doc_00029715 [00:20:43]file doc_00029716 [00:20:43]remove file /storage/0117/doc_00029716 [00:20:43]file doc_00029717 [00:20:43]remove file /storage/0117/doc_00029717 [00:20:43]file doc_00029718 [00:20:43]remove file /storage/0117/doc_00029718 [00:20:43]file doc_00029719 [00:20:43]remove file /storage/0117/doc_00029719 [00:20:43]file doc_00029720 [00:20:43]remove file /storage/0117/doc_00029720 [00:20:43]file doc_00029721 [00:20:43]remove file /storage/0117/doc_00029721 [00:20:43]file doc_00029722 [00:20:43]remove file /storage/0117/doc_00029722 [00:20:43]file doc_00029723 [00:20:43]remove file /storage/0117/doc_00029723 [00:20:43]file doc_00029724 [00:20:43]remove file /storage/0117/doc_00029724 [00:20:43]file doc_00029725 [00:20:43]remove file /storage/0117/doc_00029725 [00:20:43]file doc_1713225818 [00:20:43]remove file /storage/0117/doc_1713225818 [00:20:43]remove dir /storage/0117 [00:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:20:43]tlvbuf is 01A2C6A0 [00:20:43]SAM_PROTO_ClearQueue [00:20:43]wFMCommunicate request_size=4 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 09 00 00 [00:20:43]Write to MH i2c: E2 08 00 AC 2E 80 09 00 00 00 00 00 00 4C [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:43]Read from MH i2c: E2 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 03 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 03 00 AC 2E 00 90 00 4E [00:20:43]RAPDU: 90 00 [00:20:43]wFMCommunicate OK [00:20:43]SAM_PROTO_ClearQueue done [00:20:43]KKMCreateOFDPacket [00:20:43]OFDProtocolAddRootSTLVToBuf [00:20:43]FM_MakeSignedData [00:20:43]FM_MakeSignedData [00:20:43]SAM_PROTO_SignData [00:20:43]wFMCommunicate request_size=4 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 0D 01 02 [00:20:43]Write to MH i2c: E2 08 00 AD 2E 80 0D 01 02 00 00 00 00 54 [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]OFD Sender: No OFD packet to send [00:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:43]Read from MH i2c: E2 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 03 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: E2 03 00 AD 2E 00 90 00 4F [00:20:43]RAPDU: 90 00 [00:20:43]wFMCommunicate OK [00:20:43]wFMCommunicate request_size=255 [00:20:43]MH_SAM_APDU [00:20:43]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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 5B C4 1D 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 [00:20:43]Write to MH i2c: E2 02 01 AE 2E 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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 5B C4 1D 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 00 00 3E [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 03 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [00:20:44]RAPDU: 90 00 [00:20:44]wFMCommunicate OK [00:20:44]wFMCommunicate request_size=13 [00:20:44]MH_SAM_APDU [00:20:44]CAPDU: 80 0D 02 02 08 06 00 5C 00 38 59 79 0D [00:20:44]Write to MH i2c: E2 10 00 AF 2E 80 0D 02 02 08 00 06 00 5C 00 38 59 79 0D 00 00 E0 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 03 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 03 00 AF 2E 00 90 00 51 [00:20:44]RAPDU: 90 00 [00:20:44]wFMCommunicate OK [00:20:44]wFMCommunicate request_size=4 [00:20:44]MH_SAM_APDU [00:20:44]CAPDU: 80 0D 03 02 [00:20:44]Write to MH i2c: E2 08 00 B0 2E 80 0D 03 02 00 00 00 00 59 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 0B 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 0B 00 B0 2E 00 FD F2 FF 84 D4 A7 75 C7 90 00 83 [00:20:44]RAPDU: FD F2 FF 84 D4 A7 75 C7 90 00 [00:20:44]wFMCommunicate OK [00:20:44]SAM_PROTO_SignData done [00:20:44]FM_MakeSignedData done [00:20:44]CreateOFDProtocolMessage [00:20:44]wFMCommunicate request_size=4 [00:20:44]MH_SAM_APDU [00:20:44]CAPDU: 80 11 00 00 [00:20:44]Write to MH i2c: E2 08 00 B1 2E 80 11 00 00 00 00 00 00 59 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:44]Read from MH i2c: E2 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 17 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: E2 17 00 B1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [00:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:20:44]wFMCommunicate OK [00:20:44]CreateOFDProtocolMessage done [00:20:44]OFDSenderStorePacket 29726 [00:20:44]StoreOFDPacket docnum=29726 [00:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 12 01 00 00 F3 39 0A 01 2E E4 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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 5B C4 1D 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 5C 00 38 59 79 0D FD F2 FF 84 D4 A7 75 C7 [00:20:44]CheckFolder [00:20:44]dirname=/storage/ofd_packets [00:20:44]CheckFolder done [00:20:44]ProducePacketName [00:20:44]name=ofd_packets/00029726 [00:20:44]NVStorageSaveData ofd_packets/00029726 [00:20:44]File name is /storage/ofd_packets/00029726 [00:20:44]Write 304 bytes [00:20:44]NVStorageSaveData done [00:20:44]OFDSenderStorePacket done [00:20:44]KKMCreateOFDPacket done [00:20:44]NVStorageSaveData kkm_last_timestamp [00:20:44]File name is /storage/kkm_last_timestamp [00:20:44]Write 4 bytes [00:20:44]NVStorageSaveData done [00:20:44]ExternCall_PrintAddStr [00:20:44]wPrintStart [00:20:44]Write to MH i2c: 01 00 00 B2 2E E0 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 B2 2E 00 00 00 00 00 FF 0F F5 [00:20:44]RasterBufferAndPrint [00:20:44]line Отчет об открытии смены [00:20:44]line ФФД: 1.0 [00:20:44]line ИНН: 02508201610067 [00:20:44]line Кассир: Шадыканова Ж. [00:20:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:20:44]line Место: АЗС № 108 "Партнер Нефть" [00:20:44]line 16.04.2024 00:20 [00:20:44]line Смена: 118 [00:20:44]line РНМ: 0000138879044617 [00:20:44]line ЗНМ: 0300000027 [00:20:44]line ФД: 29726 [00:20:44]line ФМ: 0000000000963154 [00:20:44]line ФПД: 101156015143181 [00:20:44]written 0, free lines is 4095 [00:20:44]OFD Sender: Processing packet 29726 [packets to send 8, broken 7] [00:20:44]ProducePacketName [00:20:44]name=ofd_packets/00029726 [00:20:44]OFD Sender: To server: pG, [00:20:44]CommunicateWithHost lk.salyk.kg:30040 [00:20:44]ConnectInit lk.salyk.kg [00:20:44]Connected sock=10 [00:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 12 01 00 00 F3 39 0A 01 2E E4 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 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 5B C4 1D 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 5C 00 38 59 79 0D FD F2 FF 84 D4 A7 75 C7 [00:20:44]Write to MH i2c: 01 00 00 C4 2E F2 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 C4 2E 00 00 00 00 00 8A 0E 91 [00:20:44]RasterBufferAndPrint [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]written 0, free lines is 3740 [00:20:44]MH_Cut [00:20:44]Write to MH i2c: D1 01 00 CB 2E 01 CB [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 01 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 01 00 CB 2E 00 CA [00:20:44]Write to MH i2c: 01 00 00 CC 2E FA [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 43 47 00 C0 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 39 36 33 31 35 34 10 04 04 00 1E 74 00 00 F4 03 04 00 FC 6E 1D 66 B6 04 01 00 00 5E 2F 56 E5 E0 B4 07 E1 [00:20:44]CommunicateWithHost err = 0 [00:20:44]CheckOFDResponse [00:20:44]1017 (14) - 77093643461234 [00:20:44]1041 (16) - 0000000000963154 [00:20:44]1040 (4) - 29726 [00:20:44]1012 (4) - 15.04.2024 18:16 [00:20:44]1206 (1) - 0 [00:20:44]OFD Sender: Remove packet 29726 [00:20:44]ProducePacketName [00:20:44]name=ofd_packets/00029726 [00:20:44]NVStorageDeleteData [00:20:45]*** Cut start [00:20:45]*** Partial cut [00:20:45]*** CUTSNS_PIN = 1 [00:20:45]*** CUTSNS_PIN = 0 [00:20:45]*** Brake cut motor [00:20:45]OFD Sender: No OFD packet to send [00:20:45]Read from MH i2c: 01 [00:20:45]MH_I2C_Read... [00:20:45]*** Stop cut motor [00:20:45]*** Cut end [00:20:45]Read from MH i2c: 01 07 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: 01 07 00 CC 2E 00 00 00 00 00 FF 0F 0F [00:20:45]process_action open_shift done [00:20:45]requested_data is exist [00:20:45]produce_requested_data [00:20:45]requested_item fd.num is exist - process it [00:20:45]SAM_PROTO_GetFieldsCounters [00:20:45]wFMCommunicate request_size=4 [00:20:45]MH_SAM_APDU [00:20:45]CAPDU: 80 13 00 00 [00:20:45]Write to MH i2c: E2 08 00 CD 2E 80 13 00 00 00 00 00 00 77 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:45]Read from MH i2c: E2 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 62 00 [00:20:45]MH_I2C_Read... [00:20:45]Read from MH i2c: E2 62 00 CD 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 0E 04 04 00 76 00 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 BD [00:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 74 00 00 0E 04 04 00 76 00 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:20:45]wFMCommunicate OK [00:20:45]SAM_PROTO_GetFieldsCounters done [00:20:45]requested_item shift.num is exist - process it [00:20:45]requested_item shift.opened is exist - process it [00:20:45]req_shift_opened [00:20:45]FM_GetShiftState [00:20:45]SAM_PROTO_GetShiftState [00:20:45]wFMCommunicate request_size=4 [00:20:45]MH_SAM_APDU [00:20:45]CAPDU: 80 13 01 00 [00:20:45]Write to MH i2c: E2 08 00 CE 2E 80 13 01 00 00 00 00 00 79 [00:20:45]Write i2c OK [00:20:45]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 CE 2E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 27 [00:20:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:20:46]wFMCommunicate OK [00:20:46]SAM_PROTO_GetShiftState done [00:20:46]FM_GetShiftState done [00:20:46]req_shift_opened done [00:20:46]requested_item shift.open_date is exist - process it [00:20:46]req_shift_open_date [00:20:46]req_shift_open_date done [00:20:46]produce_requested_data done [00:20:46]produce_requested_data return {"fd.num":29726,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [00:20:46]process_action_free open_shift [00:20:46]json_value_free [00:20:46]json_value_free done [00:20:46]process_json_proto returns [00:20:46]Send response to host [00:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29726,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [00:20:46]free response buf [00:20:46]execute_script done [00:20:46]execute_script returns [00:20:46]free content buf [00:20:46]Sock 7.Close socket [00:20:46]Sock 7.Thread stoped [00:20:46]accept exits with 9 [00:20:46]New connection [00:20:46]New thread 3067108708 created [00:20:46]Thread 3066965348 joined [00:20:46]Waiting for new connection... [00:20:46] Sock 9.Parse request [00:20:46]Sock 9.Check first char [00:20:46]Sock 9.First char is OK [00:20:46]request: POST /json_proto HTTP/1.0 [00:20:46]Method: POST [00:20:46]URL: /json_proto [00:20:46]Method is POST - this is cgi request [00:20:46]url: /json_proto [00:20:46]query_string will be loaded in cgi processing [00:20:46]execute_cgi json_proto POST (null) [00:20:46]execute_cgi path=json_proto method=POST [00:20:46]POST find Content-Length [00:20:46]Host: 172.17.33.3:8080 [00:20:46]Content-Length: 331 [00:20:46]Content-Type: application/json [00:20:46] [00:20:46]POST finish read [00:20:46]Found Content-Length = 331 [00:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:46]execute_script... [00:20:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:46]POST & json_proto [00:20:46]process_json_proto [00:20:46]json parsed OK: [00:20:46]protocol is kg_v1.0 [00:20:46]action value=get_value [00:20:46]process_action get_value [00:20:46]cmd_get_value [00:20:46]process_action get_value done [00:20:46]requested_data is exist [00:20:46]produce_requested_data [00:20:46]requested_item fm.sale.total is exist - process it [00:20:46]SAM_PROTO_GetFMData [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 13 03 00 [00:20:46]Write to MH i2c: E2 08 00 CF 2E 80 13 03 00 00 00 00 00 7C [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 FD 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 FD 00 CF 2E 00 C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 0A [00:20:46]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 32 73 00 00 69 04 A1 00 6F 04 04 00 C5 6F 00 00 B1 04 04 00 7D 7A 32 B6 70 04 04 00 B4 D0 BB 73 72 04 04 00 C9 A9 76 42 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 F7 27 5A 13 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 7F CF 9C 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 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 82 28 63 01 EF 03 09 00 F6 90 00 [00:20:46]wFMCommunicate OK [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 17 00 00 [00:20:46]Write to MH i2c: E2 08 00 D0 2E 80 17 00 00 00 00 00 00 7E [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 D0 2E 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 38 [00:20:47]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:47]wFMCommunicate OK [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 17 00 00 [00:20:47]Write to MH i2c: E2 08 00 D1 2E 80 17 00 00 00 00 00 00 7F [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 D1 2E 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:20:47]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:47]wFMCommunicate OK [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 17 00 00 [00:20:47]Write to MH i2c: E2 08 00 D2 2E 80 17 00 00 00 00 00 00 80 [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 D2 2E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [00:20:48]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 D3 2E 80 17 00 00 00 00 00 00 81 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 E0 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 E0 00 D3 2E 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6B [00:20:48]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:48]wFMCommunicate OK [00:20:48]SAM_PROTO_GetFMData done [00:20:48]requested_item fm.sale_refund.total is exist - process it [00:20:48]requested_item fm.buy.total is exist - process it [00:20:48]requested_item shift.sale.total is exist - process it [00:20:48]SAM_PROTO_GetShiftData [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 13 02 00 [00:20:48]Write to MH i2c: E2 08 00 D4 2E 80 13 02 00 00 00 00 00 80 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 D4 2E 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 F3 [00:20:49]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:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 17 00 00 [00:20:49]Write to MH i2c: E2 08 00 D5 2E 80 17 00 00 00 00 00 00 83 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 D5 2E 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 8B [00:20:49]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:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 17 00 00 [00:20:49]Write to MH i2c: E2 08 00 D6 2E 80 17 00 00 00 00 00 00 84 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 D6 2E 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 56 [00:20:50]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:20:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 D7 2E 80 17 00 00 00 00 00 00 85 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]OFD Sender: No OFD packet to send [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 D7 2E 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 F7 [00:20:50]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:20:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 D8 2E 80 17 00 00 00 00 00 00 86 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 BD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 BD 00 D8 2E 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 6C [00:20:51]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:20:51]wFMCommunicate OK [00:20:51]SAM_PROTO_GetShiftData done [00:20:51]requested_item shift.sale.total_cash is exist - process it [00:20:51]requested_item shift.sale_refund.total is exist - process it [00:20:51]requested_item shift.sale_refund.total_cash is exist - process it [00:20:51]requested_item shift.buy.total is exist - process it [00:20:51]requested_item shift.buy.total_cash is exist - process it [00:20:51]produce_requested_data done [00:20:51]produce_requested_data return {"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.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:20:51]process_action_free get_value [00:20:51]json_value_free [00:20:51]json_value_free done [00:20:51]process_json_proto returns [00:20:51]Send response to host [00:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30567614.69,"fm.sale_refund.total":2191549.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:20:51]free response buf [00:20:51]execute_script done [00:20:51]execute_script returns [00:20:51]free content buf [00:20:51]Sock 9.Close socket [00:20:51]Sock 9.Thread stoped [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [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:50]accept exits with 7 [00:24:50]New connection [00:24:50]New thread 3066965348 created [00:24:50]Thread 3067108708 joined [00:24:50]Waiting for new connection... [00:24:50] Sock 7.Parse request [00:24:50]Sock 7.Check first char [00:24:50]Sock 7.First char is OK [00:24:50]request: POST /json_proto HTTP/1.0 [00:24:50]Method: POST [00:24:50]URL: /json_proto [00:24:50]Method is POST - this is cgi request [00:24:50]url: /json_proto [00:24:50]query_string will be loaded in cgi processing [00:24:50]execute_cgi json_proto POST (null) [00:24:50]execute_cgi path=json_proto method=POST [00:24:50]POST find Content-Length [00:24:50]Host: 172.17.33.3:8080 [00:24:50]Content-Length: 685 [00:24:50]Content-Type: application/json [00:24:50] [00:24:50]POST finish read [00:24:50]Found Content-Length = 685 [00:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 59.890, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:50]execute_script... [00:24: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)348202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 59.890, "sum" : 2000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:50]POST & json_proto [00:24:50]process_json_proto [00:24:50]json parsed OK: [00:24:50]protocol is kg_v1.0 [00:24:50]action value=close_receipt [00:24:50]process_action close_receipt [00:24:50]cmd_close_receipt [00:24:50]MH_GetDate [00:24:50]Write to MH i2c: F0 00 00 D9 2E F6 [00:24:50]Write i2c OK [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 09 00 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 09 00 D9 2E 00 55 C5 1D 66 23 5B 8F 65 0E [00:24:50]GetLastDocTimeStamp 1713226843 [00:24:50]current date 1713227093 [00:24:50]FM_GetShiftState [00:24:50]SAM_PROTO_GetShiftState [00:24:50]wFMCommunicate request_size=4 [00:24:50]MH_SAM_APDU [00:24:50]CAPDU: 80 13 01 00 [00:24:50]Write to MH i2c: E2 08 00 DA 2E 80 13 01 00 00 00 00 00 85 [00:24:50]Write i2c OK [00:24:50]MH_I2C_Read... [00:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:50]Read from MH i2c: E2 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: E2 0E 00 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: E2 0E 00 DA 2E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 33 [00:24:50]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:24:50]wFMCommunicate OK [00:24:50]SAM_PROTO_GetShiftState done [00:24:50]FM_GetShiftState done [00:24:50]opened in 1713226843 [00:24:50]opened+sec_in_day 1713313243 [00:24:50]quantity*price = 200032 [00:24:50]sum+1 = 200034 [00:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 1 16.04.2024 00:24 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29727 ФПД: 7060625986498 1/tax-web-control/client/api/v1/ticket?date=20240416T002453&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29727&fm=7060625986498&tin=02508201610067®Number=0000138879044617&sum=200000 [00:24:51]StoreToDocumentArchive [00:24:51]shift 118 fd 29727 [00:24:51]save to /storage/0118/doc_00029727 [00:24:51]save last doc name /storage/0118/doc_00029727 to /storage/kkm_last_doc_name [00:24:51]save OK [00:24:51]Clear old archive folders... [00:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:24:51]tlvbuf is 01A88D30 [00:24:51]SAM_PROTO_ClearQueue [00:24:51]wFMCommunicate request_size=4 [00:24:51]MH_SAM_APDU [00:24:51]CAPDU: 80 09 00 00 [00:24:51]Write to MH i2c: E2 08 00 E7 2E 80 09 00 00 00 00 00 00 87 [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:51]Read from MH i2c: E2 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 03 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [00:24:51]RAPDU: 90 00 [00:24:51]wFMCommunicate OK [00:24:51]SAM_PROTO_ClearQueue done [00:24:51]KKMCreateOFDPacket [00:24:51]OFDProtocolAddRootSTLVToBuf [00:24:51]FM_MakeSignedData [00:24:51]FM_MakeSignedData [00:24:51]SAM_PROTO_SignData [00:24:51]wFMCommunicate request_size=4 [00:24:51]MH_SAM_APDU [00:24:51]CAPDU: 80 0D 01 02 [00:24:51]Write to MH i2c: E2 08 00 E8 2E 80 0D 01 02 00 00 00 00 8F [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:51]Read from MH i2c: E2 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 03 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [00:24:51]RAPDU: 90 00 [00:24:51]wFMCommunicate OK [00:24:51]wFMCommunicate request_size=255 [00:24:51]MH_SAM_APDU [00:24:51]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 55 C5 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 74 00 00 35 04 06 00 06 6B [00:24:51]Write to MH i2c: E2 02 01 E9 2E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 55 C5 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 74 00 00 35 04 06 00 06 6B 00 00 BF [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 03 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [00:24:52]RAPDU: 90 00 [00:24:52]wFMCommunicate OK [00:24:52]wFMCommunicate request_size=9 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 0D 02 02 04 EE 1A 93 C2 [00:24:52]Write to MH i2c: E2 0C 00 EA 2E 80 0D 02 02 04 00 EE 1A 93 C2 00 00 F7 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 03 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 03 00 EA 2E 00 90 00 8C [00:24:52]RAPDU: 90 00 [00:24:52]wFMCommunicate OK [00:24:52]wFMCommunicate request_size=4 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 0D 03 02 [00:24:52]Write to MH i2c: E2 08 00 EB 2E 80 0D 03 02 00 00 00 00 94 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 0B 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 0B 00 EB 2E 00 C5 C8 53 CF 09 BA C5 38 90 00 04 [00:24:52]RAPDU: C5 C8 53 CF 09 BA C5 38 90 00 [00:24:52]wFMCommunicate OK [00:24:52]SAM_PROTO_SignData done [00:24:52]FM_MakeSignedData done [00:24:52]CreateOFDProtocolMessage [00:24:52]wFMCommunicate request_size=4 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 11 00 00 [00:24:52]Write to MH i2c: E2 08 00 EC 2E 80 11 00 00 00 00 00 00 94 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 17 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 17 00 EC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [00:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:24:52]wFMCommunicate OK [00:24:52]CreateOFDProtocolMessage done [00:24:52]OFDSenderStorePacket 29727 [00:24:52]StoreOFDPacket docnum=29727 [00:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F7 50 06 01 3A 38 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 55 C5 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 74 00 00 35 04 06 00 06 6B EE 1A 93 C2 C5 C8 53 CF 09 BA C5 38 [00:24:52]CheckFolder [00:24:52]dirname=/storage/ofd_packets [00:24:52]CheckFolder done [00:24:52]ProducePacketName [00:24:52]name=ofd_packets/00029727 [00:24:52]NVStorageSaveData ofd_packets/00029727 [00:24:52]File name is /storage/ofd_packets/00029727 [00:24:52]Write 300 bytes [00:24:52]NVStorageSaveData done [00:24:52]OFDSenderStorePacket done [00:24:52]KKMCreateOFDPacket done [00:24:52]NVStorageSaveData kkm_last_timestamp [00:24:52]File name is /storage/kkm_last_timestamp [00:24:52]Write 4 bytes [00:24:52]NVStorageSaveData done [00:24:52]ExternCall_PrintAddStr [00:24:52]wPrintStart [00:24:52]Write to MH i2c: 01 00 00 ED 2E 1B [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 07 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: 01 07 00 ED 2E 00 00 00 00 00 FF 0F 30 [00:24:52]RasterBufferAndPrint [00:24:52]line Счет N : (1)348202 [00:24:52]line ИНН: 02508201610067 [00:24:52]line Контрольно-Кассовый Чек [00:24:52]line ПРОДАЖА [00:24:52]line ТРК (МРК, ГНК) : 71 [00:24:52]line Товар: 2711129700 [00:24:52]line ГАЗ-К-5 [00:24:52]line 59.890 * 33.40 [00:24:52]line = 2000.33 [00:24:52]line НДС 12% НСП 1% [00:24:52]line > о реализуемом товаре [00:24:52]line ОКРУГЛЕНИЕ: -0.33 [00:24:52]line ИТОГО: 2000.00 [00:24:52]line Внесено: 2000.00 [00:24:52]line СДАЧА: 0.00 [00:24:52]line НСП 1% : 17.70 [00:24:52]line НДС 12% : 212.42 [00:24:52]line Наличными: 2000.00 [00:24:52]line Безнал.: 0.00 [00:24:52]line Место: АЗС № 108 "Партнер Нефть" [00:24:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:24:52]line СНО: Общий режим [00:24:52]line Чек 1 16.04.2024 00:24 [00:24:52]line Смена: 118 ФФД: 1.0 [00:24:52]line ЗНМ: 0300000027 [00:24:52]line РНМ: 0000138879044617 [00:24:52]line Версия ККМ: 001 [00:24:52]line ФМ: 0000000000963154 [00:24:52]line ФД: 29727 [00:24:52]line ФПД: 7060625986498 [00:24:52]line 1/tax-web-control/client/api/v1/ticket?date=20240416T002453&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29727&fm=7060625986498&tin=02508201610067®Number=0000138879044617&sum=200000 [00:24:52]OFD Sender: Processing packet 29727 [packets to send 8, broken 7] [00:24:52]ProducePacketName [00:24:52]name=ofd_packets/00029727 [00:24:52]OFD Sender: To server: pG, [00:24:52]CommunicateWithHost lk.salyk.kg:30040 [00:24:52]ConnectInit lk.salyk.kg [00:24:52]written 0, free lines is 4095 [00:24:52]Connected sock=10 [00:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 F7 50 06 01 3A 38 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 E9 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 61 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 55 C5 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 74 00 00 35 04 06 00 06 6B EE 1A 93 C2 C5 C8 53 CF 09 BA C5 38 [00:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 59 47 00 E8 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 39 36 33 31 35 34 10 04 04 00 1F 74 00 00 F4 03 04 00 F5 6F 1D 66 B6 04 01 00 00 3F 3D F7 4D 67 AC 15 98 [00:24:53]CommunicateWithHost err = 0 [00:24:53]CheckOFDResponse [00:24:53]1017 (14) - 77093643461234 [00:24:53]1041 (16) - 0000000000963154 [00:24:53]1040 (4) - 29727 [00:24:53]1012 (4) - 15.04.2024 18:20 [00:24:53]1206 (1) - 0 [00:24:53]OFD Sender: Remove packet 29727 [00:24:53]ProducePacketName [00:24:53]name=ofd_packets/00029727 [00:24:53]NVStorageDeleteData [00:24:53]Write to MH i2c: 01 00 00 17 2F 46 [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: 01 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: 01 07 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: 01 07 00 17 2F 00 00 00 00 00 CB 0C 24 [00:24:53]RasterBufferAndPrint [00:24:53]line [00:24:53]line [00:24:53]line [00:24:53]line [00:24:53]line [00:24:53]written 0, free lines is 3281 [00:24:53]MH_Cut [00:24:53]Write to MH i2c: D1 01 00 1E 2F 01 1F [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: D1 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: D1 01 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: D1 01 00 1E 2F 00 1E [00:24:53]Write to MH i2c: 01 00 00 1F 2F 4E [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]OFD Sender: No OFD packet to send [00:24:53]*** Cut start [00:24:53]*** Partial cut [00:24:53]*** CUTSNS_PIN = 1 [00:24:54]*** CUTSNS_PIN = 0 [00:24:54]*** Brake cut motor [00:24:54]Read from MH i2c: 01 [00:24:54]MH_I2C_Read... [00:24:54]*** Stop cut motor [00:24:54]*** Cut end [00:24:54]Read from MH i2c: 01 07 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: 01 07 00 1F 2F 00 00 00 00 00 FF 0F 63 [00:24:54]process_action close_receipt done [00:24:54]requested_data is exist [00:24:54]produce_requested_data [00:24:54]requested_item fm.sn is exist - process it [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 11 00 00 [00:24:54]Write to MH i2c: E2 08 00 20 2F 80 11 00 00 00 00 00 00 C9 [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 17 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 17 00 20 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [00:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:24:54]wFMCommunicate OK [00:24:54]requested_item fd.num is exist - process it [00:24:54]SAM_PROTO_GetFieldsCounters [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 13 00 00 [00:24:54]Write to MH i2c: E2 08 00 21 2F 80 13 00 00 00 00 00 00 CC [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 62 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 62 00 21 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 74 00 00 0E 04 04 00 76 00 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 16 [00:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:54]wFMCommunicate OK [00:24:54]SAM_PROTO_GetFieldsCounters done [00:24:54]requested_item shift.num is exist - process it [00:24:54]requested_item shift.opened is exist - process it [00:24:54]req_shift_opened [00:24:54]FM_GetShiftState [00:24:54]SAM_PROTO_GetShiftState [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 13 01 00 [00:24:54]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 0E 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7C [00:24:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:24:54]wFMCommunicate OK [00:24:54]SAM_PROTO_GetShiftState done [00:24:54]FM_GetShiftState done [00:24:54]req_shift_opened done [00:24:54]requested_item shift.open_date is exist - process it [00:24:54]req_shift_open_date [00:24:54]req_shift_open_date done [00:24:54]produce_requested_data done [00:24:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29727,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [00:24:54]process_action_free close_receipt [00:24:54]json_value_free [00:24:54]json_value_free done [00:24:54]process_json_proto returns [00:24:54]Send response to host [00:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29727,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [00:24:54]free response buf [00:24:54]execute_script done [00:24:54]execute_script returns [00:24:54]free content buf [00:24:54]Sock 7.Close socket [00:24:54]Sock 7.Thread stoped [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:57]int [00:26:57]Write to MH i2c: 01 00 00 23 2F 52 [00:26:57]*** FLAG_PRN_KEY set [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 23 2F 00 08 00 00 00 FF 0F 6F [00:26:57]state=0 [00:26:57]Key pressed [00:26:57]Feed [00:26:57]Write to MH i2c: D8 00 00 24 2F 2A [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: D8 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: D8 01 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: D8 01 00 24 2F 00 2B [00:26:57]int [00:26:57]Write to MH i2c: 01 00 00 25 2F 54 [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 25 2F 00 48 00 00 00 3C 00 DF [00:26:57]state=2 [00:26:57]Key pressed [00:26:57]int [00:26:57]Write to MH i2c: 01 00 00 26 2F 55 [00:26:57]*** FLAG_PRN_KEY reset [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: 01 07 00 26 2F 00 00 00 00 00 FF 0F 6A [00:26:57]state=2 [00:26:57]Stop feed [00:26:58]OFD Sender: No OFD packet to send [00:26:59]int [00:26:59]Write to MH i2c: 01 00 00 27 2F 56 [00:26:59]*** FLAG_PRN_KEY set [00:26:59]Write i2c OK [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 07 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 07 00 27 2F 00 08 00 00 00 FF 0F 73 [00:26:59]state=0 [00:26:59]Key pressed [00:26:59]Feed [00:26:59]Write to MH i2c: D8 00 00 28 2F 2E [00:26:59]Write i2c OK [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: D8 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: D8 01 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: D8 01 00 28 2F 00 2F [00:26:59]int [00:26:59]Write to MH i2c: 01 00 00 29 2F 58 [00:26:59]Write i2c OK [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 07 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: 01 07 00 29 2F 00 48 00 00 00 3C 00 E3 [00:26:59]state=2 [00:26:59]Key pressed [00:27:00]int [00:27:00]Write to MH i2c: 01 00 00 2A 2F 59 [00:27:00]*** FLAG_PRN_KEY reset [00:27:00]Write i2c OK [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: 01 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: 01 07 00 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: 01 07 00 2A 2F 00 00 00 00 00 F6 0F 65 [00:27:00]state=2 [00:27:00]Stop feed [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:04]accept exits with 9 [00:29:04]New connection [00:29:04]New thread 3067108708 created [00:29:04]Thread 3066965348 joined [00:29:04]Waiting for new connection... [00:29:04] Sock 9.Parse request [00:29:04]Sock 9.Check first char [00:29:04]Sock 9.First char is OK [00:29:04]request: POST /json_proto HTTP/1.0 [00:29:04]Method: POST [00:29:04]URL: /json_proto [00:29:04]Method is POST - this is cgi request [00:29:04]url: /json_proto [00:29:04]query_string will be loaded in cgi processing [00:29:04]execute_cgi json_proto POST (null) [00:29:04]execute_cgi path=json_proto method=POST [00:29:04]POST find Content-Length [00:29:04]Host: 172.17.33.3:8080 [00:29:04]Content-Length: 681 [00:29:04]Content-Type: application/json [00:29:04] [00:29:04]POST finish read [00:29:04]Found Content-Length = 681 [00:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:04]execute_script... [00:29: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)348203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 20.960, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:04]POST & json_proto [00:29:04]process_json_proto [00:29:04]json parsed OK: [00:29:04]protocol is kg_v1.0 [00:29:04]action value=close_receipt [00:29:04]process_action close_receipt [00:29:04]cmd_close_receipt [00:29:04]MH_GetDate [00:29:04]Write to MH i2c: F0 00 00 2B 2F 49 [00:29:04]Write i2c OK [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: F0 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: F0 09 00 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: F0 09 00 2B 2F 00 53 C6 1D 66 23 5B 8F 65 60 [00:29:04]GetLastDocTimeStamp 1713227093 [00:29:04]current date 1713227347 [00:29:04]FM_GetShiftState [00:29:04]SAM_PROTO_GetShiftState [00:29:04]wFMCommunicate request_size=4 [00:29:04]MH_SAM_APDU [00:29:04]CAPDU: 80 13 01 00 [00:29:04]Write to MH i2c: E2 08 00 2C 2F 80 13 01 00 00 00 00 00 D8 [00:29:04]Write i2c OK [00:29:04]MH_I2C_Read... [00:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:04]Read from MH i2c: E2 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 0E 00 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 0E 00 2C 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 86 [00:29:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:29:04]wFMCommunicate OK [00:29:04]SAM_PROTO_GetShiftState done [00:29:04]FM_GetShiftState done [00:29:04]opened in 1713226843 [00:29:04]opened+sec_in_day 1713313243 [00:29:04]quantity*price = 70006 [00:29:04]sum+1 = 70007 [00:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 2 16.04.2024 00:29 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29728 ФПД: 46254630593210 1/tax-web-control/client/api/v1/ticket?date=20240416T002907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29728&fm=46254630593210&tin=02508201610067®Number=0000138879044617&sum=70000 [00:29:05]StoreToDocumentArchive [00:29:05]shift 118 fd 29728 [00:29:05]save to /storage/0118/doc_00029728 [00:29:05]save last doc name /storage/0118/doc_00029728 to /storage/kkm_last_doc_name [00:29:05]save OK [00:29:05]Clear old archive folders... [00:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:29:05]tlvbuf is B6F7B010 [00:29:05]SAM_PROTO_ClearQueue [00:29:05]wFMCommunicate request_size=4 [00:29:05]MH_SAM_APDU [00:29:05]CAPDU: 80 09 00 00 [00:29:05]Write to MH i2c: E2 08 00 39 2F 80 09 00 00 00 00 00 00 DA [00:29:05]Write i2c OK [00:29:05]MH_I2C_Read... [00:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 03 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 03 00 39 2F 00 90 00 DC [00:29:05]RAPDU: 90 00 [00:29:05]wFMCommunicate OK [00:29:05]SAM_PROTO_ClearQueue done [00:29:05]KKMCreateOFDPacket [00:29:05]OFDProtocolAddRootSTLVToBuf [00:29:05]FM_MakeSignedData [00:29:05]FM_MakeSignedData [00:29:05]SAM_PROTO_SignData [00:29:05]wFMCommunicate request_size=4 [00:29:05]MH_SAM_APDU [00:29:05]CAPDU: 80 0D 01 02 [00:29:06]Write to MH i2c: E2 08 00 3A 2F 80 0D 01 02 00 00 00 00 E2 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 3A 2F 00 90 00 DD [00:29:06]RAPDU: 90 00 [00:29:06]wFMCommunicate OK [00:29:06]wFMCommunicate request_size=255 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 53 C6 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 74 00 00 35 04 06 00 2A 11 [00:29:06]Write to MH i2c: E2 02 01 3B 2F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 53 C6 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 74 00 00 35 04 06 00 2A 11 00 00 06 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 3B 2F 00 90 00 DE [00:29:06]RAPDU: 90 00 [00:29:06]wFMCommunicate OK [00:29:06]wFMCommunicate request_size=9 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 0D 02 02 04 7E D3 62 BA [00:29:06]Write to MH i2c: E2 0C 00 3C 2F 80 0D 02 02 04 00 7E D3 62 BA 00 00 5A [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 03 00 3C 2F 00 90 00 DF [00:29:06]RAPDU: 90 00 [00:29:06]wFMCommunicate OK [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 0D 03 02 [00:29:06]Write to MH i2c: E2 08 00 3D 2F 80 0D 03 02 00 00 00 00 E7 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 0B 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 0B 00 3D 2F 00 4A B8 1B F0 EB 90 F7 2B 90 00 92 [00:29:06]RAPDU: 4A B8 1B F0 EB 90 F7 2B 90 00 [00:29:06]wFMCommunicate OK [00:29:06]SAM_PROTO_SignData done [00:29:06]FM_MakeSignedData done [00:29:06]CreateOFDProtocolMessage [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 11 00 00 [00:29:06]Write to MH i2c: E2 08 00 3E 2F 80 11 00 00 00 00 00 00 E7 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 17 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 17 00 3E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [00:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:29:06]wFMCommunicate OK [00:29:06]CreateOFDProtocolMessage done [00:29:06]OFDSenderStorePacket 29728 [00:29:06]StoreOFDPacket docnum=29728 [00:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E3 7B 06 01 36 79 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 53 C6 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 74 00 00 35 04 06 00 2A 11 7E D3 62 BA 4A B8 1B F0 EB 90 F7 2B [00:29:06]CheckFolder [00:29:06]dirname=/storage/ofd_packets [00:29:06]CheckFolder done [00:29:06]ProducePacketName [00:29:06]name=ofd_packets/00029728 [00:29:06]NVStorageSaveData ofd_packets/00029728 [00:29:06]File name is /storage/ofd_packets/00029728 [00:29:06]Write 300 bytes [00:29:06]NVStorageSaveData done [00:29:06]OFDSenderStorePacket done [00:29:06]KKMCreateOFDPacket done [00:29:06]NVStorageSaveData kkm_last_timestamp [00:29:06]File name is /storage/kkm_last_timestamp [00:29:06]Write 4 bytes [00:29:06]NVStorageSaveData done [00:29:06]ExternCall_PrintAddStr [00:29:06]wPrintStart [00:29:06]Write to MH i2c: 01 00 00 3F 2F 6E [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: 01 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: 01 07 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: 01 07 00 3F 2F 00 00 00 00 00 FF 0F 83 [00:29:06]RasterBufferAndPrint [00:29:06]line Счет N : (1)348203 [00:29:06]line ИНН: 02508201610067 [00:29:06]line Контрольно-Кассовый Чек [00:29:06]line ПРОДАЖА [00:29:06]line ТРК (МРК, ГНК) : 71 [00:29:06]line Товар: 2711129700 [00:29:06]line ГАЗ-К-5 [00:29:06]line 20.960 * 33.40 [00:29:06]line = 700.06 [00:29:06]line НДС 12% НСП 1% [00:29:06]line > о реализуемом товаре [00:29:06]line ОКРУГЛЕНИЕ: -0.06 [00:29:06]line ИТОГО: 700.00 [00:29:06]line Внесено: 700.00 [00:29:06]line СДАЧА: 0.00 [00:29:06]line НСП 1% : 6.19 [00:29:06]line НДС 12% : 74.34 [00:29:06]line Наличными: 700.00 [00:29:06]line Безнал.: 0.00 [00:29:06]line Место: АЗС № 108 "Партнер Нефть" [00:29:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:29:06]line СНО: Общий режим [00:29:06]line Чек 2 16.04.2024 00:29 [00:29:06]line Смена: 118 ФФД: 1.0 [00:29:06]line ЗНМ: 0300000027 [00:29:06]line РНМ: 0000138879044617 [00:29:06]line Версия ККМ: 001 [00:29:06]line ФМ: 0000000000963154 [00:29:06]line ФД: 29728 [00:29:06]line ФПД: 46254630593210 [00:29:06]line 1/tax-web-control/client/api/v1/ticket?date=20240416T002907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29728&fm=46254630593210&tin=02508201610067®Number=0000138879044617&sum=70000 [00:29:06]OFD Sender: Processing packet 29728 [packets to send 8, broken 7] [00:29:06]ProducePacketName [00:29:06]name=ofd_packets/00029728 [00:29:06]OFD Sender: To server: pG, [00:29:06]CommunicateWithHost lk.salyk.kg:30040 [00:29:06]ConnectInit lk.salyk.kg [00:29:06]written 0, free lines is 4095 [00:29:06]Connected sock=10 [00:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E3 7B 06 01 36 79 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 53 C6 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 74 00 00 35 04 06 00 2A 11 7E D3 62 BA 4A B8 1B F0 EB 90 F7 2B [00:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 A7 47 00 31 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 74 00 00 F4 03 04 00 F3 70 1D 66 B6 04 01 00 00 F8 31 16 C2 7E B7 9F 9C [00:29:07]CommunicateWithHost err = 0 [00:29:07]CheckOFDResponse [00:29:07]1017 (14) - 77093643461234 [00:29:07]1041 (16) - 0000000000963154 [00:29:07]1040 (4) - 29728 [00:29:07]1012 (4) - 15.04.2024 18:24 [00:29:07]1206 (1) - 0 [00:29:07]OFD Sender: Remove packet 29728 [00:29:07]ProducePacketName [00:29:07]name=ofd_packets/00029728 [00:29:07]NVStorageDeleteData [00:29:07]Write to MH i2c: 01 00 00 69 2F 98 [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: 01 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: 01 07 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: 01 07 00 69 2F 00 00 00 00 00 D5 0C 80 [00:29:07]RasterBufferAndPrint [00:29:07]line [00:29:07]line [00:29:07]line [00:29:07]line [00:29:07]line [00:29:07]written 0, free lines is 3291 [00:29:07]MH_Cut [00:29:07]Write to MH i2c: D1 01 00 70 2F 01 71 [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: D1 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: D1 01 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: D1 01 00 70 2F 00 70 [00:29:07]Write to MH i2c: 01 00 00 71 2F A0 [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:07]OFD Sender: No OFD packet to send [00:29:08]*** Cut start [00:29:08]*** Partial cut [00:29:08]*** CUTSNS_PIN = 1 [00:29:08]*** CUTSNS_PIN = 0 [00:29:08]*** Brake cut motor [00:29:08]Read from MH i2c: 01 [00:29:08]MH_I2C_Read... [00:29:08]*** Stop cut motor [00:29:08]*** Cut end [00:29:08]Read from MH i2c: 01 07 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: 01 07 00 71 2F 00 00 00 00 00 FF 0F B5 [00:29:08]process_action close_receipt done [00:29:08]requested_data is exist [00:29:08]produce_requested_data [00:29:08]requested_item fm.sn is exist - process it [00:29:08]wFMCommunicate request_size=4 [00:29:08]MH_SAM_APDU [00:29:08]CAPDU: 80 11 00 00 [00:29:08]Write to MH i2c: E2 08 00 72 2F 80 11 00 00 00 00 00 00 1B [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:08]Read from MH i2c: E2 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 17 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 17 00 72 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [00:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:29:08]wFMCommunicate OK [00:29:08]requested_item fd.num is exist - process it [00:29:08]SAM_PROTO_GetFieldsCounters [00:29:08]wFMCommunicate request_size=4 [00:29:08]MH_SAM_APDU [00:29:08]CAPDU: 80 13 00 00 [00:29:08]Write to MH i2c: E2 08 00 73 2F 80 13 00 00 00 00 00 00 1E [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:08]Read from MH i2c: E2 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 62 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 62 00 73 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 74 00 00 0E 04 04 00 76 00 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 6C [00:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 74 00 00 0E 04 04 00 76 00 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:29:08]wFMCommunicate OK [00:29:08]SAM_PROTO_GetFieldsCounters done [00:29:08]requested_item shift.num is exist - process it [00:29:08]requested_item shift.opened is exist - process it [00:29:08]req_shift_opened [00:29:08]FM_GetShiftState [00:29:08]SAM_PROTO_GetShiftState [00:29:08]wFMCommunicate request_size=4 [00:29:08]MH_SAM_APDU [00:29:08]CAPDU: 80 13 01 00 [00:29:08]Write to MH i2c: E2 08 00 74 2F 80 13 01 00 00 00 00 00 20 [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:08]Read from MH i2c: E2 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 0E 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 0E 00 74 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CE [00:29:08]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:29:08]wFMCommunicate OK [00:29:08]SAM_PROTO_GetShiftState done [00:29:08]FM_GetShiftState done [00:29:08]req_shift_opened done [00:29:08]requested_item shift.open_date is exist - process it [00:29:08]req_shift_open_date [00:29:08]req_shift_open_date done [00:29:08]produce_requested_data done [00:29:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29728,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [00:29:08]process_action_free close_receipt [00:29:08]json_value_free [00:29:08]json_value_free done [00:29:08]process_json_proto returns [00:29:08]Send response to host [00:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29728,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [00:29:08]free response buf [00:29:08]execute_script done [00:29:08]execute_script returns [00:29:08]free content buf [00:29:08]Sock 9.Close socket [00:29:08]Sock 9.Thread stoped [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:14]accept exits with 7 [00:36:14]New connection [00:36:14]New thread 3066965348 created [00:36:14]Thread 3067108708 joined [00:36:14]Waiting for new connection... [00:36:14] Sock 7.Parse request [00:36:14]Sock 7.Check first char [00:36:14]Sock 7.First char is OK [00:36:14]request: POST /json_proto HTTP/1.0 [00:36:14]Method: POST [00:36:14]URL: /json_proto [00:36:14]Method is POST - this is cgi request [00:36:14]url: /json_proto [00:36:14]query_string will be loaded in cgi processing [00:36:14]execute_cgi json_proto POST (null) [00:36:14]execute_cgi path=json_proto method=POST [00:36:14]POST find Content-Length [00:36:14]Host: 172.17.33.3:8080 [00:36:14]Content-Length: 820 [00:36:14]Content-Type: application/json [00:36:14] [00:36:14]POST finish read [00:36:14]Found Content-Length = 820 [00:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:14]execute_script... [00:36: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)348204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:14]POST & json_proto [00:36:14]process_json_proto [00:36:14]json parsed OK: [00:36:14]protocol is kg_v1.0 [00:36:14]action value=close_receipt [00:36:14]process_action close_receipt [00:36:14]cmd_close_receipt [00:36:14]MH_GetDate [00:36:14]Write to MH i2c: F0 00 00 75 2F 93 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: F0 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: F0 09 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: F0 09 00 75 2F 00 01 C8 1D 66 23 5B 8F 65 5A [00:36:14]GetLastDocTimeStamp 1713227347 [00:36:14]current date 1713227777 [00:36:14]FM_GetShiftState [00:36:14]SAM_PROTO_GetShiftState [00:36:14]wFMCommunicate request_size=4 [00:36:14]MH_SAM_APDU [00:36:14]CAPDU: 80 13 01 00 [00:36:14]Write to MH i2c: E2 08 00 76 2F 80 13 01 00 00 00 00 00 22 [00:36:14]Write i2c OK [00:36:14]MH_I2C_Read... [00:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:14]Read from MH i2c: E2 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 0E 00 [00:36:14]MH_I2C_Read... [00:36:14]Read from MH i2c: E2 0E 00 76 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D0 [00:36:14]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:36:14]wFMCommunicate OK [00:36:14]SAM_PROTO_GetShiftState done [00:36:14]FM_GetShiftState done [00:36:14]opened in 1713226843 [00:36:14]opened+sec_in_day 1713313243 [00:36:14]quantity*price = 50033 [00:36:14]sum+1 = 50034 [00:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 3 16.04.2024 00:36 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29729 ФПД: 40125567183323 1/tax-web-control/client/api/v1/ticket?date=20240416T003617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29729&fm=40125567183323&tin=02508201610067®Number=0000138879044617&sum=50033 [00:36:15]StoreToDocumentArchive [00:36:15]shift 118 fd 29729 [00:36:15]save to /storage/0118/doc_00029729 [00:36:15]save last doc name /storage/0118/doc_00029729 to /storage/kkm_last_doc_name [00:36:15]save OK [00:36:15]Clear old archive folders... [00:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:36:15]tlvbuf is 01A60C80 [00:36:15]SAM_PROTO_ClearQueue [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 09 00 00 [00:36:15]Write to MH i2c: E2 08 00 83 2F 80 09 00 00 00 00 00 00 24 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 83 2F 00 90 00 26 [00:36:15]RAPDU: 90 00 [00:36:15]wFMCommunicate OK [00:36:15]SAM_PROTO_ClearQueue done [00:36:15]KKMCreateOFDPacket [00:36:15]OFDProtocolAddRootSTLVToBuf [00:36:15]FM_MakeSignedData [00:36:15]FM_MakeSignedData [00:36:15]SAM_PROTO_SignData [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 0D 01 02 [00:36:15]Write to MH i2c: E2 08 00 84 2F 80 0D 01 02 00 00 00 00 2C [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 84 2F 00 90 00 27 [00:36:15]RAPDU: 90 00 [00:36:15]wFMCommunicate OK [00:36:15]wFMCommunicate request_size=255 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 01 C8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 74 00 00 35 04 06 00 24 7E [00:36:15]Write to MH i2c: E2 02 01 85 2F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 01 C8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 74 00 00 35 04 06 00 24 7E 00 00 03 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 85 2F 00 90 00 28 [00:36:15]RAPDU: 90 00 [00:36:15]wFMCommunicate OK [00:36:15]wFMCommunicate request_size=9 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 0D 02 02 04 76 2D A9 DB [00:36:15]Write to MH i2c: E2 0C 00 86 2F 80 0D 02 02 04 00 76 2D A9 DB 00 00 5E [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 [00:36:15]MH_I2C_Read... [00:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:15]Read from MH i2c: E2 03 00 [00:36:15]MH_I2C_Read... [00:36:15]Read from MH i2c: E2 03 00 86 2F 00 90 00 29 [00:36:15]RAPDU: 90 00 [00:36:15]wFMCommunicate OK [00:36:15]wFMCommunicate request_size=4 [00:36:15]MH_SAM_APDU [00:36:15]CAPDU: 80 0D 03 02 [00:36:15]Write to MH i2c: E2 08 00 87 2F 80 0D 03 02 00 00 00 00 31 [00:36:15]Write i2c OK [00:36:15]MH_I2C_Read... [00:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:16]Read from MH i2c: E2 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 0B 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 0B 00 87 2F 00 FB 27 6C C7 8F 02 2F E2 90 00 29 [00:36:16]RAPDU: FB 27 6C C7 8F 02 2F E2 90 00 [00:36:16]wFMCommunicate OK [00:36:16]SAM_PROTO_SignData done [00:36:16]FM_MakeSignedData done [00:36:16]CreateOFDProtocolMessage [00:36:16]wFMCommunicate request_size=4 [00:36:16]MH_SAM_APDU [00:36:16]CAPDU: 80 11 00 00 [00:36:16]Write to MH i2c: E2 08 00 88 2F 80 11 00 00 00 00 00 00 31 [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:16]Read from MH i2c: E2 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 17 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: E2 17 00 88 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [00:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:36:16]wFMCommunicate OK [00:36:16]CreateOFDProtocolMessage done [00:36:16]OFDSenderStorePacket 29729 [00:36:16]StoreOFDPacket docnum=29729 [00:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D7 61 06 01 4B EF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 01 C8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 74 00 00 35 04 06 00 24 7E 76 2D A9 DB FB 27 6C C7 8F 02 2F E2 [00:36:16]CheckFolder [00:36:16]dirname=/storage/ofd_packets [00:36:16]CheckFolder done [00:36:16]ProducePacketName [00:36:16]name=ofd_packets/00029729 [00:36:16]NVStorageSaveData ofd_packets/00029729 [00:36:16]File name is /storage/ofd_packets/00029729 [00:36:16]Write 300 bytes [00:36:16]NVStorageSaveData done [00:36:16]OFDSenderStorePacket done [00:36:16]KKMCreateOFDPacket done [00:36:16]NVStorageSaveData kkm_last_timestamp [00:36:16]File name is /storage/kkm_last_timestamp [00:36:16]Write 4 bytes [00:36:16]NVStorageSaveData done [00:36:16]ExternCall_PrintAddStr [00:36:16]wPrintStart [00:36:16]Write to MH i2c: 01 00 00 89 2F B8 [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 07 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 07 00 89 2F 00 00 00 00 00 FF 0F CD [00:36:16]RasterBufferAndPrint [00:36:16]line Счет N : (1)348204 [00:36:16]line ИНН: 02508201610067 [00:36:16]line Контрольно-Кассовый Чек [00:36:16]line ПРОДАЖА [00:36:16]line ТРК (МРК, ГНК) : 71 [00:36:16]line Товар: 2711129700 [00:36:16]line ГАЗ-К-5 [00:36:16]line 14.980 * 33.40 [00:36:16]line = 500.33 [00:36:16]line НДС 12% НСП 1% [00:36:16]line > о реализуемом товаре [00:36:16]line ИТОГО: 500.33 [00:36:16]line НСП 1% : 4.43 [00:36:16]line НДС 12% : 53.13 [00:36:16]line Наличными: 0.00 [00:36:16]line Безнал.: 500.33 [00:36:16]line Место: АЗС № 108 "Партнер Нефть" [00:36:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:36:16]line СНО: Общий режим [00:36:16]line Чек 3 16.04.2024 00:36 [00:36:16]line Смена: 118 ФФД: 1.0 [00:36:16]line ЗНМ: 0300000027 [00:36:16]line РНМ: 0000138879044617 [00:36:16]line Версия ККМ: 001 [00:36:16]line Платежная система: Бакай Банк [00:36:16]line ФМ: 0000000000963154 [00:36:16]line ФД: 29729 [00:36:16]line ФПД: 40125567183323 [00:36:16]line 1/tax-web-control/client/api/v1/ticket?date=20240416T003617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29729&fm=40125567183323&tin=02508201610067®Number=0000138879044617&sum=50033 [00:36:16]OFD Sender: Processing packet 29729 [packets to send 8, broken 7] [00:36:16]ProducePacketName [00:36:16]name=ofd_packets/00029729 [00:36:16]OFD Sender: To server: pG, [00:36:16]CommunicateWithHost lk.salyk.kg:30040 [00:36:16]ConnectInit lk.salyk.kg [00:36:16]written 0, free lines is 4095 [00:36:16]Connected sock=10 [00:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D7 61 06 01 4B EF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 01 C8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 74 00 00 35 04 06 00 24 7E 76 2D A9 DB FB 27 6C C7 8F 02 2F E2 [00:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 04 B5 47 00 E0 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 74 00 00 F4 03 04 00 A0 72 1D 66 B6 04 01 00 00 E7 57 68 F3 A9 0D 46 F3 [00:36:16]CommunicateWithHost err = 0 [00:36:16]CheckOFDResponse [00:36:16]1017 (14) - 77093643461234 [00:36:16]1041 (16) - 0000000000963154 [00:36:16]1040 (4) - 29729 [00:36:16]1012 (4) - 15.04.2024 18:32 [00:36:16]1206 (1) - 0 [00:36:16]OFD Sender: Remove packet 29729 [00:36:16]ProducePacketName [00:36:16]name=ofd_packets/00029729 [00:36:16]NVStorageDeleteData [00:36:16]Write to MH i2c: 01 00 00 B2 2F E1 [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 07 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: 01 07 00 B2 2F 00 00 00 00 00 D8 0C CC [00:36:16]RasterBufferAndPrint [00:36:16]line [00:36:16]line [00:36:16]line [00:36:16]line [00:36:16]line [00:36:16]written 0, free lines is 3295 [00:36:16]MH_Cut [00:36:16]Write to MH i2c: D1 01 00 B9 2F 01 BA [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: D1 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: D1 01 00 [00:36:16]MH_I2C_Read... [00:36:16]Read from MH i2c: D1 01 00 B9 2F 00 B9 [00:36:16]Write to MH i2c: 01 00 00 BA 2F E9 [00:36:16]Write i2c OK [00:36:16]MH_I2C_Read... [00:36:17]OFD Sender: No OFD packet to send [00:36:17]*** Cut start [00:36:17]*** Partial cut [00:36:17]*** CUTSNS_PIN = 1 [00:36:17]*** CUTSNS_PIN = 0 [00:36:17]*** Brake cut motor [00:36:18]Read from MH i2c: 01 [00:36:18]MH_I2C_Read... [00:36:18]*** Stop cut motor [00:36:18]*** Cut end [00:36:18]Read from MH i2c: 01 07 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 FF 0F FE [00:36:18]process_action close_receipt done [00:36:18]requested_data is exist [00:36:18]produce_requested_data [00:36:18]requested_item fm.sn is exist - process it [00:36:18]wFMCommunicate request_size=4 [00:36:18]MH_SAM_APDU [00:36:18]CAPDU: 80 11 00 00 [00:36:18]Write to MH i2c: E2 08 00 BB 2F 80 11 00 00 00 00 00 00 64 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 17 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 17 00 BB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [00:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:36:18]wFMCommunicate OK [00:36:18]requested_item fd.num is exist - process it [00:36:18]SAM_PROTO_GetFieldsCounters [00:36:18]wFMCommunicate request_size=4 [00:36:18]MH_SAM_APDU [00:36:18]CAPDU: 80 13 00 00 [00:36:18]Write to MH i2c: E2 08 00 BC 2F 80 13 00 00 00 00 00 00 67 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 62 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 62 00 BC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 74 00 00 0E 04 04 00 76 00 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 B9 [00:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 74 00 00 0E 04 04 00 76 00 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:36:18]wFMCommunicate OK [00:36:18]SAM_PROTO_GetFieldsCounters done [00:36:18]requested_item shift.num is exist - process it [00:36:18]requested_item shift.opened is exist - process it [00:36:18]req_shift_opened [00:36:18]FM_GetShiftState [00:36:18]SAM_PROTO_GetShiftState [00:36:18]wFMCommunicate request_size=4 [00:36:18]MH_SAM_APDU [00:36:18]CAPDU: 80 13 01 00 [00:36:18]Write to MH i2c: E2 08 00 BD 2F 80 13 01 00 00 00 00 00 69 [00:36:18]Write i2c OK [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 [00:36:18]MH_I2C_Read... [00:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:18]Read from MH i2c: E2 0E 00 [00:36:18]MH_I2C_Read... [00:36:18]Read from MH i2c: E2 0E 00 BD 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 17 [00:36:18]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:36:18]wFMCommunicate OK [00:36:18]SAM_PROTO_GetShiftState done [00:36:18]FM_GetShiftState done [00:36:18]req_shift_opened done [00:36:18]requested_item shift.open_date is exist - process it [00:36:18]req_shift_open_date [00:36:18]req_shift_open_date done [00:36:18]produce_requested_data done [00:36:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29729,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [00:36:18]process_action_free close_receipt [00:36:18]json_value_free [00:36:18]json_value_free done [00:36:18]process_json_proto returns [00:36:18]Send response to host [00:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29729,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [00:36:18]free response buf [00:36:18]execute_script done [00:36:18]execute_script returns [00:36:18]free content buf [00:36:18]Sock 7.Close socket [00:36:18]Sock 7.Thread stoped [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:28]accept exits with 9 [00:49:28]New connection [00:49:28]New thread 3067108708 created [00:49:28]Thread 3066965348 joined [00:49:28]Waiting for new connection... [00:49:28] Sock 9.Parse request [00:49:28]Sock 9.Check first char [00:49:28]Sock 9.First char is OK [00:49:28]request: POST /json_proto HTTP/1.0 [00:49:28]Method: POST [00:49:28]URL: /json_proto [00:49:28]Method is POST - this is cgi request [00:49:28]url: /json_proto [00:49:28]query_string will be loaded in cgi processing [00:49:28]execute_cgi json_proto POST (null) [00:49:28]execute_cgi path=json_proto method=POST [00:49:28]POST find Content-Length [00:49:28]Host: 172.17.33.3:8080 [00:49:28]Content-Length: 678 [00:49:28]Content-Type: application/json [00:49:28] [00:49:28]POST finish read [00:49:28]Found Content-Length = 678 [00:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [00:49:28]execute_script... [00:49: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)348205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "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" ] } } [00:49:28]POST & json_proto [00:49:28]process_json_proto [00:49:28]json parsed OK: [00:49:28]protocol is kg_v1.0 [00:49:28]action value=close_receipt [00:49:28]process_action close_receipt [00:49:28]cmd_close_receipt [00:49:28]MH_GetDate [00:49:28]Write to MH i2c: F0 00 00 BE 2F DC [00:49:28]Write i2c OK [00:49:28]MH_I2C_Read... [00:49:28]Read from MH i2c: F0 [00:49:28]MH_I2C_Read... [00:49:28]Read from MH i2c: F0 09 00 [00:49:28]MH_I2C_Read... [00:49:28]Read from MH i2c: F0 09 00 BE 2F 00 1B CB 1D 66 23 5B 8F 65 C0 [00:49:28]GetLastDocTimeStamp 1713227777 [00:49:28]current date 1713228571 [00:49:28]FM_GetShiftState [00:49:28]SAM_PROTO_GetShiftState [00:49:28]wFMCommunicate request_size=4 [00:49:28]MH_SAM_APDU [00:49:28]CAPDU: 80 13 01 00 [00:49:28]Write to MH i2c: E2 08 00 BF 2F 80 13 01 00 00 00 00 00 6B [00:49:28]Write i2c OK [00:49:28]MH_I2C_Read... [00:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:28]Read from MH i2c: E2 [00:49:28]MH_I2C_Read... [00:49:28]Read from MH i2c: E2 0E 00 [00:49:28]MH_I2C_Read... [00:49:28]Read from MH i2c: E2 0E 00 BF 2F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 19 [00:49:28]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:49:28]wFMCommunicate OK [00:49:28]SAM_PROTO_GetShiftState done [00:49:28]FM_GetShiftState done [00:49:28]opened in 1713226843 [00:49:28]opened+sec_in_day 1713313243 [00:49:28]quantity*price = 65059 [00:49:28]sum+1 = 65060 [00:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 4 16.04.2024 00:49 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29730 ФПД: 99414786550951 1/tax-web-control/client/api/v1/ticket?date=20240416T004931&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29730&fm=99414786550951&tin=02508201610067®Number=0000138879044617&sum=65000 [00:49:29]StoreToDocumentArchive [00:49:29]shift 118 fd 29730 [00:49:29]save to /storage/0118/doc_00029730 [00:49:29]save last doc name /storage/0118/doc_00029730 to /storage/kkm_last_doc_name [00:49:29]save OK [00:49:29]Clear old archive folders... [00:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:49:29]tlvbuf is 01A25010 [00:49:29]SAM_PROTO_ClearQueue [00:49:29]wFMCommunicate request_size=4 [00:49:29]MH_SAM_APDU [00:49:29]CAPDU: 80 09 00 00 [00:49:29]Write to MH i2c: E2 08 00 CC 2F 80 09 00 00 00 00 00 00 6D [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:29]Read from MH i2c: E2 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 CC 2F 00 90 00 6F [00:49:29]RAPDU: 90 00 [00:49:29]wFMCommunicate OK [00:49:29]SAM_PROTO_ClearQueue done [00:49:29]KKMCreateOFDPacket [00:49:29]OFDProtocolAddRootSTLVToBuf [00:49:29]FM_MakeSignedData [00:49:29]FM_MakeSignedData [00:49:29]SAM_PROTO_SignData [00:49:29]wFMCommunicate request_size=4 [00:49:29]MH_SAM_APDU [00:49:29]CAPDU: 80 0D 01 02 [00:49:29]Write to MH i2c: E2 08 00 CD 2F 80 0D 01 02 00 00 00 00 75 [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:29]Read from MH i2c: E2 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 CD 2F 00 90 00 70 [00:49:29]RAPDU: 90 00 [00:49:29]wFMCommunicate OK [00:49:29]wFMCommunicate request_size=255 [00:49:29]MH_SAM_APDU [00:49: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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1B CB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 74 00 00 35 04 06 00 5A [00:49:29]Write to MH i2c: E2 02 01 CE 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1B CB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 74 00 00 35 04 06 00 5A 00 00 7B [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:29]Read from MH i2c: E2 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 CE 2F 00 90 00 71 [00:49:29]RAPDU: 90 00 [00:49:29]wFMCommunicate OK [00:49:29]wFMCommunicate request_size=10 [00:49:29]MH_SAM_APDU [00:49:29]CAPDU: 80 0D 02 02 05 6A CF 09 AC A7 [00:49:29]Write to MH i2c: E2 0D 00 CF 2F 80 0D 02 02 05 00 6A CF 09 AC A7 00 00 17 [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:29]Read from MH i2c: E2 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 03 00 CF 2F 00 90 00 72 [00:49:29]RAPDU: 90 00 [00:49:29]wFMCommunicate OK [00:49:29]wFMCommunicate request_size=4 [00:49:29]MH_SAM_APDU [00:49:29]CAPDU: 80 0D 03 02 [00:49:29]Write to MH i2c: E2 08 00 D0 2F 80 0D 03 02 00 00 00 00 7A [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:29]Read from MH i2c: E2 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 0B 00 [00:49:29]MH_I2C_Read... [00:49:29]Read from MH i2c: E2 0B 00 D0 2F 00 72 82 1A 0E 1A 8C 99 1E 90 00 F4 [00:49:29]RAPDU: 72 82 1A 0E 1A 8C 99 1E 90 00 [00:49:29]wFMCommunicate OK [00:49:29]SAM_PROTO_SignData done [00:49:29]FM_MakeSignedData done [00:49:29]CreateOFDProtocolMessage [00:49:29]wFMCommunicate request_size=4 [00:49:29]MH_SAM_APDU [00:49:29]CAPDU: 80 11 00 00 [00:49:29]Write to MH i2c: E2 08 00 D1 2F 80 11 00 00 00 00 00 00 7A [00:49:29]Write i2c OK [00:49:29]MH_I2C_Read... [00:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:30]Read from MH i2c: E2 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: E2 17 00 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: E2 17 00 D1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C9 [00:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:49:30]wFMCommunicate OK [00:49:30]CreateOFDProtocolMessage done [00:49:30]OFDSenderStorePacket 29730 [00:49:30]StoreOFDPacket docnum=29730 [00:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 31 07 01 BD 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1B CB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 74 00 00 35 04 06 00 5A 6A CF 09 AC A7 72 82 1A 0E 1A 8C 99 1E [00:49:30]CheckFolder [00:49:30]dirname=/storage/ofd_packets [00:49:30]CheckFolder done [00:49:30]ProducePacketName [00:49:30]name=ofd_packets/00029730 [00:49:30]NVStorageSaveData ofd_packets/00029730 [00:49:30]File name is /storage/ofd_packets/00029730 [00:49:30]Write 301 bytes [00:49:30]NVStorageSaveData done [00:49:30]OFDSenderStorePacket done [00:49:30]KKMCreateOFDPacket done [00:49:30]NVStorageSaveData kkm_last_timestamp [00:49:30]File name is /storage/kkm_last_timestamp [00:49:30]Write 4 bytes [00:49:30]NVStorageSaveData done [00:49:30]ExternCall_PrintAddStr [00:49:30]wPrintStart [00:49:30]Write to MH i2c: 01 00 00 D2 2F 01 [00:49:30]Write i2c OK [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 07 00 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 FF 0F 16 [00:49:30]RasterBufferAndPrint [00:49:30]line Счет N : (1)348205 [00:49:30]line ИНН: 02508201610067 [00:49:30]line Контрольно-Кассовый Чек [00:49:30]line ПРОДАЖА [00:49:30]line ТРК (МРК, ГНК) : 32 [00:49:30]line Товар: 2710124130 [00:49:30]line Аи-92-К-5 [00:49:30]line 10.040 * 64.80 [00:49:30]line = 650.59 [00:49:30]line НДС 12% НСП 1% [00:49:30]line > о реализуемом товаре [00:49:30]line ОКРУГЛЕНИЕ: -0.59 [00:49:30]line ИТОГО: 650.00 [00:49:30]line Внесено: 650.00 [00:49:30]line СДАЧА: 0.00 [00:49:30]line НСП 1% : 5.76 [00:49:30]line НДС 12% : 69.09 [00:49:30]line Наличными: 650.00 [00:49:30]line Безнал.: 0.00 [00:49:30]line Место: АЗС № 108 "Партнер Нефть" [00:49:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:49:30]line СНО: Общий режим [00:49:30]line Чек 4 16.04.2024 00:49 [00:49:30]line Смена: 118 ФФД: 1.0 [00:49:30]line ЗНМ: 0300000027 [00:49:30]line РНМ: 0000138879044617 [00:49:30]line Версия ККМ: 001 [00:49:30]line ФМ: 0000000000963154 [00:49:30]line ФД: 29730 [00:49:30]line ФПД: 99414786550951 [00:49:30]line 1/tax-web-control/client/api/v1/ticket?date=20240416T004931&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29730&fm=99414786550951&tin=02508201610067®Number=0000138879044617&sum=65000 [00:49:30]OFD Sender: Processing packet 29730 [packets to send 8, broken 7] [00:49:30]ProducePacketName [00:49:30]name=ofd_packets/00029730 [00:49:30]OFD Sender: To server: pG, [00:49:30]CommunicateWithHost lk.salyk.kg:30040 [00:49:30]ConnectInit lk.salyk.kg [00:49:30]written 0, free lines is 4095 [00:49:30]Connected sock=10 [00:49:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 34 31 07 01 BD 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1B CB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 74 00 00 35 04 06 00 5A 6A CF 09 AC A7 72 82 1A 0E 1A 8C 99 1E [00:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 9F 47 00 EF 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 39 36 33 31 35 34 10 04 04 00 22 74 00 00 F4 03 04 00 BA 75 1D 66 B6 04 01 00 00 56 0D DA 18 A3 FD 9C B3 [00:49:30]CommunicateWithHost err = 0 [00:49:30]CheckOFDResponse [00:49:30]1017 (14) - 77093643461234 [00:49:30]1041 (16) - 0000000000963154 [00:49:30]1040 (4) - 29730 [00:49:30]1012 (4) - 15.04.2024 18:45 [00:49:30]1206 (1) - 0 [00:49:30]OFD Sender: Remove packet 29730 [00:49:30]ProducePacketName [00:49:30]name=ofd_packets/00029730 [00:49:30]NVStorageDeleteData [00:49:30]Write to MH i2c: 01 00 00 FC 2F 2B [00:49:30]Write i2c OK [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 07 00 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: 01 07 00 FC 2F 00 00 00 00 00 CF 0C 0D [00:49:30]RasterBufferAndPrint [00:49:30]line [00:49:30]line [00:49:30]line [00:49:30]line [00:49:30]line [00:49:30]written 0, free lines is 3286 [00:49:30]MH_Cut [00:49:30]Write to MH i2c: D1 01 00 03 30 01 05 [00:49:30]Write i2c OK [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: D1 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: D1 01 00 [00:49:30]MH_I2C_Read... [00:49:30]Read from MH i2c: D1 01 00 03 30 00 04 [00:49:30]Write to MH i2c: 01 00 00 04 30 34 [00:49:30]Write i2c OK [00:49:30]MH_I2C_Read... [00:49:31]OFD Sender: No OFD packet to send [00:49:31]*** Cut start [00:49:31]*** Partial cut [00:49:31]*** CUTSNS_PIN = 1 [00:49:31]*** CUTSNS_PIN = 0 [00:49:31]*** Brake cut motor [00:49:32]Read from MH i2c: 01 [00:49:32]MH_I2C_Read... [00:49:32]*** Stop cut motor [00:49:32]*** Cut end [00:49:32]Read from MH i2c: 01 07 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: 01 07 00 04 30 00 00 00 00 00 FF 0F 49 [00:49:32]process_action close_receipt done [00:49:32]requested_data is exist [00:49:32]produce_requested_data [00:49:32]requested_item fm.sn is exist - process it [00:49:32]wFMCommunicate request_size=4 [00:49:32]MH_SAM_APDU [00:49:32]CAPDU: 80 11 00 00 [00:49:32]Write to MH i2c: E2 08 00 05 30 80 11 00 00 00 00 00 00 AF [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:32]Read from MH i2c: E2 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 17 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 17 00 05 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [00:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:49:32]wFMCommunicate OK [00:49:32]requested_item fd.num is exist - process it [00:49:32]SAM_PROTO_GetFieldsCounters [00:49:32]wFMCommunicate request_size=4 [00:49:32]MH_SAM_APDU [00:49:32]CAPDU: 80 13 00 00 [00:49:32]Write to MH i2c: E2 08 00 06 30 80 13 00 00 00 00 00 00 B2 [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:32]Read from MH i2c: E2 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 62 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 62 00 06 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 74 00 00 0E 04 04 00 76 00 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 08 [00:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 74 00 00 0E 04 04 00 76 00 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:49:32]wFMCommunicate OK [00:49:32]SAM_PROTO_GetFieldsCounters done [00:49:32]requested_item shift.num is exist - process it [00:49:32]requested_item shift.opened is exist - process it [00:49:32]req_shift_opened [00:49:32]FM_GetShiftState [00:49:32]SAM_PROTO_GetShiftState [00:49:32]wFMCommunicate request_size=4 [00:49:32]MH_SAM_APDU [00:49:32]CAPDU: 80 13 01 00 [00:49:32]Write to MH i2c: E2 08 00 07 30 80 13 01 00 00 00 00 00 B4 [00:49:32]Write i2c OK [00:49:32]MH_I2C_Read... [00:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:32]Read from MH i2c: E2 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 0E 00 [00:49:32]MH_I2C_Read... [00:49:32]Read from MH i2c: E2 0E 00 07 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 62 [00:49:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [00:49:32]wFMCommunicate OK [00:49:32]SAM_PROTO_GetShiftState done [00:49:32]FM_GetShiftState done [00:49:32]req_shift_opened done [00:49:32]requested_item shift.open_date is exist - process it [00:49:32]req_shift_open_date [00:49:32]req_shift_open_date done [00:49:32]produce_requested_data done [00:49:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29730,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [00:49:32]process_action_free close_receipt [00:49:32]json_value_free [00:49:32]json_value_free done [00:49:32]process_json_proto returns [00:49:32]Send response to host [00:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29730,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [00:49:32]free response buf [00:49:32]execute_script done [00:49:32]execute_script returns [00:49:32]free content buf [00:49:32]Sock 9.Close socket [00:49:32]Sock 9.Thread stoped [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:43]accept exits with 7 [01:00:43]New connection [01:00:43]New thread 3066965348 created [01:00:43]Thread 3067108708 joined [01:00:43]Waiting for new connection... [01:00:43] Sock 7.Parse request [01:00:43]Sock 7.Check first char [01:00:43]Sock 7.First char is OK [01:00:43]request: POST /json_proto HTTP/1.0 [01:00:43]Method: POST [01:00:43]URL: /json_proto [01:00:43]Method is POST - this is cgi request [01:00:43]url: /json_proto [01:00:43]query_string will be loaded in cgi processing [01:00:43]execute_cgi json_proto POST (null) [01:00:43]execute_cgi path=json_proto method=POST [01:00:43]POST find Content-Length [01:00:43]Host: 172.17.33.3:8080 [01:00:43]Content-Length: 816 [01:00:43]Content-Type: application/json [01:00:43] [01:00:43]POST finish read [01:00:43]Found Content-Length = 816 [01:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:43]execute_script... [01:00: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)348206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:43]POST & json_proto [01:00:43]process_json_proto [01:00:43]json parsed OK: [01:00:43]protocol is kg_v1.0 [01:00:43]action value=close_receipt [01:00:43]process_action close_receipt [01:00:43]cmd_close_receipt [01:00:43]MH_GetDate [01:00:43]Write to MH i2c: F0 00 00 08 30 27 [01:00:43]Write i2c OK [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: F0 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: F0 09 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: F0 09 00 08 30 00 BE CD 1D 66 23 5B 8F 65 B0 [01:00:43]GetLastDocTimeStamp 1713228571 [01:00:43]current date 1713229246 [01:00:43]FM_GetShiftState [01:00:43]SAM_PROTO_GetShiftState [01:00:43]wFMCommunicate request_size=4 [01:00:43]MH_SAM_APDU [01:00:43]CAPDU: 80 13 01 00 [01:00:43]Write to MH i2c: E2 08 00 09 30 80 13 01 00 00 00 00 00 B6 [01:00:43]Write i2c OK [01:00:43]MH_I2C_Read... [01:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:43]Read from MH i2c: E2 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 0E 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 0E 00 09 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 64 [01:00:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [01:00:43]wFMCommunicate OK [01:00:43]SAM_PROTO_GetShiftState done [01:00:43]FM_GetShiftState done [01:00:43]opened in 1713226843 [01:00:43]opened+sec_in_day 1713313243 [01:00:43]quantity*price = 40046 [01:00:43]sum+1 = 40047 [01:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.46 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 5 16.04.2024 01:00 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29731 ФПД: 268939901545646 1/tax-web-control/client/api/v1/ticket?date=20240416T010046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29731&fm=268939901545646&tin=02508201610067®Number=0000138879044617&sum=40046 [01:00:45]StoreToDocumentArchive [01:00:45]shift 118 fd 29731 [01:00:45]save to /storage/0118/doc_00029731 [01:00:45]save last doc name /storage/0118/doc_00029731 to /storage/kkm_last_doc_name [01:00:45]save OK [01:00:45]Clear old archive folders... [01:00:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:45]tlvbuf is 01AC0700 [01:00:45]SAM_PROTO_ClearQueue [01:00:45]wFMCommunicate request_size=4 [01:00:45]MH_SAM_APDU [01:00:45]CAPDU: 80 09 00 00 [01:00:45]Write to MH i2c: E2 08 00 16 30 80 09 00 00 00 00 00 00 B8 [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 16 30 00 90 00 BA [01:00:45]RAPDU: 90 00 [01:00:45]wFMCommunicate OK [01:00:45]SAM_PROTO_ClearQueue done [01:00:45]KKMCreateOFDPacket [01:00:45]OFDProtocolAddRootSTLVToBuf [01:00:45]FM_MakeSignedData [01:00:45]FM_MakeSignedData [01:00:45]SAM_PROTO_SignData [01:00:45]wFMCommunicate request_size=4 [01:00:45]MH_SAM_APDU [01:00:45]CAPDU: 80 0D 01 02 [01:00:45]Write to MH i2c: E2 08 00 17 30 80 0D 01 02 00 00 00 00 C0 [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 17 30 00 90 00 BB [01:00:45]RAPDU: 90 00 [01:00:45]wFMCommunicate OK [01:00:45]wFMCommunicate request_size=255 [01:00:45]MH_SAM_APDU [01:00: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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BE CD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 74 00 00 35 04 06 00 F4 [01:00:45]Write to MH i2c: E2 02 01 18 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BE CD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 74 00 00 35 04 06 00 F4 00 00 CE [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 18 30 00 90 00 BC [01:00:45]RAPDU: 90 00 [01:00:45]wFMCommunicate OK [01:00:45]wFMCommunicate request_size=10 [01:00:45]MH_SAM_APDU [01:00:45]CAPDU: 80 0D 02 02 05 99 73 4C 2C AE [01:00:45]Write to MH i2c: E2 0D 00 19 30 80 0D 02 02 05 00 99 73 4C 2C AE 00 00 FF [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 03 00 19 30 00 90 00 BD [01:00:45]RAPDU: 90 00 [01:00:45]wFMCommunicate OK [01:00:45]wFMCommunicate request_size=4 [01:00:45]MH_SAM_APDU [01:00:45]CAPDU: 80 0D 03 02 [01:00:45]Write to MH i2c: E2 08 00 1A 30 80 0D 03 02 00 00 00 00 C5 [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 0B 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 0B 00 1A 30 00 85 E4 76 1C 79 43 F0 D0 90 00 3D [01:00:45]RAPDU: 85 E4 76 1C 79 43 F0 D0 90 00 [01:00:45]wFMCommunicate OK [01:00:45]SAM_PROTO_SignData done [01:00:45]FM_MakeSignedData done [01:00:45]CreateOFDProtocolMessage [01:00:45]wFMCommunicate request_size=4 [01:00:45]MH_SAM_APDU [01:00:45]CAPDU: 80 11 00 00 [01:00:45]Write to MH i2c: E2 08 00 1B 30 80 11 00 00 00 00 00 00 C5 [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:45]Read from MH i2c: E2 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 17 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: E2 17 00 1B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [01:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:00:45]wFMCommunicate OK [01:00:45]CreateOFDProtocolMessage done [01:00:45]OFDSenderStorePacket 29731 [01:00:45]StoreOFDPacket docnum=29731 [01:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 98 FE 07 01 47 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BE CD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 74 00 00 35 04 06 00 F4 99 73 4C 2C AE 85 E4 76 1C 79 43 F0 D0 [01:00:45]CheckFolder [01:00:45]dirname=/storage/ofd_packets [01:00:45]CheckFolder done [01:00:45]ProducePacketName [01:00:45]name=ofd_packets/00029731 [01:00:45]NVStorageSaveData ofd_packets/00029731 [01:00:45]File name is /storage/ofd_packets/00029731 [01:00:45]Write 301 bytes [01:00:45]NVStorageSaveData done [01:00:45]OFDSenderStorePacket done [01:00:45]KKMCreateOFDPacket done [01:00:45]NVStorageSaveData kkm_last_timestamp [01:00:45]File name is /storage/kkm_last_timestamp [01:00:45]Write 4 bytes [01:00:45]NVStorageSaveData done [01:00:45]ExternCall_PrintAddStr [01:00:45]wPrintStart [01:00:45]Write to MH i2c: 01 00 00 1C 30 4C [01:00:45]Write i2c OK [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: 01 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: 01 07 00 [01:00:45]MH_I2C_Read... [01:00:45]Read from MH i2c: 01 07 00 1C 30 00 00 00 00 00 FF 0F 61 [01:00:45]RasterBufferAndPrint [01:00:45]line Счет N : (1)348206 [01:00:45]line ИНН: 02508201610067 [01:00:45]line Контрольно-Кассовый Чек [01:00:45]line ПРОДАЖА [01:00:45]line ТРК (МРК, ГНК) : 42 [01:00:45]line Товар: 2710124130 [01:00:45]line Аи-92-К-5 [01:00:45]line 6.180 * 64.80 [01:00:45]line = 400.46 [01:00:45]line НДС 12% НСП 1% [01:00:45]line > о реализуемом товаре [01:00:45]line ИТОГО: 400.46 [01:00:45]line НСП 1% : 3.54 [01:00:45]line НДС 12% : 42.53 [01:00:45]line Наличными: 0.00 [01:00:45]line Безнал.: 400.46 [01:00:45]line Место: АЗС № 108 "Партнер Нефть" [01:00:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:00:45]line СНО: Общий режим [01:00:45]line Чек 5 16.04.2024 01:00 [01:00:45]line Смена: 118 ФФД: 1.0 [01:00:45]line ЗНМ: 0300000027 [01:00:45]line РНМ: 0000138879044617 [01:00:45]line Версия ККМ: 001 [01:00:45]line Платежная система: Бакай Банк [01:00:45]line ФМ: 0000000000963154 [01:00:45]line ФД: 29731 [01:00:45]line ФПД: 268939901545646 [01:00:45]line 1/tax-web-control/client/api/v1/ticket?date=20240416T010046&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29731&fm=268939901545646&tin=02508201610067®Number=0000138879044617&sum=40046 [01:00:45]OFD Sender: Processing packet 29731 [packets to send 8, broken 7] [01:00:45]ProducePacketName [01:00:45]name=ofd_packets/00029731 [01:00:45]OFD Sender: To server: pG, [01:00:45]CommunicateWithHost lk.salyk.kg:30040 [01:00:45]ConnectInit lk.salyk.kg [01:00:45]written 0, free lines is 4095 [01:00:45]Connected sock=10 [01:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 98 FE 07 01 47 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BE CD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 74 00 00 35 04 06 00 F4 99 73 4C 2C AE 85 E4 76 1C 79 43 F0 D0 [01:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 CF 47 00 DB FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 74 00 00 F4 03 04 00 5E 78 1D 66 B6 04 01 00 00 06 B7 4D 32 DE 6C C9 59 [01:00:46]CommunicateWithHost err = 0 [01:00:46]CheckOFDResponse [01:00:46]1017 (14) - 77093643461234 [01:00:46]1041 (16) - 0000000000963154 [01:00:46]1040 (4) - 29731 [01:00:46]1012 (4) - 15.04.2024 18:56 [01:00:46]1206 (1) - 0 [01:00:46]OFD Sender: Remove packet 29731 [01:00:46]ProducePacketName [01:00:46]name=ofd_packets/00029731 [01:00:46]NVStorageDeleteData [01:00:46]Write to MH i2c: 01 00 00 45 30 75 [01:00:46]Write i2c OK [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: 01 [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: 01 07 00 [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: 01 07 00 45 30 00 00 00 00 00 E5 0C 6D [01:00:46]RasterBufferAndPrint [01:00:46]line [01:00:46]line [01:00:46]line [01:00:46]line [01:00:46]line [01:00:46]written 0, free lines is 3310 [01:00:46]MH_Cut [01:00:46]Write to MH i2c: D1 01 00 4C 30 01 4E [01:00:46]Write i2c OK [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: D1 [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: D1 01 00 [01:00:46]MH_I2C_Read... [01:00:46]Read from MH i2c: D1 01 00 4C 30 00 4D [01:00:46]Write to MH i2c: 01 00 00 4D 30 7D [01:00:46]Write i2c OK [01:00:46]MH_I2C_Read... [01:00:46]OFD Sender: No OFD packet to send [01:00:47]*** Cut start [01:00:47]*** Partial cut [01:00:47]*** CUTSNS_PIN = 1 [01:00:47]*** CUTSNS_PIN = 0 [01:00:47]*** Brake cut motor [01:00:47]Read from MH i2c: 01 [01:00:47]MH_I2C_Read... [01:00:47]*** Stop cut motor [01:00:47]*** Cut end [01:00:47]Read from MH i2c: 01 07 00 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: 01 07 00 4D 30 00 00 00 00 00 FF 0F 92 [01:00:47]process_action close_receipt done [01:00:47]requested_data is exist [01:00:47]produce_requested_data [01:00:47]requested_item fm.sn is exist - process it [01:00:47]wFMCommunicate request_size=4 [01:00:47]MH_SAM_APDU [01:00:47]CAPDU: 80 11 00 00 [01:00:47]Write to MH i2c: E2 08 00 4E 30 80 11 00 00 00 00 00 00 F8 [01:00:47]Write i2c OK [01:00:47]MH_I2C_Read... [01:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:47]Read from MH i2c: E2 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 17 00 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 17 00 4E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [01:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:00:47]wFMCommunicate OK [01:00:47]requested_item fd.num is exist - process it [01:00:47]SAM_PROTO_GetFieldsCounters [01:00:47]wFMCommunicate request_size=4 [01:00:47]MH_SAM_APDU [01:00:47]CAPDU: 80 13 00 00 [01:00:47]Write to MH i2c: E2 08 00 4F 30 80 13 00 00 00 00 00 00 FB [01:00:47]Write i2c OK [01:00:47]MH_I2C_Read... [01:00:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:47]Read from MH i2c: E2 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 62 00 [01:00:47]MH_I2C_Read... [01:00:47]Read from MH i2c: E2 62 00 4F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 74 00 00 0E 04 04 00 76 00 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 55 [01:00:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 74 00 00 0E 04 04 00 76 00 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 [01:00:47]wFMCommunicate OK [01:00:47]SAM_PROTO_GetFieldsCounters done [01:00:47]requested_item shift.num is exist - process it [01:00:47]requested_item shift.opened is exist - process it [01:00:47]req_shift_opened [01:00:47]FM_GetShiftState [01:00:47]SAM_PROTO_GetShiftState [01:00:47]wFMCommunicate request_size=4 [01:00:47]MH_SAM_APDU [01:00:47]CAPDU: 80 13 01 00 [01:00:47]Write to MH i2c: E2 08 00 50 30 80 13 01 00 00 00 00 00 FD [01:00:47]Write i2c OK [01:00:47]MH_I2C_Read... [01:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:48]Read from MH i2c: E2 [01:00:48]MH_I2C_Read... [01:00:48]Read from MH i2c: E2 0E 00 [01:00:48]MH_I2C_Read... [01:00:48]Read from MH i2c: E2 0E 00 50 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AB [01:00:48]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [01:00:48]wFMCommunicate OK [01:00:48]SAM_PROTO_GetShiftState done [01:00:48]FM_GetShiftState done [01:00:48]req_shift_opened done [01:00:48]requested_item shift.open_date is exist - process it [01:00:48]req_shift_open_date [01:00:48]req_shift_open_date done [01:00:48]produce_requested_data done [01:00:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29731,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [01:00:48]process_action_free close_receipt [01:00:48]json_value_free [01:00:48]json_value_free done [01:00:48]process_json_proto returns [01:00:48]Send response to host [01:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29731,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [01:00:48]free response buf [01:00:48]execute_script done [01:00:48]execute_script returns [01:00:48]free content buf [01:00:48]Sock 7.Close socket [01:00:48]Sock 7.Thread stoped [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:05]int [01:09:05]Write to MH i2c: 01 00 00 51 30 81 [01:09:05]*** FLAG_PRN_KEY set [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 51 30 00 08 00 00 00 FF 0F 9E [01:09:05]state=0 [01:09:05]Key pressed [01:09:05]Feed [01:09:05]Write to MH i2c: D8 00 00 52 30 59 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D8 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D8 01 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: D8 01 00 52 30 00 5A [01:09:05]int [01:09:05]Write to MH i2c: 01 00 00 53 30 83 [01:09:05]Write i2c OK [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 [01:09:05]MH_I2C_Read... [01:09:05]Read from MH i2c: 01 07 00 53 30 00 48 00 00 00 3C 00 0E [01:09:05]state=2 [01:09:05]Key pressed [01:09:06]int [01:09:06]Write to MH i2c: 01 00 00 54 30 84 [01:09:06]*** FLAG_PRN_KEY reset [01:09:06]Write i2c OK [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: 01 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: 01 07 00 [01:09:06]MH_I2C_Read... [01:09:06]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 F6 0F 90 [01:09:06]state=2 [01:09:06]Stop feed [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]int [01:14:17]Write to MH i2c: 01 00 00 55 30 85 [01:14:17]*** FLAG_PRN_KEY set [01:14:17]Write i2c OK [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 55 30 00 08 00 00 00 FF 0F A2 [01:14:17]state=0 [01:14:17]Key pressed [01:14:17]Feed [01:14:17]Write to MH i2c: D8 00 00 56 30 5D [01:14:17]Write i2c OK [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: D8 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: D8 01 00 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: D8 01 00 56 30 00 5E [01:14:17]int [01:14:17]Write to MH i2c: 01 00 00 57 30 87 [01:14:17]Write i2c OK [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 57 30 00 48 00 00 00 3D 00 13 [01:14:17]state=2 [01:14:17]Key pressed [01:14:17]OFD Sender: No OFD packet to send [01:14:17]int [01:14:17]Write to MH i2c: 01 00 00 58 30 88 [01:14:17]*** FLAG_PRN_KEY reset [01:14:17]Write i2c OK [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 [01:14:17]MH_I2C_Read... [01:14:17]Read from MH i2c: 01 07 00 58 30 00 00 00 00 00 F7 0F 95 [01:14:17]state=2 [01:14:17]Stop feed [01:14:18]int [01:14:18]Write to MH i2c: 01 00 00 59 30 89 [01:14:18]*** FLAG_PRN_KEY set [01:14:18]Write i2c OK [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 59 30 00 08 00 00 00 FF 0F A6 [01:14:18]state=0 [01:14:18]Key pressed [01:14:18]Feed [01:14:18]Write to MH i2c: D8 00 00 5A 30 61 [01:14:18]Write i2c OK [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: D8 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: D8 01 00 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: D8 01 00 5A 30 00 62 [01:14:18]int [01:14:18]Write to MH i2c: 01 00 00 5B 30 8B [01:14:18]Write i2c OK [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 5B 30 00 48 00 00 00 3C 00 16 [01:14:18]state=2 [01:14:18]Key pressed [01:14:18]int [01:14:18]Write to MH i2c: 01 00 00 5C 30 8C [01:14:18]*** FLAG_PRN_KEY reset [01:14:18]Write i2c OK [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 [01:14:18]MH_I2C_Read... [01:14:18]Read from MH i2c: 01 07 00 5C 30 00 00 00 00 00 F6 0F 98 [01:14:18]state=2 [01:14:18]Stop feed [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:26]accept exits with 9 [02:21:26]New connection [02:21:26]New thread 3067108708 created [02:21:26]Thread 3066965348 joined [02:21:26]Waiting for new connection... [02:21:26] Sock 9.Parse request [02:21:26]Sock 9.Check first char [02:21:26]Sock 9.First char is OK [02:21:26]request: POST /json_proto HTTP/1.0 [02:21:26]Method: POST [02:21:26]URL: /json_proto [02:21:26]Method is POST - this is cgi request [02:21:26]url: /json_proto [02:21:26]query_string will be loaded in cgi processing [02:21:26]execute_cgi json_proto POST (null) [02:21:26]execute_cgi path=json_proto method=POST [02:21:26]POST find Content-Length [02:21:26]Host: 172.17.33.3:8080 [02:21:26]Content-Length: 675 [02:21:26]Content-Type: application/json [02:21:26] [02:21:26]POST finish read [02:21:26]Found Content-Length = 675 [02:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:26]execute_script... [02:21: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)348207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:21:26]POST & json_proto [02:21:26]process_json_proto [02:21:26]json parsed OK: [02:21:26]protocol is kg_v1.0 [02:21:26]action value=close_receipt [02:21:26]process_action close_receipt [02:21:26]cmd_close_receipt [02:21:26]MH_GetDate [02:21:26]Write to MH i2c: F0 00 00 5D 30 7C [02:21:26]Write i2c OK [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: F0 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: F0 09 00 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: F0 09 00 5D 30 00 A9 E0 1D 66 23 5B 8F 65 03 [02:21:26]GetLastDocTimeStamp 1713229246 [02:21:26]current date 1713234089 [02:21:26]FM_GetShiftState [02:21:26]SAM_PROTO_GetShiftState [02:21:26]wFMCommunicate request_size=4 [02:21:26]MH_SAM_APDU [02:21:26]CAPDU: 80 13 01 00 [02:21:26]Write to MH i2c: E2 08 00 5E 30 80 13 01 00 00 00 00 00 0B [02:21:26]Write i2c OK [02:21:26]MH_I2C_Read... [02:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:26]Read from MH i2c: E2 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 0E 00 [02:21:26]MH_I2C_Read... [02:21:26]Read from MH i2c: E2 0E 00 5E 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B9 [02:21:26]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [02:21:26]wFMCommunicate OK [02:21:26]SAM_PROTO_GetShiftState done [02:21:26]FM_GetShiftState done [02:21:26]opened in 1713226843 [02:21:26]opened+sec_in_day 1713313243 [02:21:26]quantity*price = 100016 [02:21:26]sum+1 = 100017 [02:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 6 16.04.2024 02:21 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29732 ФПД: 254235477323126 1/tax-web-control/client/api/v1/ticket?date=20240416T022129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29732&fm=254235477323126&tin=02508201610067®Number=0000138879044617&sum=100000 [02:21:27]StoreToDocumentArchive [02:21:27]shift 118 fd 29732 [02:21:27]save to /storage/0118/doc_00029732 [02:21:27]save last doc name /storage/0118/doc_00029732 to /storage/kkm_last_doc_name [02:21:27]save OK [02:21:27]Clear old archive folders... [02:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:21:27]tlvbuf is B6DCE210 [02:21:27]SAM_PROTO_ClearQueue [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 09 00 00 [02:21:27]Write to MH i2c: E2 08 00 6B 30 80 09 00 00 00 00 00 00 0D [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 6B 30 00 90 00 0F [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]SAM_PROTO_ClearQueue done [02:21:27]KKMCreateOFDPacket [02:21:27]OFDProtocolAddRootSTLVToBuf [02:21:27]FM_MakeSignedData [02:21:27]FM_MakeSignedData [02:21:27]SAM_PROTO_SignData [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 0D 01 02 [02:21:27]Write to MH i2c: E2 08 00 6C 30 80 0D 01 02 00 00 00 00 15 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 6C 30 00 90 00 10 [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]wFMCommunicate request_size=255 [02:21:27]MH_SAM_APDU [02:21: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A9 E0 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 74 00 00 35 04 06 00 [02:21:27]Write to MH i2c: E2 02 01 6D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A9 E0 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 74 00 00 35 04 06 00 00 00 11 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]wFMCommunicate request_size=11 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 0D 02 02 06 E7 39 CF 50 AD 76 [02:21:27]Write to MH i2c: E2 0E 00 6E 30 80 0D 02 02 06 00 E7 39 CF 50 AD 76 00 00 86 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [02:21:27]RAPDU: 90 00 [02:21:27]wFMCommunicate OK [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 0D 03 02 [02:21:27]Write to MH i2c: E2 08 00 6F 30 80 0D 03 02 00 00 00 00 1A [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 0B 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 0B 00 6F 30 00 49 E3 AB 71 B0 2C 38 34 90 00 AB [02:21:27]RAPDU: 49 E3 AB 71 B0 2C 38 34 90 00 [02:21:27]wFMCommunicate OK [02:21:27]SAM_PROTO_SignData done [02:21:27]FM_MakeSignedData done [02:21:27]CreateOFDProtocolMessage [02:21:27]wFMCommunicate request_size=4 [02:21:27]MH_SAM_APDU [02:21:27]CAPDU: 80 11 00 00 [02:21:27]Write to MH i2c: E2 08 00 70 30 80 11 00 00 00 00 00 00 1A [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:27]Read from MH i2c: E2 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 17 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: E2 17 00 70 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [02:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:21:27]wFMCommunicate OK [02:21:27]CreateOFDProtocolMessage done [02:21:27]OFDSenderStorePacket 29732 [02:21:27]StoreOFDPacket docnum=29732 [02:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B3 6C 08 01 04 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A9 E0 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 74 00 00 35 04 06 00 E7 39 CF 50 AD 76 49 E3 AB 71 B0 2C 38 34 [02:21:27]CheckFolder [02:21:27]dirname=/storage/ofd_packets [02:21:27]CheckFolder done [02:21:27]ProducePacketName [02:21:27]name=ofd_packets/00029732 [02:21:27]NVStorageSaveData ofd_packets/00029732 [02:21:27]File name is /storage/ofd_packets/00029732 [02:21:27]Write 302 bytes [02:21:27]NVStorageSaveData done [02:21:27]OFDSenderStorePacket done [02:21:27]KKMCreateOFDPacket done [02:21:27]NVStorageSaveData kkm_last_timestamp [02:21:27]File name is /storage/kkm_last_timestamp [02:21:27]Write 4 bytes [02:21:27]NVStorageSaveData done [02:21:27]ExternCall_PrintAddStr [02:21:27]wPrintStart [02:21:27]Write to MH i2c: 01 00 00 71 30 A1 [02:21:27]Write i2c OK [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 [02:21:27]MH_I2C_Read... [02:21:27]Read from MH i2c: 01 07 00 71 30 00 00 00 00 00 FF 0F B6 [02:21:27]RasterBufferAndPrint [02:21:27]line Счет N : (1)348207 [02:21:27]line ИНН: 02508201610067 [02:21:27]line Контрольно-Кассовый Чек [02:21:27]line ПРОДАЖА [02:21:27]line ТРК (МРК, ГНК) : 41 [02:21:27]line Товар: 2710124130 [02:21:27]line SUPER-92-К-5 [02:21:27]line 15.200 * 65.80 [02:21:27]line = 1000.16 [02:21:27]line НДС 12% НСП 1% [02:21:27]line > о реализуемом товаре [02:21:27]line ОКРУГЛЕНИЕ: -0.16 [02:21:27]line ИТОГО: 1000.00 [02:21:27]line Внесено: 1000.00 [02:21:27]line СДАЧА: 0.00 [02:21:27]line НСП 1% : 8.85 [02:21:27]line НДС 12% : 106.21 [02:21:27]line Наличными: 1000.00 [02:21:27]line Безнал.: 0.00 [02:21:27]line Место: АЗС № 108 "Партнер Нефть" [02:21:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:21:27]line СНО: Общий режим [02:21:27]line Чек 6 16.04.2024 02:21 [02:21:27]line Смена: 118 ФФД: 1.0 [02:21:27]line ЗНМ: 0300000027 [02:21:27]line РНМ: 0000138879044617 [02:21:27]line Версия ККМ: 001 [02:21:27]line ФМ: 0000000000963154 [02:21:27]line ФД: 29732 [02:21:27]line ФПД: 254235477323126 [02:21:27]line 1/tax-web-control/client/api/v1/ticket?date=20240416T022129&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29732&fm=254235477323126&tin=02508201610067®Number=0000138879044617&sum=100000 [02:21:28]OFD Sender: Processing packet 29732 [packets to send 8, broken 7] [02:21:28]ProducePacketName [02:21:28]name=ofd_packets/00029732 [02:21:28]OFD Sender: To server: pG, [02:21:28]CommunicateWithHost lk.salyk.kg:30040 [02:21:28]ConnectInit lk.salyk.kg [02:21:28]written 0, free lines is 4095 [02:21:28]Connected sock=10 [02:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B3 6C 08 01 04 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A9 E0 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 74 00 00 35 04 06 00 E7 39 CF 50 AD 76 49 E3 AB 71 B0 2C 38 34 [02:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B 5C 47 00 B8 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 39 36 33 31 35 34 10 04 04 00 24 74 00 00 F4 03 04 00 48 8B 1D 66 B6 04 01 00 00 7A 4D 20 37 A8 1D 18 BD [02:21:28]CommunicateWithHost err = 0 [02:21:28]CheckOFDResponse [02:21:28]1017 (14) - 77093643461234 [02:21:28]1041 (16) - 0000000000963154 [02:21:28]1040 (4) - 29732 [02:21:28]1012 (4) - 15.04.2024 20:17 [02:21:28]1206 (1) - 0 [02:21:28]OFD Sender: Remove packet 29732 [02:21:28]ProducePacketName [02:21:28]name=ofd_packets/00029732 [02:21:28]NVStorageDeleteData [02:21:28]Write to MH i2c: 01 00 00 9B 30 CB [02:21:28]Write i2c OK [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: 01 [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: 01 07 00 [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: 01 07 00 9B 30 00 00 00 00 00 C8 0C A6 [02:21:28]RasterBufferAndPrint [02:21:28]line [02:21:28]line [02:21:28]line [02:21:28]line [02:21:28]line [02:21:28]written 0, free lines is 3278 [02:21:28]MH_Cut [02:21:28]Write to MH i2c: D1 01 00 A2 30 01 A4 [02:21:28]Write i2c OK [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: D1 [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: D1 01 00 [02:21:28]MH_I2C_Read... [02:21:28]Read from MH i2c: D1 01 00 A2 30 00 A3 [02:21:28]Write to MH i2c: 01 00 00 A3 30 D3 [02:21:28]Write i2c OK [02:21:28]MH_I2C_Read... [02:21:29]OFD Sender: No OFD packet to send [02:21:29]*** Cut start [02:21:29]*** Partial cut [02:21:29]*** CUTSNS_PIN = 1 [02:21:29]*** CUTSNS_PIN = 0 [02:21:29]*** Brake cut motor [02:21:30]Read from MH i2c: 01 [02:21:30]MH_I2C_Read... [02:21:30]*** Stop cut motor [02:21:30]*** Cut end [02:21:30]Read from MH i2c: 01 07 00 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [02:21:30]process_action close_receipt done [02:21:30]requested_data is exist [02:21:30]produce_requested_data [02:21:30]requested_item fm.sn is exist - process it [02:21:30]wFMCommunicate request_size=4 [02:21:30]MH_SAM_APDU [02:21:30]CAPDU: 80 11 00 00 [02:21:30]Write to MH i2c: E2 08 00 A4 30 80 11 00 00 00 00 00 00 4E [02:21:30]Write i2c OK [02:21:30]MH_I2C_Read... [02:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:30]Read from MH i2c: E2 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 17 00 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 17 00 A4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [02:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:21:30]wFMCommunicate OK [02:21:30]requested_item fd.num is exist - process it [02:21:30]SAM_PROTO_GetFieldsCounters [02:21:30]wFMCommunicate request_size=4 [02:21:30]MH_SAM_APDU [02:21:30]CAPDU: 80 13 00 00 [02:21:30]Write to MH i2c: E2 08 00 A5 30 80 13 00 00 00 00 00 00 51 [02:21:30]Write i2c OK [02:21:30]MH_I2C_Read... [02:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:21:30]Read from MH i2c: E2 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 62 00 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 62 00 A5 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 74 00 00 0E 04 04 00 76 00 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 AF [02:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 74 00 00 0E 04 04 00 76 00 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 [02:21:30]wFMCommunicate OK [02:21:30]SAM_PROTO_GetFieldsCounters done [02:21:30]requested_item shift.num is exist - process it [02:21:30]requested_item shift.opened is exist - process it [02:21:30]req_shift_opened [02:21:30]FM_GetShiftState [02:21:30]SAM_PROTO_GetShiftState [02:21:30]wFMCommunicate request_size=4 [02:21:30]MH_SAM_APDU [02:21:30]CAPDU: 80 13 01 00 [02:21:30]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [02:21:30]Write i2c OK [02:21:30]MH_I2C_Read... [02:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:30]Read from MH i2c: E2 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 0E 00 [02:21:30]MH_I2C_Read... [02:21:30]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 01 [02:21:30]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [02:21:30]wFMCommunicate OK [02:21:30]SAM_PROTO_GetShiftState done [02:21:30]FM_GetShiftState done [02:21:30]req_shift_opened done [02:21:30]requested_item shift.open_date is exist - process it [02:21:30]req_shift_open_date [02:21:30]req_shift_open_date done [02:21:30]produce_requested_data done [02:21:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29732,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [02:21:30]process_action_free close_receipt [02:21:30]json_value_free [02:21:30]json_value_free done [02:21:30]process_json_proto returns [02:21:30]Send response to host [02:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29732,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [02:21:30]free response buf [02:21:30]execute_script done [02:21:30]execute_script returns [02:21:30]free content buf [02:21:30]Sock 9.Close socket [02:21:30]Sock 9.Thread stoped [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [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:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [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:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:51]accept exits with 7 [02:52:51]New connection [02:52:51]New thread 3066965348 created [02:52:51]Thread 3067108708 joined [02:52:51]Waiting for new connection... [02:52:51] Sock 7.Parse request [02:52:51]Sock 7.Check first char [02:52:51]Sock 7.First char is OK [02:52:51]request: POST /json_proto HTTP/1.0 [02:52:51]Method: POST [02:52:51]URL: /json_proto [02:52:51]Method is POST - this is cgi request [02:52:51]url: /json_proto [02:52:51]query_string will be loaded in cgi processing [02:52:51]execute_cgi json_proto POST (null) [02:52:51]execute_cgi path=json_proto method=POST [02:52:51]POST find Content-Length [02:52:51]Host: 172.17.33.3:8080 [02:52:51]Content-Length: 840 [02:52:51]Content-Type: application/json [02:52:51] [02:52:51]POST finish read [02:52:51]Found Content-Length = 840 [02:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.320, "sum" : 150.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:51]execute_script... [02:52: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)348208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.320, "sum" : 150.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:51]POST & json_proto [02:52:51]process_json_proto [02:52:51]json parsed OK: [02:52:51]protocol is kg_v1.0 [02:52:51]action value=close_receipt [02:52:51]process_action close_receipt [02:52:51]cmd_close_receipt [02:52:51]MH_GetDate [02:52:51]Write to MH i2c: F0 00 00 A7 30 C6 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: F0 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: F0 09 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: F0 09 00 A7 30 00 06 E8 1D 66 23 5B 8F 65 B2 [02:52:51]GetLastDocTimeStamp 1713234089 [02:52:51]current date 1713235974 [02:52:51]FM_GetShiftState [02:52:51]SAM_PROTO_GetShiftState [02:52:51]wFMCommunicate request_size=4 [02:52:51]MH_SAM_APDU [02:52:51]CAPDU: 80 13 01 00 [02:52:51]Write to MH i2c: E2 08 00 A8 30 80 13 01 00 00 00 00 00 55 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:51]Read from MH i2c: E2 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 0E 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: E2 0E 00 A8 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 03 [02:52:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [02:52:51]wFMCommunicate OK [02:52:51]SAM_PROTO_GetShiftState done [02:52:51]FM_GetShiftState done [02:52:51]opened in 1713226843 [02:52:51]opened+sec_in_day 1713313243 [02:52:51]quantity*price = 15033 [02:52:51]sum+1 = 15035 [02:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.34 НСП 1% : 1.33 НДС 12% : 15.96 Наличными: 0.00 Безнал.: 150.34 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 7 16.04.2024 02:52 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29733 ФПД: 162661756053799 1/tax-web-control/client/api/v1/ticket?date=20240416T025254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29733&fm=162661756053799&tin=02508201610067®Number=0000138879044617&sum=15034 [02:52:52]StoreToDocumentArchive [02:52:52]shift 118 fd 29733 [02:52:52]save to /storage/0118/doc_00029733 [02:52:52]save last doc name /storage/0118/doc_00029733 to /storage/kkm_last_doc_name [02:52:52]save OK [02:52:52]Clear old archive folders... [02:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:52:52]tlvbuf is 01AC0A00 [02:52:52]SAM_PROTO_ClearQueue [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 09 00 00 [02:52:52]Write to MH i2c: E2 08 00 B5 30 80 09 00 00 00 00 00 00 57 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [02:52:52]RAPDU: 90 00 [02:52:52]wFMCommunicate OK [02:52:52]SAM_PROTO_ClearQueue done [02:52:52]KKMCreateOFDPacket [02:52:52]OFDProtocolAddRootSTLVToBuf [02:52:52]FM_MakeSignedData [02:52:52]FM_MakeSignedData [02:52:52]SAM_PROTO_SignData [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 0D 01 02 [02:52:52]Write to MH i2c: E2 08 00 B6 30 80 0D 01 02 00 00 00 00 5F [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [02:52:52]RAPDU: 90 00 [02:52:52]wFMCommunicate OK [02:52:52]wFMCommunicate request_size=255 [02:52:52]MH_SAM_APDU [02:52: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 10 09 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 E8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 74 00 00 35 04 06 00 93 [02:52:52]Write to MH i2c: E2 02 01 B7 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 09 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 E8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 74 00 00 35 04 06 00 93 00 00 C5 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 B7 30 00 90 00 5B [02:52:52]RAPDU: 90 00 [02:52:52]wFMCommunicate OK [02:52:52]wFMCommunicate request_size=10 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 0D 02 02 05 F0 A4 30 29 27 [02:52:52]Write to MH i2c: E2 0D 00 B8 30 80 0D 02 02 05 00 F0 A4 30 29 27 00 00 80 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 03 00 B8 30 00 90 00 5C [02:52:52]RAPDU: 90 00 [02:52:52]wFMCommunicate OK [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 0D 03 02 [02:52:52]Write to MH i2c: E2 08 00 B9 30 80 0D 03 02 00 00 00 00 64 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:53]Read from MH i2c: E2 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 0B 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 0B 00 B9 30 00 E8 44 30 8E 4D 34 1D B4 90 00 A1 [02:52:53]RAPDU: E8 44 30 8E 4D 34 1D B4 90 00 [02:52:53]wFMCommunicate OK [02:52:53]SAM_PROTO_SignData done [02:52:53]FM_MakeSignedData done [02:52:53]CreateOFDProtocolMessage [02:52:53]wFMCommunicate request_size=4 [02:52:53]MH_SAM_APDU [02:52:53]CAPDU: 80 11 00 00 [02:52:53]Write to MH i2c: E2 08 00 BA 30 80 11 00 00 00 00 00 00 64 [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:53]Read from MH i2c: E2 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 17 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: E2 17 00 BA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [02:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:52:53]wFMCommunicate OK [02:52:53]CreateOFDProtocolMessage done [02:52:53]OFDSenderStorePacket 29733 [02:52:53]StoreOFDPacket docnum=29733 [02:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 ED B4 07 01 D3 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 10 09 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 E8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 74 00 00 35 04 06 00 93 F0 A4 30 29 27 E8 44 30 8E 4D 34 1D B4 [02:52:53]CheckFolder [02:52:53]dirname=/storage/ofd_packets [02:52:53]CheckFolder done [02:52:53]ProducePacketName [02:52:53]name=ofd_packets/00029733 [02:52:53]NVStorageSaveData ofd_packets/00029733 [02:52:53]File name is /storage/ofd_packets/00029733 [02:52:53]Write 301 bytes [02:52:53]NVStorageSaveData done [02:52:53]OFDSenderStorePacket done [02:52:53]KKMCreateOFDPacket done [02:52:53]NVStorageSaveData kkm_last_timestamp [02:52:53]File name is /storage/kkm_last_timestamp [02:52:53]Write 4 bytes [02:52:53]NVStorageSaveData done [02:52:53]ExternCall_PrintAddStr [02:52:53]wPrintStart [02:52:53]Write to MH i2c: 01 00 00 BB 30 EB [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 07 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [02:52:53]RasterBufferAndPrint [02:52:53]line Счет N : (1)348208 [02:52:53]line ИНН: 02508201610067 [02:52:53]line Контрольно-Кассовый Чек [02:52:53]line ПРОДАЖА [02:52:53]line ТРК (МРК, ГНК) : 32 [02:52:53]line Товар: 2710124130 [02:52:53]line Аи-92-К-5 [02:52:53]line 2.320 * 64.80 [02:52:53]line = 150.34 [02:52:53]line НДС 12% НСП 1% [02:52:53]line > о реализуемом товаре [02:52:53]line ИТОГО: 150.34 [02:52:53]line НСП 1% : 1.33 [02:52:53]line НДС 12% : 15.96 [02:52:53]line Наличными: 0.00 [02:52:53]line Безнал.: 150.34 [02:52:53]line Место: АЗС № 108 "Партнер Нефть" [02:52:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:52:53]line СНО: Общий режим [02:52:53]line Чек 7 16.04.2024 02:52 [02:52:53]line Смена: 118 ФФД: 1.0 [02:52:53]line ЗНМ: 0300000027 [02:52:53]line РНМ: 0000138879044617 [02:52:53]line Версия ККМ: 001 [02:52:53]line Платежная система: АКБ Кыргызстан [02:52:53]line ФМ: 0000000000963154 [02:52:53]line ФД: 29733 [02:52:53]line ФПД: 162661756053799 [02:52:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T025254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29733&fm=162661756053799&tin=02508201610067®Number=0000138879044617&sum=15034 [02:52:53]OFD Sender: Processing packet 29733 [packets to send 8, broken 7] [02:52:53]ProducePacketName [02:52:53]name=ofd_packets/00029733 [02:52:53]OFD Sender: To server: pG, [02:52:53]CommunicateWithHost lk.salyk.kg:30040 [02:52:53]ConnectInit lk.salyk.kg [02:52:53]written 0, free lines is 4095 [02:52:53]Connected sock=10 [02:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 ED B4 07 01 D3 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 10 09 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 BA 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 E8 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 74 00 00 35 04 06 00 93 F0 A4 30 29 27 E8 44 30 8E 4D 34 1D B4 [02:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 4A 47 00 D0 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 74 00 00 F4 03 04 00 A6 92 1D 66 B6 04 01 00 00 D4 1D 6C 51 F6 C6 48 85 [02:52:53]CommunicateWithHost err = 0 [02:52:53]CheckOFDResponse [02:52:53]1017 (14) - 77093643461234 [02:52:53]1041 (16) - 0000000000963154 [02:52:53]1040 (4) - 29733 [02:52:53]1012 (4) - 15.04.2024 20:48 [02:52:53]1206 (1) - 0 [02:52:53]OFD Sender: Remove packet 29733 [02:52:53]ProducePacketName [02:52:53]name=ofd_packets/00029733 [02:52:53]NVStorageDeleteData [02:52:53]Write to MH i2c: 01 00 00 E4 30 14 [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 07 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: 01 07 00 E4 30 00 00 00 00 00 DD 0C 04 [02:52:53]RasterBufferAndPrint [02:52:53]line [02:52:53]line [02:52:53]line [02:52:53]line [02:52:53]line [02:52:53]written 0, free lines is 3299 [02:52:53]MH_Cut [02:52:53]Write to MH i2c: D1 01 00 EB 30 01 ED [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: D1 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: D1 01 00 [02:52:53]MH_I2C_Read... [02:52:53]Read from MH i2c: D1 01 00 EB 30 00 EC [02:52:53]Write to MH i2c: 01 00 00 EC 30 1C [02:52:53]Write i2c OK [02:52:53]MH_I2C_Read... [02:52:54]OFD Sender: No OFD packet to send [02:52:54]*** Cut start [02:52:54]*** Partial cut [02:52:54]*** CUTSNS_PIN = 1 [02:52:54]*** CUTSNS_PIN = 0 [02:52:54]*** Brake cut motor [02:52:55]Read from MH i2c: 01 [02:52:55]*** Stop cut motor [02:52:55]*** Cut end [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: 01 07 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: 01 07 00 EC 30 00 00 00 00 00 FF 0F 31 [02:52:55]process_action close_receipt done [02:52:55]requested_data is exist [02:52:55]produce_requested_data [02:52:55]requested_item fm.sn is exist - process it [02:52:55]wFMCommunicate request_size=4 [02:52:55]MH_SAM_APDU [02:52:55]CAPDU: 80 11 00 00 [02:52:55]Write to MH i2c: E2 08 00 ED 30 80 11 00 00 00 00 00 00 97 [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:55]Read from MH i2c: E2 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 17 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 17 00 ED 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [02:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:52:55]wFMCommunicate OK [02:52:55]requested_item fd.num is exist - process it [02:52:55]SAM_PROTO_GetFieldsCounters [02:52:55]wFMCommunicate request_size=4 [02:52:55]MH_SAM_APDU [02:52:55]CAPDU: 80 13 00 00 [02:52:55]Write to MH i2c: E2 08 00 EE 30 80 13 00 00 00 00 00 00 9A [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:55]Read from MH i2c: E2 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 62 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 62 00 EE 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 74 00 00 0E 04 04 00 76 00 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 FC [02:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 74 00 00 0E 04 04 00 76 00 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 [02:52:55]wFMCommunicate OK [02:52:55]SAM_PROTO_GetFieldsCounters done [02:52:55]requested_item shift.num is exist - process it [02:52:55]requested_item shift.opened is exist - process it [02:52:55]req_shift_opened [02:52:55]FM_GetShiftState [02:52:55]SAM_PROTO_GetShiftState [02:52:55]wFMCommunicate request_size=4 [02:52:55]MH_SAM_APDU [02:52:55]CAPDU: 80 13 01 00 [02:52:55]Write to MH i2c: E2 08 00 EF 30 80 13 01 00 00 00 00 00 9C [02:52:55]Write i2c OK [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 [02:52:55]MH_I2C_Read... [02:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:55]Read from MH i2c: E2 0E 00 [02:52:55]MH_I2C_Read... [02:52:55]Read from MH i2c: E2 0E 00 EF 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4A [02:52:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [02:52:55]wFMCommunicate OK [02:52:55]SAM_PROTO_GetShiftState done [02:52:55]FM_GetShiftState done [02:52:55]req_shift_opened done [02:52:55]requested_item shift.open_date is exist - process it [02:52:55]req_shift_open_date [02:52:55]req_shift_open_date done [02:52:55]produce_requested_data done [02:52:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29733,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [02:52:55]process_action_free close_receipt [02:52:55]json_value_free [02:52:55]json_value_free done [02:52:55]process_json_proto returns [02:52:55]Send response to host [02:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29733,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [02:52:55]free response buf [02:52:55]execute_script done [02:52:55]execute_script returns [02:52:55]free content buf [02:52:55]Sock 7.Close socket [02:52:55]Sock 7.Thread stoped [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send